...

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

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

     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/v2"
    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/v2"
    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:v2"
    97  const apiName = "dialogflow"
    98  const apiVersion = "v2"
    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.Agent = NewProjectsAgentService(s)
   171  	rs.AnswerRecords = NewProjectsAnswerRecordsService(s)
   172  	rs.ConversationDatasets = NewProjectsConversationDatasetsService(s)
   173  	rs.ConversationModels = NewProjectsConversationModelsService(s)
   174  	rs.ConversationProfiles = NewProjectsConversationProfilesService(s)
   175  	rs.Conversations = NewProjectsConversationsService(s)
   176  	rs.KnowledgeBases = NewProjectsKnowledgeBasesService(s)
   177  	rs.Locations = NewProjectsLocationsService(s)
   178  	rs.Operations = NewProjectsOperationsService(s)
   179  	rs.Suggestions = NewProjectsSuggestionsService(s)
   180  	return rs
   181  }
   182  
   183  type ProjectsService struct {
   184  	s *Service
   185  
   186  	Agent *ProjectsAgentService
   187  
   188  	AnswerRecords *ProjectsAnswerRecordsService
   189  
   190  	ConversationDatasets *ProjectsConversationDatasetsService
   191  
   192  	ConversationModels *ProjectsConversationModelsService
   193  
   194  	ConversationProfiles *ProjectsConversationProfilesService
   195  
   196  	Conversations *ProjectsConversationsService
   197  
   198  	KnowledgeBases *ProjectsKnowledgeBasesService
   199  
   200  	Locations *ProjectsLocationsService
   201  
   202  	Operations *ProjectsOperationsService
   203  
   204  	Suggestions *ProjectsSuggestionsService
   205  }
   206  
   207  func NewProjectsAgentService(s *Service) *ProjectsAgentService {
   208  	rs := &ProjectsAgentService{s: s}
   209  	rs.EntityTypes = NewProjectsAgentEntityTypesService(s)
   210  	rs.Environments = NewProjectsAgentEnvironmentsService(s)
   211  	rs.Intents = NewProjectsAgentIntentsService(s)
   212  	rs.KnowledgeBases = NewProjectsAgentKnowledgeBasesService(s)
   213  	rs.Sessions = NewProjectsAgentSessionsService(s)
   214  	rs.Versions = NewProjectsAgentVersionsService(s)
   215  	return rs
   216  }
   217  
   218  type ProjectsAgentService struct {
   219  	s *Service
   220  
   221  	EntityTypes *ProjectsAgentEntityTypesService
   222  
   223  	Environments *ProjectsAgentEnvironmentsService
   224  
   225  	Intents *ProjectsAgentIntentsService
   226  
   227  	KnowledgeBases *ProjectsAgentKnowledgeBasesService
   228  
   229  	Sessions *ProjectsAgentSessionsService
   230  
   231  	Versions *ProjectsAgentVersionsService
   232  }
   233  
   234  func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService {
   235  	rs := &ProjectsAgentEntityTypesService{s: s}
   236  	rs.Entities = NewProjectsAgentEntityTypesEntitiesService(s)
   237  	return rs
   238  }
   239  
   240  type ProjectsAgentEntityTypesService struct {
   241  	s *Service
   242  
   243  	Entities *ProjectsAgentEntityTypesEntitiesService
   244  }
   245  
   246  func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService {
   247  	rs := &ProjectsAgentEntityTypesEntitiesService{s: s}
   248  	return rs
   249  }
   250  
   251  type ProjectsAgentEntityTypesEntitiesService struct {
   252  	s *Service
   253  }
   254  
   255  func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService {
   256  	rs := &ProjectsAgentEnvironmentsService{s: s}
   257  	rs.Intents = NewProjectsAgentEnvironmentsIntentsService(s)
   258  	rs.Users = NewProjectsAgentEnvironmentsUsersService(s)
   259  	return rs
   260  }
   261  
   262  type ProjectsAgentEnvironmentsService struct {
   263  	s *Service
   264  
   265  	Intents *ProjectsAgentEnvironmentsIntentsService
   266  
   267  	Users *ProjectsAgentEnvironmentsUsersService
   268  }
   269  
   270  func NewProjectsAgentEnvironmentsIntentsService(s *Service) *ProjectsAgentEnvironmentsIntentsService {
   271  	rs := &ProjectsAgentEnvironmentsIntentsService{s: s}
   272  	return rs
   273  }
   274  
   275  type ProjectsAgentEnvironmentsIntentsService struct {
   276  	s *Service
   277  }
   278  
   279  func NewProjectsAgentEnvironmentsUsersService(s *Service) *ProjectsAgentEnvironmentsUsersService {
   280  	rs := &ProjectsAgentEnvironmentsUsersService{s: s}
   281  	rs.Sessions = NewProjectsAgentEnvironmentsUsersSessionsService(s)
   282  	return rs
   283  }
   284  
   285  type ProjectsAgentEnvironmentsUsersService struct {
   286  	s *Service
   287  
   288  	Sessions *ProjectsAgentEnvironmentsUsersSessionsService
   289  }
   290  
   291  func NewProjectsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsService {
   292  	rs := &ProjectsAgentEnvironmentsUsersSessionsService{s: s}
   293  	rs.Contexts = NewProjectsAgentEnvironmentsUsersSessionsContextsService(s)
   294  	rs.EntityTypes = NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s)
   295  	return rs
   296  }
   297  
   298  type ProjectsAgentEnvironmentsUsersSessionsService struct {
   299  	s *Service
   300  
   301  	Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsService
   302  
   303  	EntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
   304  }
   305  
   306  func NewProjectsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsContextsService {
   307  	rs := &ProjectsAgentEnvironmentsUsersSessionsContextsService{s: s}
   308  	return rs
   309  }
   310  
   311  type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {
   312  	s *Service
   313  }
   314  
   315  func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService {
   316  	rs := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
   317  	return rs
   318  }
   319  
   320  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {
   321  	s *Service
   322  }
   323  
   324  func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService {
   325  	rs := &ProjectsAgentIntentsService{s: s}
   326  	return rs
   327  }
   328  
   329  type ProjectsAgentIntentsService struct {
   330  	s *Service
   331  }
   332  
   333  func NewProjectsAgentKnowledgeBasesService(s *Service) *ProjectsAgentKnowledgeBasesService {
   334  	rs := &ProjectsAgentKnowledgeBasesService{s: s}
   335  	rs.Documents = NewProjectsAgentKnowledgeBasesDocumentsService(s)
   336  	return rs
   337  }
   338  
   339  type ProjectsAgentKnowledgeBasesService struct {
   340  	s *Service
   341  
   342  	Documents *ProjectsAgentKnowledgeBasesDocumentsService
   343  }
   344  
   345  func NewProjectsAgentKnowledgeBasesDocumentsService(s *Service) *ProjectsAgentKnowledgeBasesDocumentsService {
   346  	rs := &ProjectsAgentKnowledgeBasesDocumentsService{s: s}
   347  	return rs
   348  }
   349  
   350  type ProjectsAgentKnowledgeBasesDocumentsService struct {
   351  	s *Service
   352  }
   353  
   354  func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService {
   355  	rs := &ProjectsAgentSessionsService{s: s}
   356  	rs.Contexts = NewProjectsAgentSessionsContextsService(s)
   357  	rs.EntityTypes = NewProjectsAgentSessionsEntityTypesService(s)
   358  	return rs
   359  }
   360  
   361  type ProjectsAgentSessionsService struct {
   362  	s *Service
   363  
   364  	Contexts *ProjectsAgentSessionsContextsService
   365  
   366  	EntityTypes *ProjectsAgentSessionsEntityTypesService
   367  }
   368  
   369  func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService {
   370  	rs := &ProjectsAgentSessionsContextsService{s: s}
   371  	return rs
   372  }
   373  
   374  type ProjectsAgentSessionsContextsService struct {
   375  	s *Service
   376  }
   377  
   378  func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService {
   379  	rs := &ProjectsAgentSessionsEntityTypesService{s: s}
   380  	return rs
   381  }
   382  
   383  type ProjectsAgentSessionsEntityTypesService struct {
   384  	s *Service
   385  }
   386  
   387  func NewProjectsAgentVersionsService(s *Service) *ProjectsAgentVersionsService {
   388  	rs := &ProjectsAgentVersionsService{s: s}
   389  	return rs
   390  }
   391  
   392  type ProjectsAgentVersionsService struct {
   393  	s *Service
   394  }
   395  
   396  func NewProjectsAnswerRecordsService(s *Service) *ProjectsAnswerRecordsService {
   397  	rs := &ProjectsAnswerRecordsService{s: s}
   398  	return rs
   399  }
   400  
   401  type ProjectsAnswerRecordsService struct {
   402  	s *Service
   403  }
   404  
   405  func NewProjectsConversationDatasetsService(s *Service) *ProjectsConversationDatasetsService {
   406  	rs := &ProjectsConversationDatasetsService{s: s}
   407  	return rs
   408  }
   409  
   410  type ProjectsConversationDatasetsService struct {
   411  	s *Service
   412  }
   413  
   414  func NewProjectsConversationModelsService(s *Service) *ProjectsConversationModelsService {
   415  	rs := &ProjectsConversationModelsService{s: s}
   416  	rs.Evaluations = NewProjectsConversationModelsEvaluationsService(s)
   417  	return rs
   418  }
   419  
   420  type ProjectsConversationModelsService struct {
   421  	s *Service
   422  
   423  	Evaluations *ProjectsConversationModelsEvaluationsService
   424  }
   425  
   426  func NewProjectsConversationModelsEvaluationsService(s *Service) *ProjectsConversationModelsEvaluationsService {
   427  	rs := &ProjectsConversationModelsEvaluationsService{s: s}
   428  	return rs
   429  }
   430  
   431  type ProjectsConversationModelsEvaluationsService struct {
   432  	s *Service
   433  }
   434  
   435  func NewProjectsConversationProfilesService(s *Service) *ProjectsConversationProfilesService {
   436  	rs := &ProjectsConversationProfilesService{s: s}
   437  	return rs
   438  }
   439  
   440  type ProjectsConversationProfilesService struct {
   441  	s *Service
   442  }
   443  
   444  func NewProjectsConversationsService(s *Service) *ProjectsConversationsService {
   445  	rs := &ProjectsConversationsService{s: s}
   446  	rs.Messages = NewProjectsConversationsMessagesService(s)
   447  	rs.Participants = NewProjectsConversationsParticipantsService(s)
   448  	rs.Suggestions = NewProjectsConversationsSuggestionsService(s)
   449  	return rs
   450  }
   451  
   452  type ProjectsConversationsService struct {
   453  	s *Service
   454  
   455  	Messages *ProjectsConversationsMessagesService
   456  
   457  	Participants *ProjectsConversationsParticipantsService
   458  
   459  	Suggestions *ProjectsConversationsSuggestionsService
   460  }
   461  
   462  func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService {
   463  	rs := &ProjectsConversationsMessagesService{s: s}
   464  	return rs
   465  }
   466  
   467  type ProjectsConversationsMessagesService struct {
   468  	s *Service
   469  }
   470  
   471  func NewProjectsConversationsParticipantsService(s *Service) *ProjectsConversationsParticipantsService {
   472  	rs := &ProjectsConversationsParticipantsService{s: s}
   473  	rs.Suggestions = NewProjectsConversationsParticipantsSuggestionsService(s)
   474  	return rs
   475  }
   476  
   477  type ProjectsConversationsParticipantsService struct {
   478  	s *Service
   479  
   480  	Suggestions *ProjectsConversationsParticipantsSuggestionsService
   481  }
   482  
   483  func NewProjectsConversationsParticipantsSuggestionsService(s *Service) *ProjectsConversationsParticipantsSuggestionsService {
   484  	rs := &ProjectsConversationsParticipantsSuggestionsService{s: s}
   485  	return rs
   486  }
   487  
   488  type ProjectsConversationsParticipantsSuggestionsService struct {
   489  	s *Service
   490  }
   491  
   492  func NewProjectsConversationsSuggestionsService(s *Service) *ProjectsConversationsSuggestionsService {
   493  	rs := &ProjectsConversationsSuggestionsService{s: s}
   494  	return rs
   495  }
   496  
   497  type ProjectsConversationsSuggestionsService struct {
   498  	s *Service
   499  }
   500  
   501  func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService {
   502  	rs := &ProjectsKnowledgeBasesService{s: s}
   503  	rs.Documents = NewProjectsKnowledgeBasesDocumentsService(s)
   504  	return rs
   505  }
   506  
   507  type ProjectsKnowledgeBasesService struct {
   508  	s *Service
   509  
   510  	Documents *ProjectsKnowledgeBasesDocumentsService
   511  }
   512  
   513  func NewProjectsKnowledgeBasesDocumentsService(s *Service) *ProjectsKnowledgeBasesDocumentsService {
   514  	rs := &ProjectsKnowledgeBasesDocumentsService{s: s}
   515  	return rs
   516  }
   517  
   518  type ProjectsKnowledgeBasesDocumentsService struct {
   519  	s *Service
   520  }
   521  
   522  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   523  	rs := &ProjectsLocationsService{s: s}
   524  	rs.Agent = NewProjectsLocationsAgentService(s)
   525  	rs.AnswerRecords = NewProjectsLocationsAnswerRecordsService(s)
   526  	rs.ConversationDatasets = NewProjectsLocationsConversationDatasetsService(s)
   527  	rs.ConversationModels = NewProjectsLocationsConversationModelsService(s)
   528  	rs.ConversationProfiles = NewProjectsLocationsConversationProfilesService(s)
   529  	rs.Conversations = NewProjectsLocationsConversationsService(s)
   530  	rs.KnowledgeBases = NewProjectsLocationsKnowledgeBasesService(s)
   531  	rs.Operations = NewProjectsLocationsOperationsService(s)
   532  	rs.Suggestions = NewProjectsLocationsSuggestionsService(s)
   533  	return rs
   534  }
   535  
   536  type ProjectsLocationsService struct {
   537  	s *Service
   538  
   539  	Agent *ProjectsLocationsAgentService
   540  
   541  	AnswerRecords *ProjectsLocationsAnswerRecordsService
   542  
   543  	ConversationDatasets *ProjectsLocationsConversationDatasetsService
   544  
   545  	ConversationModels *ProjectsLocationsConversationModelsService
   546  
   547  	ConversationProfiles *ProjectsLocationsConversationProfilesService
   548  
   549  	Conversations *ProjectsLocationsConversationsService
   550  
   551  	KnowledgeBases *ProjectsLocationsKnowledgeBasesService
   552  
   553  	Operations *ProjectsLocationsOperationsService
   554  
   555  	Suggestions *ProjectsLocationsSuggestionsService
   556  }
   557  
   558  func NewProjectsLocationsAgentService(s *Service) *ProjectsLocationsAgentService {
   559  	rs := &ProjectsLocationsAgentService{s: s}
   560  	rs.EntityTypes = NewProjectsLocationsAgentEntityTypesService(s)
   561  	rs.Environments = NewProjectsLocationsAgentEnvironmentsService(s)
   562  	rs.Intents = NewProjectsLocationsAgentIntentsService(s)
   563  	rs.Sessions = NewProjectsLocationsAgentSessionsService(s)
   564  	rs.Versions = NewProjectsLocationsAgentVersionsService(s)
   565  	return rs
   566  }
   567  
   568  type ProjectsLocationsAgentService struct {
   569  	s *Service
   570  
   571  	EntityTypes *ProjectsLocationsAgentEntityTypesService
   572  
   573  	Environments *ProjectsLocationsAgentEnvironmentsService
   574  
   575  	Intents *ProjectsLocationsAgentIntentsService
   576  
   577  	Sessions *ProjectsLocationsAgentSessionsService
   578  
   579  	Versions *ProjectsLocationsAgentVersionsService
   580  }
   581  
   582  func NewProjectsLocationsAgentEntityTypesService(s *Service) *ProjectsLocationsAgentEntityTypesService {
   583  	rs := &ProjectsLocationsAgentEntityTypesService{s: s}
   584  	rs.Entities = NewProjectsLocationsAgentEntityTypesEntitiesService(s)
   585  	return rs
   586  }
   587  
   588  type ProjectsLocationsAgentEntityTypesService struct {
   589  	s *Service
   590  
   591  	Entities *ProjectsLocationsAgentEntityTypesEntitiesService
   592  }
   593  
   594  func NewProjectsLocationsAgentEntityTypesEntitiesService(s *Service) *ProjectsLocationsAgentEntityTypesEntitiesService {
   595  	rs := &ProjectsLocationsAgentEntityTypesEntitiesService{s: s}
   596  	return rs
   597  }
   598  
   599  type ProjectsLocationsAgentEntityTypesEntitiesService struct {
   600  	s *Service
   601  }
   602  
   603  func NewProjectsLocationsAgentEnvironmentsService(s *Service) *ProjectsLocationsAgentEnvironmentsService {
   604  	rs := &ProjectsLocationsAgentEnvironmentsService{s: s}
   605  	rs.Intents = NewProjectsLocationsAgentEnvironmentsIntentsService(s)
   606  	rs.Users = NewProjectsLocationsAgentEnvironmentsUsersService(s)
   607  	return rs
   608  }
   609  
   610  type ProjectsLocationsAgentEnvironmentsService struct {
   611  	s *Service
   612  
   613  	Intents *ProjectsLocationsAgentEnvironmentsIntentsService
   614  
   615  	Users *ProjectsLocationsAgentEnvironmentsUsersService
   616  }
   617  
   618  func NewProjectsLocationsAgentEnvironmentsIntentsService(s *Service) *ProjectsLocationsAgentEnvironmentsIntentsService {
   619  	rs := &ProjectsLocationsAgentEnvironmentsIntentsService{s: s}
   620  	return rs
   621  }
   622  
   623  type ProjectsLocationsAgentEnvironmentsIntentsService struct {
   624  	s *Service
   625  }
   626  
   627  func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService {
   628  	rs := &ProjectsLocationsAgentEnvironmentsUsersService{s: s}
   629  	rs.Sessions = NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s)
   630  	return rs
   631  }
   632  
   633  type ProjectsLocationsAgentEnvironmentsUsersService struct {
   634  	s *Service
   635  
   636  	Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService
   637  }
   638  
   639  func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService {
   640  	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsService{s: s}
   641  	rs.Contexts = NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s)
   642  	rs.EntityTypes = NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s)
   643  	return rs
   644  }
   645  
   646  type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {
   647  	s *Service
   648  
   649  	Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService
   650  
   651  	EntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService
   652  }
   653  
   654  func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService {
   655  	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService{s: s}
   656  	return rs
   657  }
   658  
   659  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {
   660  	s *Service
   661  }
   662  
   663  func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService {
   664  	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
   665  	return rs
   666  }
   667  
   668  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {
   669  	s *Service
   670  }
   671  
   672  func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService {
   673  	rs := &ProjectsLocationsAgentIntentsService{s: s}
   674  	return rs
   675  }
   676  
   677  type ProjectsLocationsAgentIntentsService struct {
   678  	s *Service
   679  }
   680  
   681  func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService {
   682  	rs := &ProjectsLocationsAgentSessionsService{s: s}
   683  	rs.Contexts = NewProjectsLocationsAgentSessionsContextsService(s)
   684  	rs.EntityTypes = NewProjectsLocationsAgentSessionsEntityTypesService(s)
   685  	return rs
   686  }
   687  
   688  type ProjectsLocationsAgentSessionsService struct {
   689  	s *Service
   690  
   691  	Contexts *ProjectsLocationsAgentSessionsContextsService
   692  
   693  	EntityTypes *ProjectsLocationsAgentSessionsEntityTypesService
   694  }
   695  
   696  func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService {
   697  	rs := &ProjectsLocationsAgentSessionsContextsService{s: s}
   698  	return rs
   699  }
   700  
   701  type ProjectsLocationsAgentSessionsContextsService struct {
   702  	s *Service
   703  }
   704  
   705  func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService {
   706  	rs := &ProjectsLocationsAgentSessionsEntityTypesService{s: s}
   707  	return rs
   708  }
   709  
   710  type ProjectsLocationsAgentSessionsEntityTypesService struct {
   711  	s *Service
   712  }
   713  
   714  func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService {
   715  	rs := &ProjectsLocationsAgentVersionsService{s: s}
   716  	return rs
   717  }
   718  
   719  type ProjectsLocationsAgentVersionsService struct {
   720  	s *Service
   721  }
   722  
   723  func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService {
   724  	rs := &ProjectsLocationsAnswerRecordsService{s: s}
   725  	return rs
   726  }
   727  
   728  type ProjectsLocationsAnswerRecordsService struct {
   729  	s *Service
   730  }
   731  
   732  func NewProjectsLocationsConversationDatasetsService(s *Service) *ProjectsLocationsConversationDatasetsService {
   733  	rs := &ProjectsLocationsConversationDatasetsService{s: s}
   734  	return rs
   735  }
   736  
   737  type ProjectsLocationsConversationDatasetsService struct {
   738  	s *Service
   739  }
   740  
   741  func NewProjectsLocationsConversationModelsService(s *Service) *ProjectsLocationsConversationModelsService {
   742  	rs := &ProjectsLocationsConversationModelsService{s: s}
   743  	rs.Evaluations = NewProjectsLocationsConversationModelsEvaluationsService(s)
   744  	return rs
   745  }
   746  
   747  type ProjectsLocationsConversationModelsService struct {
   748  	s *Service
   749  
   750  	Evaluations *ProjectsLocationsConversationModelsEvaluationsService
   751  }
   752  
   753  func NewProjectsLocationsConversationModelsEvaluationsService(s *Service) *ProjectsLocationsConversationModelsEvaluationsService {
   754  	rs := &ProjectsLocationsConversationModelsEvaluationsService{s: s}
   755  	return rs
   756  }
   757  
   758  type ProjectsLocationsConversationModelsEvaluationsService struct {
   759  	s *Service
   760  }
   761  
   762  func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService {
   763  	rs := &ProjectsLocationsConversationProfilesService{s: s}
   764  	return rs
   765  }
   766  
   767  type ProjectsLocationsConversationProfilesService struct {
   768  	s *Service
   769  }
   770  
   771  func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
   772  	rs := &ProjectsLocationsConversationsService{s: s}
   773  	rs.Messages = NewProjectsLocationsConversationsMessagesService(s)
   774  	rs.Participants = NewProjectsLocationsConversationsParticipantsService(s)
   775  	rs.Suggestions = NewProjectsLocationsConversationsSuggestionsService(s)
   776  	return rs
   777  }
   778  
   779  type ProjectsLocationsConversationsService struct {
   780  	s *Service
   781  
   782  	Messages *ProjectsLocationsConversationsMessagesService
   783  
   784  	Participants *ProjectsLocationsConversationsParticipantsService
   785  
   786  	Suggestions *ProjectsLocationsConversationsSuggestionsService
   787  }
   788  
   789  func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService {
   790  	rs := &ProjectsLocationsConversationsMessagesService{s: s}
   791  	return rs
   792  }
   793  
   794  type ProjectsLocationsConversationsMessagesService struct {
   795  	s *Service
   796  }
   797  
   798  func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService {
   799  	rs := &ProjectsLocationsConversationsParticipantsService{s: s}
   800  	rs.Suggestions = NewProjectsLocationsConversationsParticipantsSuggestionsService(s)
   801  	return rs
   802  }
   803  
   804  type ProjectsLocationsConversationsParticipantsService struct {
   805  	s *Service
   806  
   807  	Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService
   808  }
   809  
   810  func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService {
   811  	rs := &ProjectsLocationsConversationsParticipantsSuggestionsService{s: s}
   812  	return rs
   813  }
   814  
   815  type ProjectsLocationsConversationsParticipantsSuggestionsService struct {
   816  	s *Service
   817  }
   818  
   819  func NewProjectsLocationsConversationsSuggestionsService(s *Service) *ProjectsLocationsConversationsSuggestionsService {
   820  	rs := &ProjectsLocationsConversationsSuggestionsService{s: s}
   821  	return rs
   822  }
   823  
   824  type ProjectsLocationsConversationsSuggestionsService struct {
   825  	s *Service
   826  }
   827  
   828  func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService {
   829  	rs := &ProjectsLocationsKnowledgeBasesService{s: s}
   830  	rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s)
   831  	return rs
   832  }
   833  
   834  type ProjectsLocationsKnowledgeBasesService struct {
   835  	s *Service
   836  
   837  	Documents *ProjectsLocationsKnowledgeBasesDocumentsService
   838  }
   839  
   840  func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService {
   841  	rs := &ProjectsLocationsKnowledgeBasesDocumentsService{s: s}
   842  	return rs
   843  }
   844  
   845  type ProjectsLocationsKnowledgeBasesDocumentsService struct {
   846  	s *Service
   847  }
   848  
   849  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   850  	rs := &ProjectsLocationsOperationsService{s: s}
   851  	return rs
   852  }
   853  
   854  type ProjectsLocationsOperationsService struct {
   855  	s *Service
   856  }
   857  
   858  func NewProjectsLocationsSuggestionsService(s *Service) *ProjectsLocationsSuggestionsService {
   859  	rs := &ProjectsLocationsSuggestionsService{s: s}
   860  	return rs
   861  }
   862  
   863  type ProjectsLocationsSuggestionsService struct {
   864  	s *Service
   865  }
   866  
   867  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   868  	rs := &ProjectsOperationsService{s: s}
   869  	return rs
   870  }
   871  
   872  type ProjectsOperationsService struct {
   873  	s *Service
   874  }
   875  
   876  func NewProjectsSuggestionsService(s *Service) *ProjectsSuggestionsService {
   877  	rs := &ProjectsSuggestionsService{s: s}
   878  	return rs
   879  }
   880  
   881  type ProjectsSuggestionsService struct {
   882  	s *Service
   883  }
   884  
   885  // GoogleCloudDialogflowCxV3AdvancedSettings: Hierarchical advanced settings
   886  // for agent/flow/page/fulfillment/parameter. Settings exposed at lower level
   887  // overrides the settings exposed at higher level. Overriding occurs at the
   888  // sub-setting level. For example, the playback_interruption_settings at
   889  // fulfillment level only overrides the playback_interruption_settings at the
   890  // agent level, leaving other settings at the agent level unchanged. DTMF
   891  // settings does not override each other. DTMF settings set at different levels
   892  // define DTMF detections running in parallel. Hierarchy:
   893  // Agent->Flow->Page->Fulfillment/Parameter.
   894  type GoogleCloudDialogflowCxV3AdvancedSettings struct {
   895  	// AudioExportGcsDestination: If present, incoming audio is exported by
   896  	// Dialogflow to the configured Google Cloud Storage destination. Exposed at
   897  	// the following levels: - Agent level - Flow level
   898  	AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
   899  	// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent
   900  	// level - Flow level - Page level - Parameter level.
   901  	DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
   902  	// LoggingSettings: Settings for logging. Settings for Dialogflow History,
   903  	// Contact Center messages, StackDriver logs, and speech logging. Exposed at
   904  	// the following levels: - Agent level.
   905  	LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
   906  	// SpeechSettings: Settings for speech to text detection. Exposed at the
   907  	// following levels: - Agent level - Flow level - Page level - Parameter level
   908  	SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
   909  	// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")
   910  	// to unconditionally include in API requests. By default, fields with empty or
   911  	// default values are omitted from API requests. See
   912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   913  	// details.
   914  	ForceSendFields []string `json:"-"`
   915  	// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to
   916  	// include in API requests with the JSON null value. By default, fields with
   917  	// empty values are omitted from API requests. See
   918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   919  	NullFields []string `json:"-"`
   920  }
   921  
   922  func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
   923  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
   924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   925  }
   926  
   927  // GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings: Define behaviors for
   928  // DTMF (dual tone multi frequency).
   929  type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
   930  	// Enabled: If true, incoming audio is processed for DTMF (dual tone multi
   931  	// frequency) events. For example, if the caller presses a button on their
   932  	// telephone keypad and DTMF processing is enabled, Dialogflow will detect the
   933  	// event (e.g. a "3" was pressed) in the incoming audio and pass the event to
   934  	// the bot to drive business logic (e.g. when 3 is pressed, return the account
   935  	// balance).
   936  	Enabled bool `json:"enabled,omitempty"`
   937  	// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input
   938  	// to regex.
   939  	EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
   940  	// FinishDigit: The digit that terminates a DTMF digit sequence.
   941  	FinishDigit string `json:"finishDigit,omitempty"`
   942  	// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf
   943  	// input to regex.
   944  	InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
   945  	// MaxDigits: Max length of DTMF digits.
   946  	MaxDigits int64 `json:"maxDigits,omitempty"`
   947  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
   948  	// include in API requests. By default, fields with empty or default values are
   949  	// omitted from API requests. See
   950  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   951  	// details.
   952  	ForceSendFields []string `json:"-"`
   953  	// NullFields is a list of field names (e.g. "Enabled") to include in API
   954  	// requests with the JSON null value. By default, fields with empty values are
   955  	// omitted from API requests. See
   956  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   957  	NullFields []string `json:"-"`
   958  }
   959  
   960  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
   961  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
   962  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   963  }
   964  
   965  // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors
   966  // on logging.
   967  type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
   968  	// EnableInteractionLogging: If true, DF Interaction logging is currently
   969  	// enabled.
   970  	EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
   971  	// EnableStackdriverLogging: If true, StackDriver logging is currently enabled.
   972  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
   973  	// ForceSendFields is a list of field names (e.g. "EnableInteractionLogging")
   974  	// to unconditionally include in API requests. By default, fields with empty or
   975  	// default values are omitted from API requests. See
   976  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   977  	// details.
   978  	ForceSendFields []string `json:"-"`
   979  	// NullFields is a list of field names (e.g. "EnableInteractionLogging") to
   980  	// include in API requests with the JSON null value. By default, fields with
   981  	// empty values are omitted from API requests. See
   982  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   983  	NullFields []string `json:"-"`
   984  }
   985  
   986  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
   987  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
   988  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   989  }
   990  
   991  // GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings: Define behaviors of
   992  // speech to text detection.
   993  type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
   994  	// EndpointerSensitivity: Sensitivity of the speech model that detects the end
   995  	// of speech. Scale from 0 to 100.
   996  	EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
   997  	// Models: Mapping from language to Speech-to-Text model. The mapped
   998  	// Speech-to-Text model will be selected for requests from its corresponding
   999  	// language. For more information, see Speech models
  1000  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  1001  	Models map[string]string `json:"models,omitempty"`
  1002  	// NoSpeechTimeout: Timeout before detecting no speech.
  1003  	NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
  1004  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
  1005  	// endpointer sensitivy as seconds of timeout value.
  1006  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
  1007  	// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to
  1008  	// unconditionally include in API requests. By default, fields with empty or
  1009  	// default values are omitted from API requests. See
  1010  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1011  	// details.
  1012  	ForceSendFields []string `json:"-"`
  1013  	// NullFields is a list of field names (e.g. "EndpointerSensitivity") to
  1014  	// include in API requests with the JSON null value. By default, fields with
  1015  	// empty values are omitted from API requests. See
  1016  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1017  	NullFields []string `json:"-"`
  1018  }
  1019  
  1020  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
  1021  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
  1022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1023  }
  1024  
  1025  // GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech audio to
  1026  // be processed.
  1027  type GoogleCloudDialogflowCxV3AudioInput struct {
  1028  	// Audio: The natural language speech audio to be processed. A single request
  1029  	// can contain up to 2 minutes of speech audio data. The transcribed text
  1030  	// cannot contain more than 256 bytes. For non-streaming audio detect intent,
  1031  	// both `config` and `audio` must be provided. For streaming audio detect
  1032  	// intent, `config` must be provided in the first request and `audio` must be
  1033  	// provided in all following requests.
  1034  	Audio string `json:"audio,omitempty"`
  1035  	// Config: Required. Instructs the speech recognizer how to process the speech
  1036  	// audio.
  1037  	Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
  1038  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  1039  	// include in API requests. By default, fields with empty or default values are
  1040  	// omitted from API requests. See
  1041  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1042  	// details.
  1043  	ForceSendFields []string `json:"-"`
  1044  	// NullFields is a list of field names (e.g. "Audio") to include in API
  1045  	// requests with the JSON null value. By default, fields with empty values are
  1046  	// omitted from API requests. See
  1047  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1048  	NullFields []string `json:"-"`
  1049  }
  1050  
  1051  func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
  1052  	type NoMethod GoogleCloudDialogflowCxV3AudioInput
  1053  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1054  }
  1055  
  1056  // GoogleCloudDialogflowCxV3BargeInConfig: Configuration of the barge-in
  1057  // behavior. Barge-in instructs the API to return a detected utterance at a
  1058  // proper time while the client is playing back the response audio from a
  1059  // previous request. When the client sees the utterance, it should stop the
  1060  // playback and immediately get ready for receiving the responses for the
  1061  // current request. The barge-in handling requires the client to start
  1062  // streaming audio input as soon as it starts playing back the audio from the
  1063  // previous response. The playback is modeled into two phases: * No barge-in
  1064  // phase: which goes first and during which speech detection should not be
  1065  // carried out. * Barge-in phase: which follows the no barge-in phase and
  1066  // during which the API starts speech detection and may inform the client that
  1067  // an utterance has been detected. Note that no-speech event is not expected in
  1068  // this phase. The client provides this configuration in terms of the durations
  1069  // of those two phases. The durations are measured in terms of the audio length
  1070  // from the the start of the input audio. No-speech event is a response with
  1071  // END_OF_UTTERANCE without any transcript following up.
  1072  type GoogleCloudDialogflowCxV3BargeInConfig struct {
  1073  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
  1074  	// beginning of the input audio.
  1075  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
  1076  	// TotalDuration: Total duration for the playback at the beginning of the input
  1077  	// audio.
  1078  	TotalDuration string `json:"totalDuration,omitempty"`
  1079  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to
  1080  	// unconditionally include in API requests. By default, fields with empty or
  1081  	// default values are omitted from API requests. See
  1082  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1083  	// details.
  1084  	ForceSendFields []string `json:"-"`
  1085  	// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in
  1086  	// API requests with the JSON null value. By default, fields with empty values
  1087  	// are omitted from API requests. See
  1088  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1089  	NullFields []string `json:"-"`
  1090  }
  1091  
  1092  func (s *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
  1093  	type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
  1094  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1095  }
  1096  
  1097  // GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned for
  1098  // the TestCases.BatchRunTestCases long running operation.
  1099  type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
  1100  	// Errors: The test errors.
  1101  	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
  1102  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  1103  	// include in API requests. By default, fields with empty or default values are
  1104  	// omitted from API requests. See
  1105  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1106  	// details.
  1107  	ForceSendFields []string `json:"-"`
  1108  	// NullFields is a list of field names (e.g. "Errors") to include in API
  1109  	// requests with the JSON null value. By default, fields with empty values are
  1110  	// omitted from API requests. See
  1111  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1112  	NullFields []string `json:"-"`
  1113  }
  1114  
  1115  func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
  1116  	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
  1117  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1118  }
  1119  
  1120  // GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response message for
  1121  // TestCases.BatchRunTestCases.
  1122  type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
  1123  	// Results: The test case results. The detailed conversation turns are empty in
  1124  	// this response.
  1125  	Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
  1126  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
  1127  	// include in API requests. By default, fields with empty or default values are
  1128  	// omitted from API requests. See
  1129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1130  	// details.
  1131  	ForceSendFields []string `json:"-"`
  1132  	// NullFields is a list of field names (e.g. "Results") to include in API
  1133  	// requests with the JSON null value. By default, fields with empty values are
  1134  	// omitted from API requests. See
  1135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1136  	NullFields []string `json:"-"`
  1137  }
  1138  
  1139  func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
  1140  	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
  1141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1142  }
  1143  
  1144  // GoogleCloudDialogflowCxV3ContinuousTestResult: Represents a result from
  1145  // running a test case in an agent environment.
  1146  type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
  1147  	// Name: The resource name for the continuous test result. Format:
  1148  	// `projects//locations//agents//environments//continuousTestResults/`.
  1149  	Name string `json:"name,omitempty"`
  1150  	// Result: The result of this continuous test run, i.e. whether all the tests
  1151  	// in this continuous test run pass or not.
  1152  	//
  1153  	// Possible values:
  1154  	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be
  1155  	// used.
  1156  	//   "PASSED" - All the tests passed.
  1157  	//   "FAILED" - At least one test did not pass.
  1158  	Result string `json:"result,omitempty"`
  1159  	// RunTime: Time when the continuous testing run starts.
  1160  	RunTime string `json:"runTime,omitempty"`
  1161  	// TestCaseResults: A list of individual test case results names in this
  1162  	// continuous test run.
  1163  	TestCaseResults []string `json:"testCaseResults,omitempty"`
  1164  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1165  	// include in API requests. By default, fields with empty or default values are
  1166  	// omitted from API requests. See
  1167  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1168  	// details.
  1169  	ForceSendFields []string `json:"-"`
  1170  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1171  	// with the JSON null value. By default, fields with empty values are omitted
  1172  	// from API requests. See
  1173  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1174  	NullFields []string `json:"-"`
  1175  }
  1176  
  1177  func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
  1178  	type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
  1179  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1180  }
  1181  
  1182  // GoogleCloudDialogflowCxV3ConversationSignals: This message is used to hold
  1183  // all the Conversation Signals data, which will be converted to JSON and
  1184  // exported to BigQuery.
  1185  type GoogleCloudDialogflowCxV3ConversationSignals struct {
  1186  	// TurnSignals: Required. Turn signals for the current turn.
  1187  	TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
  1188  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
  1189  	// unconditionally include in API requests. By default, fields with empty or
  1190  	// default values are omitted from API requests. See
  1191  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1192  	// details.
  1193  	ForceSendFields []string `json:"-"`
  1194  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
  1195  	// requests with the JSON null value. By default, fields with empty values are
  1196  	// omitted from API requests. See
  1197  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1198  	NullFields []string `json:"-"`
  1199  }
  1200  
  1201  func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
  1202  	type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
  1203  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1204  }
  1205  
  1206  // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a human
  1207  // and virtual agent. The human provides some input and the virtual agent
  1208  // provides a response.
  1209  type GoogleCloudDialogflowCxV3ConversationTurn struct {
  1210  	// UserInput: The user input.
  1211  	UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
  1212  	// VirtualAgentOutput: The virtual agent output.
  1213  	VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
  1214  	// ForceSendFields is a list of field names (e.g. "UserInput") to
  1215  	// unconditionally include in API requests. By default, fields with empty or
  1216  	// default values are omitted from API requests. See
  1217  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1218  	// details.
  1219  	ForceSendFields []string `json:"-"`
  1220  	// NullFields is a list of field names (e.g. "UserInput") to include in API
  1221  	// requests with the JSON null value. By default, fields with empty values are
  1222  	// omitted from API requests. See
  1223  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1224  	NullFields []string `json:"-"`
  1225  }
  1226  
  1227  func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
  1228  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
  1229  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1230  }
  1231  
  1232  // GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from the human
  1233  // user.
  1234  type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
  1235  	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
  1236  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
  1237  	// InjectedParameters: Parameters that need to be injected into the
  1238  	// conversation during intent detection.
  1239  	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
  1240  	// Input: Supports text input, event input, dtmf input in the test case.
  1241  	Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
  1242  	// IsWebhookEnabled: If webhooks should be allowed to trigger in response to
  1243  	// the user utterance. Often if parameters are injected, webhooks should not be
  1244  	// enabled.
  1245  	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
  1246  	// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  1247  	// unconditionally include in API requests. By default, fields with empty or
  1248  	// default values are omitted from API requests. See
  1249  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1250  	// details.
  1251  	ForceSendFields []string `json:"-"`
  1252  	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  1253  	// include in API requests with the JSON null value. By default, fields with
  1254  	// empty values are omitted from API requests. See
  1255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1256  	NullFields []string `json:"-"`
  1257  }
  1258  
  1259  func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
  1260  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
  1261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1262  }
  1263  
  1264  // GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The output from
  1265  // the virtual agent.
  1266  type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
  1267  	// CurrentPage: The Page on which the utterance was spoken. Only name and
  1268  	// displayName will be set.
  1269  	CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
  1270  	// DiagnosticInfo: Required. Input only. The diagnostic info output for the
  1271  	// turn. Required to calculate the testing coverage.
  1272  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  1273  	// Differences: Output only. If this is part of a result conversation turn, the
  1274  	// list of differences between the original run and the replay for this output,
  1275  	// if any.
  1276  	Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
  1277  	// SessionParameters: The session parameters available to the bot at this
  1278  	// point.
  1279  	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
  1280  	// Status: Response error from the agent in the test result. If set, other
  1281  	// output is empty.
  1282  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1283  	// TextResponses: The text responses from the agent for the turn.
  1284  	TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
  1285  	// TriggeredIntent: The Intent that triggered the response. Only name and
  1286  	// displayName will be set.
  1287  	TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
  1288  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  1289  	// unconditionally include in API requests. By default, fields with empty or
  1290  	// default values are omitted from API requests. See
  1291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1292  	// details.
  1293  	ForceSendFields []string `json:"-"`
  1294  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  1295  	// requests with the JSON null value. By default, fields with empty values are
  1296  	// omitted from API requests. See
  1297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1298  	NullFields []string `json:"-"`
  1299  }
  1300  
  1301  func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
  1302  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
  1303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1304  }
  1305  
  1306  // GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata: Metadata for
  1307  // CreateDocument operation.
  1308  type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
  1309  	// GenericMetadata: The generic information of the operation.
  1310  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  1311  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  1312  	// unconditionally include in API requests. By default, fields with empty or
  1313  	// default values are omitted from API requests. See
  1314  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1315  	// details.
  1316  	ForceSendFields []string `json:"-"`
  1317  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  1318  	// API requests with the JSON null value. By default, fields with empty values
  1319  	// are omitted from API requests. See
  1320  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1321  	NullFields []string `json:"-"`
  1322  }
  1323  
  1324  func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  1325  	type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
  1326  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1327  }
  1328  
  1329  // GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata associated
  1330  // with the long running operation for Versions.CreateVersion.
  1331  type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
  1332  	// Version: Name of the created version. Format:
  1333  	// `projects//locations//agents//flows//versions/`.
  1334  	Version string `json:"version,omitempty"`
  1335  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  1336  	// include in API requests. By default, fields with empty or default values are
  1337  	// omitted from API requests. See
  1338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1339  	// details.
  1340  	ForceSendFields []string `json:"-"`
  1341  	// NullFields is a list of field names (e.g. "Version") to include in API
  1342  	// requests with the JSON null value. By default, fields with empty values are
  1343  	// omitted from API requests. See
  1344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1345  	NullFields []string `json:"-"`
  1346  }
  1347  
  1348  func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
  1349  	type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
  1350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1351  }
  1352  
  1353  // GoogleCloudDialogflowCxV3DataStoreConnection: A data store connection. It
  1354  // represents a data store in Discovery Engine and the type of the contents it
  1355  // contains.
  1356  type GoogleCloudDialogflowCxV3DataStoreConnection struct {
  1357  	// DataStore: The full name of the referenced data store. Formats:
  1358  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  1359  	// {data_store}`
  1360  	// `projects/{project}/locations/{location}/dataStores/{data_store}`
  1361  	DataStore string `json:"dataStore,omitempty"`
  1362  	// DataStoreType: The type of the connected data store.
  1363  	//
  1364  	// Possible values:
  1365  	//   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
  1366  	// the data store type is not specified, so it will not be used during search.
  1367  	//   "PUBLIC_WEB" - A data store that contains public web content.
  1368  	//   "UNSTRUCTURED" - A data store that contains unstructured private data.
  1369  	//   "STRUCTURED" - A data store that contains structured data (for example
  1370  	// FAQ).
  1371  	DataStoreType string `json:"dataStoreType,omitempty"`
  1372  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  1373  	// unconditionally include in API requests. By default, fields with empty or
  1374  	// default values are omitted from API requests. See
  1375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1376  	// details.
  1377  	ForceSendFields []string `json:"-"`
  1378  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  1379  	// requests with the JSON null value. By default, fields with empty values are
  1380  	// omitted from API requests. See
  1381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1382  	NullFields []string `json:"-"`
  1383  }
  1384  
  1385  func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
  1386  	type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
  1387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1388  }
  1389  
  1390  // GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata: Metadata for
  1391  // DeleteDocument operation.
  1392  type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
  1393  	// GenericMetadata: The generic information of the operation.
  1394  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  1395  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  1396  	// unconditionally include in API requests. By default, fields with empty or
  1397  	// default values are omitted from API requests. See
  1398  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1399  	// details.
  1400  	ForceSendFields []string `json:"-"`
  1401  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  1402  	// API requests with the JSON null value. By default, fields with empty values
  1403  	// are omitted from API requests. See
  1404  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1405  	NullFields []string `json:"-"`
  1406  }
  1407  
  1408  func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  1409  	type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
  1410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1411  }
  1412  
  1413  // GoogleCloudDialogflowCxV3DeployFlowMetadata: Metadata returned for the
  1414  // Environments.DeployFlow long running operation.
  1415  type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
  1416  	// TestErrors: Errors of running deployment tests.
  1417  	TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
  1418  	// ForceSendFields is a list of field names (e.g. "TestErrors") to
  1419  	// unconditionally include in API requests. By default, fields with empty or
  1420  	// default values are 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. "TestErrors") 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 *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
  1432  	type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
  1433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1434  }
  1435  
  1436  // GoogleCloudDialogflowCxV3DeployFlowResponse: The response message for
  1437  // Environments.DeployFlow.
  1438  type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
  1439  	// Deployment: The name of the flow version Deployment. Format:
  1440  	// `projects//locations//agents// environments//deployments/`.
  1441  	Deployment string `json:"deployment,omitempty"`
  1442  	// Environment: The updated environment where the flow is deployed.
  1443  	Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
  1444  	// ForceSendFields is a list of field names (e.g. "Deployment") 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. "Deployment") 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 *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
  1458  	type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
  1459  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1460  }
  1461  
  1462  // GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf event.
  1463  type GoogleCloudDialogflowCxV3DtmfInput struct {
  1464  	// Digits: The dtmf digits.
  1465  	Digits string `json:"digits,omitempty"`
  1466  	// FinishDigit: The finish digit (if any).
  1467  	FinishDigit string `json:"finishDigit,omitempty"`
  1468  	// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally
  1469  	// include in API requests. By default, fields with empty or default values are
  1470  	// omitted from API requests. See
  1471  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1472  	// details.
  1473  	ForceSendFields []string `json:"-"`
  1474  	// NullFields is a list of field names (e.g. "Digits") to include in API
  1475  	// requests with the JSON null value. By default, fields with empty values are
  1476  	// omitted from API requests. See
  1477  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1478  	NullFields []string `json:"-"`
  1479  }
  1480  
  1481  func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
  1482  	type NoMethod GoogleCloudDialogflowCxV3DtmfInput
  1483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1484  }
  1485  
  1486  // GoogleCloudDialogflowCxV3Environment: Represents an environment for an
  1487  // agent. You can create multiple versions of your agent and publish them to
  1488  // separate environments. When you edit an agent, you are editing the draft
  1489  // agent. At any point, you can save the draft agent as an agent version, which
  1490  // is an immutable snapshot of your agent. When you save the draft agent, it is
  1491  // published to the default environment. When you create agent versions, you
  1492  // can publish them to custom environments. You can create a variety of custom
  1493  // environments for testing, development, production, etc.
  1494  type GoogleCloudDialogflowCxV3Environment struct {
  1495  	// Description: The human-readable description of the environment. The maximum
  1496  	// length is 500 characters. If exceeded, the request is rejected.
  1497  	Description string `json:"description,omitempty"`
  1498  	// DisplayName: Required. The human-readable name of the environment (unique in
  1499  	// an agent). Limit of 64 characters.
  1500  	DisplayName string `json:"displayName,omitempty"`
  1501  	// Name: The name of the environment. Format:
  1502  	// `projects//locations//agents//environments/`.
  1503  	Name string `json:"name,omitempty"`
  1504  	// TestCasesConfig: The test cases config for continuous tests of this
  1505  	// environment.
  1506  	TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
  1507  	// UpdateTime: Output only. Update time of this environment.
  1508  	UpdateTime string `json:"updateTime,omitempty"`
  1509  	// VersionConfigs: A list of configurations for flow versions. You should
  1510  	// include version configs for all flows that are reachable from `Start Flow`
  1511  	// in the agent. Otherwise, an error will be returned.
  1512  	VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
  1513  	// WebhookConfig: The webhook configuration for this environment.
  1514  	WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
  1515  	// ForceSendFields is a list of field names (e.g. "Description") to
  1516  	// unconditionally include in API requests. By default, fields with empty or
  1517  	// default values are omitted from API requests. See
  1518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1519  	// details.
  1520  	ForceSendFields []string `json:"-"`
  1521  	// NullFields is a list of field names (e.g. "Description") to include in API
  1522  	// requests with the JSON null value. By default, fields with empty values are
  1523  	// omitted from API requests. See
  1524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1525  	NullFields []string `json:"-"`
  1526  }
  1527  
  1528  func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
  1529  	type NoMethod GoogleCloudDialogflowCxV3Environment
  1530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1531  }
  1532  
  1533  // GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig: The configuration for
  1534  // continuous tests.
  1535  type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
  1536  	// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases
  1537  	// periodically. Default false. If set to true, run once a day.
  1538  	EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
  1539  	// EnablePredeploymentRun: Whether to run test cases in
  1540  	// TestCasesConfig.test_cases before deploying a flow version to the
  1541  	// environment. Default false.
  1542  	EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
  1543  	// TestCases: A list of test case names to run. They should be under the same
  1544  	// agent. Format of each test case name: `projects//locations/
  1545  	// /agents//testCases/`
  1546  	TestCases []string `json:"testCases,omitempty"`
  1547  	// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to
  1548  	// unconditionally include in API requests. By default, fields with empty or
  1549  	// default values are omitted from API requests. See
  1550  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1551  	// details.
  1552  	ForceSendFields []string `json:"-"`
  1553  	// NullFields is a list of field names (e.g. "EnableContinuousRun") to include
  1554  	// in API requests with the JSON null value. By default, fields with empty
  1555  	// values are omitted from API requests. See
  1556  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1557  	NullFields []string `json:"-"`
  1558  }
  1559  
  1560  func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
  1561  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
  1562  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1563  }
  1564  
  1565  // GoogleCloudDialogflowCxV3EnvironmentVersionConfig: Configuration for the
  1566  // version.
  1567  type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
  1568  	// Version: Required. Format: projects//locations//agents//flows//versions/.
  1569  	Version string `json:"version,omitempty"`
  1570  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  1571  	// include in API requests. By default, fields with empty or default values are
  1572  	// omitted from API requests. See
  1573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1574  	// details.
  1575  	ForceSendFields []string `json:"-"`
  1576  	// NullFields is a list of field names (e.g. "Version") to include in API
  1577  	// requests with the JSON null value. By default, fields with empty values are
  1578  	// omitted from API requests. See
  1579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1580  	NullFields []string `json:"-"`
  1581  }
  1582  
  1583  func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
  1584  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
  1585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1586  }
  1587  
  1588  // GoogleCloudDialogflowCxV3EnvironmentWebhookConfig: Configuration for
  1589  // webhooks.
  1590  type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
  1591  	// WebhookOverrides: The list of webhooks to override for the agent
  1592  	// environment. The webhook must exist in the agent. You can override fields in
  1593  	// `generic_web_service` and `service_directory`.
  1594  	WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
  1595  	// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to
  1596  	// unconditionally include in API requests. By default, fields with empty or
  1597  	// default values are omitted from API requests. See
  1598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1599  	// details.
  1600  	ForceSendFields []string `json:"-"`
  1601  	// NullFields is a list of field names (e.g. "WebhookOverrides") to include in
  1602  	// API requests with the JSON null value. By default, fields with empty values
  1603  	// are omitted from API requests. See
  1604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1605  	NullFields []string `json:"-"`
  1606  }
  1607  
  1608  func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
  1609  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
  1610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1611  }
  1612  
  1613  // GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an event
  1614  // that can be handled during a session. When the specified event happens, the
  1615  // following actions are taken in order: * If there is a `trigger_fulfillment`
  1616  // associated with the event, it will be called. * If there is a `target_page`
  1617  // associated with the event, the session will transition into the specified
  1618  // page. * If there is a `target_flow` associated with the event, the session
  1619  // will transition into the specified flow.
  1620  type GoogleCloudDialogflowCxV3EventHandler struct {
  1621  	// Event: Required. The name of the event to handle.
  1622  	Event string `json:"event,omitempty"`
  1623  	// Name: Output only. The unique identifier of this event handler.
  1624  	Name string `json:"name,omitempty"`
  1625  	// TargetFlow: The target flow to transition to. Format:
  1626  	// `projects//locations//agents//flows/`.
  1627  	TargetFlow string `json:"targetFlow,omitempty"`
  1628  	// TargetPage: The target page to transition to. Format:
  1629  	// `projects//locations//agents//flows//pages/`.
  1630  	TargetPage string `json:"targetPage,omitempty"`
  1631  	// TriggerFulfillment: The fulfillment to call when the event occurs. Handling
  1632  	// webhook errors with a fulfillment enabled with webhook could cause infinite
  1633  	// loop. It is invalid to specify such fulfillment for a handler handling
  1634  	// webhooks.
  1635  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  1636  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  1637  	// include in API requests. By default, fields with empty or default values are
  1638  	// omitted from API requests. See
  1639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1640  	// details.
  1641  	ForceSendFields []string `json:"-"`
  1642  	// NullFields is a list of field names (e.g. "Event") to include in API
  1643  	// requests with the JSON null value. By default, fields with empty values are
  1644  	// omitted from API requests. See
  1645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1646  	NullFields []string `json:"-"`
  1647  }
  1648  
  1649  func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
  1650  	type NoMethod GoogleCloudDialogflowCxV3EventHandler
  1651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1652  }
  1653  
  1654  // GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.
  1655  type GoogleCloudDialogflowCxV3EventInput struct {
  1656  	// Event: Name of the event.
  1657  	Event string `json:"event,omitempty"`
  1658  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  1659  	// include in API requests. By default, fields with empty or default values are
  1660  	// omitted from API requests. See
  1661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1662  	// details.
  1663  	ForceSendFields []string `json:"-"`
  1664  	// NullFields is a list of field names (e.g. "Event") to include in API
  1665  	// requests with the JSON null value. By default, fields with empty values are
  1666  	// omitted from API requests. See
  1667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1668  	NullFields []string `json:"-"`
  1669  }
  1670  
  1671  func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
  1672  	type NoMethod GoogleCloudDialogflowCxV3EventInput
  1673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1674  }
  1675  
  1676  // GoogleCloudDialogflowCxV3ExportAgentResponse: The response message for
  1677  // Agents.ExportAgent.
  1678  type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
  1679  	// AgentContent: Uncompressed raw byte content for agent. This field is
  1680  	// populated if none of `agent_uri` and `git_destination` are specified in
  1681  	// ExportAgentRequest.
  1682  	AgentContent string `json:"agentContent,omitempty"`
  1683  	// AgentUri: The URI to a file containing the exported agent. This field is
  1684  	// populated if `agent_uri` is specified in ExportAgentRequest.
  1685  	AgentUri string `json:"agentUri,omitempty"`
  1686  	// CommitSha: Commit SHA of the git push. This field is populated if
  1687  	// `git_destination` is specified in ExportAgentRequest.
  1688  	CommitSha string `json:"commitSha,omitempty"`
  1689  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  1690  	// unconditionally include in API requests. By default, fields with empty or
  1691  	// default values are omitted from API requests. See
  1692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1693  	// details.
  1694  	ForceSendFields []string `json:"-"`
  1695  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  1696  	// requests with the JSON null value. By default, fields with empty values are
  1697  	// omitted from API requests. See
  1698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1699  	NullFields []string `json:"-"`
  1700  }
  1701  
  1702  func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
  1703  	type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
  1704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1705  }
  1706  
  1707  // GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned for
  1708  // the EntityTypes.ExportEntityTypes long running operation.
  1709  type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
  1710  }
  1711  
  1712  // GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response message for
  1713  // EntityTypes.ExportEntityTypes.
  1714  type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
  1715  	// EntityTypesContent: Uncompressed byte content for entity types. This field
  1716  	// is populated only if `entity_types_content_inline` is set to true in
  1717  	// ExportEntityTypesRequest.
  1718  	EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
  1719  	// EntityTypesUri: The URI to a file containing the exported entity types. This
  1720  	// field is populated only if `entity_types_uri` is specified in
  1721  	// ExportEntityTypesRequest.
  1722  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  1723  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  1724  	// unconditionally include in API requests. By default, fields with empty or
  1725  	// default values are omitted from API requests. See
  1726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1727  	// details.
  1728  	ForceSendFields []string `json:"-"`
  1729  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  1730  	// in API requests with the JSON null value. By default, fields with empty
  1731  	// values are omitted from API requests. See
  1732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1733  	NullFields []string `json:"-"`
  1734  }
  1735  
  1736  func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  1737  	type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
  1738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1739  }
  1740  
  1741  // GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for
  1742  // Flows.ExportFlow.
  1743  type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
  1744  	// FlowContent: Uncompressed raw byte content for flow.
  1745  	FlowContent string `json:"flowContent,omitempty"`
  1746  	// FlowUri: The URI to a file containing the exported flow. This field is
  1747  	// populated only if `flow_uri` is specified in ExportFlowRequest.
  1748  	FlowUri string `json:"flowUri,omitempty"`
  1749  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  1750  	// unconditionally include in API requests. By default, fields with empty or
  1751  	// default values are omitted from API requests. See
  1752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1753  	// details.
  1754  	ForceSendFields []string `json:"-"`
  1755  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  1756  	// requests with the JSON null value. By default, fields with empty values are
  1757  	// omitted from API requests. See
  1758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1759  	NullFields []string `json:"-"`
  1760  }
  1761  
  1762  func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
  1763  	type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
  1764  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1765  }
  1766  
  1767  // GoogleCloudDialogflowCxV3ExportIntentsMetadata: Metadata returned for the
  1768  // Intents.ExportIntents long running operation.
  1769  type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
  1770  }
  1771  
  1772  // GoogleCloudDialogflowCxV3ExportIntentsResponse: The response message for
  1773  // Intents.ExportIntents.
  1774  type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
  1775  	// IntentsContent: Uncompressed byte content for intents. This field is
  1776  	// populated only if `intents_content_inline` is set to true in
  1777  	// ExportIntentsRequest.
  1778  	IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
  1779  	// IntentsUri: The URI to a file containing the exported intents. This field is
  1780  	// populated only if `intents_uri` is specified in ExportIntentsRequest.
  1781  	IntentsUri string `json:"intentsUri,omitempty"`
  1782  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  1783  	// unconditionally include in API requests. By default, fields with empty or
  1784  	// default values are omitted from API requests. See
  1785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1786  	// details.
  1787  	ForceSendFields []string `json:"-"`
  1788  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  1789  	// API requests with the JSON null value. By default, fields with empty values
  1790  	// are omitted from API requests. See
  1791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1792  	NullFields []string `json:"-"`
  1793  }
  1794  
  1795  func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
  1796  	type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
  1797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1798  }
  1799  
  1800  // GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned for the
  1801  // TestCases.ExportTestCases long running operation. This message currently has
  1802  // no fields.
  1803  type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
  1804  }
  1805  
  1806  // GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response message for
  1807  // TestCases.ExportTestCases.
  1808  type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
  1809  	// Content: Uncompressed raw byte content for test cases.
  1810  	Content string `json:"content,omitempty"`
  1811  	// GcsUri: The URI to a file containing the exported test cases. This field is
  1812  	// populated only if `gcs_uri` is specified in ExportTestCasesRequest.
  1813  	GcsUri string `json:"gcsUri,omitempty"`
  1814  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  1815  	// include in API requests. By default, fields with empty or default values are
  1816  	// omitted from API requests. See
  1817  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1818  	// details.
  1819  	ForceSendFields []string `json:"-"`
  1820  	// NullFields is a list of field names (e.g. "Content") to include in API
  1821  	// requests with the JSON null value. By default, fields with empty values are
  1822  	// omitted from API requests. See
  1823  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1824  	NullFields []string `json:"-"`
  1825  }
  1826  
  1827  func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
  1828  	type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
  1829  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1830  }
  1831  
  1832  // GoogleCloudDialogflowCxV3Form: A form is a data model that groups related
  1833  // parameters that can be collected from the user. The process in which the
  1834  // agent prompts the user and collects parameter values from the user is called
  1835  // form filling. A form can be added to a page. When form filling is done, the
  1836  // filled parameters will be written to the session.
  1837  type GoogleCloudDialogflowCxV3Form struct {
  1838  	// Parameters: Parameters to collect from the user.
  1839  	Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
  1840  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  1841  	// unconditionally include in API requests. By default, fields with empty or
  1842  	// default values are omitted from API requests. See
  1843  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1844  	// details.
  1845  	ForceSendFields []string `json:"-"`
  1846  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  1847  	// requests with the JSON null value. By default, fields with empty values are
  1848  	// omitted from API requests. See
  1849  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1850  	NullFields []string `json:"-"`
  1851  }
  1852  
  1853  func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
  1854  	type NoMethod GoogleCloudDialogflowCxV3Form
  1855  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1856  }
  1857  
  1858  // GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.
  1859  type GoogleCloudDialogflowCxV3FormParameter struct {
  1860  	// AdvancedSettings: Hierarchical advanced settings for this parameter. The
  1861  	// settings exposed at the lower level overrides the settings exposed at the
  1862  	// higher level.
  1863  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  1864  	// DefaultValue: The default value of an optional parameter. If the parameter
  1865  	// is required, the default value will be ignored.
  1866  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  1867  	// DisplayName: Required. The human-readable name of the parameter, unique
  1868  	// within the form.
  1869  	DisplayName string `json:"displayName,omitempty"`
  1870  	// EntityType: Required. The entity type of the parameter. Format:
  1871  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  1872  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  1873  	// `projects//locations//agents//entityTypes/` for developer entity types.
  1874  	EntityType string `json:"entityType,omitempty"`
  1875  	// FillBehavior: Required. Defines fill behavior for the parameter.
  1876  	FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
  1877  	// IsList: Indicates whether the parameter represents a list of values.
  1878  	IsList bool `json:"isList,omitempty"`
  1879  	// Redact: Indicates whether the parameter content should be redacted in log.
  1880  	// If redaction is enabled, the parameter content will be replaced by parameter
  1881  	// name during logging. Note: the parameter content is subject to redaction if
  1882  	// either parameter level redaction or entity type level redaction is enabled.
  1883  	Redact bool `json:"redact,omitempty"`
  1884  	// Required: Indicates whether the parameter is required. Optional parameters
  1885  	// will not trigger prompts; however, they are filled if the user specifies
  1886  	// them. Required parameters must be filled before form filling concludes.
  1887  	Required bool `json:"required,omitempty"`
  1888  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  1889  	// unconditionally include in API requests. By default, fields with empty or
  1890  	// default values are omitted from API requests. See
  1891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1892  	// details.
  1893  	ForceSendFields []string `json:"-"`
  1894  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  1895  	// API requests with the JSON null value. By default, fields with empty values
  1896  	// are omitted from API requests. See
  1897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1898  	NullFields []string `json:"-"`
  1899  }
  1900  
  1901  func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
  1902  	type NoMethod GoogleCloudDialogflowCxV3FormParameter
  1903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1904  }
  1905  
  1906  // GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for how
  1907  // the filling of a parameter should be handled.
  1908  type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
  1909  	// InitialPromptFulfillment: Required. The fulfillment to provide the initial
  1910  	// prompt that the agent can present to the user in order to fill the
  1911  	// parameter.
  1912  	InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
  1913  	// RepromptEventHandlers: The handlers for parameter-level events, used to
  1914  	// provide reprompt for the parameter or transition to a different page/flow.
  1915  	// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *
  1916  	// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *
  1917  	// `sys.no-input-default` * `sys.invalid-parameter`
  1918  	// `initial_prompt_fulfillment` provides the first prompt for the parameter. If
  1919  	// the user's response does not fill the parameter, a no-match/no-input event
  1920  	// will be triggered, and the fulfillment associated with the
  1921  	// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to
  1922  	// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)
  1923  	// will respond to the next no-match/no-input event, and so on. A
  1924  	// `sys.no-match-default` or `sys.no-input-default` handler will be used to
  1925  	// handle all following no-match/no-input events after all numbered
  1926  	// no-match/no-input handlers for the parameter are consumed. A
  1927  	// `sys.invalid-parameter` handler can be defined to handle the case where the
  1928  	// parameter values have been `invalidated` by webhook. For example, if the
  1929  	// user's response fill the parameter, however the parameter was invalidated by
  1930  	// webhook, the fulfillment associated with the `sys.invalid-parameter` handler
  1931  	// (if defined) will be called to provide a prompt. If the event handler for
  1932  	// the corresponding event can't be found on the parameter,
  1933  	// `initial_prompt_fulfillment` will be re-prompted.
  1934  	RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
  1935  	// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")
  1936  	// to unconditionally include in API requests. By default, fields with empty or
  1937  	// default values are omitted from API requests. See
  1938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1939  	// details.
  1940  	ForceSendFields []string `json:"-"`
  1941  	// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to
  1942  	// include in API requests with the JSON null value. By default, fields with
  1943  	// empty values are omitted from API requests. See
  1944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1945  	NullFields []string `json:"-"`
  1946  }
  1947  
  1948  func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
  1949  	type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
  1950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1951  }
  1952  
  1953  // GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or more of
  1954  // the following actions at the same time: * Generate rich message responses. *
  1955  // Set parameter values. * Call the webhook. Fulfillments can be called at
  1956  // various stages in the Page or Form lifecycle. For example, when a
  1957  // DetectIntentRequest drives a session to enter a new page, the page's entry
  1958  // fulfillment can add a static response to the QueryResult in the returning
  1959  // DetectIntentResponse, call the webhook (for example, to load user data from
  1960  // a database), or both.
  1961  type GoogleCloudDialogflowCxV3Fulfillment struct {
  1962  	// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The
  1963  	// settings exposed at the lower level overrides the settings exposed at the
  1964  	// higher level.
  1965  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  1966  	// ConditionalCases: Conditional cases for this fulfillment.
  1967  	ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
  1968  	// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to
  1969  	// generate a text response. If LLM generation fails, the defined responses in
  1970  	// the fulfillment will be respected. This flag is only useful for fulfillments
  1971  	// associated with no-match event handlers.
  1972  	EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
  1973  	// Messages: The list of rich message responses to present to the user.
  1974  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  1975  	// ReturnPartialResponses: Whether Dialogflow should return currently queued
  1976  	// fulfillment response messages in streaming APIs. If a webhook is specified,
  1977  	// it happens before Dialogflow invokes webhook. Warning: 1) This flag only
  1978  	// affects streaming API. Responses are still queued and returned once in
  1979  	// non-streaming API. 2) The flag can be enabled in any fulfillment but only
  1980  	// the first 3 partial responses will be returned. You may only want to apply
  1981  	// it to fulfillments that have slow webhooks.
  1982  	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
  1983  	// SetParameterActions: Set parameter values before executing the webhook.
  1984  	SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
  1985  	// Tag: The value of this field will be populated in the WebhookRequest
  1986  	// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
  1987  	// called. The tag is typically used by the webhook service to identify which
  1988  	// fulfillment is being called, but it could be used for other purposes. This
  1989  	// field is required if `webhook` is specified.
  1990  	Tag string `json:"tag,omitempty"`
  1991  	// Webhook: The webhook to call. Format:
  1992  	// `projects//locations//agents//webhooks/`.
  1993  	Webhook string `json:"webhook,omitempty"`
  1994  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  1995  	// unconditionally include in API requests. By default, fields with empty or
  1996  	// default values are omitted from API requests. See
  1997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1998  	// details.
  1999  	ForceSendFields []string `json:"-"`
  2000  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  2001  	// API requests with the JSON null value. By default, fields with empty values
  2002  	// are omitted from API requests. See
  2003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2004  	NullFields []string `json:"-"`
  2005  }
  2006  
  2007  func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
  2008  	type NoMethod GoogleCloudDialogflowCxV3Fulfillment
  2009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2010  }
  2011  
  2012  // GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of cascading
  2013  // if-else conditions. Cases are mutually exclusive. The first one with a
  2014  // matching condition is selected, all the rest ignored.
  2015  type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
  2016  	// Cases: A list of cascading if-else conditions.
  2017  	Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
  2018  	// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally
  2019  	// include in API requests. By default, fields with empty or default values are
  2020  	// omitted from API requests. See
  2021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2022  	// details.
  2023  	ForceSendFields []string `json:"-"`
  2024  	// NullFields is a list of field names (e.g. "Cases") to include in API
  2025  	// requests with the JSON null value. By default, fields with empty values are
  2026  	// omitted from API requests. See
  2027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2028  	NullFields []string `json:"-"`
  2029  }
  2030  
  2031  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
  2032  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
  2033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2034  }
  2035  
  2036  // GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case has a
  2037  // Boolean condition. When it is evaluated to be True, the corresponding
  2038  // messages will be selected and evaluated recursively.
  2039  type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
  2040  	// CaseContent: A list of case content.
  2041  	CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
  2042  	// Condition: The condition to activate and select this case. Empty means the
  2043  	// condition is always true. The condition is evaluated against form parameters
  2044  	// or session parameters. See the conditions reference
  2045  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  2046  	Condition string `json:"condition,omitempty"`
  2047  	// ForceSendFields is a list of field names (e.g. "CaseContent") to
  2048  	// unconditionally include in API requests. By default, fields with empty or
  2049  	// default values are omitted from API requests. See
  2050  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2051  	// details.
  2052  	ForceSendFields []string `json:"-"`
  2053  	// NullFields is a list of field names (e.g. "CaseContent") to include in API
  2054  	// requests with the JSON null value. By default, fields with empty values are
  2055  	// omitted from API requests. See
  2056  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2057  	NullFields []string `json:"-"`
  2058  }
  2059  
  2060  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
  2061  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
  2062  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2063  }
  2064  
  2065  // GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent: The
  2066  // list of messages or conditional cases to activate for this case.
  2067  type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
  2068  	// AdditionalCases: Additional cases to be evaluated.
  2069  	AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
  2070  	// Message: Returned message.
  2071  	Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
  2072  	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
  2073  	// unconditionally include in API requests. By default, fields with empty or
  2074  	// default values are omitted from API requests. See
  2075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2076  	// details.
  2077  	ForceSendFields []string `json:"-"`
  2078  	// NullFields is a list of field names (e.g. "AdditionalCases") to include in
  2079  	// API requests with the JSON null value. By default, fields with empty values
  2080  	// are omitted from API requests. See
  2081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2082  	NullFields []string `json:"-"`
  2083  }
  2084  
  2085  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
  2086  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
  2087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2088  }
  2089  
  2090  // GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a parameter
  2091  // value.
  2092  type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
  2093  	// Parameter: Display name of the parameter.
  2094  	Parameter string `json:"parameter,omitempty"`
  2095  	// Value: The new value of the parameter. A null value clears the parameter.
  2096  	Value interface{} `json:"value,omitempty"`
  2097  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  2098  	// unconditionally include in API requests. By default, fields with empty or
  2099  	// default values are omitted from API requests. See
  2100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2101  	// details.
  2102  	ForceSendFields []string `json:"-"`
  2103  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  2104  	// requests with the JSON null value. By default, fields with empty values are
  2105  	// omitted from API requests. See
  2106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2107  	NullFields []string `json:"-"`
  2108  }
  2109  
  2110  func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
  2111  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
  2112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2113  }
  2114  
  2115  // GoogleCloudDialogflowCxV3GcsDestination: Google Cloud Storage location for a
  2116  // Dialogflow operation that writes or exports objects (e.g. exported agent or
  2117  // transcripts) outside of Dialogflow.
  2118  type GoogleCloudDialogflowCxV3GcsDestination struct {
  2119  	// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI
  2120  	// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object
  2121  	// name, or just a prefix, its usage depends on the Dialogflow operation.
  2122  	Uri string `json:"uri,omitempty"`
  2123  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  2124  	// include in API requests. By default, fields with empty or default values are
  2125  	// omitted from API requests. See
  2126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2127  	// details.
  2128  	ForceSendFields []string `json:"-"`
  2129  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  2130  	// with the JSON null value. By default, fields with empty values are omitted
  2131  	// from API requests. See
  2132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2133  	NullFields []string `json:"-"`
  2134  }
  2135  
  2136  func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
  2137  	type NoMethod GoogleCloudDialogflowCxV3GcsDestination
  2138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2139  }
  2140  
  2141  // GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata: Metadata in
  2142  // google::longrunning::Operation for Knowledge operations.
  2143  type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
  2144  	// State: Required. Output only. The current state of this operation.
  2145  	//
  2146  	// Possible values:
  2147  	//   "STATE_UNSPECIFIED" - State unspecified.
  2148  	//   "PENDING" - The operation has been created.
  2149  	//   "RUNNING" - The operation is currently running.
  2150  	//   "DONE" - The operation is done, either cancelled or completed.
  2151  	State string `json:"state,omitempty"`
  2152  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  2153  	// include in API requests. By default, fields with empty or default values are
  2154  	// omitted from API requests. See
  2155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2156  	// details.
  2157  	ForceSendFields []string `json:"-"`
  2158  	// NullFields is a list of field names (e.g. "State") to include in API
  2159  	// requests with the JSON null value. By default, fields with empty values are
  2160  	// omitted from API requests. See
  2161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2162  	NullFields []string `json:"-"`
  2163  }
  2164  
  2165  func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  2166  	type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
  2167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2168  }
  2169  
  2170  // GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata: Metadata for
  2171  // ImportDocuments operation.
  2172  type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
  2173  	// GenericMetadata: The generic information of the operation.
  2174  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  2175  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  2176  	// unconditionally include in API requests. By default, fields with empty or
  2177  	// default values are omitted from API requests. See
  2178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2179  	// details.
  2180  	ForceSendFields []string `json:"-"`
  2181  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  2182  	// API requests with the JSON null value. By default, fields with empty values
  2183  	// are omitted from API requests. See
  2184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2185  	NullFields []string `json:"-"`
  2186  }
  2187  
  2188  func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
  2189  	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
  2190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2191  }
  2192  
  2193  // GoogleCloudDialogflowCxV3ImportDocumentsResponse: Response message for
  2194  // Documents.ImportDocuments.
  2195  type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
  2196  	// Warnings: Includes details about skipped documents or any other warnings.
  2197  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  2198  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  2199  	// unconditionally include in API requests. By default, fields with empty or
  2200  	// default values are omitted from API requests. See
  2201  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2202  	// details.
  2203  	ForceSendFields []string `json:"-"`
  2204  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  2205  	// requests with the JSON null value. By default, fields with empty values are
  2206  	// omitted from API requests. See
  2207  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2208  	NullFields []string `json:"-"`
  2209  }
  2210  
  2211  func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  2212  	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
  2213  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2214  }
  2215  
  2216  // GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned for
  2217  // the EntityTypes.ImportEntityTypes long running operation.
  2218  type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
  2219  }
  2220  
  2221  // GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response message for
  2222  // EntityTypes.ImportEntityTypes.
  2223  type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
  2224  	// ConflictingResources: Info which resources have conflicts when
  2225  	// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.
  2226  	ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
  2227  	// EntityTypes: The unique identifier of the imported entity types. Format:
  2228  	// `projects//locations//agents//entity_types/`.
  2229  	EntityTypes []string `json:"entityTypes,omitempty"`
  2230  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  2231  	// unconditionally include in API requests. By default, fields with empty or
  2232  	// default values are omitted from API requests. See
  2233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2234  	// details.
  2235  	ForceSendFields []string `json:"-"`
  2236  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  2237  	// in API requests with the JSON null value. By default, fields with empty
  2238  	// values are omitted from API requests. See
  2239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2240  	NullFields []string `json:"-"`
  2241  }
  2242  
  2243  func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  2244  	type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
  2245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2246  }
  2247  
  2248  // GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources:
  2249  // Conflicting resources detected during the import process. Only filled when
  2250  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  2251  // names.
  2252  type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
  2253  	// EntityDisplayNames: Display names of conflicting entities.
  2254  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  2255  	// EntityTypeDisplayNames: Display names of conflicting entity types.
  2256  	EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
  2257  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  2258  	// unconditionally include in API requests. By default, fields with empty or
  2259  	// default values are omitted from API requests. See
  2260  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2261  	// details.
  2262  	ForceSendFields []string `json:"-"`
  2263  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  2264  	// in API requests with the JSON null value. By default, fields with empty
  2265  	// values are omitted from API requests. See
  2266  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2267  	NullFields []string `json:"-"`
  2268  }
  2269  
  2270  func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
  2271  	type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
  2272  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2273  }
  2274  
  2275  // GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for
  2276  // Flows.ImportFlow.
  2277  type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
  2278  	// Flow: The unique identifier of the new flow. Format:
  2279  	// `projects//locations//agents//flows/`.
  2280  	Flow string `json:"flow,omitempty"`
  2281  	// ForceSendFields is a list of field names (e.g. "Flow") 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. "Flow") 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 *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
  2295  	type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
  2296  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2297  }
  2298  
  2299  // GoogleCloudDialogflowCxV3ImportIntentsMetadata: Metadata returned for the
  2300  // Intents.ImportIntents long running operation.
  2301  type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
  2302  }
  2303  
  2304  // GoogleCloudDialogflowCxV3ImportIntentsResponse: The response message for
  2305  // Intents.ImportIntents.
  2306  type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
  2307  	// ConflictingResources: Info which resources have conflicts when
  2308  	// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.
  2309  	ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
  2310  	// Intents: The unique identifier of the imported intents. Format:
  2311  	// `projects//locations//agents//intents/`.
  2312  	Intents []string `json:"intents,omitempty"`
  2313  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  2314  	// unconditionally include in API requests. By default, fields with empty or
  2315  	// default values are omitted from API requests. See
  2316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2317  	// details.
  2318  	ForceSendFields []string `json:"-"`
  2319  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  2320  	// in API requests with the JSON null value. By default, fields with empty
  2321  	// values are omitted from API requests. See
  2322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2323  	NullFields []string `json:"-"`
  2324  }
  2325  
  2326  func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
  2327  	type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
  2328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2329  }
  2330  
  2331  // GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources:
  2332  // Conflicting resources detected during the import process. Only filled when
  2333  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  2334  // names.
  2335  type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
  2336  	// EntityDisplayNames: Display names of conflicting entities.
  2337  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  2338  	// IntentDisplayNames: Display names of conflicting intents.
  2339  	IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
  2340  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  2341  	// unconditionally include in API requests. By default, fields with empty or
  2342  	// default values are omitted from API requests. See
  2343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2344  	// details.
  2345  	ForceSendFields []string `json:"-"`
  2346  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  2347  	// in API requests with the JSON null value. By default, fields with empty
  2348  	// values are omitted from API requests. See
  2349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2350  	NullFields []string `json:"-"`
  2351  }
  2352  
  2353  func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
  2354  	type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
  2355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2356  }
  2357  
  2358  // GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned for the
  2359  // TestCases.ImportTestCases long running operation.
  2360  type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
  2361  	// Errors: Errors for failed test cases.
  2362  	Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
  2363  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  2364  	// include in API requests. By default, fields with empty or default values are
  2365  	// omitted from API requests. See
  2366  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2367  	// details.
  2368  	ForceSendFields []string `json:"-"`
  2369  	// NullFields is a list of field names (e.g. "Errors") to include in API
  2370  	// requests with the JSON null value. By default, fields with empty values are
  2371  	// omitted from API requests. See
  2372  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2373  	NullFields []string `json:"-"`
  2374  }
  2375  
  2376  func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
  2377  	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
  2378  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2379  }
  2380  
  2381  // GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response message for
  2382  // TestCases.ImportTestCases.
  2383  type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
  2384  	// Names: The unique identifiers of the new test cases. Format:
  2385  	// `projects//locations//agents//testCases/`.
  2386  	Names []string `json:"names,omitempty"`
  2387  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  2388  	// include in API requests. By default, fields with empty or default values are
  2389  	// omitted from API requests. See
  2390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2391  	// details.
  2392  	ForceSendFields []string `json:"-"`
  2393  	// NullFields is a list of field names (e.g. "Names") to include in API
  2394  	// requests with the JSON null value. By default, fields with empty values are
  2395  	// omitted from API requests. See
  2396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2397  	NullFields []string `json:"-"`
  2398  }
  2399  
  2400  func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
  2401  	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
  2402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2403  }
  2404  
  2405  // GoogleCloudDialogflowCxV3InlineDestination: Inline destination for a
  2406  // Dialogflow operation that writes or exports objects (e.g. intents) outside
  2407  // of Dialogflow.
  2408  type GoogleCloudDialogflowCxV3InlineDestination struct {
  2409  	// Content: Output only. The uncompressed byte content for the objects. Only
  2410  	// populated in responses.
  2411  	Content string `json:"content,omitempty"`
  2412  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2413  	// include in API requests. By default, fields with empty or default values are
  2414  	// omitted from API requests. See
  2415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2416  	// details.
  2417  	ForceSendFields []string `json:"-"`
  2418  	// NullFields is a list of field names (e.g. "Content") to include in API
  2419  	// requests with the JSON null value. By default, fields with empty values are
  2420  	// omitted from API requests. See
  2421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2422  	NullFields []string `json:"-"`
  2423  }
  2424  
  2425  func (s *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
  2426  	type NoMethod GoogleCloudDialogflowCxV3InlineDestination
  2427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2428  }
  2429  
  2430  // GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech recognizer
  2431  // on how to process the audio content.
  2432  type GoogleCloudDialogflowCxV3InputAudioConfig struct {
  2433  	// AudioEncoding: Required. Audio encoding of the audio content to process.
  2434  	//
  2435  	// Possible values:
  2436  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  2437  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
  2438  	// samples (Linear PCM).
  2439  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
  2440  	// (Free Lossless Audio Codec) is the recommended encoding because it is
  2441  	// lossless (therefore recognition is not compromised) and requires only about
  2442  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
  2443  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
  2444  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
  2445  	// using G.711 PCMU/mu-law.
  2446  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
  2447  	// `sample_rate_hertz` must be 8000.
  2448  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
  2449  	// `sample_rate_hertz` must be 16000.
  2450  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
  2451  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
  2452  	// 16000.
  2453  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
  2454  	// encodings is not recommended, if a very low bitrate encoding is required,
  2455  	// `OGG_OPUS` is highly preferred over Speex encoding. The
  2456  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
  2457  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
  2458  	// It is a variant of the RTP Speex encoding defined in [RFC
  2459  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
  2460  	// blocks, one block per RTP packet. Each block starts with a byte containing
  2461  	// the length of the block, in bytes, followed by one or more frames of Speex
  2462  	// data, padded to an integral number of bytes (octets) as specified in RFC
  2463  	// 5574. In other words, each RTP header is replaced with a single byte
  2464  	// containing the block length. Only Speex wideband is supported.
  2465  	// `sample_rate_hertz` must be 16000.
  2466  	AudioEncoding string `json:"audioEncoding,omitempty"`
  2467  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
  2468  	// input audio.
  2469  	BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
  2470  	// EnableWordInfo: Optional. If `true`, Dialogflow returns SpeechWordInfo in
  2471  	// StreamingRecognitionResult with information about the recognized speech
  2472  	// words, e.g. start and end time offsets. If false or unspecified, Speech
  2473  	// doesn't return any word-level information.
  2474  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
  2475  	// Model: Optional. Which Speech model to select for the given request. For
  2476  	// more information, see Speech models
  2477  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  2478  	Model string `json:"model,omitempty"`
  2479  	// ModelVariant: Optional. Which variant of the Speech model to use.
  2480  	//
  2481  	// Possible values:
  2482  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
  2483  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
  2484  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
  2485  	// that the caller is eligible for.
  2486  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
  2487  	// available. See the [Cloud Speech
  2488  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  2489  	// for details about enhanced models.
  2490  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
  2491  	// does not exist for the given model and request language, Dialogflow falls
  2492  	// back to the standard variant. The [Cloud Speech
  2493  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  2494  	// describes which models have enhanced variants.
  2495  	ModelVariant string `json:"modelVariant,omitempty"`
  2496  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
  2497  	// conformer model migration. This field will be deprecated once force
  2498  	// migration takes place in June 2024. Please refer to Dialogflow CX Speech
  2499  	// model migration
  2500  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
  2501  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
  2502  	// PhraseHints: Optional. A list of strings containing words and phrases that
  2503  	// the speech recognizer should recognize with higher likelihood. See the Cloud
  2504  	// Speech documentation
  2505  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
  2506  	// details.
  2507  	PhraseHints []string `json:"phraseHints,omitempty"`
  2508  	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in the
  2509  	// query. Refer to Cloud Speech API documentation
  2510  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
  2511  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  2512  	// SingleUtterance: Optional. If `false` (default), recognition does not cease
  2513  	// until the client closes the stream. If `true`, the recognizer will detect a
  2514  	// single spoken utterance in input audio. Recognition ceases when it detects
  2515  	// the audio's voice has stopped or paused. In this case, once a detected
  2516  	// intent is received, the client should close the stream and start a new
  2517  	// request with a new stream as needed. Note: This setting is relevant only for
  2518  	// streaming methods.
  2519  	SingleUtterance bool `json:"singleUtterance,omitempty"`
  2520  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  2521  	// unconditionally include in API requests. By default, fields with empty or
  2522  	// default values are omitted from API requests. See
  2523  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2524  	// details.
  2525  	ForceSendFields []string `json:"-"`
  2526  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  2527  	// requests with the JSON null value. By default, fields with empty values are
  2528  	// omitted from API requests. See
  2529  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2530  	NullFields []string `json:"-"`
  2531  }
  2532  
  2533  func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
  2534  	type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
  2535  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2536  }
  2537  
  2538  // GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent to
  2539  // interact with a conversational agent. You can provide information for the
  2540  // Dialogflow API to use to match user input to an intent by adding training
  2541  // phrases (i.e., examples of user input) to your intent.
  2542  type GoogleCloudDialogflowCxV3Intent struct {
  2543  	// Description: Human readable description for better understanding an intent
  2544  	// like its scope, content, result etc. Maximum character limit: 140
  2545  	// characters.
  2546  	Description string `json:"description,omitempty"`
  2547  	// DisplayName: Required. The human-readable name of the intent, unique within
  2548  	// the agent.
  2549  	DisplayName string `json:"displayName,omitempty"`
  2550  	// IsFallback: Indicates whether this is a fallback intent. Currently only
  2551  	// default fallback intent is allowed in the agent, which is added upon agent
  2552  	// creation. Adding training phrases to fallback intent is useful in the case
  2553  	// of requests that are mistakenly matched, since training phrases assigned to
  2554  	// fallback intents act as negative examples that triggers no-match event.
  2555  	IsFallback bool `json:"isFallback,omitempty"`
  2556  	// Labels: The key/value metadata to label an intent. Labels can contain
  2557  	// lowercase letters, digits and the symbols '-' and '_'. International
  2558  	// characters are allowed, including letters from unicase alphabets. Keys must
  2559  	// start with a letter. Keys and values can be no longer than 63 characters and
  2560  	// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
  2561  	// labels. Currently allowed Dialogflow defined labels include: * sys-head *
  2562  	// sys-contextual The above labels do not require value. "sys-head" means the
  2563  	// intent is a head intent. "sys.contextual" means the intent is a contextual
  2564  	// intent.
  2565  	Labels map[string]string `json:"labels,omitempty"`
  2566  	// Name: The unique identifier of the intent. Required for the
  2567  	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
  2568  	// automatically. Format: `projects//locations//agents//intents/`.
  2569  	Name string `json:"name,omitempty"`
  2570  	// Parameters: The collection of parameters associated with the intent.
  2571  	Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
  2572  	// Priority: The priority of this intent. Higher numbers represent higher
  2573  	// priorities. - If the supplied value is unspecified or 0, the service
  2574  	// translates the value to 500,000, which corresponds to the `Normal` priority
  2575  	// in the console. - If the supplied value is negative, the intent is ignored
  2576  	// in runtime detect intent requests.
  2577  	Priority int64 `json:"priority,omitempty"`
  2578  	// TrainingPhrases: The collection of training phrases the agent is trained on
  2579  	// to identify the intent.
  2580  	TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  2581  	// ForceSendFields is a list of field names (e.g. "Description") to
  2582  	// unconditionally include in API requests. By default, fields with empty or
  2583  	// default values are omitted from API requests. See
  2584  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2585  	// details.
  2586  	ForceSendFields []string `json:"-"`
  2587  	// NullFields is a list of field names (e.g. "Description") to include in API
  2588  	// requests with the JSON null value. By default, fields with empty values are
  2589  	// omitted from API requests. See
  2590  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2591  	NullFields []string `json:"-"`
  2592  }
  2593  
  2594  func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
  2595  	type NoMethod GoogleCloudDialogflowCxV3Intent
  2596  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2597  }
  2598  
  2599  // GoogleCloudDialogflowCxV3IntentInput: Represents the intent to trigger
  2600  // programmatically rather than as a result of natural language processing.
  2601  type GoogleCloudDialogflowCxV3IntentInput struct {
  2602  	// Intent: Required. The unique identifier of the intent. Format:
  2603  	// `projects//locations//agents//intents/`.
  2604  	Intent string `json:"intent,omitempty"`
  2605  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
  2606  	// include in API requests. By default, fields with empty or default values are
  2607  	// omitted from API requests. See
  2608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2609  	// details.
  2610  	ForceSendFields []string `json:"-"`
  2611  	// NullFields is a list of field names (e.g. "Intent") to include in API
  2612  	// requests with the JSON null value. By default, fields with empty values are
  2613  	// omitted from API requests. See
  2614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2615  	NullFields []string `json:"-"`
  2616  }
  2617  
  2618  func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
  2619  	type NoMethod GoogleCloudDialogflowCxV3IntentInput
  2620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2621  }
  2622  
  2623  // GoogleCloudDialogflowCxV3IntentParameter: Represents an intent parameter.
  2624  type GoogleCloudDialogflowCxV3IntentParameter struct {
  2625  	// EntityType: Required. The entity type of the parameter. Format:
  2626  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  2627  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  2628  	// `projects//locations//agents//entityTypes/` for developer entity types.
  2629  	EntityType string `json:"entityType,omitempty"`
  2630  	// Id: Required. The unique identifier of the parameter. This field is used by
  2631  	// training phrases to annotate their parts.
  2632  	Id string `json:"id,omitempty"`
  2633  	// IsList: Indicates whether the parameter represents a list of values.
  2634  	IsList bool `json:"isList,omitempty"`
  2635  	// Redact: Indicates whether the parameter content should be redacted in log.
  2636  	// If redaction is enabled, the parameter content will be replaced by parameter
  2637  	// name during logging. Note: the parameter content is subject to redaction if
  2638  	// either parameter level redaction or entity type level redaction is enabled.
  2639  	Redact bool `json:"redact,omitempty"`
  2640  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  2641  	// unconditionally include in API requests. By default, fields with empty or
  2642  	// default values are omitted from API requests. See
  2643  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2644  	// details.
  2645  	ForceSendFields []string `json:"-"`
  2646  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  2647  	// requests with the JSON null value. By default, fields with empty values are
  2648  	// omitted from API requests. See
  2649  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2650  	NullFields []string `json:"-"`
  2651  }
  2652  
  2653  func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
  2654  	type NoMethod GoogleCloudDialogflowCxV3IntentParameter
  2655  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2656  }
  2657  
  2658  // GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example that
  2659  // the agent is trained on to identify the intent.
  2660  type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
  2661  	// Id: Output only. The unique identifier of the training phrase.
  2662  	Id string `json:"id,omitempty"`
  2663  	// Parts: Required. The ordered list of training phrase parts. The parts are
  2664  	// concatenated in order to form the training phrase. Note: The API does not
  2665  	// automatically annotate training phrases like the Dialogflow Console does.
  2666  	// Note: Do not forget to include whitespace at part boundaries, so the
  2667  	// training phrase is well formatted when the parts are concatenated. If the
  2668  	// training phrase does not need to be annotated with parameters, you just need
  2669  	// a single part with only the Part.text field set. If you want to annotate the
  2670  	// training phrase, you must create multiple parts, where the fields of each
  2671  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  2672  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  2673  	// that you want to annotate, and the `parameter_id` field is set.
  2674  	Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
  2675  	// RepeatCount: Indicates how many times this example was added to the intent.
  2676  	RepeatCount int64 `json:"repeatCount,omitempty"`
  2677  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  2678  	// include in API requests. By default, fields with empty or default values are
  2679  	// omitted from API requests. See
  2680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2681  	// details.
  2682  	ForceSendFields []string `json:"-"`
  2683  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  2684  	// with the JSON null value. By default, fields with empty values are omitted
  2685  	// from API requests. See
  2686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2687  	NullFields []string `json:"-"`
  2688  }
  2689  
  2690  func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  2691  	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
  2692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2693  }
  2694  
  2695  // GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part of a
  2696  // training phrase.
  2697  type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
  2698  	// ParameterId: The parameter used to annotate this part of the training
  2699  	// phrase. This field is required for annotated parts of the training phrase.
  2700  	ParameterId string `json:"parameterId,omitempty"`
  2701  	// Text: Required. The text for this part.
  2702  	Text string `json:"text,omitempty"`
  2703  	// ForceSendFields is a list of field names (e.g. "ParameterId") to
  2704  	// unconditionally include in API requests. By default, fields with empty or
  2705  	// default values are omitted from API requests. See
  2706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2707  	// details.
  2708  	ForceSendFields []string `json:"-"`
  2709  	// NullFields is a list of field names (e.g. "ParameterId") to include in API
  2710  	// requests with the JSON null value. By default, fields with empty values are
  2711  	// omitted from API requests. See
  2712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2713  	NullFields []string `json:"-"`
  2714  }
  2715  
  2716  func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  2717  	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
  2718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2719  }
  2720  
  2721  // GoogleCloudDialogflowCxV3KnowledgeConnectorSettings: The Knowledge Connector
  2722  // settings for this page or flow. This includes information such as the
  2723  // attached Knowledge Bases, and the way to execute fulfillment.
  2724  type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
  2725  	// DataStoreConnections: Optional. List of related data store connections.
  2726  	DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
  2727  	// Enabled: Whether Knowledge Connector is enabled or not.
  2728  	Enabled bool `json:"enabled,omitempty"`
  2729  	// TargetFlow: The target flow to transition to. Format:
  2730  	// `projects//locations//agents//flows/`.
  2731  	TargetFlow string `json:"targetFlow,omitempty"`
  2732  	// TargetPage: The target page to transition to. Format:
  2733  	// `projects//locations//agents//flows//pages/`.
  2734  	TargetPage string `json:"targetPage,omitempty"`
  2735  	// TriggerFulfillment: The fulfillment to be triggered. When the answers from
  2736  	// the Knowledge Connector are selected by Dialogflow, you can utitlize the
  2737  	// request scoped parameter `$request.knowledge.answers` (contains up to the 5
  2738  	// highest confidence answers) and `$request.knowledge.questions` (contains the
  2739  	// corresponding questions) to construct the fulfillment.
  2740  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  2741  	// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to
  2742  	// unconditionally include in API requests. By default, fields with empty or
  2743  	// default values are omitted from API requests. See
  2744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2745  	// details.
  2746  	ForceSendFields []string `json:"-"`
  2747  	// NullFields is a list of field names (e.g. "DataStoreConnections") to include
  2748  	// in API requests with the JSON null value. By default, fields with empty
  2749  	// values are omitted from API requests. See
  2750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2751  	NullFields []string `json:"-"`
  2752  }
  2753  
  2754  func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  2755  	type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
  2756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2757  }
  2758  
  2759  // GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information
  2760  // of the request.
  2761  type GoogleCloudDialogflowCxV3LanguageInfo struct {
  2762  	// ConfidenceScore: The confidence score of the detected language between 0 and
  2763  	// 1.
  2764  	ConfidenceScore float64 `json:"confidenceScore,omitempty"`
  2765  	// InputLanguageCode: The language code specified in the original request.
  2766  	InputLanguageCode string `json:"inputLanguageCode,omitempty"`
  2767  	// ResolvedLanguageCode: The language code detected for this request based on
  2768  	// the user conversation.
  2769  	ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
  2770  	// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to
  2771  	// unconditionally include in API requests. By default, fields with empty or
  2772  	// default values are omitted from API requests. See
  2773  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2774  	// details.
  2775  	ForceSendFields []string `json:"-"`
  2776  	// NullFields is a list of field names (e.g. "ConfidenceScore") to include in
  2777  	// API requests with the JSON null value. By default, fields with empty values
  2778  	// are omitted from API requests. See
  2779  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2780  	NullFields []string `json:"-"`
  2781  }
  2782  
  2783  func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
  2784  	type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
  2785  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2786  }
  2787  
  2788  func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
  2789  	type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
  2790  	var s1 struct {
  2791  		ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
  2792  		*NoMethod
  2793  	}
  2794  	s1.NoMethod = (*NoMethod)(s)
  2795  	if err := json.Unmarshal(data, &s1); err != nil {
  2796  		return err
  2797  	}
  2798  	s.ConfidenceScore = float64(s1.ConfidenceScore)
  2799  	return nil
  2800  }
  2801  
  2802  // GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can be
  2803  // described and visualized as a state machine. The states of a CX session are
  2804  // represented by pages. For each flow, you define many pages, where your
  2805  // combined pages can handle a complete conversation on the topics the flow is
  2806  // designed for. At any given moment, exactly one page is the current page, the
  2807  // current page is considered active, and the flow associated with that page is
  2808  // considered active. Every flow has a special start page. When a flow
  2809  // initially becomes active, the start page page becomes the current page. For
  2810  // each conversational turn, the current page will either stay the same or
  2811  // transition to another page. You configure each page to collect information
  2812  // from the end-user that is relevant for the conversational state represented
  2813  // by the page. For more information, see the Page guide
  2814  // (https://cloud.google.com/dialogflow/cx/docs/concept/page).
  2815  type GoogleCloudDialogflowCxV3Page struct {
  2816  	// AdvancedSettings: Hierarchical advanced settings for this page. The settings
  2817  	// exposed at the lower level overrides the settings exposed at the higher
  2818  	// level.
  2819  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  2820  	// Description: The description of the page. The maximum length is 500
  2821  	// characters.
  2822  	Description string `json:"description,omitempty"`
  2823  	// DisplayName: Required. The human-readable name of the page, unique within
  2824  	// the flow.
  2825  	DisplayName string `json:"displayName,omitempty"`
  2826  	// EntryFulfillment: The fulfillment to call when the session is entering the
  2827  	// page.
  2828  	EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
  2829  	// EventHandlers: Handlers associated with the page to handle events such as
  2830  	// webhook errors, no match or no input.
  2831  	EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
  2832  	// Form: The form associated with the page, used for collecting parameters
  2833  	// relevant to the page.
  2834  	Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
  2835  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  2836  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  2837  	// Name: The unique identifier of the page. Required for the Pages.UpdatePage
  2838  	// method. Pages.CreatePage populates the name automatically. Format:
  2839  	// `projects//locations//agents//flows//pages/`.
  2840  	Name string `json:"name,omitempty"`
  2841  	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the
  2842  	// page. Transition route groups must be unique within a page. If the page
  2843  	// links both flow-level transition route groups and agent-level transition
  2844  	// route groups, the flow-level ones will have higher priority and will be put
  2845  	// before the agent-level ones. * If multiple transition routes within a page
  2846  	// scope refer to the same intent, then the precedence order is: page's
  2847  	// transition route -> page's transition route group -> flow's transition
  2848  	// routes. * If multiple transition route groups within a page contain the same
  2849  	// intent, then the first group in the ordered list takes precedence.
  2850  	// Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  2851  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  2852  	// groups.
  2853  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  2854  	// TransitionRoutes: A list of transitions for the transition rules of this
  2855  	// page. They route the conversation to another page in the same flow, or
  2856  	// another flow. When we are in a certain page, the TransitionRoutes are
  2857  	// evalauted in the following order: * TransitionRoutes defined in the page
  2858  	// with intent specified. * TransitionRoutes defined in the transition route
  2859  	// groups with intent specified. * TransitionRoutes defined in flow with intent
  2860  	// specified. * TransitionRoutes defined in the transition route groups with
  2861  	// intent specified. * TransitionRoutes defined in the page with only condition
  2862  	// specified. * TransitionRoutes defined in the transition route groups with
  2863  	// only condition specified.
  2864  	TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
  2865  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  2866  	// unconditionally include in API requests. By default, fields with empty or
  2867  	// default values are omitted from API requests. See
  2868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2869  	// details.
  2870  	ForceSendFields []string `json:"-"`
  2871  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  2872  	// API requests with the JSON null value. By default, fields with empty values
  2873  	// are omitted from API requests. See
  2874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2875  	NullFields []string `json:"-"`
  2876  }
  2877  
  2878  func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
  2879  	type NoMethod GoogleCloudDialogflowCxV3Page
  2880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2881  }
  2882  
  2883  // GoogleCloudDialogflowCxV3PageInfo: Represents page information communicated
  2884  // to and from the webhook.
  2885  type GoogleCloudDialogflowCxV3PageInfo struct {
  2886  	// CurrentPage: Always present for WebhookRequest. Ignored for WebhookResponse.
  2887  	// The unique identifier of the current page. Format:
  2888  	// `projects//locations//agents//flows//pages/`.
  2889  	CurrentPage string `json:"currentPage,omitempty"`
  2890  	// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.
  2891  	// The display name of the current page.
  2892  	DisplayName string `json:"displayName,omitempty"`
  2893  	// FormInfo: Optional for both WebhookRequest and WebhookResponse. Information
  2894  	// about the form.
  2895  	FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
  2896  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  2897  	// unconditionally include in API requests. By default, fields with empty or
  2898  	// default values are omitted from API requests. See
  2899  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2900  	// details.
  2901  	ForceSendFields []string `json:"-"`
  2902  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  2903  	// requests with the JSON null value. By default, fields with empty values are
  2904  	// omitted from API requests. See
  2905  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2906  	NullFields []string `json:"-"`
  2907  }
  2908  
  2909  func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
  2910  	type NoMethod GoogleCloudDialogflowCxV3PageInfo
  2911  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2912  }
  2913  
  2914  // GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form information.
  2915  type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
  2916  	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse. The
  2917  	// parameters contained in the form. Note that the webhook cannot add or remove
  2918  	// any form parameter.
  2919  	ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
  2920  	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
  2921  	// unconditionally include in API requests. By default, fields with empty or
  2922  	// default values are omitted from API requests. See
  2923  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2924  	// details.
  2925  	ForceSendFields []string `json:"-"`
  2926  	// NullFields is a list of field names (e.g. "ParameterInfo") to include in API
  2927  	// requests with the JSON null value. By default, fields with empty values are
  2928  	// omitted from API requests. See
  2929  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2930  	NullFields []string `json:"-"`
  2931  }
  2932  
  2933  func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
  2934  	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
  2935  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2936  }
  2937  
  2938  // GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents parameter
  2939  // information.
  2940  type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
  2941  	// DisplayName: Always present for WebhookRequest. Required for
  2942  	// WebhookResponse. The human-readable name of the parameter, unique within the
  2943  	// form. This field cannot be modified by the webhook.
  2944  	DisplayName string `json:"displayName,omitempty"`
  2945  	// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.
  2946  	// Indicates if the parameter value was just collected on the last conversation
  2947  	// turn.
  2948  	JustCollected bool `json:"justCollected,omitempty"`
  2949  	// Required: Optional for both WebhookRequest and WebhookResponse. Indicates
  2950  	// whether the parameter is required. Optional parameters will not trigger
  2951  	// prompts; however, they are filled if the user specifies them. Required
  2952  	// parameters must be filled before form filling concludes.
  2953  	Required bool `json:"required,omitempty"`
  2954  	// State: Always present for WebhookRequest. Required for WebhookResponse. The
  2955  	// state of the parameter. This field can be set to INVALID by the webhook to
  2956  	// invalidate the parameter; other values set by the webhook will be ignored.
  2957  	//
  2958  	// Possible values:
  2959  	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never
  2960  	// used.
  2961  	//   "EMPTY" - Indicates that the parameter does not have a value.
  2962  	//   "INVALID" - Indicates that the parameter value is invalid. This field can
  2963  	// be used by the webhook to invalidate the parameter and ask the server to
  2964  	// collect it from the user again.
  2965  	//   "FILLED" - Indicates that the parameter has a value.
  2966  	State string `json:"state,omitempty"`
  2967  	// Value: Optional for both WebhookRequest and WebhookResponse. The value of
  2968  	// the parameter. This field can be set by the webhook to change the parameter
  2969  	// value.
  2970  	Value interface{} `json:"value,omitempty"`
  2971  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2972  	// unconditionally include in API requests. By default, fields with empty or
  2973  	// default values are omitted from API requests. See
  2974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2975  	// details.
  2976  	ForceSendFields []string `json:"-"`
  2977  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2978  	// requests with the JSON null value. By default, fields with empty values are
  2979  	// omitted from API requests. See
  2980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2981  	NullFields []string `json:"-"`
  2982  }
  2983  
  2984  func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
  2985  	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
  2986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2987  }
  2988  
  2989  // GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It can
  2990  // contain one of: 1. A conversational query in the form of text. 2. An intent
  2991  // query that specifies which intent to trigger. 3. Natural language speech
  2992  // audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke
  2993  // an intent and fill in parameter value. 6. The results of a tool executed by
  2994  // the client.
  2995  type GoogleCloudDialogflowCxV3QueryInput struct {
  2996  	// Audio: The natural language speech audio to be processed.
  2997  	Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
  2998  	// Dtmf: The DTMF event to be handled.
  2999  	Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
  3000  	// Event: The event to be triggered.
  3001  	Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
  3002  	// Intent: The intent to be triggered.
  3003  	Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
  3004  	// LanguageCode: Required. The language of the input. See Language Support
  3005  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  3006  	// of the currently supported language codes. Note that queries in the same
  3007  	// session do not necessarily need to specify the same language.
  3008  	LanguageCode string `json:"languageCode,omitempty"`
  3009  	// Text: The natural language text to be processed.
  3010  	Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
  3011  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  3012  	// include in API requests. By default, fields with empty or default values are
  3013  	// omitted from API requests. See
  3014  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3015  	// details.
  3016  	ForceSendFields []string `json:"-"`
  3017  	// NullFields is a list of field names (e.g. "Audio") to include in API
  3018  	// requests with the JSON null value. By default, fields with empty values are
  3019  	// omitted from API requests. See
  3020  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3021  	NullFields []string `json:"-"`
  3022  }
  3023  
  3024  func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
  3025  	type NoMethod GoogleCloudDialogflowCxV3QueryInput
  3026  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3027  }
  3028  
  3029  // GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata: Metadata for
  3030  // ReloadDocument operation.
  3031  type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
  3032  	// GenericMetadata: The generic information of the operation.
  3033  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  3034  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  3035  	// unconditionally include in API requests. By default, fields with empty or
  3036  	// default values are omitted from API requests. See
  3037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3038  	// details.
  3039  	ForceSendFields []string `json:"-"`
  3040  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  3041  	// API requests with the JSON null value. By default, fields with empty values
  3042  	// are omitted from API requests. See
  3043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3044  	NullFields []string `json:"-"`
  3045  }
  3046  
  3047  func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  3048  	type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
  3049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3050  }
  3051  
  3052  // GoogleCloudDialogflowCxV3ResponseMessage: Represents a response message that
  3053  // can be returned by a conversational agent. Response messages are also used
  3054  // for output audio synthesis. The approach is as follows: * If at least one
  3055  // OutputAudioText response is present, then all OutputAudioText responses are
  3056  // linearly concatenated, and the result is used for output audio synthesis. *
  3057  // If the OutputAudioText responses are a mixture of text and SSML, then the
  3058  // concatenated result is treated as SSML; otherwise, the result is treated as
  3059  // either text or SSML as appropriate. The agent designer should ideally use
  3060  // either text or SSML consistently throughout the bot design. * Otherwise, all
  3061  // Text responses are linearly concatenated, and the result is used for output
  3062  // audio synthesis. This approach allows for more sophisticated user experience
  3063  // scenarios, where the text displayed to the user may differ from what is
  3064  // heard.
  3065  type GoogleCloudDialogflowCxV3ResponseMessage struct {
  3066  	// Channel: The channel which the response is associated with. Clients can
  3067  	// specify the channel via QueryParameters.channel, and only associated channel
  3068  	// response will be returned.
  3069  	Channel string `json:"channel,omitempty"`
  3070  	// ConversationSuccess: Indicates that the conversation succeeded.
  3071  	ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
  3072  	// EndInteraction: Output only. A signal that indicates the interaction with
  3073  	// the Dialogflow agent has ended. This message is generated by Dialogflow only
  3074  	// when the conversation reaches `END_SESSION` page. It is not supposed to be
  3075  	// defined by the user. It's guaranteed that there is at most one such message
  3076  	// in each response.
  3077  	EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
  3078  	// KnowledgeInfoCard: Represents info card for knowledge answers, to be better
  3079  	// rendered in Dialogflow Messenger.
  3080  	KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
  3081  	// LiveAgentHandoff: Hands off conversation to a human agent.
  3082  	LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
  3083  	// MixedAudio: Output only. An audio response message composed of both the
  3084  	// synthesized Dialogflow agent responses and responses defined via play_audio.
  3085  	// This message is generated by Dialogflow only and not supposed to be defined
  3086  	// by the user.
  3087  	MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
  3088  	// OutputAudioText: A text or ssml response that is preferentially used for TTS
  3089  	// output audio synthesis, as described in the comment on the ResponseMessage
  3090  	// message.
  3091  	OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
  3092  	// Payload: Returns a response containing a custom, platform-specific payload.
  3093  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  3094  	// PlayAudio: Signal that the client should play an audio clip hosted at a
  3095  	// client-specific URI. Dialogflow uses this to construct mixed_audio. However,
  3096  	// Dialogflow itself does not try to read or process the URI in any way.
  3097  	PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
  3098  	// ResponseType: Response type.
  3099  	//
  3100  	// Possible values:
  3101  	//   "RESPONSE_TYPE_UNSPECIFIED" - Not specified.
  3102  	//   "ENTRY_PROMPT" - The response is from an entry prompt in the page.
  3103  	//   "PARAMETER_PROMPT" - The response is from form-filling prompt in the page.
  3104  	//   "HANDLER_PROMPT" - The response is from a transition route or an event
  3105  	// handler in the page or flow or transition route group.
  3106  	ResponseType string `json:"responseType,omitempty"`
  3107  	// TelephonyTransferCall: A signal that the client should transfer the phone
  3108  	// call connected to this agent to a third-party endpoint.
  3109  	TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
  3110  	// Text: Returns a text response.
  3111  	Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
  3112  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  3113  	// include in API requests. By default, fields with empty or default values are
  3114  	// omitted from API requests. See
  3115  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3116  	// details.
  3117  	ForceSendFields []string `json:"-"`
  3118  	// NullFields is a list of field names (e.g. "Channel") to include in API
  3119  	// requests with the JSON null value. By default, fields with empty values are
  3120  	// omitted from API requests. See
  3121  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3122  	NullFields []string `json:"-"`
  3123  }
  3124  
  3125  func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
  3126  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
  3127  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3128  }
  3129  
  3130  // GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess: Indicates that
  3131  // the conversation succeeded, i.e., the bot handled the issue that the
  3132  // customer talked to it about. Dialogflow only uses this to determine which
  3133  // conversations should be counted as successful and doesn't process the
  3134  // metadata in this message in any way. Note that Dialogflow also considers
  3135  // conversations that get to the conversation end page as successful even if
  3136  // they don't return ConversationSuccess. You may set this, for example: * In
  3137  // the entry_fulfillment of a Page if entering the page indicates that the
  3138  // conversation succeeded. * In a webhook response when you determine that you
  3139  // handled the customer issue.
  3140  type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
  3141  	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.
  3142  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3143  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  3144  	// unconditionally include in API requests. By default, fields with empty or
  3145  	// default values are omitted from API requests. See
  3146  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3147  	// details.
  3148  	ForceSendFields []string `json:"-"`
  3149  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  3150  	// requests with the JSON null value. By default, fields with empty values are
  3151  	// omitted from API requests. See
  3152  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3153  	NullFields []string `json:"-"`
  3154  }
  3155  
  3156  func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
  3157  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
  3158  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3159  }
  3160  
  3161  // GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates that
  3162  // interaction with the Dialogflow agent has ended. This message is generated
  3163  // by Dialogflow only and not supposed to be defined by the user.
  3164  type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
  3165  }
  3166  
  3167  // GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard: Represents info
  3168  // card response. If the response contains generative knowledge prediction,
  3169  // Dialogflow will return a payload with Infobot Messenger compatible info
  3170  // card. Otherwise, the info card response is skipped.
  3171  type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
  3172  }
  3173  
  3174  // GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates that the
  3175  // conversation should be handed off to a live agent. Dialogflow only uses this
  3176  // to determine which conversations were handed off to a human agent for
  3177  // measurement purposes. What else to do with this signal is up to you and your
  3178  // handoff procedures. You may set this, for example: * In the
  3179  // entry_fulfillment of a Page if entering the page indicates something went
  3180  // extremely wrong in the conversation. * In a webhook response when you
  3181  // determine that the customer issue can only be handled by a human.
  3182  type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
  3183  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
  3184  	// impose any structure on this.
  3185  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3186  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  3187  	// unconditionally include in API requests. By default, fields with empty or
  3188  	// default values are omitted from API requests. See
  3189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3190  	// details.
  3191  	ForceSendFields []string `json:"-"`
  3192  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  3193  	// requests with the JSON null value. By default, fields with empty values are
  3194  	// omitted from API requests. See
  3195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3196  	NullFields []string `json:"-"`
  3197  }
  3198  
  3199  func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
  3200  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
  3201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3202  }
  3203  
  3204  // GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an audio
  3205  // message that is composed of both segments synthesized from the Dialogflow
  3206  // agent prompts and ones hosted externally at the specified URIs. The external
  3207  // URIs are specified via play_audio. This message is generated by Dialogflow
  3208  // only and not supposed to be defined by the user.
  3209  type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
  3210  	// Segments: Segments this audio response is composed of.
  3211  	Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
  3212  	// ForceSendFields is a list of field names (e.g. "Segments") to
  3213  	// unconditionally include in API requests. By default, fields with empty or
  3214  	// default values are omitted from API requests. See
  3215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3216  	// details.
  3217  	ForceSendFields []string `json:"-"`
  3218  	// NullFields is a list of field names (e.g. "Segments") to include in API
  3219  	// requests with the JSON null value. By default, fields with empty values are
  3220  	// omitted from API requests. See
  3221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3222  	NullFields []string `json:"-"`
  3223  }
  3224  
  3225  func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
  3226  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
  3227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3228  }
  3229  
  3230  // GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents one
  3231  // segment of audio.
  3232  type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
  3233  	// AllowPlaybackInterruption: Output only. Whether the playback of this segment
  3234  	// can be interrupted by the end user's speech and the client should then start
  3235  	// the next Dialogflow request.
  3236  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3237  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
  3238  	// output config specified in the request.
  3239  	Audio string `json:"audio,omitempty"`
  3240  	// Uri: Client-specific URI that points to an audio clip accessible to the
  3241  	// client. Dialogflow does not impose any validation on it.
  3242  	Uri string `json:"uri,omitempty"`
  3243  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3244  	// to unconditionally include in API requests. By default, fields with empty or
  3245  	// default values are omitted from API requests. See
  3246  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3247  	// details.
  3248  	ForceSendFields []string `json:"-"`
  3249  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3250  	// include in API requests with the JSON null value. By default, fields with
  3251  	// empty values are omitted from API requests. See
  3252  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3253  	NullFields []string `json:"-"`
  3254  }
  3255  
  3256  func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
  3257  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
  3258  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3259  }
  3260  
  3261  // GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or ssml
  3262  // response that is preferentially used for TTS output audio synthesis, as
  3263  // described in the comment on the ResponseMessage message.
  3264  type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
  3265  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  3266  	// can be interrupted by the end user's speech and the client can then starts
  3267  	// the next Dialogflow request.
  3268  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3269  	// Ssml: The SSML text to be synthesized. For more information, see SSML
  3270  	// (/speech/text-to-speech/docs/ssml).
  3271  	Ssml string `json:"ssml,omitempty"`
  3272  	// Text: The raw text to be synthesized.
  3273  	Text string `json:"text,omitempty"`
  3274  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3275  	// to unconditionally include in API requests. By default, fields with empty or
  3276  	// default values are omitted from API requests. See
  3277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3278  	// details.
  3279  	ForceSendFields []string `json:"-"`
  3280  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3281  	// include in API requests with the JSON null value. By default, fields with
  3282  	// empty values are omitted from API requests. See
  3283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3284  	NullFields []string `json:"-"`
  3285  }
  3286  
  3287  func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
  3288  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
  3289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3290  }
  3291  
  3292  // GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio clip
  3293  // to be played by the client as part of the response.
  3294  type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
  3295  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  3296  	// can be interrupted by the end user's speech and the client can then starts
  3297  	// the next Dialogflow request.
  3298  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3299  	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose any
  3300  	// validation on this value. It is specific to the client that reads it.
  3301  	AudioUri string `json:"audioUri,omitempty"`
  3302  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3303  	// to unconditionally include in API requests. By default, fields with empty or
  3304  	// default values are omitted from API requests. See
  3305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3306  	// details.
  3307  	ForceSendFields []string `json:"-"`
  3308  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3309  	// include in API requests with the JSON null value. By default, fields with
  3310  	// empty values are omitted from API requests. See
  3311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3312  	NullFields []string `json:"-"`
  3313  }
  3314  
  3315  func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
  3316  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
  3317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3318  }
  3319  
  3320  // GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall: Represents
  3321  // the signal that telles the client to transfer the phone call connected to
  3322  // the agent to a third-party endpoint.
  3323  type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
  3324  	// PhoneNumber: Transfer the call to a phone number in E.164 format
  3325  	// (https://en.wikipedia.org/wiki/E.164).
  3326  	PhoneNumber string `json:"phoneNumber,omitempty"`
  3327  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  3328  	// unconditionally include in API requests. By default, fields with empty or
  3329  	// default values are omitted from API requests. See
  3330  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3331  	// details.
  3332  	ForceSendFields []string `json:"-"`
  3333  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  3334  	// requests with the JSON null value. By default, fields with empty values are
  3335  	// omitted from API requests. See
  3336  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3337  	NullFields []string `json:"-"`
  3338  }
  3339  
  3340  func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
  3341  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
  3342  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3343  }
  3344  
  3345  // GoogleCloudDialogflowCxV3ResponseMessageText: The text response message.
  3346  type GoogleCloudDialogflowCxV3ResponseMessageText struct {
  3347  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  3348  	// can be interrupted by the end user's speech and the client can then starts
  3349  	// the next Dialogflow request.
  3350  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3351  	// Text: Required. A collection of text responses.
  3352  	Text []string `json:"text,omitempty"`
  3353  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3354  	// to unconditionally include in API requests. By default, fields with empty or
  3355  	// default values are omitted from API requests. See
  3356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3357  	// details.
  3358  	ForceSendFields []string `json:"-"`
  3359  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3360  	// include in API requests with the JSON null value. By default, fields with
  3361  	// empty values are omitted from API requests. See
  3362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3363  	NullFields []string `json:"-"`
  3364  }
  3365  
  3366  func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
  3367  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
  3368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3369  }
  3370  
  3371  // GoogleCloudDialogflowCxV3RunContinuousTestMetadata: Metadata returned for
  3372  // the Environments.RunContinuousTest long running operation.
  3373  type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
  3374  	// Errors: The test errors.
  3375  	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
  3376  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  3377  	// include in API requests. By default, fields with empty or default values are
  3378  	// omitted from API requests. See
  3379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3380  	// details.
  3381  	ForceSendFields []string `json:"-"`
  3382  	// NullFields is a list of field names (e.g. "Errors") to include in API
  3383  	// requests with the JSON null value. By default, fields with empty values are
  3384  	// omitted from API requests. See
  3385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3386  	NullFields []string `json:"-"`
  3387  }
  3388  
  3389  func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
  3390  	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
  3391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3392  }
  3393  
  3394  // GoogleCloudDialogflowCxV3RunContinuousTestResponse: The response message for
  3395  // Environments.RunContinuousTest.
  3396  type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
  3397  	// ContinuousTestResult: The result for a continuous test run.
  3398  	ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
  3399  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to
  3400  	// unconditionally include in API requests. By default, fields with empty or
  3401  	// default values are omitted from API requests. See
  3402  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3403  	// details.
  3404  	ForceSendFields []string `json:"-"`
  3405  	// NullFields is a list of field names (e.g. "ContinuousTestResult") to include
  3406  	// in API requests with the JSON null value. By default, fields with empty
  3407  	// values are omitted from API requests. See
  3408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3409  	NullFields []string `json:"-"`
  3410  }
  3411  
  3412  func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
  3413  	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
  3414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3415  }
  3416  
  3417  // GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for the
  3418  // TestCases.RunTestCase long running operation. This message currently has no
  3419  // fields.
  3420  type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
  3421  }
  3422  
  3423  // GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message for
  3424  // TestCases.RunTestCase.
  3425  type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
  3426  	// Result: The result.
  3427  	Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
  3428  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
  3429  	// include in API requests. By default, fields with empty or default values are
  3430  	// omitted from API requests. See
  3431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3432  	// details.
  3433  	ForceSendFields []string `json:"-"`
  3434  	// NullFields is a list of field names (e.g. "Result") to include in API
  3435  	// requests with the JSON null value. By default, fields with empty values are
  3436  	// omitted from API requests. See
  3437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3438  	NullFields []string `json:"-"`
  3439  }
  3440  
  3441  func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
  3442  	type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
  3443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3444  }
  3445  
  3446  // GoogleCloudDialogflowCxV3SessionInfo: Represents session information
  3447  // communicated to and from the webhook.
  3448  type GoogleCloudDialogflowCxV3SessionInfo struct {
  3449  	// Parameters: Optional for WebhookRequest. Optional for WebhookResponse. All
  3450  	// parameters collected from forms and intents during the session. Parameters
  3451  	// can be created, updated, or removed by the webhook. To remove a parameter
  3452  	// from the session, the webhook should explicitly set the parameter value to
  3453  	// null in WebhookResponse. The map is keyed by parameters' display names.
  3454  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  3455  	// Session: Always present for WebhookRequest. Ignored for WebhookResponse. The
  3456  	// unique identifier of the session. This field can be used by the webhook to
  3457  	// identify a session. Format: `projects//locations//agents//sessions/` or
  3458  	// `projects//locations//agents//environments//sessions/` if environment is
  3459  	// specified.
  3460  	Session string `json:"session,omitempty"`
  3461  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  3462  	// unconditionally include in API requests. By default, fields with empty or
  3463  	// default values are omitted from API requests. See
  3464  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3465  	// details.
  3466  	ForceSendFields []string `json:"-"`
  3467  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  3468  	// requests with the JSON null value. By default, fields with empty values are
  3469  	// omitted from API requests. See
  3470  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3471  	NullFields []string `json:"-"`
  3472  }
  3473  
  3474  func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
  3475  	type NoMethod GoogleCloudDialogflowCxV3SessionInfo
  3476  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3477  }
  3478  
  3479  // GoogleCloudDialogflowCxV3TestCase: Represents a test case.
  3480  type GoogleCloudDialogflowCxV3TestCase struct {
  3481  	// CreationTime: Output only. When the test was created.
  3482  	CreationTime string `json:"creationTime,omitempty"`
  3483  	// DisplayName: Required. The human-readable name of the test case, unique
  3484  	// within the agent. Limit of 200 characters.
  3485  	DisplayName string `json:"displayName,omitempty"`
  3486  	// LastTestResult: The latest test result.
  3487  	LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
  3488  	// Name: The unique identifier of the test case. TestCases.CreateTestCase will
  3489  	// populate the name automatically. Otherwise use format:
  3490  	// `projects//locations//agents/ /testCases/`.
  3491  	Name string `json:"name,omitempty"`
  3492  	// Notes: Additional freeform notes about the test case. Limit of 400
  3493  	// characters.
  3494  	Notes string `json:"notes,omitempty"`
  3495  	// Tags: Tags are short descriptions that users may apply to test cases for
  3496  	// organizational and filtering purposes. Each tag should start with "#" and
  3497  	// has a limit of 30 characters.
  3498  	Tags []string `json:"tags,omitempty"`
  3499  	// TestCaseConversationTurns: The conversation turns uttered when the test case
  3500  	// was created, in chronological order. These include the canonical set of
  3501  	// agent utterances that should occur when the agent is working properly.
  3502  	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
  3503  	// TestConfig: Config for the test case.
  3504  	TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
  3505  	// ForceSendFields is a list of field names (e.g. "CreationTime") to
  3506  	// unconditionally include in API requests. By default, fields with empty or
  3507  	// default values are omitted from API requests. See
  3508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3509  	// details.
  3510  	ForceSendFields []string `json:"-"`
  3511  	// NullFields is a list of field names (e.g. "CreationTime") to include in API
  3512  	// requests with the JSON null value. By default, fields with empty values are
  3513  	// omitted from API requests. See
  3514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3515  	NullFields []string `json:"-"`
  3516  }
  3517  
  3518  func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
  3519  	type NoMethod GoogleCloudDialogflowCxV3TestCase
  3520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3521  }
  3522  
  3523  // GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a test.
  3524  type GoogleCloudDialogflowCxV3TestCaseError struct {
  3525  	// Status: The status associated with the test case.
  3526  	Status *GoogleRpcStatus `json:"status,omitempty"`
  3527  	// TestCase: The test case.
  3528  	TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
  3529  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3530  	// include in API requests. By default, fields with empty or default values are
  3531  	// omitted from API requests. See
  3532  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3533  	// details.
  3534  	ForceSendFields []string `json:"-"`
  3535  	// NullFields is a list of field names (e.g. "Status") to include in API
  3536  	// requests with the JSON null value. By default, fields with empty values are
  3537  	// omitted from API requests. See
  3538  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3539  	NullFields []string `json:"-"`
  3540  }
  3541  
  3542  func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
  3543  	type NoMethod GoogleCloudDialogflowCxV3TestCaseError
  3544  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3545  }
  3546  
  3547  // GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from running a
  3548  // test case in an agent environment.
  3549  type GoogleCloudDialogflowCxV3TestCaseResult struct {
  3550  	// ConversationTurns: The conversation turns uttered during the test case
  3551  	// replay in chronological order.
  3552  	ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
  3553  	// Environment: Environment where the test was run. If not set, it indicates
  3554  	// the draft environment.
  3555  	Environment string `json:"environment,omitempty"`
  3556  	// Name: The resource name for the test case result. Format:
  3557  	// `projects//locations//agents//testCases/ /results/`.
  3558  	Name string `json:"name,omitempty"`
  3559  	// TestResult: Whether the test case passed in the agent environment.
  3560  	//
  3561  	// Possible values:
  3562  	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
  3563  	//   "PASSED" - The test passed.
  3564  	//   "FAILED" - The test did not pass.
  3565  	TestResult string `json:"testResult,omitempty"`
  3566  	// TestTime: The time that the test was run.
  3567  	TestTime string `json:"testTime,omitempty"`
  3568  	// ForceSendFields is a list of field names (e.g. "ConversationTurns") to
  3569  	// unconditionally include in API requests. By default, fields with empty or
  3570  	// default values are omitted from API requests. See
  3571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3572  	// details.
  3573  	ForceSendFields []string `json:"-"`
  3574  	// NullFields is a list of field names (e.g. "ConversationTurns") to include in
  3575  	// API requests with the JSON null value. By default, fields with empty values
  3576  	// are omitted from API requests. See
  3577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3578  	NullFields []string `json:"-"`
  3579  }
  3580  
  3581  func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
  3582  	type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
  3583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3584  }
  3585  
  3586  // GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a test
  3587  // case.
  3588  type GoogleCloudDialogflowCxV3TestConfig struct {
  3589  	// Flow: Flow name to start the test case with. Format:
  3590  	// `projects//locations//agents//flows/`. Only one of `flow` and `page` should
  3591  	// be set to indicate the starting point of the test case. If both are set,
  3592  	// `page` takes precedence over `flow`. If neither is set, the test case will
  3593  	// start with start page on the default start flow.
  3594  	Flow string `json:"flow,omitempty"`
  3595  	// Page: The page to start the test case with. Format:
  3596  	// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`
  3597  	// should be set to indicate the starting point of the test case. If both are
  3598  	// set, `page` takes precedence over `flow`. If neither is set, the test case
  3599  	// will start with start page on the default start flow.
  3600  	Page string `json:"page,omitempty"`
  3601  	// TrackingParameters: Session parameters to be compared when calculating
  3602  	// differences.
  3603  	TrackingParameters []string `json:"trackingParameters,omitempty"`
  3604  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  3605  	// include in API requests. By default, fields with empty or default values are
  3606  	// omitted from API requests. See
  3607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3608  	// details.
  3609  	ForceSendFields []string `json:"-"`
  3610  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  3611  	// with the JSON null value. By default, fields with empty values are omitted
  3612  	// from API requests. See
  3613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3614  	NullFields []string `json:"-"`
  3615  }
  3616  
  3617  func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
  3618  	type NoMethod GoogleCloudDialogflowCxV3TestConfig
  3619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3620  }
  3621  
  3622  // GoogleCloudDialogflowCxV3TestError: Error info for running a test.
  3623  type GoogleCloudDialogflowCxV3TestError struct {
  3624  	// Status: The status associated with the test.
  3625  	Status *GoogleRpcStatus `json:"status,omitempty"`
  3626  	// TestCase: The test case resource name.
  3627  	TestCase string `json:"testCase,omitempty"`
  3628  	// TestTime: The timestamp when the test was completed.
  3629  	TestTime string `json:"testTime,omitempty"`
  3630  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3631  	// include in API requests. By default, fields with empty or default values are
  3632  	// omitted from API requests. See
  3633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3634  	// details.
  3635  	ForceSendFields []string `json:"-"`
  3636  	// NullFields is a list of field names (e.g. "Status") to include in API
  3637  	// requests with the JSON null value. By default, fields with empty values are
  3638  	// omitted from API requests. See
  3639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3640  	NullFields []string `json:"-"`
  3641  }
  3642  
  3643  func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
  3644  	type NoMethod GoogleCloudDialogflowCxV3TestError
  3645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3646  }
  3647  
  3648  // GoogleCloudDialogflowCxV3TestRunDifference: The description of differences
  3649  // between original and replayed agent output.
  3650  type GoogleCloudDialogflowCxV3TestRunDifference struct {
  3651  	// Description: A human readable description of the diff, showing the actual
  3652  	// output vs expected output.
  3653  	Description string `json:"description,omitempty"`
  3654  	// Type: The type of diff.
  3655  	//
  3656  	// Possible values:
  3657  	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
  3658  	//   "INTENT" - The intent.
  3659  	//   "PAGE" - The page.
  3660  	//   "PARAMETERS" - The parameters.
  3661  	//   "UTTERANCE" - The message utterance.
  3662  	//   "FLOW" - The flow.
  3663  	Type string `json:"type,omitempty"`
  3664  	// ForceSendFields is a list of field names (e.g. "Description") 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. "Description") to include in API
  3671  	// requests with the JSON null value. By default, fields with empty values are
  3672  	// 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 *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
  3678  	type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
  3679  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3680  }
  3681  
  3682  // GoogleCloudDialogflowCxV3TextInput: Represents the natural language text to
  3683  // be processed.
  3684  type GoogleCloudDialogflowCxV3TextInput struct {
  3685  	// Text: Required. The UTF-8 encoded natural language text to be processed.
  3686  	Text string `json:"text,omitempty"`
  3687  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  3688  	// include in API requests. By default, fields with empty or default values are
  3689  	// omitted from API requests. See
  3690  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3691  	// details.
  3692  	ForceSendFields []string `json:"-"`
  3693  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  3694  	// with the JSON null value. By default, fields with empty values are omitted
  3695  	// from API requests. See
  3696  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3697  	NullFields []string `json:"-"`
  3698  }
  3699  
  3700  func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
  3701  	type NoMethod GoogleCloudDialogflowCxV3TextInput
  3702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3703  }
  3704  
  3705  // GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a
  3706  // intent that can be matched and/or a data condition that can be evaluated
  3707  // during a session. When a specified transition is matched, the following
  3708  // actions are taken in order: * If there is a `trigger_fulfillment` associated
  3709  // with the transition, it will be called. * If there is a `target_page`
  3710  // associated with the transition, the session will transition into the
  3711  // specified page. * If there is a `target_flow` associated with the
  3712  // transition, the session will transition into the specified flow.
  3713  type GoogleCloudDialogflowCxV3TransitionRoute struct {
  3714  	// Condition: The condition to evaluate against form parameters or session
  3715  	// parameters. See the conditions reference
  3716  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least
  3717  	// one of `intent` or `condition` must be specified. When both `intent` and
  3718  	// `condition` are specified, the transition can only happen when both are
  3719  	// fulfilled.
  3720  	Condition string `json:"condition,omitempty"`
  3721  	// Description: Optional. The description of the transition route. The maximum
  3722  	// length is 500 characters.
  3723  	Description string `json:"description,omitempty"`
  3724  	// Intent: The unique identifier of an Intent. Format:
  3725  	// `projects//locations//agents//intents/`. Indicates that the transition can
  3726  	// only happen when the given intent is matched. At least one of `intent` or
  3727  	// `condition` must be specified. When both `intent` and `condition` are
  3728  	// specified, the transition can only happen when both are fulfilled.
  3729  	Intent string `json:"intent,omitempty"`
  3730  	// Name: Output only. The unique identifier of this transition route.
  3731  	Name string `json:"name,omitempty"`
  3732  	// TargetFlow: The target flow to transition to. Format:
  3733  	// `projects//locations//agents//flows/`.
  3734  	TargetFlow string `json:"targetFlow,omitempty"`
  3735  	// TargetPage: The target page to transition to. Format:
  3736  	// `projects//locations//agents//flows//pages/`.
  3737  	TargetPage string `json:"targetPage,omitempty"`
  3738  	// TriggerFulfillment: The fulfillment to call when the condition is satisfied.
  3739  	// At least one of `trigger_fulfillment` and `target` must be specified. When
  3740  	// both are defined, `trigger_fulfillment` is executed first.
  3741  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  3742  	// ForceSendFields is a list of field names (e.g. "Condition") to
  3743  	// unconditionally include in API requests. By default, fields with empty or
  3744  	// default values are omitted from API requests. See
  3745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3746  	// details.
  3747  	ForceSendFields []string `json:"-"`
  3748  	// NullFields is a list of field names (e.g. "Condition") to include in API
  3749  	// requests with the JSON null value. By default, fields with empty values are
  3750  	// omitted from API requests. See
  3751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3752  	NullFields []string `json:"-"`
  3753  }
  3754  
  3755  func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
  3756  	type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
  3757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3758  }
  3759  
  3760  // GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that were
  3761  // extracted for a single turn of the conversation.
  3762  type GoogleCloudDialogflowCxV3TurnSignals struct {
  3763  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
  3764  	AgentEscalated bool `json:"agentEscalated,omitempty"`
  3765  	// DtmfUsed: Whether user was using DTMF input.
  3766  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
  3767  	// FailureReasons: Failure reasons of the turn.
  3768  	//
  3769  	// Possible values:
  3770  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
  3771  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
  3772  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
  3773  	FailureReasons []string `json:"failureReasons,omitempty"`
  3774  	// NoMatch: Whether NLU predicted NO_MATCH.
  3775  	NoMatch bool `json:"noMatch,omitempty"`
  3776  	// NoUserInput: Whether user provided no input.
  3777  	NoUserInput bool `json:"noUserInput,omitempty"`
  3778  	// ReachedEndPage: Whether turn resulted in End Session page.
  3779  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
  3780  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
  3781  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  3782  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
  3783  	// SentimentScore: Sentiment score of the user utterance if sentiment
  3784  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  3785  	SentimentScore float64 `json:"sentimentScore,omitempty"`
  3786  	// UserEscalated: Whether user was specifically asking for a live agent.
  3787  	UserEscalated bool `json:"userEscalated,omitempty"`
  3788  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
  3789  	// this turn.
  3790  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
  3791  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
  3792  	// unconditionally include in API requests. By default, fields with empty or
  3793  	// default values are omitted from API requests. See
  3794  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3795  	// details.
  3796  	ForceSendFields []string `json:"-"`
  3797  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
  3798  	// API requests with the JSON null value. By default, fields with empty values
  3799  	// are omitted from API requests. See
  3800  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3801  	NullFields []string `json:"-"`
  3802  }
  3803  
  3804  func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
  3805  	type NoMethod GoogleCloudDialogflowCxV3TurnSignals
  3806  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3807  }
  3808  
  3809  func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
  3810  	type NoMethod GoogleCloudDialogflowCxV3TurnSignals
  3811  	var s1 struct {
  3812  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
  3813  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
  3814  		*NoMethod
  3815  	}
  3816  	s1.NoMethod = (*NoMethod)(s)
  3817  	if err := json.Unmarshal(data, &s1); err != nil {
  3818  		return err
  3819  	}
  3820  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
  3821  	s.SentimentScore = float64(s1.SentimentScore)
  3822  	return nil
  3823  }
  3824  
  3825  // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata for
  3826  // UpdateDocument operation.
  3827  type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
  3828  	// GenericMetadata: The generic information of the operation.
  3829  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  3830  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  3831  	// unconditionally include in API requests. By default, fields with empty or
  3832  	// default values are omitted from API requests. See
  3833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3834  	// details.
  3835  	ForceSendFields []string `json:"-"`
  3836  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  3837  	// API requests with the JSON null value. By default, fields with empty values
  3838  	// are omitted from API requests. See
  3839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3840  	NullFields []string `json:"-"`
  3841  }
  3842  
  3843  func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  3844  	type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
  3845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3846  }
  3847  
  3848  // GoogleCloudDialogflowCxV3Webhook: Webhooks host the developer's business
  3849  // logic. During a session, webhooks allow the developer to use the data
  3850  // extracted by Dialogflow's natural language processing to generate dynamic
  3851  // responses, validate collected data, or trigger actions on the backend.
  3852  type GoogleCloudDialogflowCxV3Webhook struct {
  3853  	// Disabled: Indicates whether the webhook is disabled.
  3854  	Disabled bool `json:"disabled,omitempty"`
  3855  	// DisplayName: Required. The human-readable name of the webhook, unique within
  3856  	// the agent.
  3857  	DisplayName string `json:"displayName,omitempty"`
  3858  	// GenericWebService: Configuration for a generic web service.
  3859  	GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
  3860  	// Name: The unique identifier of the webhook. Required for the
  3861  	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
  3862  	// automatically. Format: `projects//locations//agents//webhooks/`.
  3863  	Name string `json:"name,omitempty"`
  3864  	// ServiceDirectory: Configuration for a Service Directory
  3865  	// (https://cloud.google.com/service-directory) service.
  3866  	ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
  3867  	// Timeout: Webhook execution timeout. Execution is considered failed if
  3868  	// Dialogflow doesn't receive a response from webhook at the end of the timeout
  3869  	// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
  3870  	Timeout string `json:"timeout,omitempty"`
  3871  	// ForceSendFields is a list of field names (e.g. "Disabled") to
  3872  	// unconditionally include in API requests. By default, fields with empty or
  3873  	// default values are omitted from API requests. See
  3874  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3875  	// details.
  3876  	ForceSendFields []string `json:"-"`
  3877  	// NullFields is a list of field names (e.g. "Disabled") to include in API
  3878  	// requests with the JSON null value. By default, fields with empty values are
  3879  	// omitted from API requests. See
  3880  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3881  	NullFields []string `json:"-"`
  3882  }
  3883  
  3884  func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
  3885  	type NoMethod GoogleCloudDialogflowCxV3Webhook
  3886  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3887  }
  3888  
  3889  // GoogleCloudDialogflowCxV3WebhookGenericWebService: Represents configuration
  3890  // for a generic web service.
  3891  type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
  3892  	// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates
  3893  	// (in DER format) for HTTPS verification. This overrides the default SSL trust
  3894  	// store. If this is empty or unspecified, Dialogflow will use Google's default
  3895  	// trust store to verify certificates. N.B. Make sure the HTTPS server
  3896  	// certificates are signed with "subject alt name". For instance a certificate
  3897  	// can be self-signed using the following command, ``` openssl x509 -req -days
  3898  	// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \
  3899  	// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") ```
  3900  	AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
  3901  	// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard
  3902  	// webhook always uses POST.
  3903  	//
  3904  	// Possible values:
  3905  	//   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.
  3906  	//   "POST" - HTTP POST Method.
  3907  	//   "GET" - HTTP GET Method.
  3908  	//   "HEAD" - HTTP HEAD Method.
  3909  	//   "PUT" - HTTP PUT Method.
  3910  	//   "DELETE" - HTTP DELETE Method.
  3911  	//   "PATCH" - HTTP PATCH Method.
  3912  	//   "OPTIONS" - HTTP OPTIONS Method.
  3913  	HttpMethod string `json:"httpMethod,omitempty"`
  3914  	// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,
  3915  	// Dialogflow will initiate the OAuth client credential flow to exchange an
  3916  	// access token from the 3rd party platform and put it in the auth header.
  3917  	OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
  3918  	// ParameterMapping: Optional. Maps the values extracted from specific fields
  3919  	// of the flexible webhook response into session parameters. - Key: session
  3920  	// parameter name - Value: field path in the webhook response
  3921  	ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
  3922  	// Password: The password for HTTP Basic authentication.
  3923  	Password string `json:"password,omitempty"`
  3924  	// RequestBody: Optional. Defines a custom JSON object as request body to send
  3925  	// to flexible webhook.
  3926  	RequestBody string `json:"requestBody,omitempty"`
  3927  	// RequestHeaders: The HTTP request headers to send together with webhook
  3928  	// requests.
  3929  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
  3930  	// ServiceAgentAuth: Optional. Indicate the auth token type generated from the
  3931  	// Diglogflow service agent
  3932  	// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
  3933  	// The generated token is sent in the Authorization header.
  3934  	//
  3935  	// Possible values:
  3936  	//   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.
  3937  	// Default to ID_TOKEN.
  3938  	//   "NONE" - No token used.
  3939  	//   "ID_TOKEN" - Use [ID
  3940  	// token](https://cloud.google.com/docs/authentication/token-types#id)
  3941  	// generated from service agent. This can be used to access Cloud Function and
  3942  	// Cloud Run after you grant Invoker role to
  3943  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  3944  	//   "ACCESS_TOKEN" - Use [access
  3945  	// token](https://cloud.google.com/docs/authentication/token-types#access)
  3946  	// generated from service agent. This can be used to access other Google Cloud
  3947  	// APIs after you grant required roles to
  3948  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  3949  	ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
  3950  	// Uri: Required. The webhook URI for receiving POST requests. It must use
  3951  	// https protocol.
  3952  	Uri string `json:"uri,omitempty"`
  3953  	// Username: The user name for HTTP Basic authentication.
  3954  	Username string `json:"username,omitempty"`
  3955  	// WebhookType: Optional. Type of the webhook.
  3956  	//
  3957  	// Possible values:
  3958  	//   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.
  3959  	//   "STANDARD" - Represents a standard webhook.
  3960  	//   "FLEXIBLE" - Represents a flexible webhook.
  3961  	WebhookType string `json:"webhookType,omitempty"`
  3962  	// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to
  3963  	// unconditionally include in API requests. By default, fields with empty or
  3964  	// default values are omitted from API requests. See
  3965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3966  	// details.
  3967  	ForceSendFields []string `json:"-"`
  3968  	// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in
  3969  	// API requests with the JSON null value. By default, fields with empty values
  3970  	// are omitted from API requests. See
  3971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3972  	NullFields []string `json:"-"`
  3973  }
  3974  
  3975  func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
  3976  	type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
  3977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3978  }
  3979  
  3980  // GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig: Represents
  3981  // configuration of OAuth client credential flow for 3rd party API
  3982  // authentication.
  3983  type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
  3984  	// ClientId: Required. The client ID provided by the 3rd party platform.
  3985  	ClientId string `json:"clientId,omitempty"`
  3986  	// ClientSecret: Required. The client secret provided by the 3rd party
  3987  	// platform.
  3988  	ClientSecret string `json:"clientSecret,omitempty"`
  3989  	// Scopes: Optional. The OAuth scopes to grant.
  3990  	Scopes []string `json:"scopes,omitempty"`
  3991  	// TokenEndpoint: Required. The token endpoint provided by the 3rd party
  3992  	// platform to exchange an access token.
  3993  	TokenEndpoint string `json:"tokenEndpoint,omitempty"`
  3994  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  3995  	// unconditionally include in API requests. By default, fields with empty or
  3996  	// default values are omitted from API requests. See
  3997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3998  	// details.
  3999  	ForceSendFields []string `json:"-"`
  4000  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  4001  	// requests with the JSON null value. By default, fields with empty values are
  4002  	// omitted from API requests. See
  4003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4004  	NullFields []string `json:"-"`
  4005  }
  4006  
  4007  func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
  4008  	type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
  4009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4010  }
  4011  
  4012  // GoogleCloudDialogflowCxV3WebhookRequest: The request message for a webhook
  4013  // call. The request is sent as a JSON object and the field names will be
  4014  // presented in camel cases. You may see undocumented fields in an actual
  4015  // request. These fields are used internally by Dialogflow and should be
  4016  // ignored.
  4017  type GoogleCloudDialogflowCxV3WebhookRequest struct {
  4018  	// DetectIntentResponseId: Always present. The unique identifier of the
  4019  	// DetectIntentResponse that will be returned to the API caller.
  4020  	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
  4021  	// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF
  4022  	// digits.
  4023  	DtmfDigits string `json:"dtmfDigits,omitempty"`
  4024  	// FulfillmentInfo: Always present. Information about the fulfillment that
  4025  	// triggered this webhook call.
  4026  	FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
  4027  	// IntentInfo: Information about the last matched intent.
  4028  	IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
  4029  	// LanguageCode: The language code specified in the original request.
  4030  	LanguageCode string `json:"languageCode,omitempty"`
  4031  	// LanguageInfo: Information about the language of the request.
  4032  	LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
  4033  	// Messages: The list of rich message responses to present to the user. Webhook
  4034  	// can choose to append or replace this list in
  4035  	// WebhookResponse.fulfillment_response;
  4036  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  4037  	// PageInfo: Information about page status.
  4038  	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
  4039  	// Payload: Custom data set in QueryParameters.payload.
  4040  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  4041  	// SentimentAnalysisResult: The sentiment analysis result of the current user
  4042  	// request. The field is filled when sentiment analysis is configured to be
  4043  	// enabled for the request.
  4044  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  4045  	// SessionInfo: Information about session status.
  4046  	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
  4047  	// Text: If natural language text was provided as input, this field will
  4048  	// contain a copy of the text.
  4049  	Text string `json:"text,omitempty"`
  4050  	// Transcript: If natural language speech audio was provided as input, this
  4051  	// field will contain the transcript for the audio.
  4052  	Transcript string `json:"transcript,omitempty"`
  4053  	// TriggerEvent: If an event was provided as input, this field will contain the
  4054  	// name of the event.
  4055  	TriggerEvent string `json:"triggerEvent,omitempty"`
  4056  	// TriggerIntent: If an intent was provided as input, this field will contain a
  4057  	// copy of the intent identifier. Format:
  4058  	// `projects//locations//agents//intents/`.
  4059  	TriggerIntent string `json:"triggerIntent,omitempty"`
  4060  	// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to
  4061  	// unconditionally include in API requests. By default, fields with empty or
  4062  	// default values are omitted from API requests. See
  4063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4064  	// details.
  4065  	ForceSendFields []string `json:"-"`
  4066  	// NullFields is a list of field names (e.g. "DetectIntentResponseId") to
  4067  	// include in API requests with the JSON null value. By default, fields with
  4068  	// empty values are omitted from API requests. See
  4069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4070  	NullFields []string `json:"-"`
  4071  }
  4072  
  4073  func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
  4074  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
  4075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4076  }
  4077  
  4078  // GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
  4079  // fulfillment information communicated to the webhook.
  4080  type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
  4081  	// Tag: Always present. The value of the Fulfillment.tag field will be
  4082  	// populated in this field by Dialogflow when the associated webhook is called.
  4083  	// The tag is typically used by the webhook service to identify which
  4084  	// fulfillment is being called, but it could be used for other purposes.
  4085  	Tag string `json:"tag,omitempty"`
  4086  	// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally
  4087  	// include in API requests. By default, fields with empty or default values are
  4088  	// omitted from API requests. See
  4089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4090  	// details.
  4091  	ForceSendFields []string `json:"-"`
  4092  	// NullFields is a list of field names (e.g. "Tag") to include in API requests
  4093  	// with the JSON null value. By default, fields with empty values are omitted
  4094  	// from API requests. See
  4095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4096  	NullFields []string `json:"-"`
  4097  }
  4098  
  4099  func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
  4100  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
  4101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4102  }
  4103  
  4104  // GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
  4105  // information communicated to the webhook.
  4106  type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
  4107  	// Confidence: The confidence of the matched intent. Values range from 0.0
  4108  	// (completely uncertain) to 1.0 (completely certain).
  4109  	Confidence float64 `json:"confidence,omitempty"`
  4110  	// DisplayName: Always present. The display name of the last matched intent.
  4111  	DisplayName string `json:"displayName,omitempty"`
  4112  	// LastMatchedIntent: Always present. The unique identifier of the last matched
  4113  	// intent. Format: `projects//locations//agents//intents/`.
  4114  	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
  4115  	// Parameters: Parameters identified as a result of intent matching. This is a
  4116  	// map of the name of the identified parameter to the value of the parameter
  4117  	// identified from the user's utterance. All parameters defined in the matched
  4118  	// intent that are identified will be surfaced here.
  4119  	Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
  4120  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  4121  	// unconditionally include in API requests. By default, fields with empty or
  4122  	// default values are omitted from API requests. See
  4123  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4124  	// details.
  4125  	ForceSendFields []string `json:"-"`
  4126  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  4127  	// requests with the JSON null value. By default, fields with empty values are
  4128  	// omitted from API requests. See
  4129  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4130  	NullFields []string `json:"-"`
  4131  }
  4132  
  4133  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
  4134  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
  4135  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4136  }
  4137  
  4138  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
  4139  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
  4140  	var s1 struct {
  4141  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4142  		*NoMethod
  4143  	}
  4144  	s1.NoMethod = (*NoMethod)(s)
  4145  	if err := json.Unmarshal(data, &s1); err != nil {
  4146  		return err
  4147  	}
  4148  	s.Confidence = float64(s1.Confidence)
  4149  	return nil
  4150  }
  4151  
  4152  // GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
  4153  // Represents a value for an intent parameter.
  4154  type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
  4155  	// OriginalValue: Always present. Original text value extracted from user
  4156  	// utterance.
  4157  	OriginalValue string `json:"originalValue,omitempty"`
  4158  	// ResolvedValue: Always present. Structured value for the parameter extracted
  4159  	// from user utterance.
  4160  	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
  4161  	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
  4162  	// unconditionally include in API requests. By default, fields with empty or
  4163  	// default values are omitted from API requests. See
  4164  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4165  	// details.
  4166  	ForceSendFields []string `json:"-"`
  4167  	// NullFields is a list of field names (e.g. "OriginalValue") to include in API
  4168  	// requests with the JSON null value. By default, fields with empty values are
  4169  	// omitted from API requests. See
  4170  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4171  	NullFields []string `json:"-"`
  4172  }
  4173  
  4174  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
  4175  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
  4176  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4177  }
  4178  
  4179  // GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult: Represents
  4180  // the result of sentiment analysis.
  4181  type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
  4182  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
  4183  	// the absolute magnitude of sentiment, regardless of score (positive or
  4184  	// negative).
  4185  	Magnitude float64 `json:"magnitude,omitempty"`
  4186  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
  4187  	// sentiment).
  4188  	Score float64 `json:"score,omitempty"`
  4189  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
  4190  	// unconditionally include in API requests. By default, fields with empty or
  4191  	// default values are omitted from API requests. See
  4192  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4193  	// details.
  4194  	ForceSendFields []string `json:"-"`
  4195  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
  4196  	// requests with the JSON null value. By default, fields with empty values are
  4197  	// omitted from API requests. See
  4198  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4199  	NullFields []string `json:"-"`
  4200  }
  4201  
  4202  func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
  4203  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
  4204  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4205  }
  4206  
  4207  func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
  4208  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
  4209  	var s1 struct {
  4210  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  4211  		Score     gensupport.JSONFloat64 `json:"score"`
  4212  		*NoMethod
  4213  	}
  4214  	s1.NoMethod = (*NoMethod)(s)
  4215  	if err := json.Unmarshal(data, &s1); err != nil {
  4216  		return err
  4217  	}
  4218  	s.Magnitude = float64(s1.Magnitude)
  4219  	s.Score = float64(s1.Score)
  4220  	return nil
  4221  }
  4222  
  4223  // GoogleCloudDialogflowCxV3WebhookResponse: The response message for a webhook
  4224  // call.
  4225  type GoogleCloudDialogflowCxV3WebhookResponse struct {
  4226  	// FulfillmentResponse: The fulfillment response to send to the user. This
  4227  	// field can be omitted by the webhook if it does not intend to send any
  4228  	// response to the user.
  4229  	FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
  4230  	// PageInfo: Information about page status. This field can be omitted by the
  4231  	// webhook if it does not intend to modify page status.
  4232  	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
  4233  	// Payload: Value to append directly to QueryResult.webhook_payloads.
  4234  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  4235  	// SessionInfo: Information about session status. This field can be omitted by
  4236  	// the webhook if it does not intend to modify session status.
  4237  	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
  4238  	// TargetFlow: The target flow to transition to. Format:
  4239  	// `projects//locations//agents//flows/`.
  4240  	TargetFlow string `json:"targetFlow,omitempty"`
  4241  	// TargetPage: The target page to transition to. Format:
  4242  	// `projects//locations//agents//flows//pages/`.
  4243  	TargetPage string `json:"targetPage,omitempty"`
  4244  	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to
  4245  	// unconditionally include in API requests. By default, fields with empty or
  4246  	// default values are omitted from API requests. See
  4247  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4248  	// details.
  4249  	ForceSendFields []string `json:"-"`
  4250  	// NullFields is a list of field names (e.g. "FulfillmentResponse") to include
  4251  	// in API requests with the JSON null value. By default, fields with empty
  4252  	// values are omitted from API requests. See
  4253  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4254  	NullFields []string `json:"-"`
  4255  }
  4256  
  4257  func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
  4258  	type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
  4259  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4260  }
  4261  
  4262  // GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse: Represents a
  4263  // fulfillment response to the user.
  4264  type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
  4265  	// MergeBehavior: Merge behavior for `messages`.
  4266  	//
  4267  	// Possible values:
  4268  	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used.
  4269  	//   "APPEND" - `messages` will be appended to the list of messages waiting to
  4270  	// be sent to the user.
  4271  	//   "REPLACE" - `messages` will replace the list of messages waiting to be
  4272  	// sent to the user.
  4273  	MergeBehavior string `json:"mergeBehavior,omitempty"`
  4274  	// Messages: The list of rich message responses to present to the user.
  4275  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  4276  	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
  4277  	// unconditionally include in API requests. By default, fields with empty or
  4278  	// default values are omitted from API requests. See
  4279  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4280  	// details.
  4281  	ForceSendFields []string `json:"-"`
  4282  	// NullFields is a list of field names (e.g. "MergeBehavior") to include in API
  4283  	// requests with the JSON null value. By default, fields with empty values are
  4284  	// omitted from API requests. See
  4285  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4286  	NullFields []string `json:"-"`
  4287  }
  4288  
  4289  func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
  4290  	type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
  4291  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4292  }
  4293  
  4294  // GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig: Represents
  4295  // configuration for a Service Directory
  4296  // (https://cloud.google.com/service-directory) service.
  4297  type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
  4298  	// GenericWebService: Generic Service configuration of this webhook.
  4299  	GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
  4300  	// Service: Required. The name of Service Directory
  4301  	// (https://cloud.google.com/service-directory) service. Format:
  4302  	// `projects//locations//namespaces//services/`. `Location ID` of the service
  4303  	// directory must be the same as the location of the agent.
  4304  	Service string `json:"service,omitempty"`
  4305  	// ForceSendFields is a list of field names (e.g. "GenericWebService") to
  4306  	// unconditionally include in API requests. By default, fields with empty or
  4307  	// default values are omitted from API requests. See
  4308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4309  	// details.
  4310  	ForceSendFields []string `json:"-"`
  4311  	// NullFields is a list of field names (e.g. "GenericWebService") to include in
  4312  	// API requests with the JSON null value. By default, fields with empty values
  4313  	// are omitted from API requests. See
  4314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4315  	NullFields []string `json:"-"`
  4316  }
  4317  
  4318  func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
  4319  	type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
  4320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4321  }
  4322  
  4323  // GoogleCloudDialogflowCxV3beta1AdvancedSettings: Hierarchical advanced
  4324  // settings for agent/flow/page/fulfillment/parameter. Settings exposed at
  4325  // lower level overrides the settings exposed at higher level. Overriding
  4326  // occurs at the sub-setting level. For example, the
  4327  // playback_interruption_settings at fulfillment level only overrides the
  4328  // playback_interruption_settings at the agent level, leaving other settings at
  4329  // the agent level unchanged. DTMF settings does not override each other. DTMF
  4330  // settings set at different levels define DTMF detections running in parallel.
  4331  // Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
  4332  type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
  4333  	// AudioExportGcsDestination: If present, incoming audio is exported by
  4334  	// Dialogflow to the configured Google Cloud Storage destination. Exposed at
  4335  	// the following levels: - Agent level - Flow level
  4336  	AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
  4337  	// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent
  4338  	// level - Flow level - Page level - Parameter level.
  4339  	DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
  4340  	// LoggingSettings: Settings for logging. Settings for Dialogflow History,
  4341  	// Contact Center messages, StackDriver logs, and speech logging. Exposed at
  4342  	// the following levels: - Agent level.
  4343  	LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
  4344  	// SpeechSettings: Settings for speech to text detection. Exposed at the
  4345  	// following levels: - Agent level - Flow level - Page level - Parameter level
  4346  	SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
  4347  	// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")
  4348  	// to unconditionally include in API requests. By default, fields with empty or
  4349  	// default values are omitted from API requests. See
  4350  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4351  	// details.
  4352  	ForceSendFields []string `json:"-"`
  4353  	// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to
  4354  	// include in API requests with the JSON null value. By default, fields with
  4355  	// empty values are omitted from API requests. See
  4356  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4357  	NullFields []string `json:"-"`
  4358  }
  4359  
  4360  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
  4361  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
  4362  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4363  }
  4364  
  4365  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings: Define behaviors
  4366  // for DTMF (dual tone multi frequency).
  4367  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
  4368  	// Enabled: If true, incoming audio is processed for DTMF (dual tone multi
  4369  	// frequency) events. For example, if the caller presses a button on their
  4370  	// telephone keypad and DTMF processing is enabled, Dialogflow will detect the
  4371  	// event (e.g. a "3" was pressed) in the incoming audio and pass the event to
  4372  	// the bot to drive business logic (e.g. when 3 is pressed, return the account
  4373  	// balance).
  4374  	Enabled bool `json:"enabled,omitempty"`
  4375  	// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input
  4376  	// to regex.
  4377  	EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
  4378  	// FinishDigit: The digit that terminates a DTMF digit sequence.
  4379  	FinishDigit string `json:"finishDigit,omitempty"`
  4380  	// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf
  4381  	// input to regex.
  4382  	InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
  4383  	// MaxDigits: Max length of DTMF digits.
  4384  	MaxDigits int64 `json:"maxDigits,omitempty"`
  4385  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  4386  	// include in API requests. By default, fields with empty or default values are
  4387  	// omitted from API requests. See
  4388  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4389  	// details.
  4390  	ForceSendFields []string `json:"-"`
  4391  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  4392  	// requests with the JSON null value. By default, fields with empty values are
  4393  	// omitted from API requests. See
  4394  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4395  	NullFields []string `json:"-"`
  4396  }
  4397  
  4398  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
  4399  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
  4400  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4401  }
  4402  
  4403  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define
  4404  // behaviors on logging.
  4405  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
  4406  	// EnableInteractionLogging: If true, DF Interaction logging is currently
  4407  	// enabled.
  4408  	EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
  4409  	// EnableStackdriverLogging: If true, StackDriver logging is currently enabled.
  4410  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
  4411  	// ForceSendFields is a list of field names (e.g. "EnableInteractionLogging")
  4412  	// to unconditionally include in API requests. By default, fields with empty or
  4413  	// default values are omitted from API requests. See
  4414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4415  	// details.
  4416  	ForceSendFields []string `json:"-"`
  4417  	// NullFields is a list of field names (e.g. "EnableInteractionLogging") to
  4418  	// include in API requests with the JSON null value. By default, fields with
  4419  	// empty values are omitted from API requests. See
  4420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4421  	NullFields []string `json:"-"`
  4422  }
  4423  
  4424  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
  4425  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
  4426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4427  }
  4428  
  4429  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings: Define
  4430  // behaviors of speech to text detection.
  4431  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
  4432  	// EndpointerSensitivity: Sensitivity of the speech model that detects the end
  4433  	// of speech. Scale from 0 to 100.
  4434  	EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
  4435  	// Models: Mapping from language to Speech-to-Text model. The mapped
  4436  	// Speech-to-Text model will be selected for requests from its corresponding
  4437  	// language. For more information, see Speech models
  4438  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  4439  	Models map[string]string `json:"models,omitempty"`
  4440  	// NoSpeechTimeout: Timeout before detecting no speech.
  4441  	NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
  4442  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
  4443  	// endpointer sensitivy as seconds of timeout value.
  4444  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
  4445  	// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to
  4446  	// unconditionally include in API requests. By default, fields with empty or
  4447  	// default values are omitted from API requests. See
  4448  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4449  	// details.
  4450  	ForceSendFields []string `json:"-"`
  4451  	// NullFields is a list of field names (e.g. "EndpointerSensitivity") to
  4452  	// include in API requests with the JSON null value. By default, fields with
  4453  	// empty values are omitted from API requests. See
  4454  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4455  	NullFields []string `json:"-"`
  4456  }
  4457  
  4458  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
  4459  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
  4460  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4461  }
  4462  
  4463  // GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural speech
  4464  // audio to be processed.
  4465  type GoogleCloudDialogflowCxV3beta1AudioInput struct {
  4466  	// Audio: The natural language speech audio to be processed. A single request
  4467  	// can contain up to 2 minutes of speech audio data. The transcribed text
  4468  	// cannot contain more than 256 bytes. For non-streaming audio detect intent,
  4469  	// both `config` and `audio` must be provided. For streaming audio detect
  4470  	// intent, `config` must be provided in the first request and `audio` must be
  4471  	// provided in all following requests.
  4472  	Audio string `json:"audio,omitempty"`
  4473  	// Config: Required. Instructs the speech recognizer how to process the speech
  4474  	// audio.
  4475  	Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
  4476  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  4477  	// include in API requests. By default, fields with empty or default values are
  4478  	// omitted from API requests. See
  4479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4480  	// details.
  4481  	ForceSendFields []string `json:"-"`
  4482  	// NullFields is a list of field names (e.g. "Audio") to include in API
  4483  	// requests with the JSON null value. By default, fields with empty values are
  4484  	// omitted from API requests. See
  4485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4486  	NullFields []string `json:"-"`
  4487  }
  4488  
  4489  func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
  4490  	type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
  4491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4492  }
  4493  
  4494  // GoogleCloudDialogflowCxV3beta1BargeInConfig: Configuration of the barge-in
  4495  // behavior. Barge-in instructs the API to return a detected utterance at a
  4496  // proper time while the client is playing back the response audio from a
  4497  // previous request. When the client sees the utterance, it should stop the
  4498  // playback and immediately get ready for receiving the responses for the
  4499  // current request. The barge-in handling requires the client to start
  4500  // streaming audio input as soon as it starts playing back the audio from the
  4501  // previous response. The playback is modeled into two phases: * No barge-in
  4502  // phase: which goes first and during which speech detection should not be
  4503  // carried out. * Barge-in phase: which follows the no barge-in phase and
  4504  // during which the API starts speech detection and may inform the client that
  4505  // an utterance has been detected. Note that no-speech event is not expected in
  4506  // this phase. The client provides this configuration in terms of the durations
  4507  // of those two phases. The durations are measured in terms of the audio length
  4508  // from the the start of the input audio. No-speech event is a response with
  4509  // END_OF_UTTERANCE without any transcript following up.
  4510  type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
  4511  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
  4512  	// beginning of the input audio.
  4513  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
  4514  	// TotalDuration: Total duration for the playback at the beginning of the input
  4515  	// audio.
  4516  	TotalDuration string `json:"totalDuration,omitempty"`
  4517  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to
  4518  	// unconditionally include in API requests. By default, fields with empty or
  4519  	// default values are omitted from API requests. See
  4520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4521  	// details.
  4522  	ForceSendFields []string `json:"-"`
  4523  	// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in
  4524  	// API requests with the JSON null value. By default, fields with empty values
  4525  	// are omitted from API requests. See
  4526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4527  	NullFields []string `json:"-"`
  4528  }
  4529  
  4530  func (s *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
  4531  	type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
  4532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4533  }
  4534  
  4535  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata returned
  4536  // for the TestCases.BatchRunTestCases long running operation.
  4537  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
  4538  	// Errors: The test errors.
  4539  	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
  4540  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  4541  	// include in API requests. By default, fields with empty or default values are
  4542  	// omitted from API requests. See
  4543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4544  	// details.
  4545  	ForceSendFields []string `json:"-"`
  4546  	// NullFields is a list of field names (e.g. "Errors") to include in API
  4547  	// requests with the JSON null value. By default, fields with empty values are
  4548  	// omitted from API requests. See
  4549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4550  	NullFields []string `json:"-"`
  4551  }
  4552  
  4553  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
  4554  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
  4555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4556  }
  4557  
  4558  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The response
  4559  // message for TestCases.BatchRunTestCases.
  4560  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
  4561  	// Results: The test case results. The detailed conversation turns are empty in
  4562  	// this response.
  4563  	Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
  4564  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
  4565  	// include in API requests. By default, fields with empty or default values are
  4566  	// omitted from API requests. See
  4567  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4568  	// details.
  4569  	ForceSendFields []string `json:"-"`
  4570  	// NullFields is a list of field names (e.g. "Results") to include in API
  4571  	// requests with the JSON null value. By default, fields with empty values are
  4572  	// omitted from API requests. See
  4573  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4574  	NullFields []string `json:"-"`
  4575  }
  4576  
  4577  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
  4578  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
  4579  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4580  }
  4581  
  4582  // GoogleCloudDialogflowCxV3beta1ContinuousTestResult: Represents a result from
  4583  // running a test case in an agent environment.
  4584  type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
  4585  	// Name: The resource name for the continuous test result. Format:
  4586  	// `projects//locations//agents//environments//continuousTestResults/`.
  4587  	Name string `json:"name,omitempty"`
  4588  	// Result: The result of this continuous test run, i.e. whether all the tests
  4589  	// in this continuous test run pass or not.
  4590  	//
  4591  	// Possible values:
  4592  	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be
  4593  	// used.
  4594  	//   "PASSED" - All the tests passed.
  4595  	//   "FAILED" - At least one test did not pass.
  4596  	Result string `json:"result,omitempty"`
  4597  	// RunTime: Time when the continuous testing run starts.
  4598  	RunTime string `json:"runTime,omitempty"`
  4599  	// TestCaseResults: A list of individual test case results names in this
  4600  	// continuous test run.
  4601  	TestCaseResults []string `json:"testCaseResults,omitempty"`
  4602  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4603  	// include in API requests. By default, fields with empty or default values are
  4604  	// omitted from API requests. See
  4605  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4606  	// details.
  4607  	ForceSendFields []string `json:"-"`
  4608  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4609  	// with the JSON null value. By default, fields with empty values are omitted
  4610  	// from API requests. See
  4611  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4612  	NullFields []string `json:"-"`
  4613  }
  4614  
  4615  func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
  4616  	type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
  4617  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4618  }
  4619  
  4620  // GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is used to
  4621  // hold all the Conversation Signals data, which will be converted to JSON and
  4622  // exported to BigQuery.
  4623  type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
  4624  	// TurnSignals: Required. Turn signals for the current turn.
  4625  	TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
  4626  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
  4627  	// unconditionally include in API requests. By default, fields with empty or
  4628  	// default values are omitted from API requests. See
  4629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4630  	// details.
  4631  	ForceSendFields []string `json:"-"`
  4632  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
  4633  	// requests with the JSON null value. By default, fields with empty values are
  4634  	// omitted from API requests. See
  4635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4636  	NullFields []string `json:"-"`
  4637  }
  4638  
  4639  func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
  4640  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
  4641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4642  }
  4643  
  4644  // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction between a
  4645  // human and virtual agent. The human provides some input and the virtual agent
  4646  // provides a response.
  4647  type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
  4648  	// UserInput: The user input.
  4649  	UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
  4650  	// VirtualAgentOutput: The virtual agent output.
  4651  	VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
  4652  	// ForceSendFields is a list of field names (e.g. "UserInput") to
  4653  	// unconditionally include in API requests. By default, fields with empty or
  4654  	// default values are omitted from API requests. See
  4655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4656  	// details.
  4657  	ForceSendFields []string `json:"-"`
  4658  	// NullFields is a list of field names (e.g. "UserInput") to include in API
  4659  	// requests with the JSON null value. By default, fields with empty values are
  4660  	// omitted from API requests. See
  4661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4662  	NullFields []string `json:"-"`
  4663  }
  4664  
  4665  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
  4666  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
  4667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4668  }
  4669  
  4670  // GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input from the
  4671  // human user.
  4672  type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
  4673  	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
  4674  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
  4675  	// InjectedParameters: Parameters that need to be injected into the
  4676  	// conversation during intent detection.
  4677  	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
  4678  	// Input: Supports text input, event input, dtmf input in the test case.
  4679  	Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
  4680  	// IsWebhookEnabled: If webhooks should be allowed to trigger in response to
  4681  	// the user utterance. Often if parameters are injected, webhooks should not be
  4682  	// enabled.
  4683  	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
  4684  	// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  4685  	// unconditionally include in API requests. By default, fields with empty or
  4686  	// default values are omitted from API requests. See
  4687  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4688  	// details.
  4689  	ForceSendFields []string `json:"-"`
  4690  	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  4691  	// include in API requests with the JSON null value. By default, fields with
  4692  	// empty values are omitted from API requests. See
  4693  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4694  	NullFields []string `json:"-"`
  4695  }
  4696  
  4697  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
  4698  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
  4699  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4700  }
  4701  
  4702  // GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The output
  4703  // from the virtual agent.
  4704  type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
  4705  	// CurrentPage: The Page on which the utterance was spoken. Only name and
  4706  	// displayName will be set.
  4707  	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
  4708  	// DiagnosticInfo: Required. Input only. The diagnostic info output for the
  4709  	// turn. Required to calculate the testing coverage.
  4710  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  4711  	// Differences: Output only. If this is part of a result conversation turn, the
  4712  	// list of differences between the original run and the replay for this output,
  4713  	// if any.
  4714  	Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
  4715  	// SessionParameters: The session parameters available to the bot at this
  4716  	// point.
  4717  	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
  4718  	// Status: Response error from the agent in the test result. If set, other
  4719  	// output is empty.
  4720  	Status *GoogleRpcStatus `json:"status,omitempty"`
  4721  	// TextResponses: The text responses from the agent for the turn.
  4722  	TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
  4723  	// TriggeredIntent: The Intent that triggered the response. Only name and
  4724  	// displayName will be set.
  4725  	TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
  4726  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  4727  	// unconditionally include in API requests. By default, fields with empty or
  4728  	// default values are omitted from API requests. See
  4729  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4730  	// details.
  4731  	ForceSendFields []string `json:"-"`
  4732  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  4733  	// requests with the JSON null value. By default, fields with empty values are
  4734  	// omitted from API requests. See
  4735  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4736  	NullFields []string `json:"-"`
  4737  }
  4738  
  4739  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
  4740  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
  4741  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4742  }
  4743  
  4744  // GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata: Metadata for
  4745  // CreateDocument operation.
  4746  type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
  4747  	// GenericMetadata: The generic information of the operation.
  4748  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  4749  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  4750  	// unconditionally include in API requests. By default, fields with empty or
  4751  	// default values are omitted from API requests. See
  4752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4753  	// details.
  4754  	ForceSendFields []string `json:"-"`
  4755  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  4756  	// API requests with the JSON null value. By default, fields with empty values
  4757  	// are omitted from API requests. See
  4758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4759  	NullFields []string `json:"-"`
  4760  }
  4761  
  4762  func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  4763  	type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
  4764  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4765  }
  4766  
  4767  // GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata: Metadata
  4768  // associated with the long running operation for Versions.CreateVersion.
  4769  type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
  4770  	// Version: Name of the created version. Format:
  4771  	// `projects//locations//agents//flows//versions/`.
  4772  	Version string `json:"version,omitempty"`
  4773  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  4774  	// include in API requests. By default, fields with empty or default values are
  4775  	// omitted from API requests. See
  4776  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4777  	// details.
  4778  	ForceSendFields []string `json:"-"`
  4779  	// NullFields is a list of field names (e.g. "Version") to include in API
  4780  	// requests with the JSON null value. By default, fields with empty values are
  4781  	// omitted from API requests. See
  4782  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4783  	NullFields []string `json:"-"`
  4784  }
  4785  
  4786  func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
  4787  	type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
  4788  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4789  }
  4790  
  4791  // GoogleCloudDialogflowCxV3beta1DataStoreConnection: A data store connection.
  4792  // It represents a data store in Discovery Engine and the type of the contents
  4793  // it contains.
  4794  type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
  4795  	// DataStore: The full name of the referenced data store. Formats:
  4796  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4797  	// {data_store}`
  4798  	// `projects/{project}/locations/{location}/dataStores/{data_store}`
  4799  	DataStore string `json:"dataStore,omitempty"`
  4800  	// DataStoreType: The type of the connected data store.
  4801  	//
  4802  	// Possible values:
  4803  	//   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
  4804  	// the data store type is not specified, so it will not be used during search.
  4805  	//   "PUBLIC_WEB" - A data store that contains public web content.
  4806  	//   "UNSTRUCTURED" - A data store that contains unstructured private data.
  4807  	//   "STRUCTURED" - A data store that contains structured data (for example
  4808  	// FAQ).
  4809  	DataStoreType string `json:"dataStoreType,omitempty"`
  4810  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  4811  	// unconditionally include in API requests. By default, fields with empty or
  4812  	// default values are omitted from API requests. See
  4813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4814  	// details.
  4815  	ForceSendFields []string `json:"-"`
  4816  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  4817  	// requests with the JSON null value. By default, fields with empty values are
  4818  	// omitted from API requests. See
  4819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4820  	NullFields []string `json:"-"`
  4821  }
  4822  
  4823  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
  4824  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
  4825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4826  }
  4827  
  4828  // GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata: Metadata for
  4829  // DeleteDocument operation.
  4830  type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
  4831  	// GenericMetadata: The generic information of the operation.
  4832  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  4833  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  4834  	// unconditionally include in API requests. By default, fields with empty or
  4835  	// default values are omitted from API requests. See
  4836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4837  	// details.
  4838  	ForceSendFields []string `json:"-"`
  4839  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  4840  	// API requests with the JSON null value. By default, fields with empty values
  4841  	// are omitted from API requests. See
  4842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4843  	NullFields []string `json:"-"`
  4844  }
  4845  
  4846  func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  4847  	type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
  4848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4849  }
  4850  
  4851  // GoogleCloudDialogflowCxV3beta1DeployFlowMetadata: Metadata returned for the
  4852  // Environments.DeployFlow long running operation.
  4853  type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
  4854  	// TestErrors: Errors of running deployment tests.
  4855  	TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
  4856  	// ForceSendFields is a list of field names (e.g. "TestErrors") to
  4857  	// unconditionally include in API requests. By default, fields with empty or
  4858  	// default values are omitted from API requests. See
  4859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4860  	// details.
  4861  	ForceSendFields []string `json:"-"`
  4862  	// NullFields is a list of field names (e.g. "TestErrors") to include in API
  4863  	// requests with the JSON null value. By default, fields with empty values are
  4864  	// omitted from API requests. See
  4865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4866  	NullFields []string `json:"-"`
  4867  }
  4868  
  4869  func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
  4870  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
  4871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4872  }
  4873  
  4874  // GoogleCloudDialogflowCxV3beta1DeployFlowResponse: The response message for
  4875  // Environments.DeployFlow.
  4876  type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
  4877  	// Deployment: The name of the flow version deployment. Format:
  4878  	// `projects//locations//agents// environments//deployments/`.
  4879  	Deployment string `json:"deployment,omitempty"`
  4880  	// Environment: The updated environment where the flow is deployed.
  4881  	Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
  4882  	// ForceSendFields is a list of field names (e.g. "Deployment") to
  4883  	// unconditionally include in API requests. By default, fields with empty or
  4884  	// default values are omitted from API requests. See
  4885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4886  	// details.
  4887  	ForceSendFields []string `json:"-"`
  4888  	// NullFields is a list of field names (e.g. "Deployment") to include in API
  4889  	// requests with the JSON null value. By default, fields with empty values are
  4890  	// omitted from API requests. See
  4891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4892  	NullFields []string `json:"-"`
  4893  }
  4894  
  4895  func (s *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
  4896  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
  4897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4898  }
  4899  
  4900  // GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for dtmf
  4901  // event.
  4902  type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
  4903  	// Digits: The dtmf digits.
  4904  	Digits string `json:"digits,omitempty"`
  4905  	// FinishDigit: The finish digit (if any).
  4906  	FinishDigit string `json:"finishDigit,omitempty"`
  4907  	// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally
  4908  	// include in API requests. By default, fields with empty or default values are
  4909  	// omitted from API requests. See
  4910  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4911  	// details.
  4912  	ForceSendFields []string `json:"-"`
  4913  	// NullFields is a list of field names (e.g. "Digits") to include in API
  4914  	// requests with the JSON null value. By default, fields with empty values are
  4915  	// omitted from API requests. See
  4916  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4917  	NullFields []string `json:"-"`
  4918  }
  4919  
  4920  func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
  4921  	type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
  4922  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4923  }
  4924  
  4925  // GoogleCloudDialogflowCxV3beta1Environment: Represents an environment for an
  4926  // agent. You can create multiple versions of your agent and publish them to
  4927  // separate environments. When you edit an agent, you are editing the draft
  4928  // agent. At any point, you can save the draft agent as an agent version, which
  4929  // is an immutable snapshot of your agent. When you save the draft agent, it is
  4930  // published to the default environment. When you create agent versions, you
  4931  // can publish them to custom environments. You can create a variety of custom
  4932  // environments for testing, development, production, etc.
  4933  type GoogleCloudDialogflowCxV3beta1Environment struct {
  4934  	// Description: The human-readable description of the environment. The maximum
  4935  	// length is 500 characters. If exceeded, the request is rejected.
  4936  	Description string `json:"description,omitempty"`
  4937  	// DisplayName: Required. The human-readable name of the environment (unique in
  4938  	// an agent). Limit of 64 characters.
  4939  	DisplayName string `json:"displayName,omitempty"`
  4940  	// Name: The name of the environment. Format:
  4941  	// `projects//locations//agents//environments/`.
  4942  	Name string `json:"name,omitempty"`
  4943  	// TestCasesConfig: The test cases config for continuous tests of this
  4944  	// environment.
  4945  	TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
  4946  	// UpdateTime: Output only. Update time of this environment.
  4947  	UpdateTime string `json:"updateTime,omitempty"`
  4948  	// VersionConfigs: A list of configurations for flow versions. You should
  4949  	// include version configs for all flows that are reachable from `Start Flow`
  4950  	// in the agent. Otherwise, an error will be returned.
  4951  	VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
  4952  	// WebhookConfig: The webhook configuration for this environment.
  4953  	WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
  4954  	// ForceSendFields is a list of field names (e.g. "Description") to
  4955  	// unconditionally include in API requests. By default, fields with empty or
  4956  	// default values are omitted from API requests. See
  4957  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4958  	// details.
  4959  	ForceSendFields []string `json:"-"`
  4960  	// NullFields is a list of field names (e.g. "Description") to include in API
  4961  	// requests with the JSON null value. By default, fields with empty values are
  4962  	// omitted from API requests. See
  4963  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4964  	NullFields []string `json:"-"`
  4965  }
  4966  
  4967  func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
  4968  	type NoMethod GoogleCloudDialogflowCxV3beta1Environment
  4969  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4970  }
  4971  
  4972  // GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig: The configuration
  4973  // for continuous tests.
  4974  type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
  4975  	// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases
  4976  	// periodically. Default false. If set to true, run once a day.
  4977  	EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
  4978  	// EnablePredeploymentRun: Whether to run test cases in
  4979  	// TestCasesConfig.test_cases before deploying a flow version to the
  4980  	// environment. Default false.
  4981  	EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
  4982  	// TestCases: A list of test case names to run. They should be under the same
  4983  	// agent. Format of each test case name: `projects//locations/
  4984  	// /agents//testCases/`
  4985  	TestCases []string `json:"testCases,omitempty"`
  4986  	// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to
  4987  	// unconditionally include in API requests. By default, fields with empty or
  4988  	// default values are omitted from API requests. See
  4989  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4990  	// details.
  4991  	ForceSendFields []string `json:"-"`
  4992  	// NullFields is a list of field names (e.g. "EnableContinuousRun") to include
  4993  	// in API requests with the JSON null value. By default, fields with empty
  4994  	// values are omitted from API requests. See
  4995  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4996  	NullFields []string `json:"-"`
  4997  }
  4998  
  4999  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
  5000  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
  5001  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5002  }
  5003  
  5004  // GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig: Configuration for
  5005  // the version.
  5006  type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
  5007  	// Version: Required. Format: projects//locations//agents//flows//versions/.
  5008  	Version string `json:"version,omitempty"`
  5009  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  5010  	// include in API requests. By default, fields with empty or default values are
  5011  	// omitted from API requests. See
  5012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5013  	// details.
  5014  	ForceSendFields []string `json:"-"`
  5015  	// NullFields is a list of field names (e.g. "Version") to include in API
  5016  	// requests with the JSON null value. By default, fields with empty values are
  5017  	// omitted from API requests. See
  5018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5019  	NullFields []string `json:"-"`
  5020  }
  5021  
  5022  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
  5023  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
  5024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5025  }
  5026  
  5027  // GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig: Configuration for
  5028  // webhooks.
  5029  type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
  5030  	// WebhookOverrides: The list of webhooks to override for the agent
  5031  	// environment. The webhook must exist in the agent. You can override fields in
  5032  	// `generic_web_service` and `service_directory`.
  5033  	WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
  5034  	// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to
  5035  	// unconditionally include in API requests. By default, fields with empty or
  5036  	// default values are omitted from API requests. See
  5037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5038  	// details.
  5039  	ForceSendFields []string `json:"-"`
  5040  	// NullFields is a list of field names (e.g. "WebhookOverrides") to include in
  5041  	// API requests with the JSON null value. By default, fields with empty values
  5042  	// are omitted from API requests. See
  5043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5044  	NullFields []string `json:"-"`
  5045  }
  5046  
  5047  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
  5048  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
  5049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5050  }
  5051  
  5052  // GoogleCloudDialogflowCxV3beta1EventHandler: An event handler specifies an
  5053  // event that can be handled during a session. When the specified event
  5054  // happens, the following actions are taken in order: * If there is a
  5055  // `trigger_fulfillment` associated with the event, it will be called. * If
  5056  // there is a `target_page` associated with the event, the session will
  5057  // transition into the specified page. * If there is a `target_flow` associated
  5058  // with the event, the session will transition into the specified flow.
  5059  type GoogleCloudDialogflowCxV3beta1EventHandler struct {
  5060  	// Event: Required. The name of the event to handle.
  5061  	Event string `json:"event,omitempty"`
  5062  	// Name: Output only. The unique identifier of this event handler.
  5063  	Name string `json:"name,omitempty"`
  5064  	// TargetFlow: The target flow to transition to. Format:
  5065  	// `projects//locations//agents//flows/`.
  5066  	TargetFlow string `json:"targetFlow,omitempty"`
  5067  	// TargetPage: The target page to transition to. Format:
  5068  	// `projects//locations//agents//flows//pages/`.
  5069  	TargetPage string `json:"targetPage,omitempty"`
  5070  	// TriggerFulfillment: The fulfillment to call when the event occurs. Handling
  5071  	// webhook errors with a fulfillment enabled with webhook could cause infinite
  5072  	// loop. It is invalid to specify such fulfillment for a handler handling
  5073  	// webhooks.
  5074  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  5075  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  5076  	// include in API requests. By default, fields with empty or default values are
  5077  	// omitted from API requests. See
  5078  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5079  	// details.
  5080  	ForceSendFields []string `json:"-"`
  5081  	// NullFields is a list of field names (e.g. "Event") to include in API
  5082  	// requests with the JSON null value. By default, fields with empty values are
  5083  	// omitted from API requests. See
  5084  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5085  	NullFields []string `json:"-"`
  5086  }
  5087  
  5088  func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
  5089  	type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
  5090  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5091  }
  5092  
  5093  // GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to trigger.
  5094  type GoogleCloudDialogflowCxV3beta1EventInput struct {
  5095  	// Event: Name of the event.
  5096  	Event string `json:"event,omitempty"`
  5097  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  5098  	// include in API requests. By default, fields with empty or default values are
  5099  	// omitted from API requests. See
  5100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5101  	// details.
  5102  	ForceSendFields []string `json:"-"`
  5103  	// NullFields is a list of field names (e.g. "Event") to include in API
  5104  	// requests with the JSON null value. By default, fields with empty values are
  5105  	// omitted from API requests. See
  5106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5107  	NullFields []string `json:"-"`
  5108  }
  5109  
  5110  func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
  5111  	type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
  5112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5113  }
  5114  
  5115  // GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response message for
  5116  // Agents.ExportAgent.
  5117  type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
  5118  	// AgentContent: Uncompressed raw byte content for agent. This field is
  5119  	// populated if none of `agent_uri` and `git_destination` are specified in
  5120  	// ExportAgentRequest.
  5121  	AgentContent string `json:"agentContent,omitempty"`
  5122  	// AgentUri: The URI to a file containing the exported agent. This field is
  5123  	// populated if `agent_uri` is specified in ExportAgentRequest.
  5124  	AgentUri string `json:"agentUri,omitempty"`
  5125  	// CommitSha: Commit SHA of the git push. This field is populated if
  5126  	// `git_destination` is specified in ExportAgentRequest.
  5127  	CommitSha string `json:"commitSha,omitempty"`
  5128  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  5129  	// unconditionally include in API requests. By default, fields with empty or
  5130  	// default values are omitted from API requests. See
  5131  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5132  	// details.
  5133  	ForceSendFields []string `json:"-"`
  5134  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  5135  	// requests with the JSON null value. By default, fields with empty values are
  5136  	// omitted from API requests. See
  5137  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5138  	NullFields []string `json:"-"`
  5139  }
  5140  
  5141  func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
  5142  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
  5143  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5144  }
  5145  
  5146  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata returned
  5147  // for the EntityTypes.ExportEntityTypes long running operation.
  5148  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
  5149  }
  5150  
  5151  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response
  5152  // message for EntityTypes.ExportEntityTypes.
  5153  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
  5154  	// EntityTypesContent: Uncompressed byte content for entity types. This field
  5155  	// is populated only if `entity_types_content_inline` is set to true in
  5156  	// ExportEntityTypesRequest.
  5157  	EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
  5158  	// EntityTypesUri: The URI to a file containing the exported entity types. This
  5159  	// field is populated only if `entity_types_uri` is specified in
  5160  	// ExportEntityTypesRequest.
  5161  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  5162  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  5163  	// unconditionally include in API requests. By default, fields with empty or
  5164  	// default values are omitted from API requests. See
  5165  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5166  	// details.
  5167  	ForceSendFields []string `json:"-"`
  5168  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  5169  	// in API requests with the JSON null value. By default, fields with empty
  5170  	// values are omitted from API requests. See
  5171  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5172  	NullFields []string `json:"-"`
  5173  }
  5174  
  5175  func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  5176  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
  5177  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5178  }
  5179  
  5180  // GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response message for
  5181  // Flows.ExportFlow.
  5182  type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
  5183  	// FlowContent: Uncompressed raw byte content for flow.
  5184  	FlowContent string `json:"flowContent,omitempty"`
  5185  	// FlowUri: The URI to a file containing the exported flow. This field is
  5186  	// populated only if `flow_uri` is specified in ExportFlowRequest.
  5187  	FlowUri string `json:"flowUri,omitempty"`
  5188  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  5189  	// unconditionally include in API requests. By default, fields with empty or
  5190  	// default values are omitted from API requests. See
  5191  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5192  	// details.
  5193  	ForceSendFields []string `json:"-"`
  5194  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  5195  	// requests with the JSON null value. By default, fields with empty values are
  5196  	// omitted from API requests. See
  5197  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5198  	NullFields []string `json:"-"`
  5199  }
  5200  
  5201  func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
  5202  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
  5203  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5204  }
  5205  
  5206  // GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata: Metadata returned for
  5207  // the Intents.ExportIntents long running operation.
  5208  type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
  5209  }
  5210  
  5211  // GoogleCloudDialogflowCxV3beta1ExportIntentsResponse: The response message
  5212  // for Intents.ExportIntents.
  5213  type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
  5214  	// IntentsContent: Uncompressed byte content for intents. This field is
  5215  	// populated only if `intents_content_inline` is set to true in
  5216  	// ExportIntentsRequest.
  5217  	IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
  5218  	// IntentsUri: The URI to a file containing the exported intents. This field is
  5219  	// populated only if `intents_uri` is specified in ExportIntentsRequest.
  5220  	IntentsUri string `json:"intentsUri,omitempty"`
  5221  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  5222  	// unconditionally include in API requests. By default, fields with empty or
  5223  	// default values are omitted from API requests. See
  5224  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5225  	// details.
  5226  	ForceSendFields []string `json:"-"`
  5227  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  5228  	// API requests with the JSON null value. By default, fields with empty values
  5229  	// are omitted from API requests. See
  5230  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5231  	NullFields []string `json:"-"`
  5232  }
  5233  
  5234  func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
  5235  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
  5236  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5237  }
  5238  
  5239  // GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata returned for
  5240  // the TestCases.ExportTestCases long running operation. This message currently
  5241  // has no fields.
  5242  type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
  5243  }
  5244  
  5245  // GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response message
  5246  // for TestCases.ExportTestCases.
  5247  type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
  5248  	// Content: Uncompressed raw byte content for test cases.
  5249  	Content string `json:"content,omitempty"`
  5250  	// GcsUri: The URI to a file containing the exported test cases. This field is
  5251  	// populated only if `gcs_uri` is specified in ExportTestCasesRequest.
  5252  	GcsUri string `json:"gcsUri,omitempty"`
  5253  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5254  	// include in API requests. By default, fields with empty or default values are
  5255  	// omitted from API requests. See
  5256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5257  	// details.
  5258  	ForceSendFields []string `json:"-"`
  5259  	// NullFields is a list of field names (e.g. "Content") to include in API
  5260  	// requests with the JSON null value. By default, fields with empty values are
  5261  	// omitted from API requests. See
  5262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5263  	NullFields []string `json:"-"`
  5264  }
  5265  
  5266  func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
  5267  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
  5268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5269  }
  5270  
  5271  // GoogleCloudDialogflowCxV3beta1Form: A form is a data model that groups
  5272  // related parameters that can be collected from the user. The process in which
  5273  // the agent prompts the user and collects parameter values from the user is
  5274  // called form filling. A form can be added to a page. When form filling is
  5275  // done, the filled parameters will be written to the session.
  5276  type GoogleCloudDialogflowCxV3beta1Form struct {
  5277  	// Parameters: Parameters to collect from the user.
  5278  	Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
  5279  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  5280  	// unconditionally include in API requests. By default, fields with empty or
  5281  	// default values are omitted from API requests. See
  5282  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5283  	// details.
  5284  	ForceSendFields []string `json:"-"`
  5285  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  5286  	// requests with the JSON null value. By default, fields with empty values are
  5287  	// omitted from API requests. See
  5288  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5289  	NullFields []string `json:"-"`
  5290  }
  5291  
  5292  func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
  5293  	type NoMethod GoogleCloudDialogflowCxV3beta1Form
  5294  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5295  }
  5296  
  5297  // GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form parameter.
  5298  type GoogleCloudDialogflowCxV3beta1FormParameter struct {
  5299  	// AdvancedSettings: Hierarchical advanced settings for this parameter. The
  5300  	// settings exposed at the lower level overrides the settings exposed at the
  5301  	// higher level.
  5302  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  5303  	// DefaultValue: The default value of an optional parameter. If the parameter
  5304  	// is required, the default value will be ignored.
  5305  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  5306  	// DisplayName: Required. The human-readable name of the parameter, unique
  5307  	// within the form.
  5308  	DisplayName string `json:"displayName,omitempty"`
  5309  	// EntityType: Required. The entity type of the parameter. Format:
  5310  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  5311  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  5312  	// `projects//locations//agents//entityTypes/` for developer entity types.
  5313  	EntityType string `json:"entityType,omitempty"`
  5314  	// FillBehavior: Required. Defines fill behavior for the parameter.
  5315  	FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
  5316  	// IsList: Indicates whether the parameter represents a list of values.
  5317  	IsList bool `json:"isList,omitempty"`
  5318  	// Redact: Indicates whether the parameter content should be redacted in log.
  5319  	// If redaction is enabled, the parameter content will be replaced by parameter
  5320  	// name during logging. Note: the parameter content is subject to redaction if
  5321  	// either parameter level redaction or entity type level redaction is enabled.
  5322  	Redact bool `json:"redact,omitempty"`
  5323  	// Required: Indicates whether the parameter is required. Optional parameters
  5324  	// will not trigger prompts; however, they are filled if the user specifies
  5325  	// them. Required parameters must be filled before form filling concludes.
  5326  	Required bool `json:"required,omitempty"`
  5327  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  5328  	// unconditionally include in API requests. By default, fields with empty or
  5329  	// default values are omitted from API requests. See
  5330  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5331  	// details.
  5332  	ForceSendFields []string `json:"-"`
  5333  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  5334  	// API requests with the JSON null value. By default, fields with empty values
  5335  	// are omitted from API requests. See
  5336  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5337  	NullFields []string `json:"-"`
  5338  }
  5339  
  5340  func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
  5341  	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
  5342  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5343  }
  5344  
  5345  // GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior: Configuration for
  5346  // how the filling of a parameter should be handled.
  5347  type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
  5348  	// InitialPromptFulfillment: Required. The fulfillment to provide the initial
  5349  	// prompt that the agent can present to the user in order to fill the
  5350  	// parameter.
  5351  	InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
  5352  	// RepromptEventHandlers: The handlers for parameter-level events, used to
  5353  	// provide reprompt for the parameter or transition to a different page/flow.
  5354  	// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *
  5355  	// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *
  5356  	// `sys.no-input-default` * `sys.invalid-parameter`
  5357  	// `initial_prompt_fulfillment` provides the first prompt for the parameter. If
  5358  	// the user's response does not fill the parameter, a no-match/no-input event
  5359  	// will be triggered, and the fulfillment associated with the
  5360  	// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to
  5361  	// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)
  5362  	// will respond to the next no-match/no-input event, and so on. A
  5363  	// `sys.no-match-default` or `sys.no-input-default` handler will be used to
  5364  	// handle all following no-match/no-input events after all numbered
  5365  	// no-match/no-input handlers for the parameter are consumed. A
  5366  	// `sys.invalid-parameter` handler can be defined to handle the case where the
  5367  	// parameter values have been `invalidated` by webhook. For example, if the
  5368  	// user's response fill the parameter, however the parameter was invalidated by
  5369  	// webhook, the fulfillment associated with the `sys.invalid-parameter` handler
  5370  	// (if defined) will be called to provide a prompt. If the event handler for
  5371  	// the corresponding event can't be found on the parameter,
  5372  	// `initial_prompt_fulfillment` will be re-prompted.
  5373  	RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
  5374  	// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")
  5375  	// to unconditionally include in API requests. By default, fields with empty or
  5376  	// default values are omitted from API requests. See
  5377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5378  	// details.
  5379  	ForceSendFields []string `json:"-"`
  5380  	// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to
  5381  	// include in API requests with the JSON null value. By default, fields with
  5382  	// empty values are omitted from API requests. See
  5383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5384  	NullFields []string `json:"-"`
  5385  }
  5386  
  5387  func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
  5388  	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
  5389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5390  }
  5391  
  5392  // GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one or more
  5393  // of the following actions at the same time: * Generate rich message
  5394  // responses. * Set parameter values. * Call the webhook. Fulfillments can be
  5395  // called at various stages in the Page or Form lifecycle. For example, when a
  5396  // DetectIntentRequest drives a session to enter a new page, the page's entry
  5397  // fulfillment can add a static response to the QueryResult in the returning
  5398  // DetectIntentResponse, call the webhook (for example, to load user data from
  5399  // a database), or both.
  5400  type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
  5401  	// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The
  5402  	// settings exposed at the lower level overrides the settings exposed at the
  5403  	// higher level.
  5404  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  5405  	// ConditionalCases: Conditional cases for this fulfillment.
  5406  	ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
  5407  	// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to
  5408  	// generate a text response. If LLM generation fails, the defined responses in
  5409  	// the fulfillment will be respected. This flag is only useful for fulfillments
  5410  	// associated with no-match event handlers.
  5411  	EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
  5412  	// Messages: The list of rich message responses to present to the user.
  5413  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  5414  	// ReturnPartialResponses: Whether Dialogflow should return currently queued
  5415  	// fulfillment response messages in streaming APIs. If a webhook is specified,
  5416  	// it happens before Dialogflow invokes webhook. Warning: 1) This flag only
  5417  	// affects streaming API. Responses are still queued and returned once in
  5418  	// non-streaming API. 2) The flag can be enabled in any fulfillment but only
  5419  	// the first 3 partial responses will be returned. You may only want to apply
  5420  	// it to fulfillments that have slow webhooks.
  5421  	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
  5422  	// SetParameterActions: Set parameter values before executing the webhook.
  5423  	SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
  5424  	// Tag: The value of this field will be populated in the WebhookRequest
  5425  	// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
  5426  	// called. The tag is typically used by the webhook service to identify which
  5427  	// fulfillment is being called, but it could be used for other purposes. This
  5428  	// field is required if `webhook` is specified.
  5429  	Tag string `json:"tag,omitempty"`
  5430  	// Webhook: The webhook to call. Format:
  5431  	// `projects//locations//agents//webhooks/`.
  5432  	Webhook string `json:"webhook,omitempty"`
  5433  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") 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. "AdvancedSettings") to include in
  5440  	// API requests with the JSON null value. By default, fields with empty values
  5441  	// are 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 *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
  5447  	type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
  5448  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5449  }
  5450  
  5451  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
  5452  // cascading if-else conditions. Cases are mutually exclusive. The first one
  5453  // with a matching condition is selected, all the rest ignored.
  5454  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
  5455  	// Cases: A list of cascading if-else conditions.
  5456  	Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
  5457  	// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally
  5458  	// include in API requests. By default, fields with empty or default values are
  5459  	// omitted from API requests. See
  5460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5461  	// details.
  5462  	ForceSendFields []string `json:"-"`
  5463  	// NullFields is a list of field names (e.g. "Cases") to include in API
  5464  	// requests with the JSON null value. By default, fields with empty values are
  5465  	// omitted from API requests. See
  5466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5467  	NullFields []string `json:"-"`
  5468  }
  5469  
  5470  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
  5471  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
  5472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5473  }
  5474  
  5475  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each case has
  5476  // a Boolean condition. When it is evaluated to be True, the corresponding
  5477  // messages will be selected and evaluated recursively.
  5478  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
  5479  	// CaseContent: A list of case content.
  5480  	CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
  5481  	// Condition: The condition to activate and select this case. Empty means the
  5482  	// condition is always true. The condition is evaluated against form parameters
  5483  	// or session parameters. See the conditions reference
  5484  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  5485  	Condition string `json:"condition,omitempty"`
  5486  	// ForceSendFields is a list of field names (e.g. "CaseContent") to
  5487  	// unconditionally include in API requests. By default, fields with empty or
  5488  	// default values are omitted from API requests. See
  5489  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5490  	// details.
  5491  	ForceSendFields []string `json:"-"`
  5492  	// NullFields is a list of field names (e.g. "CaseContent") to include in API
  5493  	// requests with the JSON null value. By default, fields with empty values are
  5494  	// omitted from API requests. See
  5495  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5496  	NullFields []string `json:"-"`
  5497  }
  5498  
  5499  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
  5500  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
  5501  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5502  }
  5503  
  5504  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent:
  5505  // The list of messages or conditional cases to activate for this case.
  5506  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
  5507  	// AdditionalCases: Additional cases to be evaluated.
  5508  	AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
  5509  	// Message: Returned message.
  5510  	Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
  5511  	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
  5512  	// unconditionally include in API requests. By default, fields with empty or
  5513  	// default values are omitted from API requests. See
  5514  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5515  	// details.
  5516  	ForceSendFields []string `json:"-"`
  5517  	// NullFields is a list of field names (e.g. "AdditionalCases") to include in
  5518  	// API requests with the JSON null value. By default, fields with empty values
  5519  	// are omitted from API requests. See
  5520  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5521  	NullFields []string `json:"-"`
  5522  }
  5523  
  5524  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
  5525  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
  5526  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5527  }
  5528  
  5529  // GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting a
  5530  // parameter value.
  5531  type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
  5532  	// Parameter: Display name of the parameter.
  5533  	Parameter string `json:"parameter,omitempty"`
  5534  	// Value: The new value of the parameter. A null value clears the parameter.
  5535  	Value interface{} `json:"value,omitempty"`
  5536  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  5537  	// unconditionally include in API requests. By default, fields with empty or
  5538  	// default values are omitted from API requests. See
  5539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5540  	// details.
  5541  	ForceSendFields []string `json:"-"`
  5542  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  5543  	// requests with the JSON null value. By default, fields with empty values are
  5544  	// omitted from API requests. See
  5545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5546  	NullFields []string `json:"-"`
  5547  }
  5548  
  5549  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
  5550  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
  5551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5552  }
  5553  
  5554  // GoogleCloudDialogflowCxV3beta1GcsDestination: Google Cloud Storage location
  5555  // for a Dialogflow operation that writes or exports objects (e.g. exported
  5556  // agent or transcripts) outside of Dialogflow.
  5557  type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
  5558  	// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI
  5559  	// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object
  5560  	// name, or just a prefix, its usage depends on the Dialogflow operation.
  5561  	Uri string `json:"uri,omitempty"`
  5562  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  5563  	// include in API requests. By default, fields with empty or default values are
  5564  	// omitted from API requests. See
  5565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5566  	// details.
  5567  	ForceSendFields []string `json:"-"`
  5568  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  5569  	// with the JSON null value. By default, fields with empty values are omitted
  5570  	// from API requests. See
  5571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5572  	NullFields []string `json:"-"`
  5573  }
  5574  
  5575  func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
  5576  	type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
  5577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5578  }
  5579  
  5580  // GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata: Metadata in
  5581  // google::longrunning::Operation for Knowledge operations.
  5582  type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
  5583  	// State: Required. Output only. The current state of this operation.
  5584  	//
  5585  	// Possible values:
  5586  	//   "STATE_UNSPECIFIED" - State unspecified.
  5587  	//   "PENDING" - The operation has been created.
  5588  	//   "RUNNING" - The operation is currently running.
  5589  	//   "DONE" - The operation is done, either cancelled or completed.
  5590  	State string `json:"state,omitempty"`
  5591  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  5592  	// include in API requests. By default, fields with empty or default values are
  5593  	// omitted from API requests. See
  5594  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5595  	// details.
  5596  	ForceSendFields []string `json:"-"`
  5597  	// NullFields is a list of field names (e.g. "State") to include in API
  5598  	// requests with the JSON null value. By default, fields with empty values are
  5599  	// omitted from API requests. See
  5600  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5601  	NullFields []string `json:"-"`
  5602  }
  5603  
  5604  func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  5605  	type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
  5606  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5607  }
  5608  
  5609  // GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata: Metadata for
  5610  // ImportDocuments operation.
  5611  type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
  5612  	// GenericMetadata: The generic information of the operation.
  5613  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  5614  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  5615  	// unconditionally include in API requests. By default, fields with empty or
  5616  	// default values are omitted from API requests. See
  5617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5618  	// details.
  5619  	ForceSendFields []string `json:"-"`
  5620  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  5621  	// API requests with the JSON null value. By default, fields with empty values
  5622  	// are omitted from API requests. See
  5623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5624  	NullFields []string `json:"-"`
  5625  }
  5626  
  5627  func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
  5628  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
  5629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5630  }
  5631  
  5632  // GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse: Response message for
  5633  // Documents.ImportDocuments.
  5634  type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
  5635  	// Warnings: Includes details about skipped documents or any other warnings.
  5636  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  5637  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  5638  	// unconditionally include in API requests. By default, fields with empty or
  5639  	// default values are omitted from API requests. See
  5640  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5641  	// details.
  5642  	ForceSendFields []string `json:"-"`
  5643  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  5644  	// requests with the JSON null value. By default, fields with empty values are
  5645  	// omitted from API requests. See
  5646  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5647  	NullFields []string `json:"-"`
  5648  }
  5649  
  5650  func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  5651  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
  5652  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5653  }
  5654  
  5655  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata returned
  5656  // for the EntityTypes.ImportEntityTypes long running operation.
  5657  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
  5658  }
  5659  
  5660  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response
  5661  // message for EntityTypes.ImportEntityTypes.
  5662  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
  5663  	// ConflictingResources: Info which resources have conflicts when
  5664  	// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.
  5665  	ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
  5666  	// EntityTypes: The unique identifier of the imported entity types. Format:
  5667  	// `projects//locations//agents//entity_types/`.
  5668  	EntityTypes []string `json:"entityTypes,omitempty"`
  5669  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  5670  	// unconditionally include in API requests. By default, fields with empty or
  5671  	// default values are omitted from API requests. See
  5672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5673  	// details.
  5674  	ForceSendFields []string `json:"-"`
  5675  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  5676  	// in API requests with the JSON null value. By default, fields with empty
  5677  	// values are omitted from API requests. See
  5678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5679  	NullFields []string `json:"-"`
  5680  }
  5681  
  5682  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  5683  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
  5684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5685  }
  5686  
  5687  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources:
  5688  // Conflicting resources detected during the import process. Only filled when
  5689  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  5690  // names.
  5691  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
  5692  	// EntityDisplayNames: Display names of conflicting entities.
  5693  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  5694  	// EntityTypeDisplayNames: Display names of conflicting entity types.
  5695  	EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
  5696  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  5697  	// unconditionally include in API requests. By default, fields with empty or
  5698  	// default values are omitted from API requests. See
  5699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5700  	// details.
  5701  	ForceSendFields []string `json:"-"`
  5702  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  5703  	// in API requests with the JSON null value. By default, fields with empty
  5704  	// values are omitted from API requests. See
  5705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5706  	NullFields []string `json:"-"`
  5707  }
  5708  
  5709  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
  5710  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
  5711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5712  }
  5713  
  5714  // GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response message for
  5715  // Flows.ImportFlow.
  5716  type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
  5717  	// Flow: The unique identifier of the new flow. Format:
  5718  	// `projects//locations//agents//flows/`.
  5719  	Flow string `json:"flow,omitempty"`
  5720  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  5721  	// include in API requests. By default, fields with empty or default values are
  5722  	// omitted from API requests. See
  5723  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5724  	// details.
  5725  	ForceSendFields []string `json:"-"`
  5726  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  5727  	// with the JSON null value. By default, fields with empty values are omitted
  5728  	// from API requests. See
  5729  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5730  	NullFields []string `json:"-"`
  5731  }
  5732  
  5733  func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
  5734  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
  5735  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5736  }
  5737  
  5738  // GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata: Metadata returned for
  5739  // the Intents.ImportIntents long running operation.
  5740  type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
  5741  }
  5742  
  5743  // GoogleCloudDialogflowCxV3beta1ImportIntentsResponse: The response message
  5744  // for Intents.ImportIntents.
  5745  type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
  5746  	// ConflictingResources: Info which resources have conflicts when
  5747  	// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.
  5748  	ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
  5749  	// Intents: The unique identifier of the imported intents. Format:
  5750  	// `projects//locations//agents//intents/`.
  5751  	Intents []string `json:"intents,omitempty"`
  5752  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  5753  	// unconditionally include in API requests. By default, fields with empty or
  5754  	// default values are omitted from API requests. See
  5755  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5756  	// details.
  5757  	ForceSendFields []string `json:"-"`
  5758  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  5759  	// in API requests with the JSON null value. By default, fields with empty
  5760  	// values are omitted from API requests. See
  5761  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5762  	NullFields []string `json:"-"`
  5763  }
  5764  
  5765  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
  5766  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
  5767  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5768  }
  5769  
  5770  // GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources:
  5771  // Conflicting resources detected during the import process. Only filled when
  5772  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  5773  // names.
  5774  type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
  5775  	// EntityDisplayNames: Display names of conflicting entities.
  5776  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  5777  	// IntentDisplayNames: Display names of conflicting intents.
  5778  	IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
  5779  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  5780  	// unconditionally include in API requests. By default, fields with empty or
  5781  	// default values are omitted from API requests. See
  5782  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5783  	// details.
  5784  	ForceSendFields []string `json:"-"`
  5785  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  5786  	// in API requests with the JSON null value. By default, fields with empty
  5787  	// values are omitted from API requests. See
  5788  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5789  	NullFields []string `json:"-"`
  5790  }
  5791  
  5792  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
  5793  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
  5794  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5795  }
  5796  
  5797  // GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata returned for
  5798  // the TestCases.ImportTestCases long running operation.
  5799  type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
  5800  	// Errors: Errors for failed test cases.
  5801  	Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
  5802  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  5803  	// include in API requests. By default, fields with empty or default values are
  5804  	// omitted from API requests. See
  5805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5806  	// details.
  5807  	ForceSendFields []string `json:"-"`
  5808  	// NullFields is a list of field names (e.g. "Errors") to include in API
  5809  	// requests with the JSON null value. By default, fields with empty values are
  5810  	// omitted from API requests. See
  5811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5812  	NullFields []string `json:"-"`
  5813  }
  5814  
  5815  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
  5816  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
  5817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5818  }
  5819  
  5820  // GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response message
  5821  // for TestCases.ImportTestCases.
  5822  type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
  5823  	// Names: The unique identifiers of the new test cases. Format:
  5824  	// `projects//locations//agents//testCases/`.
  5825  	Names []string `json:"names,omitempty"`
  5826  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  5827  	// include in API requests. By default, fields with empty or default values are
  5828  	// omitted from API requests. See
  5829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5830  	// details.
  5831  	ForceSendFields []string `json:"-"`
  5832  	// NullFields is a list of field names (e.g. "Names") to include in API
  5833  	// requests with the JSON null value. By default, fields with empty values are
  5834  	// omitted from API requests. See
  5835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5836  	NullFields []string `json:"-"`
  5837  }
  5838  
  5839  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
  5840  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
  5841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5842  }
  5843  
  5844  // GoogleCloudDialogflowCxV3beta1InlineDestination: Inline destination for a
  5845  // Dialogflow operation that writes or exports objects (e.g. intents) outside
  5846  // of Dialogflow.
  5847  type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
  5848  	// Content: Output only. The uncompressed byte content for the objects. Only
  5849  	// populated in responses.
  5850  	Content string `json:"content,omitempty"`
  5851  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5852  	// include in API requests. By default, fields with empty or default values are
  5853  	// omitted from API requests. See
  5854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5855  	// details.
  5856  	ForceSendFields []string `json:"-"`
  5857  	// NullFields is a list of field names (e.g. "Content") to include in API
  5858  	// requests with the JSON null value. By default, fields with empty values are
  5859  	// omitted from API requests. See
  5860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5861  	NullFields []string `json:"-"`
  5862  }
  5863  
  5864  func (s *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
  5865  	type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
  5866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5867  }
  5868  
  5869  // GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
  5870  // recognizer on how to process the audio content.
  5871  type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
  5872  	// AudioEncoding: Required. Audio encoding of the audio content to process.
  5873  	//
  5874  	// Possible values:
  5875  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  5876  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
  5877  	// samples (Linear PCM).
  5878  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
  5879  	// (Free Lossless Audio Codec) is the recommended encoding because it is
  5880  	// lossless (therefore recognition is not compromised) and requires only about
  5881  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
  5882  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
  5883  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
  5884  	// using G.711 PCMU/mu-law.
  5885  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
  5886  	// `sample_rate_hertz` must be 8000.
  5887  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
  5888  	// `sample_rate_hertz` must be 16000.
  5889  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
  5890  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
  5891  	// 16000.
  5892  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
  5893  	// encodings is not recommended, if a very low bitrate encoding is required,
  5894  	// `OGG_OPUS` is highly preferred over Speex encoding. The
  5895  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
  5896  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
  5897  	// It is a variant of the RTP Speex encoding defined in [RFC
  5898  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
  5899  	// blocks, one block per RTP packet. Each block starts with a byte containing
  5900  	// the length of the block, in bytes, followed by one or more frames of Speex
  5901  	// data, padded to an integral number of bytes (octets) as specified in RFC
  5902  	// 5574. In other words, each RTP header is replaced with a single byte
  5903  	// containing the block length. Only Speex wideband is supported.
  5904  	// `sample_rate_hertz` must be 16000.
  5905  	AudioEncoding string `json:"audioEncoding,omitempty"`
  5906  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
  5907  	// input audio.
  5908  	BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
  5909  	// EnableWordInfo: Optional. If `true`, Dialogflow returns SpeechWordInfo in
  5910  	// StreamingRecognitionResult with information about the recognized speech
  5911  	// words, e.g. start and end time offsets. If false or unspecified, Speech
  5912  	// doesn't return any word-level information.
  5913  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
  5914  	// Model: Optional. Which Speech model to select for the given request. For
  5915  	// more information, see Speech models
  5916  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  5917  	Model string `json:"model,omitempty"`
  5918  	// ModelVariant: Optional. Which variant of the Speech model to use.
  5919  	//
  5920  	// Possible values:
  5921  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
  5922  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
  5923  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
  5924  	// that the caller is eligible for.
  5925  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
  5926  	// available. See the [Cloud Speech
  5927  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  5928  	// for details about enhanced models.
  5929  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
  5930  	// does not exist for the given model and request language, Dialogflow falls
  5931  	// back to the standard variant. The [Cloud Speech
  5932  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  5933  	// describes which models have enhanced variants.
  5934  	ModelVariant string `json:"modelVariant,omitempty"`
  5935  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
  5936  	// conformer model migration. This field will be deprecated once force
  5937  	// migration takes place in June 2024. Please refer to Dialogflow CX Speech
  5938  	// model migration
  5939  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
  5940  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
  5941  	// PhraseHints: Optional. A list of strings containing words and phrases that
  5942  	// the speech recognizer should recognize with higher likelihood. See the Cloud
  5943  	// Speech documentation
  5944  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
  5945  	// details.
  5946  	PhraseHints []string `json:"phraseHints,omitempty"`
  5947  	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in the
  5948  	// query. Refer to Cloud Speech API documentation
  5949  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
  5950  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  5951  	// SingleUtterance: Optional. If `false` (default), recognition does not cease
  5952  	// until the client closes the stream. If `true`, the recognizer will detect a
  5953  	// single spoken utterance in input audio. Recognition ceases when it detects
  5954  	// the audio's voice has stopped or paused. In this case, once a detected
  5955  	// intent is received, the client should close the stream and start a new
  5956  	// request with a new stream as needed. Note: This setting is relevant only for
  5957  	// streaming methods.
  5958  	SingleUtterance bool `json:"singleUtterance,omitempty"`
  5959  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  5960  	// unconditionally include in API requests. By default, fields with empty or
  5961  	// default values are omitted from API requests. See
  5962  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5963  	// details.
  5964  	ForceSendFields []string `json:"-"`
  5965  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  5966  	// requests with the JSON null value. By default, fields with empty values are
  5967  	// omitted from API requests. See
  5968  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5969  	NullFields []string `json:"-"`
  5970  }
  5971  
  5972  func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
  5973  	type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
  5974  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5975  }
  5976  
  5977  // GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's intent
  5978  // to interact with a conversational agent. You can provide information for the
  5979  // Dialogflow API to use to match user input to an intent by adding training
  5980  // phrases (i.e., examples of user input) to your intent.
  5981  type GoogleCloudDialogflowCxV3beta1Intent struct {
  5982  	// Description: Human readable description for better understanding an intent
  5983  	// like its scope, content, result etc. Maximum character limit: 140
  5984  	// characters.
  5985  	Description string `json:"description,omitempty"`
  5986  	// DisplayName: Required. The human-readable name of the intent, unique within
  5987  	// the agent.
  5988  	DisplayName string `json:"displayName,omitempty"`
  5989  	// IsFallback: Indicates whether this is a fallback intent. Currently only
  5990  	// default fallback intent is allowed in the agent, which is added upon agent
  5991  	// creation. Adding training phrases to fallback intent is useful in the case
  5992  	// of requests that are mistakenly matched, since training phrases assigned to
  5993  	// fallback intents act as negative examples that triggers no-match event.
  5994  	IsFallback bool `json:"isFallback,omitempty"`
  5995  	// Labels: The key/value metadata to label an intent. Labels can contain
  5996  	// lowercase letters, digits and the symbols '-' and '_'. International
  5997  	// characters are allowed, including letters from unicase alphabets. Keys must
  5998  	// start with a letter. Keys and values can be no longer than 63 characters and
  5999  	// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
  6000  	// labels. Currently allowed Dialogflow defined labels include: * sys-head *
  6001  	// sys-contextual The above labels do not require value. "sys-head" means the
  6002  	// intent is a head intent. "sys-contextual" means the intent is a contextual
  6003  	// intent.
  6004  	Labels map[string]string `json:"labels,omitempty"`
  6005  	// Name: The unique identifier of the intent. Required for the
  6006  	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
  6007  	// automatically. Format: `projects//locations//agents//intents/`.
  6008  	Name string `json:"name,omitempty"`
  6009  	// Parameters: The collection of parameters associated with the intent.
  6010  	Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
  6011  	// Priority: The priority of this intent. Higher numbers represent higher
  6012  	// priorities. - If the supplied value is unspecified or 0, the service
  6013  	// translates the value to 500,000, which corresponds to the `Normal` priority
  6014  	// in the console. - If the supplied value is negative, the intent is ignored
  6015  	// in runtime detect intent requests.
  6016  	Priority int64 `json:"priority,omitempty"`
  6017  	// TrainingPhrases: The collection of training phrases the agent is trained on
  6018  	// to identify the intent.
  6019  	TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  6020  	// ForceSendFields is a list of field names (e.g. "Description") to
  6021  	// unconditionally include in API requests. By default, fields with empty or
  6022  	// default values are omitted from API requests. See
  6023  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6024  	// details.
  6025  	ForceSendFields []string `json:"-"`
  6026  	// NullFields is a list of field names (e.g. "Description") to include in API
  6027  	// requests with the JSON null value. By default, fields with empty values are
  6028  	// omitted from API requests. See
  6029  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6030  	NullFields []string `json:"-"`
  6031  }
  6032  
  6033  func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
  6034  	type NoMethod GoogleCloudDialogflowCxV3beta1Intent
  6035  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6036  }
  6037  
  6038  // GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to trigger
  6039  // programmatically rather than as a result of natural language processing.
  6040  type GoogleCloudDialogflowCxV3beta1IntentInput struct {
  6041  	// Intent: Required. The unique identifier of the intent. Format:
  6042  	// `projects//locations//agents//intents/`.
  6043  	Intent string `json:"intent,omitempty"`
  6044  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
  6045  	// include in API requests. By default, fields with empty or default values are
  6046  	// omitted from API requests. See
  6047  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6048  	// details.
  6049  	ForceSendFields []string `json:"-"`
  6050  	// NullFields is a list of field names (e.g. "Intent") to include in API
  6051  	// requests with the JSON null value. By default, fields with empty values are
  6052  	// omitted from API requests. See
  6053  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6054  	NullFields []string `json:"-"`
  6055  }
  6056  
  6057  func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
  6058  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
  6059  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6060  }
  6061  
  6062  // GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
  6063  // parameter.
  6064  type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
  6065  	// EntityType: Required. The entity type of the parameter. Format:
  6066  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  6067  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  6068  	// `projects//locations//agents//entityTypes/` for developer entity types.
  6069  	EntityType string `json:"entityType,omitempty"`
  6070  	// Id: Required. The unique identifier of the parameter. This field is used by
  6071  	// training phrases to annotate their parts.
  6072  	Id string `json:"id,omitempty"`
  6073  	// IsList: Indicates whether the parameter represents a list of values.
  6074  	IsList bool `json:"isList,omitempty"`
  6075  	// Redact: Indicates whether the parameter content should be redacted in log.
  6076  	// If redaction is enabled, the parameter content will be replaced by parameter
  6077  	// name during logging. Note: the parameter content is subject to redaction if
  6078  	// either parameter level redaction or entity type level redaction is enabled.
  6079  	Redact bool `json:"redact,omitempty"`
  6080  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  6081  	// unconditionally include in API requests. By default, fields with empty or
  6082  	// default values are omitted from API requests. See
  6083  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6084  	// details.
  6085  	ForceSendFields []string `json:"-"`
  6086  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  6087  	// requests with the JSON null value. By default, fields with empty values are
  6088  	// omitted from API requests. See
  6089  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6090  	NullFields []string `json:"-"`
  6091  }
  6092  
  6093  func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
  6094  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
  6095  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6096  }
  6097  
  6098  // GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an example
  6099  // that the agent is trained on to identify the intent.
  6100  type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
  6101  	// Id: Output only. The unique identifier of the training phrase.
  6102  	Id string `json:"id,omitempty"`
  6103  	// Parts: Required. The ordered list of training phrase parts. The parts are
  6104  	// concatenated in order to form the training phrase. Note: The API does not
  6105  	// automatically annotate training phrases like the Dialogflow Console does.
  6106  	// Note: Do not forget to include whitespace at part boundaries, so the
  6107  	// training phrase is well formatted when the parts are concatenated. If the
  6108  	// training phrase does not need to be annotated with parameters, you just need
  6109  	// a single part with only the Part.text field set. If you want to annotate the
  6110  	// training phrase, you must create multiple parts, where the fields of each
  6111  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  6112  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  6113  	// that you want to annotate, and the `parameter_id` field is set.
  6114  	Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
  6115  	// RepeatCount: Indicates how many times this example was added to the intent.
  6116  	RepeatCount int64 `json:"repeatCount,omitempty"`
  6117  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  6118  	// include in API requests. By default, fields with empty or default values are
  6119  	// omitted from API requests. See
  6120  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6121  	// details.
  6122  	ForceSendFields []string `json:"-"`
  6123  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  6124  	// with the JSON null value. By default, fields with empty values are omitted
  6125  	// from API requests. See
  6126  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6127  	NullFields []string `json:"-"`
  6128  }
  6129  
  6130  func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  6131  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
  6132  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6133  }
  6134  
  6135  // GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a part of
  6136  // a training phrase.
  6137  type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
  6138  	// ParameterId: The parameter used to annotate this part of the training
  6139  	// phrase. This field is required for annotated parts of the training phrase.
  6140  	ParameterId string `json:"parameterId,omitempty"`
  6141  	// Text: Required. The text for this part.
  6142  	Text string `json:"text,omitempty"`
  6143  	// ForceSendFields is a list of field names (e.g. "ParameterId") to
  6144  	// unconditionally include in API requests. By default, fields with empty or
  6145  	// default values are omitted from API requests. See
  6146  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6147  	// details.
  6148  	ForceSendFields []string `json:"-"`
  6149  	// NullFields is a list of field names (e.g. "ParameterId") to include in API
  6150  	// requests with the JSON null value. By default, fields with empty values are
  6151  	// omitted from API requests. See
  6152  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6153  	NullFields []string `json:"-"`
  6154  }
  6155  
  6156  func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  6157  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
  6158  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6159  }
  6160  
  6161  // GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings: The Knowledge
  6162  // Connector settings for this page or flow. This includes information such as
  6163  // the attached Knowledge Bases, and the way to execute fulfillment.
  6164  type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
  6165  	// DataStoreConnections: Optional. List of related data store connections.
  6166  	DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
  6167  	// Enabled: Whether Knowledge Connector is enabled or not.
  6168  	Enabled bool `json:"enabled,omitempty"`
  6169  	// TargetFlow: The target flow to transition to. Format:
  6170  	// `projects//locations//agents//flows/`.
  6171  	TargetFlow string `json:"targetFlow,omitempty"`
  6172  	// TargetPage: The target page to transition to. Format:
  6173  	// `projects//locations//agents//flows//pages/`.
  6174  	TargetPage string `json:"targetPage,omitempty"`
  6175  	// TriggerFulfillment: The fulfillment to be triggered. When the answers from
  6176  	// the Knowledge Connector are selected by Dialogflow, you can utitlize the
  6177  	// request scoped parameter `$request.knowledge.answers` (contains up to the 5
  6178  	// highest confidence answers) and `$request.knowledge.questions` (contains the
  6179  	// corresponding questions) to construct the fulfillment.
  6180  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  6181  	// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to
  6182  	// unconditionally include in API requests. By default, fields with empty or
  6183  	// default values are omitted from API requests. See
  6184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6185  	// details.
  6186  	ForceSendFields []string `json:"-"`
  6187  	// NullFields is a list of field names (e.g. "DataStoreConnections") to include
  6188  	// in API requests with the JSON null value. By default, fields with empty
  6189  	// values are omitted from API requests. See
  6190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6191  	NullFields []string `json:"-"`
  6192  }
  6193  
  6194  func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  6195  	type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
  6196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6197  }
  6198  
  6199  // GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language
  6200  // information of the request.
  6201  type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
  6202  	// ConfidenceScore: The confidence score of the detected language between 0 and
  6203  	// 1.
  6204  	ConfidenceScore float64 `json:"confidenceScore,omitempty"`
  6205  	// InputLanguageCode: The language code specified in the original request.
  6206  	InputLanguageCode string `json:"inputLanguageCode,omitempty"`
  6207  	// ResolvedLanguageCode: The language code detected for this request based on
  6208  	// the user conversation.
  6209  	ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
  6210  	// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to
  6211  	// unconditionally include in API requests. By default, fields with empty or
  6212  	// default values are omitted from API requests. See
  6213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6214  	// details.
  6215  	ForceSendFields []string `json:"-"`
  6216  	// NullFields is a list of field names (e.g. "ConfidenceScore") to include in
  6217  	// API requests with the JSON null value. By default, fields with empty values
  6218  	// are omitted from API requests. See
  6219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6220  	NullFields []string `json:"-"`
  6221  }
  6222  
  6223  func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
  6224  	type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
  6225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6226  }
  6227  
  6228  func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
  6229  	type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
  6230  	var s1 struct {
  6231  		ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
  6232  		*NoMethod
  6233  	}
  6234  	s1.NoMethod = (*NoMethod)(s)
  6235  	if err := json.Unmarshal(data, &s1); err != nil {
  6236  		return err
  6237  	}
  6238  	s.ConfidenceScore = float64(s1.ConfidenceScore)
  6239  	return nil
  6240  }
  6241  
  6242  // GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session)
  6243  // can be described and visualized as a state machine. The states of a CX
  6244  // session are represented by pages. For each flow, you define many pages,
  6245  // where your combined pages can handle a complete conversation on the topics
  6246  // the flow is designed for. At any given moment, exactly one page is the
  6247  // current page, the current page is considered active, and the flow associated
  6248  // with that page is considered active. Every flow has a special start page.
  6249  // When a flow initially becomes active, the start page page becomes the
  6250  // current page. For each conversational turn, the current page will either
  6251  // stay the same or transition to another page. You configure each page to
  6252  // collect information from the end-user that is relevant for the
  6253  // conversational state represented by the page. For more information, see the
  6254  // Page guide (https://cloud.google.com/dialogflow/cx/docs/concept/page).
  6255  type GoogleCloudDialogflowCxV3beta1Page struct {
  6256  	// AdvancedSettings: Hierarchical advanced settings for this page. The settings
  6257  	// exposed at the lower level overrides the settings exposed at the higher
  6258  	// level.
  6259  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  6260  	// Description: The description of the page. The maximum length is 500
  6261  	// characters.
  6262  	Description string `json:"description,omitempty"`
  6263  	// DisplayName: Required. The human-readable name of the page, unique within
  6264  	// the flow.
  6265  	DisplayName string `json:"displayName,omitempty"`
  6266  	// EntryFulfillment: The fulfillment to call when the session is entering the
  6267  	// page.
  6268  	EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
  6269  	// EventHandlers: Handlers associated with the page to handle events such as
  6270  	// webhook errors, no match or no input.
  6271  	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
  6272  	// Form: The form associated with the page, used for collecting parameters
  6273  	// relevant to the page.
  6274  	Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
  6275  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  6276  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  6277  	// Name: The unique identifier of the page. Required for the Pages.UpdatePage
  6278  	// method. Pages.CreatePage populates the name automatically. Format:
  6279  	// `projects//locations//agents//flows//pages/`.
  6280  	Name string `json:"name,omitempty"`
  6281  	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the
  6282  	// page. Transition route groups must be unique within a page. If the page
  6283  	// links both flow-level transition route groups and agent-level transition
  6284  	// route groups, the flow-level ones will have higher priority and will be put
  6285  	// before the agent-level ones. * If multiple transition routes within a page
  6286  	// scope refer to the same intent, then the precedence order is: page's
  6287  	// transition route -> page's transition route group -> flow's transition
  6288  	// routes. * If multiple transition route groups within a page contain the same
  6289  	// intent, then the first group in the ordered list takes precedence.
  6290  	// Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  6291  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  6292  	// groups.
  6293  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  6294  	// TransitionRoutes: A list of transitions for the transition rules of this
  6295  	// page. They route the conversation to another page in the same flow, or
  6296  	// another flow. When we are in a certain page, the TransitionRoutes are
  6297  	// evalauted in the following order: * TransitionRoutes defined in the page
  6298  	// with intent specified. * TransitionRoutes defined in the transition route
  6299  	// groups with intent specified. * TransitionRoutes defined in flow with intent
  6300  	// specified. * TransitionRoutes defined in the transition route groups with
  6301  	// intent specified. * TransitionRoutes defined in the page with only condition
  6302  	// specified. * TransitionRoutes defined in the transition route groups with
  6303  	// only condition specified.
  6304  	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
  6305  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  6306  	// unconditionally include in API requests. By default, fields with empty or
  6307  	// default values are omitted from API requests. See
  6308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6309  	// details.
  6310  	ForceSendFields []string `json:"-"`
  6311  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  6312  	// API requests with the JSON null value. By default, fields with empty values
  6313  	// are omitted from API requests. See
  6314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6315  	NullFields []string `json:"-"`
  6316  }
  6317  
  6318  func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
  6319  	type NoMethod GoogleCloudDialogflowCxV3beta1Page
  6320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6321  }
  6322  
  6323  // GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
  6324  // communicated to and from the webhook.
  6325  type GoogleCloudDialogflowCxV3beta1PageInfo struct {
  6326  	// CurrentPage: Always present for WebhookRequest. Ignored for WebhookResponse.
  6327  	// The unique identifier of the current page. Format:
  6328  	// `projects//locations//agents//flows//pages/`.
  6329  	CurrentPage string `json:"currentPage,omitempty"`
  6330  	// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.
  6331  	// The display name of the current page.
  6332  	DisplayName string `json:"displayName,omitempty"`
  6333  	// FormInfo: Optional for both WebhookRequest and WebhookResponse. Information
  6334  	// about the form.
  6335  	FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
  6336  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  6337  	// unconditionally include in API requests. By default, fields with empty or
  6338  	// default values are omitted from API requests. See
  6339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6340  	// details.
  6341  	ForceSendFields []string `json:"-"`
  6342  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  6343  	// requests with the JSON null value. By default, fields with empty values are
  6344  	// omitted from API requests. See
  6345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6346  	NullFields []string `json:"-"`
  6347  }
  6348  
  6349  func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
  6350  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
  6351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6352  }
  6353  
  6354  // GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form information.
  6355  type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
  6356  	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse. The
  6357  	// parameters contained in the form. Note that the webhook cannot add or remove
  6358  	// any form parameter.
  6359  	ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
  6360  	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
  6361  	// unconditionally include in API requests. By default, fields with empty or
  6362  	// default values are omitted from API requests. See
  6363  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6364  	// details.
  6365  	ForceSendFields []string `json:"-"`
  6366  	// NullFields is a list of field names (e.g. "ParameterInfo") to include in API
  6367  	// requests with the JSON null value. By default, fields with empty values are
  6368  	// omitted from API requests. See
  6369  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6370  	NullFields []string `json:"-"`
  6371  }
  6372  
  6373  func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
  6374  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
  6375  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6376  }
  6377  
  6378  // GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: Represents
  6379  // parameter information.
  6380  type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
  6381  	// DisplayName: Always present for WebhookRequest. Required for
  6382  	// WebhookResponse. The human-readable name of the parameter, unique within the
  6383  	// form. This field cannot be modified by the webhook.
  6384  	DisplayName string `json:"displayName,omitempty"`
  6385  	// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.
  6386  	// Indicates if the parameter value was just collected on the last conversation
  6387  	// turn.
  6388  	JustCollected bool `json:"justCollected,omitempty"`
  6389  	// Required: Optional for both WebhookRequest and WebhookResponse. Indicates
  6390  	// whether the parameter is required. Optional parameters will not trigger
  6391  	// prompts; however, they are filled if the user specifies them. Required
  6392  	// parameters must be filled before form filling concludes.
  6393  	Required bool `json:"required,omitempty"`
  6394  	// State: Always present for WebhookRequest. Required for WebhookResponse. The
  6395  	// state of the parameter. This field can be set to INVALID by the webhook to
  6396  	// invalidate the parameter; other values set by the webhook will be ignored.
  6397  	//
  6398  	// Possible values:
  6399  	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never
  6400  	// used.
  6401  	//   "EMPTY" - Indicates that the parameter does not have a value.
  6402  	//   "INVALID" - Indicates that the parameter value is invalid. This field can
  6403  	// be used by the webhook to invalidate the parameter and ask the server to
  6404  	// collect it from the user again.
  6405  	//   "FILLED" - Indicates that the parameter has a value.
  6406  	State string `json:"state,omitempty"`
  6407  	// Value: Optional for both WebhookRequest and WebhookResponse. The value of
  6408  	// the parameter. This field can be set by the webhook to change the parameter
  6409  	// value.
  6410  	Value interface{} `json:"value,omitempty"`
  6411  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  6412  	// unconditionally include in API requests. By default, fields with empty or
  6413  	// default values are omitted from API requests. See
  6414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6415  	// details.
  6416  	ForceSendFields []string `json:"-"`
  6417  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  6418  	// requests with the JSON null value. By default, fields with empty values are
  6419  	// omitted from API requests. See
  6420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6421  	NullFields []string `json:"-"`
  6422  }
  6423  
  6424  func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
  6425  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
  6426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6427  }
  6428  
  6429  // GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input. It can
  6430  // contain one of: 1. A conversational query in the form of text. 2. An intent
  6431  // query that specifies which intent to trigger. 3. Natural language speech
  6432  // audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke
  6433  // an intent and fill in parameter value. 6. The results of a tool executed by
  6434  // the client.
  6435  type GoogleCloudDialogflowCxV3beta1QueryInput struct {
  6436  	// Audio: The natural language speech audio to be processed.
  6437  	Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
  6438  	// Dtmf: The DTMF event to be handled.
  6439  	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
  6440  	// Event: The event to be triggered.
  6441  	Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
  6442  	// Intent: The intent to be triggered.
  6443  	Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
  6444  	// LanguageCode: Required. The language of the input. See Language Support
  6445  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  6446  	// of the currently supported language codes. Note that queries in the same
  6447  	// session do not necessarily need to specify the same language.
  6448  	LanguageCode string `json:"languageCode,omitempty"`
  6449  	// Text: The natural language text to be processed.
  6450  	Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
  6451  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  6452  	// include in API requests. By default, fields with empty or default values are
  6453  	// omitted from API requests. See
  6454  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6455  	// details.
  6456  	ForceSendFields []string `json:"-"`
  6457  	// NullFields is a list of field names (e.g. "Audio") to include in API
  6458  	// requests with the JSON null value. By default, fields with empty values are
  6459  	// omitted from API requests. See
  6460  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6461  	NullFields []string `json:"-"`
  6462  }
  6463  
  6464  func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
  6465  	type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
  6466  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6467  }
  6468  
  6469  // GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata: Metadata for
  6470  // ReloadDocument operation.
  6471  type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
  6472  	// GenericMetadata: The generic information of the operation.
  6473  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  6474  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  6475  	// unconditionally include in API requests. By default, fields with empty or
  6476  	// default values are omitted from API requests. See
  6477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6478  	// details.
  6479  	ForceSendFields []string `json:"-"`
  6480  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  6481  	// API requests with the JSON null value. By default, fields with empty values
  6482  	// are omitted from API requests. See
  6483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6484  	NullFields []string `json:"-"`
  6485  }
  6486  
  6487  func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  6488  	type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
  6489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6490  }
  6491  
  6492  // GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response message
  6493  // that can be returned by a conversational agent. Response messages are also
  6494  // used for output audio synthesis. The approach is as follows: * If at least
  6495  // one OutputAudioText response is present, then all OutputAudioText responses
  6496  // are linearly concatenated, and the result is used for output audio
  6497  // synthesis. * If the OutputAudioText responses are a mixture of text and
  6498  // SSML, then the concatenated result is treated as SSML; otherwise, the result
  6499  // is treated as either text or SSML as appropriate. The agent designer should
  6500  // ideally use either text or SSML consistently throughout the bot design. *
  6501  // Otherwise, all Text responses are linearly concatenated, and the result is
  6502  // used for output audio synthesis. This approach allows for more sophisticated
  6503  // user experience scenarios, where the text displayed to the user may differ
  6504  // from what is heard.
  6505  type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
  6506  	// Channel: The channel which the response is associated with. Clients can
  6507  	// specify the channel via QueryParameters.channel, and only associated channel
  6508  	// response will be returned.
  6509  	Channel string `json:"channel,omitempty"`
  6510  	// ConversationSuccess: Indicates that the conversation succeeded.
  6511  	ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
  6512  	// EndInteraction: Output only. A signal that indicates the interaction with
  6513  	// the Dialogflow agent has ended. This message is generated by Dialogflow only
  6514  	// when the conversation reaches `END_SESSION` page. It is not supposed to be
  6515  	// defined by the user. It's guaranteed that there is at most one such message
  6516  	// in each response.
  6517  	EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
  6518  	// KnowledgeInfoCard: Represents info card for knowledge answers, to be better
  6519  	// rendered in Dialogflow Messenger.
  6520  	KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
  6521  	// LiveAgentHandoff: Hands off conversation to a human agent.
  6522  	LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
  6523  	// MixedAudio: Output only. An audio response message composed of both the
  6524  	// synthesized Dialogflow agent responses and responses defined via play_audio.
  6525  	// This message is generated by Dialogflow only and not supposed to be defined
  6526  	// by the user.
  6527  	MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
  6528  	// OutputAudioText: A text or ssml response that is preferentially used for TTS
  6529  	// output audio synthesis, as described in the comment on the ResponseMessage
  6530  	// message.
  6531  	OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
  6532  	// Payload: Returns a response containing a custom, platform-specific payload.
  6533  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  6534  	// PlayAudio: Signal that the client should play an audio clip hosted at a
  6535  	// client-specific URI. Dialogflow uses this to construct mixed_audio. However,
  6536  	// Dialogflow itself does not try to read or process the URI in any way.
  6537  	PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
  6538  	// TelephonyTransferCall: A signal that the client should transfer the phone
  6539  	// call connected to this agent to a third-party endpoint.
  6540  	TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
  6541  	// Text: Returns a text response.
  6542  	Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
  6543  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  6544  	// include in API requests. By default, fields with empty or default values are
  6545  	// omitted from API requests. See
  6546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6547  	// details.
  6548  	ForceSendFields []string `json:"-"`
  6549  	// NullFields is a list of field names (e.g. "Channel") to include in API
  6550  	// requests with the JSON null value. By default, fields with empty values are
  6551  	// omitted from API requests. See
  6552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6553  	NullFields []string `json:"-"`
  6554  }
  6555  
  6556  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
  6557  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
  6558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6559  }
  6560  
  6561  // GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: Indicates
  6562  // that the conversation succeeded, i.e., the bot handled the issue that the
  6563  // customer talked to it about. Dialogflow only uses this to determine which
  6564  // conversations should be counted as successful and doesn't process the
  6565  // metadata in this message in any way. Note that Dialogflow also considers
  6566  // conversations that get to the conversation end page as successful even if
  6567  // they don't return ConversationSuccess. You may set this, for example: * In
  6568  // the entry_fulfillment of a Page if entering the page indicates that the
  6569  // conversation succeeded. * In a webhook response when you determine that you
  6570  // handled the customer issue.
  6571  type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
  6572  	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.
  6573  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  6574  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  6575  	// unconditionally include in API requests. By default, fields with empty or
  6576  	// default values are omitted from API requests. See
  6577  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6578  	// details.
  6579  	ForceSendFields []string `json:"-"`
  6580  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  6581  	// requests with the JSON null value. By default, fields with empty values are
  6582  	// omitted from API requests. See
  6583  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6584  	NullFields []string `json:"-"`
  6585  }
  6586  
  6587  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
  6588  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
  6589  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6590  }
  6591  
  6592  // GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction: Indicates that
  6593  // interaction with the Dialogflow agent has ended. This message is generated
  6594  // by Dialogflow only and not supposed to be defined by the user.
  6595  type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
  6596  }
  6597  
  6598  // GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard: Represents
  6599  // info card response. If the response contains generative knowledge
  6600  // prediction, Dialogflow will return a payload with Infobot Messenger
  6601  // compatible info card. Otherwise, the info card response is skipped.
  6602  type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
  6603  }
  6604  
  6605  // GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff: Indicates
  6606  // that the conversation should be handed off to a live agent. Dialogflow only
  6607  // uses this to determine which conversations were handed off to a human agent
  6608  // for measurement purposes. What else to do with this signal is up to you and
  6609  // your handoff procedures. You may set this, for example: * In the
  6610  // entry_fulfillment of a Page if entering the page indicates something went
  6611  // extremely wrong in the conversation. * In a webhook response when you
  6612  // determine that the customer issue can only be handled by a human.
  6613  type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
  6614  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
  6615  	// impose any structure on this.
  6616  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  6617  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  6618  	// unconditionally include in API requests. By default, fields with empty or
  6619  	// default values are omitted from API requests. See
  6620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6621  	// details.
  6622  	ForceSendFields []string `json:"-"`
  6623  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  6624  	// requests with the JSON null value. By default, fields with empty values are
  6625  	// omitted from API requests. See
  6626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6627  	NullFields []string `json:"-"`
  6628  }
  6629  
  6630  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
  6631  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
  6632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6633  }
  6634  
  6635  // GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents an audio
  6636  // message that is composed of both segments synthesized from the Dialogflow
  6637  // agent prompts and ones hosted externally at the specified URIs. The external
  6638  // URIs are specified via play_audio. This message is generated by Dialogflow
  6639  // only and not supposed to be defined by the user.
  6640  type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
  6641  	// Segments: Segments this audio response is composed of.
  6642  	Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
  6643  	// ForceSendFields is a list of field names (e.g. "Segments") 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. "Segments") to include in API
  6650  	// requests with the JSON null value. By default, fields with empty values are
  6651  	// 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 *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
  6657  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
  6658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6659  }
  6660  
  6661  // GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment: Represents
  6662  // one segment of audio.
  6663  type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
  6664  	// AllowPlaybackInterruption: Output only. Whether the playback of this segment
  6665  	// can be interrupted by the end user's speech and the client should then start
  6666  	// the next Dialogflow request.
  6667  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6668  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
  6669  	// output config specified in the request.
  6670  	Audio string `json:"audio,omitempty"`
  6671  	// Uri: Client-specific URI that points to an audio clip accessible to the
  6672  	// client. Dialogflow does not impose any validation on it.
  6673  	Uri string `json:"uri,omitempty"`
  6674  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6675  	// to unconditionally include in API requests. By default, fields with empty or
  6676  	// default values are omitted from API requests. See
  6677  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6678  	// details.
  6679  	ForceSendFields []string `json:"-"`
  6680  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6681  	// include in API requests with the JSON null value. By default, fields with
  6682  	// empty values are omitted from API requests. See
  6683  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6684  	NullFields []string `json:"-"`
  6685  }
  6686  
  6687  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
  6688  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
  6689  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6690  }
  6691  
  6692  // GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text or ssml
  6693  // response that is preferentially used for TTS output audio synthesis, as
  6694  // described in the comment on the ResponseMessage message.
  6695  type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
  6696  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  6697  	// can be interrupted by the end user's speech and the client can then starts
  6698  	// the next Dialogflow request.
  6699  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6700  	// Ssml: The SSML text to be synthesized. For more information, see SSML
  6701  	// (/speech/text-to-speech/docs/ssml).
  6702  	Ssml string `json:"ssml,omitempty"`
  6703  	// Text: The raw text to be synthesized.
  6704  	Text string `json:"text,omitempty"`
  6705  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6706  	// to unconditionally include in API requests. By default, fields with empty or
  6707  	// default values are omitted from API requests. See
  6708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6709  	// details.
  6710  	ForceSendFields []string `json:"-"`
  6711  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6712  	// include in API requests with the JSON null value. By default, fields with
  6713  	// empty values are omitted from API requests. See
  6714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6715  	NullFields []string `json:"-"`
  6716  }
  6717  
  6718  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
  6719  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
  6720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6721  }
  6722  
  6723  // GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an audio
  6724  // clip to be played by the client as part of the response.
  6725  type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
  6726  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  6727  	// can be interrupted by the end user's speech and the client can then starts
  6728  	// the next Dialogflow request.
  6729  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6730  	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose any
  6731  	// validation on this value. It is specific to the client that reads it.
  6732  	AudioUri string `json:"audioUri,omitempty"`
  6733  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6734  	// to unconditionally include in API requests. By default, fields with empty or
  6735  	// default values are omitted from API requests. See
  6736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6737  	// details.
  6738  	ForceSendFields []string `json:"-"`
  6739  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6740  	// include in API requests with the JSON null value. By default, fields with
  6741  	// empty values are omitted from API requests. See
  6742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6743  	NullFields []string `json:"-"`
  6744  }
  6745  
  6746  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
  6747  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
  6748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6749  }
  6750  
  6751  // GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall:
  6752  // Represents the signal that telles the client to transfer the phone call
  6753  // connected to the agent to a third-party endpoint.
  6754  type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
  6755  	// PhoneNumber: Transfer the call to a phone number in E.164 format
  6756  	// (https://en.wikipedia.org/wiki/E.164).
  6757  	PhoneNumber string `json:"phoneNumber,omitempty"`
  6758  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  6759  	// unconditionally include in API requests. By default, fields with empty or
  6760  	// default values are omitted from API requests. See
  6761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6762  	// details.
  6763  	ForceSendFields []string `json:"-"`
  6764  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  6765  	// requests with the JSON null value. By default, fields with empty values are
  6766  	// omitted from API requests. See
  6767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6768  	NullFields []string `json:"-"`
  6769  }
  6770  
  6771  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
  6772  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
  6773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6774  }
  6775  
  6776  // GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response
  6777  // message.
  6778  type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
  6779  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  6780  	// can be interrupted by the end user's speech and the client can then starts
  6781  	// the next Dialogflow request.
  6782  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6783  	// Text: Required. A collection of text responses.
  6784  	Text []string `json:"text,omitempty"`
  6785  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6786  	// to unconditionally include in API requests. By default, fields with empty or
  6787  	// default values are omitted from API requests. See
  6788  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6789  	// details.
  6790  	ForceSendFields []string `json:"-"`
  6791  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6792  	// include in API requests with the JSON null value. By default, fields with
  6793  	// empty values are omitted from API requests. See
  6794  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6795  	NullFields []string `json:"-"`
  6796  }
  6797  
  6798  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
  6799  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
  6800  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6801  }
  6802  
  6803  // GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata: Metadata returned
  6804  // for the Environments.RunContinuousTest long running operation.
  6805  type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
  6806  	// Errors: The test errors.
  6807  	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
  6808  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  6809  	// include in API requests. By default, fields with empty or default values are
  6810  	// omitted from API requests. See
  6811  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6812  	// details.
  6813  	ForceSendFields []string `json:"-"`
  6814  	// NullFields is a list of field names (e.g. "Errors") to include in API
  6815  	// requests with the JSON null value. By default, fields with empty values are
  6816  	// omitted from API requests. See
  6817  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6818  	NullFields []string `json:"-"`
  6819  }
  6820  
  6821  func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
  6822  	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
  6823  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6824  }
  6825  
  6826  // GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse: The response
  6827  // message for Environments.RunContinuousTest.
  6828  type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
  6829  	// ContinuousTestResult: The result for a continuous test run.
  6830  	ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
  6831  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to
  6832  	// unconditionally include in API requests. By default, fields with empty or
  6833  	// default values are omitted from API requests. See
  6834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6835  	// details.
  6836  	ForceSendFields []string `json:"-"`
  6837  	// NullFields is a list of field names (e.g. "ContinuousTestResult") to include
  6838  	// in API requests with the JSON null value. By default, fields with empty
  6839  	// values are omitted from API requests. See
  6840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6841  	NullFields []string `json:"-"`
  6842  }
  6843  
  6844  func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
  6845  	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
  6846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6847  }
  6848  
  6849  // GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned for the
  6850  // TestCases.RunTestCase long running operation. This message currently has no
  6851  // fields.
  6852  type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
  6853  }
  6854  
  6855  // GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response message for
  6856  // TestCases.RunTestCase.
  6857  type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
  6858  	// Result: The result.
  6859  	Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
  6860  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
  6861  	// include in API requests. By default, fields with empty or default values are
  6862  	// omitted from API requests. See
  6863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6864  	// details.
  6865  	ForceSendFields []string `json:"-"`
  6866  	// NullFields is a list of field names (e.g. "Result") to include in API
  6867  	// requests with the JSON null value. By default, fields with empty values are
  6868  	// omitted from API requests. See
  6869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6870  	NullFields []string `json:"-"`
  6871  }
  6872  
  6873  func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
  6874  	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
  6875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6876  }
  6877  
  6878  // GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session information
  6879  // communicated to and from the webhook.
  6880  type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
  6881  	// Parameters: Optional for WebhookRequest. Optional for WebhookResponse. All
  6882  	// parameters collected from forms and intents during the session. Parameters
  6883  	// can be created, updated, or removed by the webhook. To remove a parameter
  6884  	// from the session, the webhook should explicitly set the parameter value to
  6885  	// null in WebhookResponse. The map is keyed by parameters' display names.
  6886  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  6887  	// Session: Always present for WebhookRequest. Ignored for WebhookResponse. The
  6888  	// unique identifier of the session. This field can be used by the webhook to
  6889  	// identify a session. Format: `projects//locations//agents//sessions/` or
  6890  	// `projects//locations//agents//environments//sessions/` if environment is
  6891  	// specified.
  6892  	Session string `json:"session,omitempty"`
  6893  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  6894  	// unconditionally include in API requests. By default, fields with empty or
  6895  	// default values are omitted from API requests. See
  6896  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6897  	// details.
  6898  	ForceSendFields []string `json:"-"`
  6899  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  6900  	// requests with the JSON null value. By default, fields with empty values are
  6901  	// omitted from API requests. See
  6902  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6903  	NullFields []string `json:"-"`
  6904  }
  6905  
  6906  func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
  6907  	type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
  6908  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6909  }
  6910  
  6911  // GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.
  6912  type GoogleCloudDialogflowCxV3beta1TestCase struct {
  6913  	// CreationTime: Output only. When the test was created.
  6914  	CreationTime string `json:"creationTime,omitempty"`
  6915  	// DisplayName: Required. The human-readable name of the test case, unique
  6916  	// within the agent. Limit of 200 characters.
  6917  	DisplayName string `json:"displayName,omitempty"`
  6918  	// LastTestResult: The latest test result.
  6919  	LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
  6920  	// Name: The unique identifier of the test case. TestCases.CreateTestCase will
  6921  	// populate the name automatically. Otherwise use format:
  6922  	// `projects//locations//agents/ /testCases/`.
  6923  	Name string `json:"name,omitempty"`
  6924  	// Notes: Additional freeform notes about the test case. Limit of 400
  6925  	// characters.
  6926  	Notes string `json:"notes,omitempty"`
  6927  	// Tags: Tags are short descriptions that users may apply to test cases for
  6928  	// organizational and filtering purposes. Each tag should start with "#" and
  6929  	// has a limit of 30 characters.
  6930  	Tags []string `json:"tags,omitempty"`
  6931  	// TestCaseConversationTurns: The conversation turns uttered when the test case
  6932  	// was created, in chronological order. These include the canonical set of
  6933  	// agent utterances that should occur when the agent is working properly.
  6934  	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
  6935  	// TestConfig: Config for the test case.
  6936  	TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
  6937  	// ForceSendFields is a list of field names (e.g. "CreationTime") to
  6938  	// unconditionally include in API requests. By default, fields with empty or
  6939  	// default values are omitted from API requests. See
  6940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6941  	// details.
  6942  	ForceSendFields []string `json:"-"`
  6943  	// NullFields is a list of field names (e.g. "CreationTime") to include in API
  6944  	// requests with the JSON null value. By default, fields with empty values are
  6945  	// omitted from API requests. See
  6946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6947  	NullFields []string `json:"-"`
  6948  }
  6949  
  6950  func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
  6951  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
  6952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6953  }
  6954  
  6955  // GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing a
  6956  // test.
  6957  type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
  6958  	// Status: The status associated with the test case.
  6959  	Status *GoogleRpcStatus `json:"status,omitempty"`
  6960  	// TestCase: The test case.
  6961  	TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
  6962  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  6963  	// include in API requests. By default, fields with empty or default values are
  6964  	// 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. "Status") to include in API
  6969  	// requests with the JSON null value. By default, fields with empty values are
  6970  	// 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 *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
  6976  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
  6977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6978  }
  6979  
  6980  // GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result from
  6981  // running a test case in an agent environment.
  6982  type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
  6983  	// ConversationTurns: The conversation turns uttered during the test case
  6984  	// replay in chronological order.
  6985  	ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
  6986  	// Environment: Environment where the test was run. If not set, it indicates
  6987  	// the draft environment.
  6988  	Environment string `json:"environment,omitempty"`
  6989  	// Name: The resource name for the test case result. Format:
  6990  	// `projects//locations//agents//testCases/ /results/`.
  6991  	Name string `json:"name,omitempty"`
  6992  	// TestResult: Whether the test case passed in the agent environment.
  6993  	//
  6994  	// Possible values:
  6995  	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
  6996  	//   "PASSED" - The test passed.
  6997  	//   "FAILED" - The test did not pass.
  6998  	TestResult string `json:"testResult,omitempty"`
  6999  	// TestTime: The time that the test was run.
  7000  	TestTime string `json:"testTime,omitempty"`
  7001  	// ForceSendFields is a list of field names (e.g. "ConversationTurns") 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. "ConversationTurns") to include in
  7008  	// API requests with the JSON null value. By default, fields with empty values
  7009  	// 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 *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
  7015  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
  7016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7017  }
  7018  
  7019  // GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations for a
  7020  // test case.
  7021  type GoogleCloudDialogflowCxV3beta1TestConfig struct {
  7022  	// Flow: Flow name to start the test case with. Format:
  7023  	// `projects//locations//agents//flows/`. Only one of `flow` and `page` should
  7024  	// be set to indicate the starting point of the test case. If both are set,
  7025  	// `page` takes precedence over `flow`. If neither is set, the test case will
  7026  	// start with start page on the default start flow.
  7027  	Flow string `json:"flow,omitempty"`
  7028  	// Page: The page to start the test case with. Format:
  7029  	// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`
  7030  	// should be set to indicate the starting point of the test case. If both are
  7031  	// set, `page` takes precedence over `flow`. If neither is set, the test case
  7032  	// will start with start page on the default start flow.
  7033  	Page string `json:"page,omitempty"`
  7034  	// TrackingParameters: Session parameters to be compared when calculating
  7035  	// differences.
  7036  	TrackingParameters []string `json:"trackingParameters,omitempty"`
  7037  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  7038  	// include in API requests. By default, fields with empty or default values are
  7039  	// omitted from API requests. See
  7040  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7041  	// details.
  7042  	ForceSendFields []string `json:"-"`
  7043  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  7044  	// with the JSON null value. By default, fields with empty values are omitted
  7045  	// from API requests. See
  7046  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7047  	NullFields []string `json:"-"`
  7048  }
  7049  
  7050  func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
  7051  	type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
  7052  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7053  }
  7054  
  7055  // GoogleCloudDialogflowCxV3beta1TestError: Error info for running a test.
  7056  type GoogleCloudDialogflowCxV3beta1TestError struct {
  7057  	// Status: The status associated with the test.
  7058  	Status *GoogleRpcStatus `json:"status,omitempty"`
  7059  	// TestCase: The test case resource name.
  7060  	TestCase string `json:"testCase,omitempty"`
  7061  	// TestTime: The timestamp when the test was completed.
  7062  	TestTime string `json:"testTime,omitempty"`
  7063  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  7064  	// include in API requests. By default, fields with empty or default values are
  7065  	// omitted from API requests. See
  7066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7067  	// details.
  7068  	ForceSendFields []string `json:"-"`
  7069  	// NullFields is a list of field names (e.g. "Status") to include in API
  7070  	// requests with the JSON null value. By default, fields with empty values are
  7071  	// omitted from API requests. See
  7072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7073  	NullFields []string `json:"-"`
  7074  }
  7075  
  7076  func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
  7077  	type NoMethod GoogleCloudDialogflowCxV3beta1TestError
  7078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7079  }
  7080  
  7081  // GoogleCloudDialogflowCxV3beta1TestRunDifference: The description of
  7082  // differences between original and replayed agent output.
  7083  type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
  7084  	// Description: A human readable description of the diff, showing the actual
  7085  	// output vs expected output.
  7086  	Description string `json:"description,omitempty"`
  7087  	// Type: The type of diff.
  7088  	//
  7089  	// Possible values:
  7090  	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
  7091  	//   "INTENT" - The intent.
  7092  	//   "PAGE" - The page.
  7093  	//   "PARAMETERS" - The parameters.
  7094  	//   "UTTERANCE" - The message utterance.
  7095  	//   "FLOW" - The flow.
  7096  	Type string `json:"type,omitempty"`
  7097  	// ForceSendFields is a list of field names (e.g. "Description") to
  7098  	// unconditionally include in API requests. By default, fields with empty or
  7099  	// default values are omitted from API requests. See
  7100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7101  	// details.
  7102  	ForceSendFields []string `json:"-"`
  7103  	// NullFields is a list of field names (e.g. "Description") to include in API
  7104  	// requests with the JSON null value. By default, fields with empty values are
  7105  	// omitted from API requests. See
  7106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7107  	NullFields []string `json:"-"`
  7108  }
  7109  
  7110  func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
  7111  	type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
  7112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7113  }
  7114  
  7115  // GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural language
  7116  // text to be processed.
  7117  type GoogleCloudDialogflowCxV3beta1TextInput struct {
  7118  	// Text: Required. The UTF-8 encoded natural language text to be processed.
  7119  	Text string `json:"text,omitempty"`
  7120  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  7121  	// include in API requests. By default, fields with empty or default values are
  7122  	// omitted from API requests. See
  7123  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7124  	// details.
  7125  	ForceSendFields []string `json:"-"`
  7126  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  7127  	// with the JSON null value. By default, fields with empty values are omitted
  7128  	// from API requests. See
  7129  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7130  	NullFields []string `json:"-"`
  7131  }
  7132  
  7133  func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
  7134  	type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
  7135  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7136  }
  7137  
  7138  // GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route specifies
  7139  // a intent that can be matched and/or a data condition that can be evaluated
  7140  // during a session. When a specified transition is matched, the following
  7141  // actions are taken in order: * If there is a `trigger_fulfillment` associated
  7142  // with the transition, it will be called. * If there is a `target_page`
  7143  // associated with the transition, the session will transition into the
  7144  // specified page. * If there is a `target_flow` associated with the
  7145  // transition, the session will transition into the specified flow.
  7146  type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
  7147  	// Condition: The condition to evaluate against form parameters or session
  7148  	// parameters. See the conditions reference
  7149  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least
  7150  	// one of `intent` or `condition` must be specified. When both `intent` and
  7151  	// `condition` are specified, the transition can only happen when both are
  7152  	// fulfilled.
  7153  	Condition string `json:"condition,omitempty"`
  7154  	// Description: Optional. The description of the transition route. The maximum
  7155  	// length is 500 characters.
  7156  	Description string `json:"description,omitempty"`
  7157  	// Intent: The unique identifier of an Intent. Format:
  7158  	// `projects//locations//agents//intents/`. Indicates that the transition can
  7159  	// only happen when the given intent is matched. At least one of `intent` or
  7160  	// `condition` must be specified. When both `intent` and `condition` are
  7161  	// specified, the transition can only happen when both are fulfilled.
  7162  	Intent string `json:"intent,omitempty"`
  7163  	// Name: Output only. The unique identifier of this transition route.
  7164  	Name string `json:"name,omitempty"`
  7165  	// TargetFlow: The target flow to transition to. Format:
  7166  	// `projects//locations//agents//flows/`.
  7167  	TargetFlow string `json:"targetFlow,omitempty"`
  7168  	// TargetPage: The target page to transition to. Format:
  7169  	// `projects//locations//agents//flows//pages/`.
  7170  	TargetPage string `json:"targetPage,omitempty"`
  7171  	// TriggerFulfillment: The fulfillment to call when the condition is satisfied.
  7172  	// At least one of `trigger_fulfillment` and `target` must be specified. When
  7173  	// both are defined, `trigger_fulfillment` is executed first.
  7174  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  7175  	// ForceSendFields is a list of field names (e.g. "Condition") to
  7176  	// unconditionally include in API requests. By default, fields with empty or
  7177  	// default values are omitted from API requests. See
  7178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7179  	// details.
  7180  	ForceSendFields []string `json:"-"`
  7181  	// NullFields is a list of field names (e.g. "Condition") to include in API
  7182  	// requests with the JSON null value. By default, fields with empty values are
  7183  	// omitted from API requests. See
  7184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7185  	NullFields []string `json:"-"`
  7186  }
  7187  
  7188  func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
  7189  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
  7190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7191  }
  7192  
  7193  // GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals that
  7194  // were extracted for a single turn of the conversation.
  7195  type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
  7196  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
  7197  	AgentEscalated bool `json:"agentEscalated,omitempty"`
  7198  	// DtmfUsed: Whether user was using DTMF input.
  7199  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
  7200  	// FailureReasons: Failure reasons of the turn.
  7201  	//
  7202  	// Possible values:
  7203  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
  7204  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
  7205  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
  7206  	FailureReasons []string `json:"failureReasons,omitempty"`
  7207  	// NoMatch: Whether NLU predicted NO_MATCH.
  7208  	NoMatch bool `json:"noMatch,omitempty"`
  7209  	// NoUserInput: Whether user provided no input.
  7210  	NoUserInput bool `json:"noUserInput,omitempty"`
  7211  	// ReachedEndPage: Whether turn resulted in End Session page.
  7212  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
  7213  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
  7214  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  7215  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
  7216  	// SentimentScore: Sentiment score of the user utterance if sentiment
  7217  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  7218  	SentimentScore float64 `json:"sentimentScore,omitempty"`
  7219  	// UserEscalated: Whether user was specifically asking for a live agent.
  7220  	UserEscalated bool `json:"userEscalated,omitempty"`
  7221  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
  7222  	// this turn.
  7223  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
  7224  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
  7225  	// unconditionally include in API requests. By default, fields with empty or
  7226  	// default values are omitted from API requests. See
  7227  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7228  	// details.
  7229  	ForceSendFields []string `json:"-"`
  7230  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
  7231  	// API requests with the JSON null value. By default, fields with empty values
  7232  	// are omitted from API requests. See
  7233  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7234  	NullFields []string `json:"-"`
  7235  }
  7236  
  7237  func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
  7238  	type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
  7239  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7240  }
  7241  
  7242  func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
  7243  	type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
  7244  	var s1 struct {
  7245  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
  7246  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
  7247  		*NoMethod
  7248  	}
  7249  	s1.NoMethod = (*NoMethod)(s)
  7250  	if err := json.Unmarshal(data, &s1); err != nil {
  7251  		return err
  7252  	}
  7253  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
  7254  	s.SentimentScore = float64(s1.SentimentScore)
  7255  	return nil
  7256  }
  7257  
  7258  // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: Metadata for
  7259  // UpdateDocument operation.
  7260  type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
  7261  	// GenericMetadata: The generic information of the operation.
  7262  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  7263  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  7264  	// unconditionally include in API requests. By default, fields with empty or
  7265  	// default values are omitted from API requests. See
  7266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7267  	// details.
  7268  	ForceSendFields []string `json:"-"`
  7269  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  7270  	// API requests with the JSON null value. By default, fields with empty values
  7271  	// are omitted from API requests. See
  7272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7273  	NullFields []string `json:"-"`
  7274  }
  7275  
  7276  func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  7277  	type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
  7278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7279  }
  7280  
  7281  // GoogleCloudDialogflowCxV3beta1Webhook: Webhooks host the developer's
  7282  // business logic. During a session, webhooks allow the developer to use the
  7283  // data extracted by Dialogflow's natural language processing to generate
  7284  // dynamic responses, validate collected data, or trigger actions on the
  7285  // backend.
  7286  type GoogleCloudDialogflowCxV3beta1Webhook struct {
  7287  	// Disabled: Indicates whether the webhook is disabled.
  7288  	Disabled bool `json:"disabled,omitempty"`
  7289  	// DisplayName: Required. The human-readable name of the webhook, unique within
  7290  	// the agent.
  7291  	DisplayName string `json:"displayName,omitempty"`
  7292  	// GenericWebService: Configuration for a generic web service.
  7293  	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
  7294  	// Name: The unique identifier of the webhook. Required for the
  7295  	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
  7296  	// automatically. Format: `projects//locations//agents//webhooks/`.
  7297  	Name string `json:"name,omitempty"`
  7298  	// ServiceDirectory: Configuration for a Service Directory
  7299  	// (https://cloud.google.com/service-directory) service.
  7300  	ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
  7301  	// Timeout: Webhook execution timeout. Execution is considered failed if
  7302  	// Dialogflow doesn't receive a response from webhook at the end of the timeout
  7303  	// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
  7304  	Timeout string `json:"timeout,omitempty"`
  7305  	// ForceSendFields is a list of field names (e.g. "Disabled") to
  7306  	// unconditionally include in API requests. By default, fields with empty or
  7307  	// default values are omitted from API requests. See
  7308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7309  	// details.
  7310  	ForceSendFields []string `json:"-"`
  7311  	// NullFields is a list of field names (e.g. "Disabled") to include in API
  7312  	// requests with the JSON null value. By default, fields with empty values are
  7313  	// omitted from API requests. See
  7314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7315  	NullFields []string `json:"-"`
  7316  }
  7317  
  7318  func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
  7319  	type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
  7320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7321  }
  7322  
  7323  // GoogleCloudDialogflowCxV3beta1WebhookGenericWebService: Represents
  7324  // configuration for a generic web service.
  7325  type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
  7326  	// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates
  7327  	// (in DER format) for HTTPS verification. This overrides the default SSL trust
  7328  	// store. If this is empty or unspecified, Dialogflow will use Google's default
  7329  	// trust store to verify certificates. N.B. Make sure the HTTPS server
  7330  	// certificates are signed with "subject alt name". For instance a certificate
  7331  	// can be self-signed using the following command, ``` openssl x509 -req -days
  7332  	// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \
  7333  	// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") ```
  7334  	AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
  7335  	// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard
  7336  	// webhook always uses POST.
  7337  	//
  7338  	// Possible values:
  7339  	//   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.
  7340  	//   "POST" - HTTP POST Method.
  7341  	//   "GET" - HTTP GET Method.
  7342  	//   "HEAD" - HTTP HEAD Method.
  7343  	//   "PUT" - HTTP PUT Method.
  7344  	//   "DELETE" - HTTP DELETE Method.
  7345  	//   "PATCH" - HTTP PATCH Method.
  7346  	//   "OPTIONS" - HTTP OPTIONS Method.
  7347  	HttpMethod string `json:"httpMethod,omitempty"`
  7348  	// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,
  7349  	// Dialogflow will initiate the OAuth client credential flow to exchange an
  7350  	// access token from the 3rd party platform and put it in the auth header.
  7351  	OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
  7352  	// ParameterMapping: Optional. Maps the values extracted from specific fields
  7353  	// of the flexible webhook response into session parameters. - Key: session
  7354  	// parameter name - Value: field path in the webhook response
  7355  	ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
  7356  	// Password: The password for HTTP Basic authentication.
  7357  	Password string `json:"password,omitempty"`
  7358  	// RequestBody: Optional. Defines a custom JSON object as request body to send
  7359  	// to flexible webhook.
  7360  	RequestBody string `json:"requestBody,omitempty"`
  7361  	// RequestHeaders: The HTTP request headers to send together with webhook
  7362  	// requests.
  7363  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
  7364  	// ServiceAgentAuth: Optional. Indicate the auth token type generated from the
  7365  	// Diglogflow service agent
  7366  	// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
  7367  	// The generated token is sent in the Authorization header.
  7368  	//
  7369  	// Possible values:
  7370  	//   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.
  7371  	// Default to ID_TOKEN.
  7372  	//   "NONE" - No token used.
  7373  	//   "ID_TOKEN" - Use [ID
  7374  	// token](https://cloud.google.com/docs/authentication/token-types#id)
  7375  	// generated from service agent. This can be used to access Cloud Function and
  7376  	// Cloud Run after you grant Invoker role to
  7377  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  7378  	//   "ACCESS_TOKEN" - Use [access
  7379  	// token](https://cloud.google.com/docs/authentication/token-types#access)
  7380  	// generated from service agent. This can be used to access other Google Cloud
  7381  	// APIs after you grant required roles to
  7382  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  7383  	ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
  7384  	// Uri: Required. The webhook URI for receiving POST requests. It must use
  7385  	// https protocol.
  7386  	Uri string `json:"uri,omitempty"`
  7387  	// Username: The user name for HTTP Basic authentication.
  7388  	Username string `json:"username,omitempty"`
  7389  	// WebhookType: Optional. Type of the webhook.
  7390  	//
  7391  	// Possible values:
  7392  	//   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.
  7393  	//   "STANDARD" - Represents a standard webhook.
  7394  	//   "FLEXIBLE" - Represents a flexible webhook.
  7395  	WebhookType string `json:"webhookType,omitempty"`
  7396  	// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to
  7397  	// unconditionally include in API requests. By default, fields with empty or
  7398  	// default values are omitted from API requests. See
  7399  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7400  	// details.
  7401  	ForceSendFields []string `json:"-"`
  7402  	// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in
  7403  	// API requests with the JSON null value. By default, fields with empty values
  7404  	// are omitted from API requests. See
  7405  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7406  	NullFields []string `json:"-"`
  7407  }
  7408  
  7409  func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
  7410  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
  7411  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7412  }
  7413  
  7414  // GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig:
  7415  // Represents configuration of OAuth client credential flow for 3rd party API
  7416  // authentication.
  7417  type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
  7418  	// ClientId: Required. The client ID provided by the 3rd party platform.
  7419  	ClientId string `json:"clientId,omitempty"`
  7420  	// ClientSecret: Required. The client secret provided by the 3rd party
  7421  	// platform.
  7422  	ClientSecret string `json:"clientSecret,omitempty"`
  7423  	// Scopes: Optional. The OAuth scopes to grant.
  7424  	Scopes []string `json:"scopes,omitempty"`
  7425  	// TokenEndpoint: Required. The token endpoint provided by the 3rd party
  7426  	// platform to exchange an access token.
  7427  	TokenEndpoint string `json:"tokenEndpoint,omitempty"`
  7428  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  7429  	// unconditionally include in API requests. By default, fields with empty or
  7430  	// default values are omitted from API requests. See
  7431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7432  	// details.
  7433  	ForceSendFields []string `json:"-"`
  7434  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  7435  	// requests with the JSON null value. By default, fields with empty values are
  7436  	// omitted from API requests. See
  7437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7438  	NullFields []string `json:"-"`
  7439  }
  7440  
  7441  func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
  7442  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
  7443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7444  }
  7445  
  7446  // GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for a
  7447  // webhook call. The request is sent as a JSON object and the field names will
  7448  // be presented in camel cases. You may see undocumented fields in an actual
  7449  // request. These fields are used internally by Dialogflow and should be
  7450  // ignored.
  7451  type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
  7452  	// DetectIntentResponseId: Always present. The unique identifier of the
  7453  	// DetectIntentResponse that will be returned to the API caller.
  7454  	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
  7455  	// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF
  7456  	// digits.
  7457  	DtmfDigits string `json:"dtmfDigits,omitempty"`
  7458  	// FulfillmentInfo: Always present. Information about the fulfillment that
  7459  	// triggered this webhook call.
  7460  	FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
  7461  	// IntentInfo: Information about the last matched intent.
  7462  	IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
  7463  	// LanguageCode: The language code specified in the original request.
  7464  	LanguageCode string `json:"languageCode,omitempty"`
  7465  	// LanguageInfo: Information about the language of the request.
  7466  	LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
  7467  	// Messages: The list of rich message responses to present to the user. Webhook
  7468  	// can choose to append or replace this list in
  7469  	// WebhookResponse.fulfillment_response;
  7470  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  7471  	// PageInfo: Information about page status.
  7472  	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
  7473  	// Payload: Custom data set in QueryParameters.payload.
  7474  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  7475  	// SentimentAnalysisResult: The sentiment analysis result of the current user
  7476  	// request. The field is filled when sentiment analysis is configured to be
  7477  	// enabled for the request.
  7478  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  7479  	// SessionInfo: Information about session status.
  7480  	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
  7481  	// Text: If natural language text was provided as input, this field will
  7482  	// contain a copy of the text.
  7483  	Text string `json:"text,omitempty"`
  7484  	// Transcript: If natural language speech audio was provided as input, this
  7485  	// field will contain the transcript for the audio.
  7486  	Transcript string `json:"transcript,omitempty"`
  7487  	// TriggerEvent: If an event was provided as input, this field will contain the
  7488  	// name of the event.
  7489  	TriggerEvent string `json:"triggerEvent,omitempty"`
  7490  	// TriggerIntent: If an intent was provided as input, this field will contain a
  7491  	// copy of the intent identifier. Format:
  7492  	// `projects//locations//agents//intents/`.
  7493  	TriggerIntent string `json:"triggerIntent,omitempty"`
  7494  	// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to
  7495  	// unconditionally include in API requests. By default, fields with empty or
  7496  	// default values are omitted from API requests. See
  7497  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7498  	// details.
  7499  	ForceSendFields []string `json:"-"`
  7500  	// NullFields is a list of field names (e.g. "DetectIntentResponseId") to
  7501  	// include in API requests with the JSON null value. By default, fields with
  7502  	// empty values are omitted from API requests. See
  7503  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7504  	NullFields []string `json:"-"`
  7505  }
  7506  
  7507  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
  7508  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
  7509  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7510  }
  7511  
  7512  // GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: Represents
  7513  // fulfillment information communicated to the webhook.
  7514  type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
  7515  	// Tag: Always present. The value of the Fulfillment.tag field will be
  7516  	// populated in this field by Dialogflow when the associated webhook is called.
  7517  	// The tag is typically used by the webhook service to identify which
  7518  	// fulfillment is being called, but it could be used for other purposes.
  7519  	Tag string `json:"tag,omitempty"`
  7520  	// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally
  7521  	// include in API requests. By default, fields with empty or default values are
  7522  	// omitted from API requests. See
  7523  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7524  	// details.
  7525  	ForceSendFields []string `json:"-"`
  7526  	// NullFields is a list of field names (e.g. "Tag") to include in API requests
  7527  	// with the JSON null value. By default, fields with empty values are omitted
  7528  	// from API requests. See
  7529  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7530  	NullFields []string `json:"-"`
  7531  }
  7532  
  7533  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
  7534  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
  7535  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7536  }
  7537  
  7538  // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents intent
  7539  // information communicated to the webhook.
  7540  type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
  7541  	// Confidence: The confidence of the matched intent. Values range from 0.0
  7542  	// (completely uncertain) to 1.0 (completely certain).
  7543  	Confidence float64 `json:"confidence,omitempty"`
  7544  	// DisplayName: Always present. The display name of the last matched intent.
  7545  	DisplayName string `json:"displayName,omitempty"`
  7546  	// LastMatchedIntent: Always present. The unique identifier of the last matched
  7547  	// intent. Format: `projects//locations//agents//intents/`.
  7548  	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
  7549  	// Parameters: Parameters identified as a result of intent matching. This is a
  7550  	// map of the name of the identified parameter to the value of the parameter
  7551  	// identified from the user's utterance. All parameters defined in the matched
  7552  	// intent that are identified will be surfaced here.
  7553  	Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
  7554  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  7555  	// unconditionally include in API requests. By default, fields with empty or
  7556  	// default values are omitted from API requests. See
  7557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7558  	// details.
  7559  	ForceSendFields []string `json:"-"`
  7560  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  7561  	// requests with the JSON null value. By default, fields with empty values are
  7562  	// omitted from API requests. See
  7563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7564  	NullFields []string `json:"-"`
  7565  }
  7566  
  7567  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
  7568  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
  7569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7570  }
  7571  
  7572  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
  7573  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
  7574  	var s1 struct {
  7575  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7576  		*NoMethod
  7577  	}
  7578  	s1.NoMethod = (*NoMethod)(s)
  7579  	if err := json.Unmarshal(data, &s1); err != nil {
  7580  		return err
  7581  	}
  7582  	s.Confidence = float64(s1.Confidence)
  7583  	return nil
  7584  }
  7585  
  7586  // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue:
  7587  // Represents a value for an intent parameter.
  7588  type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
  7589  	// OriginalValue: Always present. Original text value extracted from user
  7590  	// utterance.
  7591  	OriginalValue string `json:"originalValue,omitempty"`
  7592  	// ResolvedValue: Always present. Structured value for the parameter extracted
  7593  	// from user utterance.
  7594  	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
  7595  	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
  7596  	// unconditionally include in API requests. By default, fields with empty or
  7597  	// default values are omitted from API requests. See
  7598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7599  	// details.
  7600  	ForceSendFields []string `json:"-"`
  7601  	// NullFields is a list of field names (e.g. "OriginalValue") to include in API
  7602  	// requests with the JSON null value. By default, fields with empty values are
  7603  	// omitted from API requests. See
  7604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7605  	NullFields []string `json:"-"`
  7606  }
  7607  
  7608  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
  7609  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
  7610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7611  }
  7612  
  7613  // GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:
  7614  // Represents the result of sentiment analysis.
  7615  type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
  7616  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
  7617  	// the absolute magnitude of sentiment, regardless of score (positive or
  7618  	// negative).
  7619  	Magnitude float64 `json:"magnitude,omitempty"`
  7620  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
  7621  	// sentiment).
  7622  	Score float64 `json:"score,omitempty"`
  7623  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
  7624  	// unconditionally include in API requests. By default, fields with empty or
  7625  	// default values are omitted from API requests. See
  7626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7627  	// details.
  7628  	ForceSendFields []string `json:"-"`
  7629  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
  7630  	// requests with the JSON null value. By default, fields with empty values are
  7631  	// omitted from API requests. See
  7632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7633  	NullFields []string `json:"-"`
  7634  }
  7635  
  7636  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
  7637  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
  7638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7639  }
  7640  
  7641  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
  7642  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
  7643  	var s1 struct {
  7644  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  7645  		Score     gensupport.JSONFloat64 `json:"score"`
  7646  		*NoMethod
  7647  	}
  7648  	s1.NoMethod = (*NoMethod)(s)
  7649  	if err := json.Unmarshal(data, &s1); err != nil {
  7650  		return err
  7651  	}
  7652  	s.Magnitude = float64(s1.Magnitude)
  7653  	s.Score = float64(s1.Score)
  7654  	return nil
  7655  }
  7656  
  7657  // GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message for a
  7658  // webhook call.
  7659  type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
  7660  	// FulfillmentResponse: The fulfillment response to send to the user. This
  7661  	// field can be omitted by the webhook if it does not intend to send any
  7662  	// response to the user.
  7663  	FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
  7664  	// PageInfo: Information about page status. This field can be omitted by the
  7665  	// webhook if it does not intend to modify page status.
  7666  	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
  7667  	// Payload: Value to append directly to QueryResult.webhook_payloads.
  7668  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  7669  	// SessionInfo: Information about session status. This field can be omitted by
  7670  	// the webhook if it does not intend to modify session status.
  7671  	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
  7672  	// TargetFlow: The target flow to transition to. Format:
  7673  	// `projects//locations//agents//flows/`.
  7674  	TargetFlow string `json:"targetFlow,omitempty"`
  7675  	// TargetPage: The target page to transition to. Format:
  7676  	// `projects//locations//agents//flows//pages/`.
  7677  	TargetPage string `json:"targetPage,omitempty"`
  7678  	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to
  7679  	// unconditionally include in API requests. By default, fields with empty or
  7680  	// default values are omitted from API requests. See
  7681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7682  	// details.
  7683  	ForceSendFields []string `json:"-"`
  7684  	// NullFields is a list of field names (e.g. "FulfillmentResponse") to include
  7685  	// in API requests with the JSON null value. By default, fields with empty
  7686  	// values are omitted from API requests. See
  7687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7688  	NullFields []string `json:"-"`
  7689  }
  7690  
  7691  func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
  7692  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
  7693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7694  }
  7695  
  7696  // GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: Represents
  7697  // a fulfillment response to the user.
  7698  type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
  7699  	// MergeBehavior: Merge behavior for `messages`.
  7700  	//
  7701  	// Possible values:
  7702  	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used.
  7703  	//   "APPEND" - `messages` will be appended to the list of messages waiting to
  7704  	// be sent to the user.
  7705  	//   "REPLACE" - `messages` will replace the list of messages waiting to be
  7706  	// sent to the user.
  7707  	MergeBehavior string `json:"mergeBehavior,omitempty"`
  7708  	// Messages: The list of rich message responses to present to the user.
  7709  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  7710  	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
  7711  	// unconditionally include in API requests. By default, fields with empty or
  7712  	// default values are omitted from API requests. See
  7713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7714  	// details.
  7715  	ForceSendFields []string `json:"-"`
  7716  	// NullFields is a list of field names (e.g. "MergeBehavior") to include in API
  7717  	// requests with the JSON null value. By default, fields with empty values are
  7718  	// omitted from API requests. See
  7719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7720  	NullFields []string `json:"-"`
  7721  }
  7722  
  7723  func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
  7724  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
  7725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7726  }
  7727  
  7728  // GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig: Represents
  7729  // configuration for a Service Directory
  7730  // (https://cloud.google.com/service-directory) service.
  7731  type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
  7732  	// GenericWebService: Generic Service configuration of this webhook.
  7733  	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
  7734  	// Service: Required. The name of Service Directory
  7735  	// (https://cloud.google.com/service-directory) service. Format:
  7736  	// `projects//locations//namespaces//services/`. `Location ID` of the service
  7737  	// directory must be the same as the location of the agent.
  7738  	Service string `json:"service,omitempty"`
  7739  	// ForceSendFields is a list of field names (e.g. "GenericWebService") to
  7740  	// unconditionally include in API requests. By default, fields with empty or
  7741  	// default values are omitted from API requests. See
  7742  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7743  	// details.
  7744  	ForceSendFields []string `json:"-"`
  7745  	// NullFields is a list of field names (e.g. "GenericWebService") to include in
  7746  	// API requests with the JSON null value. By default, fields with empty values
  7747  	// are omitted from API requests. See
  7748  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7749  	NullFields []string `json:"-"`
  7750  }
  7751  
  7752  func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
  7753  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
  7754  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7755  }
  7756  
  7757  // GoogleCloudDialogflowV2Agent: A Dialogflow agent is a virtual agent that
  7758  // handles conversations with your end-users. It is a natural language
  7759  // understanding module that understands the nuances of human language.
  7760  // Dialogflow translates end-user text or audio during a conversation to
  7761  // structured data that your apps and services can understand. You design and
  7762  // build a Dialogflow agent to handle the types of conversations required for
  7763  // your system. For more information about agents, see the Agent guide
  7764  // (https://cloud.google.com/dialogflow/docs/agents-overview).
  7765  type GoogleCloudDialogflowV2Agent struct {
  7766  	// ApiVersion: Optional. API version displayed in Dialogflow console. If not
  7767  	// specified, V2 API is assumed. Clients are free to query different service
  7768  	// endpoints for different API versions. However, bots connectors and webhook
  7769  	// calls will follow the specified API version.
  7770  	//
  7771  	// Possible values:
  7772  	//   "API_VERSION_UNSPECIFIED" - Not specified.
  7773  	//   "API_VERSION_V1" - Legacy V1 API.
  7774  	//   "API_VERSION_V2" - V2 API.
  7775  	//   "API_VERSION_V2_BETA_1" - V2beta1 API.
  7776  	ApiVersion string `json:"apiVersion,omitempty"`
  7777  	// AvatarUri: Optional. The URI of the agent's avatar. Avatars are used
  7778  	// throughout the Dialogflow console and in the self-hosted Web Demo
  7779  	// (https://cloud.google.com/dialogflow/docs/integrations/web-demo)
  7780  	// integration.
  7781  	AvatarUri string `json:"avatarUri,omitempty"`
  7782  	// ClassificationThreshold: Optional. To filter out false positive results and
  7783  	// still get variety in matched natural language inputs for your agent, you can
  7784  	// tune the machine learning classification threshold. If the returned score
  7785  	// value is less than the threshold value, then a fallback intent will be
  7786  	// triggered or, if there are no fallback intents defined, no intent will be
  7787  	// triggered. The score values range from 0.0 (completely uncertain) to 1.0
  7788  	// (completely certain). If set to 0.0, the default of 0.3 is used.
  7789  	ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
  7790  	// DefaultLanguageCode: Required. The default language of the agent as a
  7791  	// language tag. See Language Support
  7792  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  7793  	// the currently supported language codes. This field cannot be set by the
  7794  	// `Update` method.
  7795  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  7796  	// Description: Optional. The description of this agent. The maximum length is
  7797  	// 500 characters. If exceeded, the request is rejected.
  7798  	Description string `json:"description,omitempty"`
  7799  	// DisplayName: Required. The name of this agent.
  7800  	DisplayName string `json:"displayName,omitempty"`
  7801  	// EnableLogging: Optional. Determines whether this agent should log
  7802  	// conversation queries.
  7803  	EnableLogging bool `json:"enableLogging,omitempty"`
  7804  	// MatchMode: Optional. Determines how intents are detected from user queries.
  7805  	//
  7806  	// Possible values:
  7807  	//   "MATCH_MODE_UNSPECIFIED" - Not specified.
  7808  	//   "MATCH_MODE_HYBRID" - Best for agents with a small number of examples in
  7809  	// intents and/or wide use of templates syntax and composite entities.
  7810  	//   "MATCH_MODE_ML_ONLY" - Can be used for agents with a large number of
  7811  	// examples in intents, especially the ones using @sys.any or very large custom
  7812  	// entities.
  7813  	MatchMode string `json:"matchMode,omitempty"`
  7814  	// Parent: Required. The project of this agent. Format: `projects/`.
  7815  	Parent string `json:"parent,omitempty"`
  7816  	// SupportedLanguageCodes: Optional. The list of all languages supported by
  7817  	// this agent (except for the `default_language_code`).
  7818  	SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
  7819  	// Tier: Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
  7820  	//
  7821  	// Possible values:
  7822  	//   "TIER_UNSPECIFIED" - Not specified. This value should never be used.
  7823  	//   "TIER_STANDARD" - Trial Edition, previously known as Standard Edition.
  7824  	//   "TIER_ENTERPRISE" - Essentials Edition, previously known as Enterprise
  7825  	// Essential Edition.
  7826  	//   "TIER_ENTERPRISE_PLUS" - Essentials Edition (same as TIER_ENTERPRISE),
  7827  	// previously known as Enterprise Plus Edition.
  7828  	Tier string `json:"tier,omitempty"`
  7829  	// TimeZone: Required. The time zone of this agent from the time zone database
  7830  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  7831  	TimeZone string `json:"timeZone,omitempty"`
  7832  
  7833  	// ServerResponse contains the HTTP response code and headers from the server.
  7834  	googleapi.ServerResponse `json:"-"`
  7835  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  7836  	// unconditionally include in API requests. By default, fields with empty or
  7837  	// default values are omitted from API requests. See
  7838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7839  	// details.
  7840  	ForceSendFields []string `json:"-"`
  7841  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  7842  	// requests with the JSON null value. By default, fields with empty values are
  7843  	// omitted from API requests. See
  7844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7845  	NullFields []string `json:"-"`
  7846  }
  7847  
  7848  func (s *GoogleCloudDialogflowV2Agent) MarshalJSON() ([]byte, error) {
  7849  	type NoMethod GoogleCloudDialogflowV2Agent
  7850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7851  }
  7852  
  7853  func (s *GoogleCloudDialogflowV2Agent) UnmarshalJSON(data []byte) error {
  7854  	type NoMethod GoogleCloudDialogflowV2Agent
  7855  	var s1 struct {
  7856  		ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
  7857  		*NoMethod
  7858  	}
  7859  	s1.NoMethod = (*NoMethod)(s)
  7860  	if err := json.Unmarshal(data, &s1); err != nil {
  7861  		return err
  7862  	}
  7863  	s.ClassificationThreshold = float64(s1.ClassificationThreshold)
  7864  	return nil
  7865  }
  7866  
  7867  // GoogleCloudDialogflowV2AgentAssistantFeedback: Detail feedback of Agent
  7868  // Assist result.
  7869  type GoogleCloudDialogflowV2AgentAssistantFeedback struct {
  7870  	// AnswerRelevance: Optional. Whether or not the suggested answer is relevant.
  7871  	// For example: * Query: "Can I change my mailing address?" * Suggested
  7872  	// document says: "Items must be returned/exchanged within 60 days of the
  7873  	// purchase date." * answer_relevance: AnswerRelevance.IRRELEVANT
  7874  	//
  7875  	// Possible values:
  7876  	//   "ANSWER_RELEVANCE_UNSPECIFIED" - Answer relevance unspecified.
  7877  	//   "IRRELEVANT" - Answer is irrelevant to query.
  7878  	//   "RELEVANT" - Answer is relevant to query.
  7879  	AnswerRelevance string `json:"answerRelevance,omitempty"`
  7880  	// DocumentCorrectness: Optional. Whether or not the information in the
  7881  	// document is correct. For example: * Query: "Can I return the package in 2
  7882  	// days once received?" * Suggested document says: "Items must be
  7883  	// returned/exchanged within 60 days of the purchase date." * Ground truth: "No
  7884  	// return or exchange is allowed." * [document_correctness]: INCORRECT
  7885  	//
  7886  	// Possible values:
  7887  	//   "DOCUMENT_CORRECTNESS_UNSPECIFIED" - Document correctness unspecified.
  7888  	//   "INCORRECT" - Information in document is incorrect.
  7889  	//   "CORRECT" - Information in document is correct.
  7890  	DocumentCorrectness string `json:"documentCorrectness,omitempty"`
  7891  	// DocumentEfficiency: Optional. Whether or not the suggested document is
  7892  	// efficient. For example, if the document is poorly written, hard to
  7893  	// understand, hard to use or too long to find useful information,
  7894  	// document_efficiency is DocumentEfficiency.INEFFICIENT.
  7895  	//
  7896  	// Possible values:
  7897  	//   "DOCUMENT_EFFICIENCY_UNSPECIFIED" - Document efficiency unspecified.
  7898  	//   "INEFFICIENT" - Document is inefficient.
  7899  	//   "EFFICIENT" - Document is efficient.
  7900  	DocumentEfficiency string `json:"documentEfficiency,omitempty"`
  7901  	// KnowledgeSearchFeedback: Optional. Feedback for knowledge search.
  7902  	KnowledgeSearchFeedback *GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback `json:"knowledgeSearchFeedback,omitempty"`
  7903  	// SummarizationFeedback: Optional. Feedback for conversation summarization.
  7904  	SummarizationFeedback *GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`
  7905  	// ForceSendFields is a list of field names (e.g. "AnswerRelevance") to
  7906  	// unconditionally include in API requests. By default, fields with empty or
  7907  	// default values are omitted from API requests. See
  7908  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7909  	// details.
  7910  	ForceSendFields []string `json:"-"`
  7911  	// NullFields is a list of field names (e.g. "AnswerRelevance") to include in
  7912  	// API requests with the JSON null value. By default, fields with empty values
  7913  	// are omitted from API requests. See
  7914  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7915  	NullFields []string `json:"-"`
  7916  }
  7917  
  7918  func (s *GoogleCloudDialogflowV2AgentAssistantFeedback) MarshalJSON() ([]byte, error) {
  7919  	type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedback
  7920  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7921  }
  7922  
  7923  // GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback:
  7924  // Feedback for knowledge search.
  7925  type GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback struct {
  7926  	// AnswerCopied: Whether the answer was copied by the human agent or not. If
  7927  	// the value is set to be true, AnswerFeedback.clicked will be updated to be
  7928  	// true.
  7929  	AnswerCopied bool `json:"answerCopied,omitempty"`
  7930  	// ClickedUris: The URIs clicked by the human agent. The value is appended for
  7931  	// each UpdateAnswerRecordRequest. If the value is not empty,
  7932  	// AnswerFeedback.clicked will be updated to be true.
  7933  	ClickedUris []string `json:"clickedUris,omitempty"`
  7934  	// ForceSendFields is a list of field names (e.g. "AnswerCopied") to
  7935  	// unconditionally include in API requests. By default, fields with empty or
  7936  	// default values are omitted from API requests. See
  7937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7938  	// details.
  7939  	ForceSendFields []string `json:"-"`
  7940  	// NullFields is a list of field names (e.g. "AnswerCopied") to include in API
  7941  	// requests with the JSON null value. By default, fields with empty values are
  7942  	// omitted from API requests. See
  7943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7944  	NullFields []string `json:"-"`
  7945  }
  7946  
  7947  func (s *GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback) MarshalJSON() ([]byte, error) {
  7948  	type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback
  7949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7950  }
  7951  
  7952  // GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback: Feedback
  7953  // for conversation summarization.
  7954  type GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback struct {
  7955  	// StartTime: Timestamp when composing of the summary starts.
  7956  	StartTime string `json:"startTime,omitempty"`
  7957  	// SubmitTime: Timestamp when the summary was submitted.
  7958  	SubmitTime string `json:"submitTime,omitempty"`
  7959  	// SummaryText: Text of actual submitted summary.
  7960  	SummaryText string `json:"summaryText,omitempty"`
  7961  	// TextSections: Optional. Actual text sections of submitted summary.
  7962  	TextSections map[string]string `json:"textSections,omitempty"`
  7963  	// ForceSendFields is a list of field names (e.g. "StartTime") to
  7964  	// unconditionally include in API requests. By default, fields with empty or
  7965  	// default values are omitted from API requests. See
  7966  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7967  	// details.
  7968  	ForceSendFields []string `json:"-"`
  7969  	// NullFields is a list of field names (e.g. "StartTime") to include in API
  7970  	// requests with the JSON null value. By default, fields with empty values are
  7971  	// omitted from API requests. See
  7972  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7973  	NullFields []string `json:"-"`
  7974  }
  7975  
  7976  func (s *GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) {
  7977  	type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback
  7978  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7979  }
  7980  
  7981  // GoogleCloudDialogflowV2AgentAssistantRecord: Represents a record of a human
  7982  // agent assist answer.
  7983  type GoogleCloudDialogflowV2AgentAssistantRecord struct {
  7984  	// ArticleSuggestionAnswer: Output only. The article suggestion answer.
  7985  	ArticleSuggestionAnswer *GoogleCloudDialogflowV2ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`
  7986  	// DialogflowAssistAnswer: Output only. Dialogflow assist answer.
  7987  	DialogflowAssistAnswer *GoogleCloudDialogflowV2DialogflowAssistAnswer `json:"dialogflowAssistAnswer,omitempty"`
  7988  	// FaqAnswer: Output only. The FAQ answer.
  7989  	FaqAnswer *GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswer,omitempty"`
  7990  	// ForceSendFields is a list of field names (e.g. "ArticleSuggestionAnswer") to
  7991  	// unconditionally include in API requests. By default, fields with empty or
  7992  	// default values are omitted from API requests. See
  7993  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7994  	// details.
  7995  	ForceSendFields []string `json:"-"`
  7996  	// NullFields is a list of field names (e.g. "ArticleSuggestionAnswer") to
  7997  	// include in API requests with the JSON null value. By default, fields with
  7998  	// empty values are omitted from API requests. See
  7999  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8000  	NullFields []string `json:"-"`
  8001  }
  8002  
  8003  func (s *GoogleCloudDialogflowV2AgentAssistantRecord) MarshalJSON() ([]byte, error) {
  8004  	type NoMethod GoogleCloudDialogflowV2AgentAssistantRecord
  8005  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8006  }
  8007  
  8008  // GoogleCloudDialogflowV2AnalyzeContentRequest: The request message for
  8009  // Participants.AnalyzeContent.
  8010  type GoogleCloudDialogflowV2AnalyzeContentRequest struct {
  8011  	// AssistQueryParams: Parameters for a human assist query.
  8012  	AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
  8013  	// CxParameters: Additional parameters to be put into Dialogflow CX session
  8014  	// parameters. To remove a parameter from the session, clients should
  8015  	// explicitly set the parameter value to null. Note: this field should only be
  8016  	// used if you are connecting to a Dialogflow CX agent.
  8017  	CxParameters googleapi.RawMessage `json:"cxParameters,omitempty"`
  8018  	// EventInput: An input event to send to Dialogflow.
  8019  	EventInput *GoogleCloudDialogflowV2EventInput `json:"eventInput,omitempty"`
  8020  	// QueryParams: Parameters for a Dialogflow virtual-agent query.
  8021  	QueryParams *GoogleCloudDialogflowV2QueryParameters `json:"queryParams,omitempty"`
  8022  	// ReplyAudioConfig: Speech synthesis configuration. The speech synthesis
  8023  	// settings for a virtual agent that may be configured for the associated
  8024  	// conversation profile are not used when calling AnalyzeContent. If this
  8025  	// configuration is not supplied, speech synthesis is disabled.
  8026  	ReplyAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"replyAudioConfig,omitempty"`
  8027  	// RequestId: A unique identifier for this request. Restricted to 36 ASCII
  8028  	// characters. A random UUID is recommended. This request is only idempotent if
  8029  	// a `request_id` is provided.
  8030  	RequestId string `json:"requestId,omitempty"`
  8031  	// SuggestionInput: An input representing the selection of a suggestion.
  8032  	SuggestionInput *GoogleCloudDialogflowV2SuggestionInput `json:"suggestionInput,omitempty"`
  8033  	// TextInput: The natural language text to be processed.
  8034  	TextInput *GoogleCloudDialogflowV2TextInput `json:"textInput,omitempty"`
  8035  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
  8036  	// unconditionally include in API requests. By default, fields with empty or
  8037  	// default values are omitted from API requests. See
  8038  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8039  	// details.
  8040  	ForceSendFields []string `json:"-"`
  8041  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
  8042  	// API requests with the JSON null value. By default, fields with empty values
  8043  	// are omitted from API requests. See
  8044  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8045  	NullFields []string `json:"-"`
  8046  }
  8047  
  8048  func (s *GoogleCloudDialogflowV2AnalyzeContentRequest) MarshalJSON() ([]byte, error) {
  8049  	type NoMethod GoogleCloudDialogflowV2AnalyzeContentRequest
  8050  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8051  }
  8052  
  8053  // GoogleCloudDialogflowV2AnalyzeContentResponse: The response message for
  8054  // Participants.AnalyzeContent.
  8055  type GoogleCloudDialogflowV2AnalyzeContentResponse struct {
  8056  	// AutomatedAgentReply: Only set if a Dialogflow automated agent has responded.
  8057  	// Note that: AutomatedAgentReply.detect_intent_response.output_audio and
  8058  	// AutomatedAgentReply.detect_intent_response.output_audio_config are always
  8059  	// empty, use reply_audio instead.
  8060  	AutomatedAgentReply *GoogleCloudDialogflowV2AutomatedAgentReply `json:"automatedAgentReply,omitempty"`
  8061  	// DtmfParameters: Indicates the parameters of DTMF.
  8062  	DtmfParameters *GoogleCloudDialogflowV2DtmfParameters `json:"dtmfParameters,omitempty"`
  8063  	// EndUserSuggestionResults: The suggestions for end user. The order is the
  8064  	// same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
  8065  	// HumanAgentAssistantConfig.end_user_suggestion_config. Same as
  8066  	// human_agent_suggestion_results, any failure of Agent Assist features will
  8067  	// not lead to the overall failure of an AnalyzeContent API call. Instead, the
  8068  	// features will fail silently with the error field set in the corresponding
  8069  	// SuggestionResult.
  8070  	EndUserSuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"endUserSuggestionResults,omitempty"`
  8071  	// HumanAgentSuggestionResults: The suggestions for most recent human agent.
  8072  	// The order is the same as
  8073  	// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
  8074  	// HumanAgentAssistantConfig.human_agent_suggestion_config. Note that any
  8075  	// failure of Agent Assist features will not lead to the overall failure of an
  8076  	// AnalyzeContent API call. Instead, the features will fail silently with the
  8077  	// error field set in the corresponding SuggestionResult.
  8078  	HumanAgentSuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`
  8079  	// Message: Message analyzed by CCAI.
  8080  	Message *GoogleCloudDialogflowV2Message `json:"message,omitempty"`
  8081  	// ReplyAudio: The audio data bytes encoded as specified in the request. This
  8082  	// field is set if: - `reply_audio_config` was specified in the request, or -
  8083  	// The automated agent responded with audio to play to the user. In such case,
  8084  	// `reply_audio.config` contains settings used to synthesize the speech. In
  8085  	// some scenarios, multiple output audio fields may be present in the response
  8086  	// structure. In these cases, only the top-most-level audio output has content.
  8087  	ReplyAudio *GoogleCloudDialogflowV2OutputAudio `json:"replyAudio,omitempty"`
  8088  	// ReplyText: The output text content. This field is set if the automated agent
  8089  	// responded with text to show to the user.
  8090  	ReplyText string `json:"replyText,omitempty"`
  8091  
  8092  	// ServerResponse contains the HTTP response code and headers from the server.
  8093  	googleapi.ServerResponse `json:"-"`
  8094  	// ForceSendFields is a list of field names (e.g. "AutomatedAgentReply") to
  8095  	// unconditionally include in API requests. By default, fields with empty or
  8096  	// default values are omitted from API requests. See
  8097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8098  	// details.
  8099  	ForceSendFields []string `json:"-"`
  8100  	// NullFields is a list of field names (e.g. "AutomatedAgentReply") to include
  8101  	// in API requests with the JSON null value. By default, fields with empty
  8102  	// values are omitted from API requests. See
  8103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8104  	NullFields []string `json:"-"`
  8105  }
  8106  
  8107  func (s *GoogleCloudDialogflowV2AnalyzeContentResponse) MarshalJSON() ([]byte, error) {
  8108  	type NoMethod GoogleCloudDialogflowV2AnalyzeContentResponse
  8109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8110  }
  8111  
  8112  // GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a message
  8113  // possibly annotated with an entity. The part can be an entity or purely a
  8114  // part of the message between two entities or message start/end.
  8115  type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
  8116  	// EntityType: The Dialogflow system entity type
  8117  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
  8118  	// message part. If this is empty, Dialogflow could not annotate the phrase
  8119  	// part with a system entity.
  8120  	EntityType string `json:"entityType,omitempty"`
  8121  	// FormattedValue: The Dialogflow system entity formatted value
  8122  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
  8123  	// message part. For example for a system entity of type `@sys.unit-currency`,
  8124  	// this may contain: { "amount": 5, "currency": "USD" }
  8125  	FormattedValue interface{} `json:"formattedValue,omitempty"`
  8126  	// Text: A part of a message possibly annotated with an entity.
  8127  	Text string `json:"text,omitempty"`
  8128  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  8129  	// unconditionally include in API requests. By default, fields with empty or
  8130  	// default values are omitted from API requests. See
  8131  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8132  	// details.
  8133  	ForceSendFields []string `json:"-"`
  8134  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  8135  	// requests with the JSON null value. By default, fields with empty values are
  8136  	// omitted from API requests. See
  8137  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8138  	NullFields []string `json:"-"`
  8139  }
  8140  
  8141  func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
  8142  	type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
  8143  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8144  }
  8145  
  8146  // GoogleCloudDialogflowV2AnswerFeedback: Represents feedback the customer has
  8147  // about the quality & correctness of a certain answer in a conversation.
  8148  type GoogleCloudDialogflowV2AnswerFeedback struct {
  8149  	// AgentAssistantDetailFeedback: Detail feedback of agent assist suggestions.
  8150  	AgentAssistantDetailFeedback *GoogleCloudDialogflowV2AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`
  8151  	// ClickTime: Time when the answer/item was clicked.
  8152  	ClickTime string `json:"clickTime,omitempty"`
  8153  	// Clicked: Indicates whether the answer/item was clicked by the human agent or
  8154  	// not. Default to false. For knowledge search and knowledge assist, the answer
  8155  	// record is considered to be clicked if the answer was copied or any URI was
  8156  	// clicked.
  8157  	Clicked bool `json:"clicked,omitempty"`
  8158  	// CorrectnessLevel: The correctness level of the specific answer.
  8159  	//
  8160  	// Possible values:
  8161  	//   "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified.
  8162  	//   "NOT_CORRECT" - Answer is totally wrong.
  8163  	//   "PARTIALLY_CORRECT" - Answer is partially correct.
  8164  	//   "FULLY_CORRECT" - Answer is fully correct.
  8165  	CorrectnessLevel string `json:"correctnessLevel,omitempty"`
  8166  	// DisplayTime: Time when the answer/item was displayed.
  8167  	DisplayTime string `json:"displayTime,omitempty"`
  8168  	// Displayed: Indicates whether the answer/item was displayed to the human
  8169  	// agent in the agent desktop UI. Default to false.
  8170  	Displayed bool `json:"displayed,omitempty"`
  8171  	// ForceSendFields is a list of field names (e.g.
  8172  	// "AgentAssistantDetailFeedback") to unconditionally include in API requests.
  8173  	// By default, fields with empty or default values are omitted from API
  8174  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  8175  	// for more details.
  8176  	ForceSendFields []string `json:"-"`
  8177  	// NullFields is a list of field names (e.g. "AgentAssistantDetailFeedback") to
  8178  	// include in API requests with the JSON null value. By default, fields with
  8179  	// empty values are omitted from API requests. See
  8180  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8181  	NullFields []string `json:"-"`
  8182  }
  8183  
  8184  func (s *GoogleCloudDialogflowV2AnswerFeedback) MarshalJSON() ([]byte, error) {
  8185  	type NoMethod GoogleCloudDialogflowV2AnswerFeedback
  8186  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8187  }
  8188  
  8189  // GoogleCloudDialogflowV2AnswerRecord: Answer records are records to manage
  8190  // answer history and feedbacks for Dialogflow. Currently, answer record
  8191  // includes: - human agent assistant article suggestion - human agent assistant
  8192  // faq article It doesn't include: - `DetectIntent` intent matching -
  8193  // `DetectIntent` knowledge Answer records are not related to the conversation
  8194  // history in the Dialogflow Console. A Record is generated even when the
  8195  // end-user disables conversation history in the console. Records are created
  8196  // when there's a human agent assistant suggestion generated. A typical
  8197  // workflow for customers provide feedback to an answer is: 1. For human agent
  8198  // assistant, customers get suggestion via ListSuggestions API. Together with
  8199  // the answers, AnswerRecord.name are returned to the customers. 2. The
  8200  // customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to
  8201  // send feedback about a specific answer that they believe is wrong.
  8202  type GoogleCloudDialogflowV2AnswerRecord struct {
  8203  	// AgentAssistantRecord: Output only. The record for human agent assistant.
  8204  	AgentAssistantRecord *GoogleCloudDialogflowV2AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`
  8205  	// AnswerFeedback: Required. The AnswerFeedback for this record. You can set
  8206  	// this with AnswerRecords.UpdateAnswerRecord in order to give us feedback
  8207  	// about this answer.
  8208  	AnswerFeedback *GoogleCloudDialogflowV2AnswerFeedback `json:"answerFeedback,omitempty"`
  8209  	// Name: The unique identifier of this answer record. Format:
  8210  	// `projects//locations//answerRecords/`.
  8211  	Name string `json:"name,omitempty"`
  8212  
  8213  	// ServerResponse contains the HTTP response code and headers from the server.
  8214  	googleapi.ServerResponse `json:"-"`
  8215  	// ForceSendFields is a list of field names (e.g. "AgentAssistantRecord") to
  8216  	// unconditionally include in API requests. By default, fields with empty or
  8217  	// default values are omitted from API requests. See
  8218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8219  	// details.
  8220  	ForceSendFields []string `json:"-"`
  8221  	// NullFields is a list of field names (e.g. "AgentAssistantRecord") to include
  8222  	// in API requests with the JSON null value. By default, fields with empty
  8223  	// values are omitted from API requests. See
  8224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8225  	NullFields []string `json:"-"`
  8226  }
  8227  
  8228  func (s *GoogleCloudDialogflowV2AnswerRecord) MarshalJSON() ([]byte, error) {
  8229  	type NoMethod GoogleCloudDialogflowV2AnswerRecord
  8230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8231  }
  8232  
  8233  // GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.
  8234  type GoogleCloudDialogflowV2ArticleAnswer struct {
  8235  	// AnswerRecord: The name of answer record, in the format of
  8236  	// "projects//locations//answerRecords/"
  8237  	AnswerRecord string `json:"answerRecord,omitempty"`
  8238  	// Confidence: Article match confidence. The system's confidence score that
  8239  	// this article is a good match for this conversation, as a value from 0.0
  8240  	// (completely uncertain) to 1.0 (completely certain).
  8241  	Confidence float64 `json:"confidence,omitempty"`
  8242  	// Metadata: A map that contains metadata about the answer and the document
  8243  	// from which it originates.
  8244  	Metadata map[string]string `json:"metadata,omitempty"`
  8245  	// Snippets: Article snippets.
  8246  	Snippets []string `json:"snippets,omitempty"`
  8247  	// Title: The article title.
  8248  	Title string `json:"title,omitempty"`
  8249  	// Uri: The article URI.
  8250  	Uri string `json:"uri,omitempty"`
  8251  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
  8252  	// unconditionally include in API requests. By default, fields with empty or
  8253  	// default values are omitted from API requests. See
  8254  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8255  	// details.
  8256  	ForceSendFields []string `json:"-"`
  8257  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
  8258  	// requests with the JSON null value. By default, fields with empty values are
  8259  	// omitted from API requests. See
  8260  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8261  	NullFields []string `json:"-"`
  8262  }
  8263  
  8264  func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
  8265  	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
  8266  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8267  }
  8268  
  8269  func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
  8270  	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
  8271  	var s1 struct {
  8272  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  8273  		*NoMethod
  8274  	}
  8275  	s1.NoMethod = (*NoMethod)(s)
  8276  	if err := json.Unmarshal(data, &s1); err != nil {
  8277  		return err
  8278  	}
  8279  	s.Confidence = float64(s1.Confidence)
  8280  	return nil
  8281  }
  8282  
  8283  // GoogleCloudDialogflowV2ArticleSuggestionModelMetadata: Metadata for article
  8284  // suggestion models.
  8285  type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
  8286  	// TrainingModelType: Optional. Type of the article suggestion model. If not
  8287  	// provided, model_type is used.
  8288  	//
  8289  	// Possible values:
  8290  	//   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.
  8291  	//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder
  8292  	// model.
  8293  	//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.
  8294  	TrainingModelType string `json:"trainingModelType,omitempty"`
  8295  	// ForceSendFields is a list of field names (e.g. "TrainingModelType") to
  8296  	// unconditionally include in API requests. By default, fields with empty or
  8297  	// default values are omitted from API requests. See
  8298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8299  	// details.
  8300  	ForceSendFields []string `json:"-"`
  8301  	// NullFields is a list of field names (e.g. "TrainingModelType") to include in
  8302  	// API requests with the JSON null value. By default, fields with empty values
  8303  	// are omitted from API requests. See
  8304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8305  	NullFields []string `json:"-"`
  8306  }
  8307  
  8308  func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
  8309  	type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
  8310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8311  }
  8312  
  8313  // GoogleCloudDialogflowV2AssistQueryParameters: Represents the parameters of
  8314  // human assist query.
  8315  type GoogleCloudDialogflowV2AssistQueryParameters struct {
  8316  	// DocumentsMetadataFilters: Key-value filters on the metadata of documents
  8317  	// returned by article suggestion. If specified, article suggestion only
  8318  	// returns suggested documents that match all filters in their
  8319  	// Document.metadata. Multiple values for a metadata key should be concatenated
  8320  	// by comma. For example, filters to match all documents that have 'US' or 'CA'
  8321  	// in their market metadata values and 'agent' in their user metadata values
  8322  	// will be ``` documents_metadata_filters { key: "market" value: "US,CA" }
  8323  	// documents_metadata_filters { key: "user" value: "agent" } ```
  8324  	DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
  8325  	// ForceSendFields is a list of field names (e.g. "DocumentsMetadataFilters")
  8326  	// to 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. "DocumentsMetadataFilters") to
  8332  	// include in API requests with the JSON null value. By default, fields with
  8333  	// empty values are 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 *GoogleCloudDialogflowV2AssistQueryParameters) MarshalJSON() ([]byte, error) {
  8339  	type NoMethod GoogleCloudDialogflowV2AssistQueryParameters
  8340  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8341  }
  8342  
  8343  // GoogleCloudDialogflowV2AutomatedAgentConfig: Defines the Automated Agent to
  8344  // connect to a conversation.
  8345  type GoogleCloudDialogflowV2AutomatedAgentConfig struct {
  8346  	// Agent: Required. ID of the Dialogflow agent environment to use. This project
  8347  	// needs to either be the same project as the conversation or you need to grant
  8348  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
  8349  	// Service Agent` role in this project. - For ES agents, use format:
  8350  	// `projects//locations//agent/environments/`. If environment is not specified,
  8351  	// the default `draft` environment is used. Refer to DetectIntentRequest
  8352  	// (/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialo
  8353  	// gflow.v2.DetectIntentRequest) for more details. - For CX agents, use format
  8354  	// `projects//locations//agents//environments/`. If environment is not
  8355  	// specified, the default `draft` environment is used.
  8356  	Agent string `json:"agent,omitempty"`
  8357  	// SessionTtl: Optional. Configure lifetime of the Dialogflow session. By
  8358  	// default, a Dialogflow CX session remains active and its data is stored for
  8359  	// 30 minutes after the last request is sent for the session. This value should
  8360  	// be no longer than 1 day.
  8361  	SessionTtl string `json:"sessionTtl,omitempty"`
  8362  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
  8363  	// include in API requests. By default, fields with empty or default values are
  8364  	// omitted from API requests. See
  8365  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8366  	// details.
  8367  	ForceSendFields []string `json:"-"`
  8368  	// NullFields is a list of field names (e.g. "Agent") to include in API
  8369  	// requests with the JSON null value. By default, fields with empty values are
  8370  	// omitted from API requests. See
  8371  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8372  	NullFields []string `json:"-"`
  8373  }
  8374  
  8375  func (s *GoogleCloudDialogflowV2AutomatedAgentConfig) MarshalJSON() ([]byte, error) {
  8376  	type NoMethod GoogleCloudDialogflowV2AutomatedAgentConfig
  8377  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8378  }
  8379  
  8380  // GoogleCloudDialogflowV2AutomatedAgentReply: Represents a response from an
  8381  // automated agent.
  8382  type GoogleCloudDialogflowV2AutomatedAgentReply struct {
  8383  	// AllowCancellation: Indicates whether the partial automated agent reply is
  8384  	// interruptible when a later reply message arrives. e.g. if the agent
  8385  	// specified some music as partial response, it can be cancelled.
  8386  	AllowCancellation bool `json:"allowCancellation,omitempty"`
  8387  	// AutomatedAgentReplyType: AutomatedAgentReply type.
  8388  	//
  8389  	// Possible values:
  8390  	//   "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED" - Not specified. This should
  8391  	// never happen.
  8392  	//   "PARTIAL" - Partial reply. e.g. Aggregated responses in a `Fulfillment`
  8393  	// that enables `return_partial_response` can be returned as partial reply.
  8394  	// WARNING: partial reply is not eligible for barge-in.
  8395  	//   "FINAL" - Final reply.
  8396  	AutomatedAgentReplyType string `json:"automatedAgentReplyType,omitempty"`
  8397  	// CxCurrentPage: The unique identifier of the current Dialogflow CX
  8398  	// conversation page. Format: `projects//locations//agents//flows//pages/`.
  8399  	CxCurrentPage string `json:"cxCurrentPage,omitempty"`
  8400  	// DetectIntentResponse: Response of the Dialogflow Sessions.DetectIntent call.
  8401  	DetectIntentResponse *GoogleCloudDialogflowV2DetectIntentResponse `json:"detectIntentResponse,omitempty"`
  8402  	// ForceSendFields is a list of field names (e.g. "AllowCancellation") to
  8403  	// unconditionally include in API requests. By default, fields with empty or
  8404  	// default values are omitted from API requests. See
  8405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8406  	// details.
  8407  	ForceSendFields []string `json:"-"`
  8408  	// NullFields is a list of field names (e.g. "AllowCancellation") to include in
  8409  	// API requests with the JSON null value. By default, fields with empty values
  8410  	// are omitted from API requests. See
  8411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8412  	NullFields []string `json:"-"`
  8413  }
  8414  
  8415  func (s *GoogleCloudDialogflowV2AutomatedAgentReply) MarshalJSON() ([]byte, error) {
  8416  	type NoMethod GoogleCloudDialogflowV2AutomatedAgentReply
  8417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8418  }
  8419  
  8420  // GoogleCloudDialogflowV2BatchCreateEntitiesRequest: The request message for
  8421  // EntityTypes.BatchCreateEntities.
  8422  type GoogleCloudDialogflowV2BatchCreateEntitiesRequest struct {
  8423  	// Entities: Required. The entities to create.
  8424  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
  8425  	// LanguageCode: Optional. The language used to access language-specific data.
  8426  	// If not specified, the agent's default language is used. For more
  8427  	// information, see Multilingual intent and entity data
  8428  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
  8429  	LanguageCode string `json:"languageCode,omitempty"`
  8430  	// ForceSendFields is a list of field names (e.g. "Entities") to
  8431  	// unconditionally include in API requests. By default, fields with empty or
  8432  	// default values are omitted from API requests. See
  8433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8434  	// details.
  8435  	ForceSendFields []string `json:"-"`
  8436  	// NullFields is a list of field names (e.g. "Entities") to include in API
  8437  	// requests with the JSON null value. By default, fields with empty values are
  8438  	// omitted from API requests. See
  8439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8440  	NullFields []string `json:"-"`
  8441  }
  8442  
  8443  func (s *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) {
  8444  	type NoMethod GoogleCloudDialogflowV2BatchCreateEntitiesRequest
  8445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8446  }
  8447  
  8448  // GoogleCloudDialogflowV2BatchDeleteEntitiesRequest: The request message for
  8449  // EntityTypes.BatchDeleteEntities.
  8450  type GoogleCloudDialogflowV2BatchDeleteEntitiesRequest struct {
  8451  	// EntityValues: Required. The reference `values` of the entities to delete.
  8452  	// Note that these are not fully-qualified names, i.e. they don't start with
  8453  	// `projects/`.
  8454  	EntityValues []string `json:"entityValues,omitempty"`
  8455  	// LanguageCode: Optional. The language used to access language-specific data.
  8456  	// If not specified, the agent's default language is used. For more
  8457  	// information, see Multilingual intent and entity data
  8458  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
  8459  	LanguageCode string `json:"languageCode,omitempty"`
  8460  	// ForceSendFields is a list of field names (e.g. "EntityValues") to
  8461  	// unconditionally include in API requests. By default, fields with empty or
  8462  	// default values are omitted from API requests. See
  8463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8464  	// details.
  8465  	ForceSendFields []string `json:"-"`
  8466  	// NullFields is a list of field names (e.g. "EntityValues") to include in API
  8467  	// requests with the JSON null value. By default, fields with empty values are
  8468  	// omitted from API requests. See
  8469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8470  	NullFields []string `json:"-"`
  8471  }
  8472  
  8473  func (s *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) {
  8474  	type NoMethod GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
  8475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8476  }
  8477  
  8478  // GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest: The request message
  8479  // for EntityTypes.BatchDeleteEntityTypes.
  8480  type GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest struct {
  8481  	// EntityTypeNames: Required. The names entity types to delete. All names must
  8482  	// point to the same agent as `parent`.
  8483  	EntityTypeNames []string `json:"entityTypeNames,omitempty"`
  8484  	// ForceSendFields is a list of field names (e.g. "EntityTypeNames") to
  8485  	// unconditionally include in API requests. By default, fields with empty or
  8486  	// default values are omitted from API requests. See
  8487  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8488  	// details.
  8489  	ForceSendFields []string `json:"-"`
  8490  	// NullFields is a list of field names (e.g. "EntityTypeNames") to include in
  8491  	// API requests with the JSON null value. By default, fields with empty values
  8492  	// are omitted from API requests. See
  8493  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8494  	NullFields []string `json:"-"`
  8495  }
  8496  
  8497  func (s *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) {
  8498  	type NoMethod GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
  8499  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8500  }
  8501  
  8502  // GoogleCloudDialogflowV2BatchDeleteIntentsRequest: The request message for
  8503  // Intents.BatchDeleteIntents.
  8504  type GoogleCloudDialogflowV2BatchDeleteIntentsRequest struct {
  8505  	// Intents: Required. The collection of intents to delete. Only intent `name`
  8506  	// must be filled in.
  8507  	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
  8508  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
  8509  	// include in API requests. By default, fields with empty or default values are
  8510  	// omitted from API requests. See
  8511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8512  	// details.
  8513  	ForceSendFields []string `json:"-"`
  8514  	// NullFields is a list of field names (e.g. "Intents") to include in API
  8515  	// requests with the JSON null value. By default, fields with empty values are
  8516  	// omitted from API requests. See
  8517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8518  	NullFields []string `json:"-"`
  8519  }
  8520  
  8521  func (s *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) {
  8522  	type NoMethod GoogleCloudDialogflowV2BatchDeleteIntentsRequest
  8523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8524  }
  8525  
  8526  // GoogleCloudDialogflowV2BatchUpdateEntitiesRequest: The request message for
  8527  // EntityTypes.BatchUpdateEntities.
  8528  type GoogleCloudDialogflowV2BatchUpdateEntitiesRequest struct {
  8529  	// Entities: Required. The entities to update or create.
  8530  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
  8531  	// LanguageCode: Optional. The language used to access language-specific data.
  8532  	// If not specified, the agent's default language is used. For more
  8533  	// information, see Multilingual intent and entity data
  8534  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
  8535  	LanguageCode string `json:"languageCode,omitempty"`
  8536  	// UpdateMask: Optional. The mask to control which fields get updated.
  8537  	UpdateMask string `json:"updateMask,omitempty"`
  8538  	// ForceSendFields is a list of field names (e.g. "Entities") to
  8539  	// unconditionally include in API requests. By default, fields with empty or
  8540  	// default values are omitted from API requests. See
  8541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8542  	// details.
  8543  	ForceSendFields []string `json:"-"`
  8544  	// NullFields is a list of field names (e.g. "Entities") to include in API
  8545  	// requests with the JSON null value. By default, fields with empty values are
  8546  	// omitted from API requests. See
  8547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8548  	NullFields []string `json:"-"`
  8549  }
  8550  
  8551  func (s *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) {
  8552  	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
  8553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8554  }
  8555  
  8556  // GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest: The request message
  8557  // for EntityTypes.BatchUpdateEntityTypes.
  8558  type GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest struct {
  8559  	// EntityTypeBatchInline: The collection of entity types to update or create.
  8560  	EntityTypeBatchInline *GoogleCloudDialogflowV2EntityTypeBatch `json:"entityTypeBatchInline,omitempty"`
  8561  	// EntityTypeBatchUri: The URI to a Google Cloud Storage file containing entity
  8562  	// types to update or create. The file format can either be a serialized proto
  8563  	// (of EntityBatch type) or a JSON object. Note: The URI must start with
  8564  	// "gs://".
  8565  	EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"`
  8566  	// LanguageCode: Optional. The language used to access language-specific data.
  8567  	// If not specified, the agent's default language is used. For more
  8568  	// information, see Multilingual intent and entity data
  8569  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
  8570  	LanguageCode string `json:"languageCode,omitempty"`
  8571  	// UpdateMask: Optional. The mask to control which fields get updated.
  8572  	UpdateMask string `json:"updateMask,omitempty"`
  8573  	// ForceSendFields is a list of field names (e.g. "EntityTypeBatchInline") to
  8574  	// unconditionally include in API requests. By default, fields with empty or
  8575  	// default values are omitted from API requests. See
  8576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8577  	// details.
  8578  	ForceSendFields []string `json:"-"`
  8579  	// NullFields is a list of field names (e.g. "EntityTypeBatchInline") to
  8580  	// include in API requests with the JSON null value. By default, fields with
  8581  	// empty values are omitted from API requests. See
  8582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8583  	NullFields []string `json:"-"`
  8584  }
  8585  
  8586  func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) {
  8587  	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
  8588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8589  }
  8590  
  8591  // GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response message
  8592  // for EntityTypes.BatchUpdateEntityTypes.
  8593  type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
  8594  	// EntityTypes: The collection of updated or created entity types.
  8595  	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
  8596  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
  8597  	// unconditionally include in API requests. By default, fields with empty or
  8598  	// default values are omitted from API requests. See
  8599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8600  	// details.
  8601  	ForceSendFields []string `json:"-"`
  8602  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
  8603  	// requests with the JSON null value. By default, fields with empty values are
  8604  	// omitted from API requests. See
  8605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8606  	NullFields []string `json:"-"`
  8607  }
  8608  
  8609  func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
  8610  	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
  8611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8612  }
  8613  
  8614  type GoogleCloudDialogflowV2BatchUpdateIntentsRequest struct {
  8615  	// IntentBatchInline: The collection of intents to update or create.
  8616  	IntentBatchInline *GoogleCloudDialogflowV2IntentBatch `json:"intentBatchInline,omitempty"`
  8617  	// IntentBatchUri: The URI to a Google Cloud Storage file containing intents to
  8618  	// update or create. The file format can either be a serialized proto (of
  8619  	// IntentBatch type) or JSON object. Note: The URI must start with "gs://".
  8620  	IntentBatchUri string `json:"intentBatchUri,omitempty"`
  8621  	// IntentView: Optional. The resource view to apply to the returned intent.
  8622  	//
  8623  	// Possible values:
  8624  	//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
  8625  	// response.
  8626  	//   "INTENT_VIEW_FULL" - All fields are populated.
  8627  	IntentView string `json:"intentView,omitempty"`
  8628  	// LanguageCode: Optional. The language used to access language-specific data.
  8629  	// If not specified, the agent's default language is used. For more
  8630  	// information, see Multilingual intent and entity data
  8631  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
  8632  	LanguageCode string `json:"languageCode,omitempty"`
  8633  	// UpdateMask: Optional. The mask to control which fields get updated.
  8634  	UpdateMask string `json:"updateMask,omitempty"`
  8635  	// ForceSendFields is a list of field names (e.g. "IntentBatchInline") to
  8636  	// unconditionally include in API requests. By default, fields with empty or
  8637  	// default values are omitted from API requests. See
  8638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8639  	// details.
  8640  	ForceSendFields []string `json:"-"`
  8641  	// NullFields is a list of field names (e.g. "IntentBatchInline") to include in
  8642  	// API requests with the JSON null value. By default, fields with empty values
  8643  	// are omitted from API requests. See
  8644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8645  	NullFields []string `json:"-"`
  8646  }
  8647  
  8648  func (s *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) {
  8649  	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsRequest
  8650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8651  }
  8652  
  8653  // GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response message for
  8654  // Intents.BatchUpdateIntents.
  8655  type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
  8656  	// Intents: The collection of updated or created intents.
  8657  	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
  8658  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
  8659  	// include in API requests. By default, fields with empty or default values are
  8660  	// 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. "Intents") to include in API
  8665  	// requests with the JSON null value. By default, fields with empty values are
  8666  	// 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 *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
  8672  	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
  8673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8674  }
  8675  
  8676  // GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata:
  8677  // Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
  8678  type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
  8679  	// ConversationProfile: The resource name of the conversation profile. Format:
  8680  	// `projects//locations//conversationProfiles/`
  8681  	ConversationProfile string `json:"conversationProfile,omitempty"`
  8682  	// CreateTime: Timestamp whe the request was created. The time is measured on
  8683  	// server side.
  8684  	CreateTime string `json:"createTime,omitempty"`
  8685  	// ParticipantRole: Required. The participant role to remove the suggestion
  8686  	// feature config. Only HUMAN_AGENT or END_USER can be used.
  8687  	//
  8688  	// Possible values:
  8689  	//   "ROLE_UNSPECIFIED" - Participant role not set.
  8690  	//   "HUMAN_AGENT" - Participant is a human agent.
  8691  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
  8692  	// Dialogflow agent.
  8693  	//   "END_USER" - Participant is an end user that has called or chatted with
  8694  	// Dialogflow services.
  8695  	ParticipantRole string `json:"participantRole,omitempty"`
  8696  	// SuggestionFeatureType: Required. The type of the suggestion feature to
  8697  	// remove.
  8698  	//
  8699  	// Possible values:
  8700  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
  8701  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
  8702  	//   "FAQ" - Run FAQ model for chat.
  8703  	//   "SMART_REPLY" - Run smart reply model for chat.
  8704  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
  8705  	// text generated query.
  8706  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
  8707  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
  8708  	// unconditionally include in API requests. By default, fields with empty or
  8709  	// default values are omitted from API requests. See
  8710  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8711  	// details.
  8712  	ForceSendFields []string `json:"-"`
  8713  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
  8714  	// in API requests with the JSON null value. By default, fields with empty
  8715  	// values are omitted from API requests. See
  8716  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8717  	NullFields []string `json:"-"`
  8718  }
  8719  
  8720  func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  8721  	type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
  8722  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8723  }
  8724  
  8725  // GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest: The request
  8726  // message for ConversationProfiles.ClearFeature.
  8727  type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest struct {
  8728  	// ParticipantRole: Required. The participant role to remove the suggestion
  8729  	// feature config. Only HUMAN_AGENT or END_USER can be used.
  8730  	//
  8731  	// Possible values:
  8732  	//   "ROLE_UNSPECIFIED" - Participant role not set.
  8733  	//   "HUMAN_AGENT" - Participant is a human agent.
  8734  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
  8735  	// Dialogflow agent.
  8736  	//   "END_USER" - Participant is an end user that has called or chatted with
  8737  	// Dialogflow services.
  8738  	ParticipantRole string `json:"participantRole,omitempty"`
  8739  	// SuggestionFeatureType: Required. The type of the suggestion feature to
  8740  	// remove.
  8741  	//
  8742  	// Possible values:
  8743  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
  8744  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
  8745  	//   "FAQ" - Run FAQ model for chat.
  8746  	//   "SMART_REPLY" - Run smart reply model for chat.
  8747  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
  8748  	// text generated query.
  8749  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
  8750  	// ForceSendFields is a list of field names (e.g. "ParticipantRole") to
  8751  	// unconditionally include in API requests. By default, fields with empty or
  8752  	// default values are omitted from API requests. See
  8753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8754  	// details.
  8755  	ForceSendFields []string `json:"-"`
  8756  	// NullFields is a list of field names (e.g. "ParticipantRole") to include in
  8757  	// API requests with the JSON null value. By default, fields with empty values
  8758  	// are omitted from API requests. See
  8759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8760  	NullFields []string `json:"-"`
  8761  }
  8762  
  8763  func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
  8764  	type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
  8765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8766  }
  8767  
  8768  // GoogleCloudDialogflowV2CompleteConversationRequest: The request message for
  8769  // Conversations.CompleteConversation.
  8770  type GoogleCloudDialogflowV2CompleteConversationRequest struct {
  8771  }
  8772  
  8773  // GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to natural
  8774  // language context. If a person says to you "they are orange", you need
  8775  // context in order to understand what "they" is referring to. Similarly, for
  8776  // Dialogflow to handle an end-user expression like that, it needs to be
  8777  // provided with context in order to correctly match an intent. Using contexts,
  8778  // you can control the flow of a conversation. You can configure contexts for
  8779  // an intent by setting input and output contexts, which are identified by
  8780  // string names. When an intent is matched, any configured output contexts for
  8781  // that intent become active. While any contexts are active, Dialogflow is more
  8782  // likely to match intents that are configured with input contexts that
  8783  // correspond to the currently active contexts. For more information about
  8784  // context, see the Contexts guide
  8785  // (https://cloud.google.com/dialogflow/docs/contexts-overview).
  8786  type GoogleCloudDialogflowV2Context struct {
  8787  	// LifespanCount: Optional. The number of conversational query requests after
  8788  	// which the context expires. The default is `0`. If set to `0`, the context
  8789  	// expires immediately. Contexts expire automatically after 20 minutes if there
  8790  	// are no matching queries.
  8791  	LifespanCount int64 `json:"lifespanCount,omitempty"`
  8792  	// Name: Required. The unique identifier of the context. Format:
  8793  	// `projects//agent/sessions//contexts/`, or
  8794  	// `projects//agent/environments//users//sessions//contexts/`. The `Context ID`
  8795  	// is always converted to lowercase, may only contain characters in
  8796  	// `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is not
  8797  	// specified, we assume default 'draft' environment. If `User ID` is not
  8798  	// specified, we assume default '-' user. The following context names are
  8799  	// reserved for internal use by Dialogflow. You should not use these contexts
  8800  	// or create contexts with these names: * `__system_counters__` *
  8801  	// `*_id_dialog_context` * `*_dialog_params_size`
  8802  	Name string `json:"name,omitempty"`
  8803  	// Parameters: Optional. The collection of parameters associated with this
  8804  	// context. Depending on your protocol or client library language, this is a
  8805  	// map, associative array, symbol table, dictionary, or JSON object composed of
  8806  	// a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
  8807  	// value: parameter name * MapValue type: If parameter's entity type is a
  8808  	// composite entity then use map, otherwise, depending on the parameter value
  8809  	// type, it could be one of string, number, boolean, null, list or map. *
  8810  	// MapValue value: If parameter's entity type is a composite entity then use
  8811  	// map from composite entity property names to property values, otherwise, use
  8812  	// parameter value.
  8813  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  8814  
  8815  	// ServerResponse contains the HTTP response code and headers from the server.
  8816  	googleapi.ServerResponse `json:"-"`
  8817  	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
  8818  	// unconditionally include in API requests. By default, fields with empty or
  8819  	// default values are omitted from API requests. See
  8820  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8821  	// details.
  8822  	ForceSendFields []string `json:"-"`
  8823  	// NullFields is a list of field names (e.g. "LifespanCount") to include in API
  8824  	// requests with the JSON null value. By default, fields with empty values are
  8825  	// omitted from API requests. See
  8826  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8827  	NullFields []string `json:"-"`
  8828  }
  8829  
  8830  func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
  8831  	type NoMethod GoogleCloudDialogflowV2Context
  8832  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8833  }
  8834  
  8835  // GoogleCloudDialogflowV2Conversation: Represents a conversation. A
  8836  // conversation is an interaction between an agent, including live agents and
  8837  // Dialogflow agents, and a support customer. Conversations can include phone
  8838  // calls and text-based chat sessions.
  8839  type GoogleCloudDialogflowV2Conversation struct {
  8840  	// ConversationProfile: Required. The Conversation Profile to be used to
  8841  	// configure this Conversation. This field cannot be updated. Format:
  8842  	// `projects//locations//conversationProfiles/`.
  8843  	ConversationProfile string `json:"conversationProfile,omitempty"`
  8844  	// ConversationStage: The stage of a conversation. It indicates whether the
  8845  	// virtual agent or a human agent is handling the conversation. If the
  8846  	// conversation is created with the conversation profile that has Dialogflow
  8847  	// config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise,
  8848  	// defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is
  8849  	// created with the conversation profile that has Dialogflow config set but
  8850  	// explicitly sets conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE,
  8851  	// it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to
  8852  	// ConversationStage.HUMAN_ASSIST_STAGE.
  8853  	//
  8854  	// Possible values:
  8855  	//   "CONVERSATION_STAGE_UNSPECIFIED" - Unknown. Should never be used after a
  8856  	// conversation is successfully created.
  8857  	//   "VIRTUAL_AGENT_STAGE" - The conversation should return virtual agent
  8858  	// responses into the conversation.
  8859  	//   "HUMAN_ASSIST_STAGE" - The conversation should not provide responses, just
  8860  	// listen and provide suggestions.
  8861  	ConversationStage string `json:"conversationStage,omitempty"`
  8862  	// EndTime: Output only. The time the conversation was finished.
  8863  	EndTime string `json:"endTime,omitempty"`
  8864  	// LifecycleState: Output only. The current state of the Conversation.
  8865  	//
  8866  	// Possible values:
  8867  	//   "LIFECYCLE_STATE_UNSPECIFIED" - Unknown.
  8868  	//   "IN_PROGRESS" - Conversation is currently open for media analysis.
  8869  	//   "COMPLETED" - Conversation has been completed.
  8870  	LifecycleState string `json:"lifecycleState,omitempty"`
  8871  	// Name: Output only. The unique identifier of this conversation. Format:
  8872  	// `projects//locations//conversations/`.
  8873  	Name string `json:"name,omitempty"`
  8874  	// PhoneNumber: Output only. It will not be empty if the conversation is to be
  8875  	// connected over telephony.
  8876  	PhoneNumber *GoogleCloudDialogflowV2ConversationPhoneNumber `json:"phoneNumber,omitempty"`
  8877  	// StartTime: Output only. The time the conversation was started.
  8878  	StartTime string `json:"startTime,omitempty"`
  8879  
  8880  	// ServerResponse contains the HTTP response code and headers from the server.
  8881  	googleapi.ServerResponse `json:"-"`
  8882  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
  8883  	// unconditionally include in API requests. By default, fields with empty or
  8884  	// default values are omitted from API requests. See
  8885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8886  	// details.
  8887  	ForceSendFields []string `json:"-"`
  8888  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
  8889  	// in API requests with the JSON null value. By default, fields with empty
  8890  	// values are omitted from API requests. See
  8891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8892  	NullFields []string `json:"-"`
  8893  }
  8894  
  8895  func (s *GoogleCloudDialogflowV2Conversation) MarshalJSON() ([]byte, error) {
  8896  	type NoMethod GoogleCloudDialogflowV2Conversation
  8897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8898  }
  8899  
  8900  // GoogleCloudDialogflowV2ConversationDataset: Represents a conversation
  8901  // dataset that a user imports raw data into. The data inside
  8902  // ConversationDataset can not be changed after ImportConversationData finishes
  8903  // (and calling ImportConversationData on a dataset that already has data is
  8904  // not allowed).
  8905  type GoogleCloudDialogflowV2ConversationDataset struct {
  8906  	// ConversationCount: Output only. The number of conversations this
  8907  	// conversation dataset contains.
  8908  	ConversationCount int64 `json:"conversationCount,omitempty,string"`
  8909  	// ConversationInfo: Output only. Metadata set during conversation data import.
  8910  	ConversationInfo *GoogleCloudDialogflowV2ConversationInfo `json:"conversationInfo,omitempty"`
  8911  	// CreateTime: Output only. Creation time of this dataset.
  8912  	CreateTime string `json:"createTime,omitempty"`
  8913  	// Description: Optional. The description of the dataset. Maximum of 10000
  8914  	// bytes.
  8915  	Description string `json:"description,omitempty"`
  8916  	// DisplayName: Required. The display name of the dataset. Maximum of 64 bytes.
  8917  	DisplayName string `json:"displayName,omitempty"`
  8918  	// InputConfig: Output only. Input configurations set during conversation data
  8919  	// import.
  8920  	InputConfig *GoogleCloudDialogflowV2InputConfig `json:"inputConfig,omitempty"`
  8921  	// Name: Output only. ConversationDataset resource name. Format:
  8922  	// `projects//locations//conversationDatasets/`
  8923  	Name string `json:"name,omitempty"`
  8924  
  8925  	// ServerResponse contains the HTTP response code and headers from the server.
  8926  	googleapi.ServerResponse `json:"-"`
  8927  	// ForceSendFields is a list of field names (e.g. "ConversationCount") to
  8928  	// unconditionally include in API requests. By default, fields with empty or
  8929  	// default values are omitted from API requests. See
  8930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8931  	// details.
  8932  	ForceSendFields []string `json:"-"`
  8933  	// NullFields is a list of field names (e.g. "ConversationCount") to include in
  8934  	// API requests with the JSON null value. By default, fields with empty values
  8935  	// are omitted from API requests. See
  8936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8937  	NullFields []string `json:"-"`
  8938  }
  8939  
  8940  func (s *GoogleCloudDialogflowV2ConversationDataset) MarshalJSON() ([]byte, error) {
  8941  	type NoMethod GoogleCloudDialogflowV2ConversationDataset
  8942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8943  }
  8944  
  8945  // GoogleCloudDialogflowV2ConversationEvent: Represents a notification sent to
  8946  // Pub/Sub subscribers for conversation lifecycle events.
  8947  type GoogleCloudDialogflowV2ConversationEvent struct {
  8948  	// Conversation: The unique identifier of the conversation this notification
  8949  	// refers to. Format: `projects//conversations/`.
  8950  	Conversation string `json:"conversation,omitempty"`
  8951  	// ErrorStatus: More detailed information about an error. Only set for type
  8952  	// UNRECOVERABLE_ERROR_IN_PHONE_CALL.
  8953  	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
  8954  	// NewMessagePayload: Payload of NEW_MESSAGE event.
  8955  	NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
  8956  	// Type: The type of the event that this notification refers to.
  8957  	//
  8958  	// Possible values:
  8959  	//   "TYPE_UNSPECIFIED" - Type not set.
  8960  	//   "CONVERSATION_STARTED" - A new conversation has been opened. This is fired
  8961  	// when a telephone call is answered, or a conversation is created via the API.
  8962  	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This is
  8963  	// fired when a telephone call is terminated, or a conversation is closed via
  8964  	// the API.
  8965  	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
  8966  	// notification from Dialogflow that human intervention is required.
  8967  	//   "NEW_MESSAGE" - An existing conversation has received a new message,
  8968  	// either from API or telephony. It is configured in
  8969  	// ConversationProfile.new_message_event_notification_config
  8970  	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. In
  8971  	// general non-recoverable errors only occur if something was misconfigured in
  8972  	// the ConversationProfile corresponding to the call. After a non-recoverable
  8973  	// error, Dialogflow may stop responding. We don't fire this event: * in an API
  8974  	// call because we can directly return the error, or, * when we can recover
  8975  	// from an error.
  8976  	Type string `json:"type,omitempty"`
  8977  	// ForceSendFields is a list of field names (e.g. "Conversation") to
  8978  	// unconditionally include in API requests. By default, fields with empty or
  8979  	// default values are omitted from API requests. See
  8980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8981  	// details.
  8982  	ForceSendFields []string `json:"-"`
  8983  	// NullFields is a list of field names (e.g. "Conversation") to include in API
  8984  	// requests with the JSON null value. By default, fields with empty values are
  8985  	// omitted from API requests. See
  8986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8987  	NullFields []string `json:"-"`
  8988  }
  8989  
  8990  func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
  8991  	type NoMethod GoogleCloudDialogflowV2ConversationEvent
  8992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8993  }
  8994  
  8995  // GoogleCloudDialogflowV2ConversationInfo: Represents metadata of a
  8996  // conversation.
  8997  type GoogleCloudDialogflowV2ConversationInfo struct {
  8998  	// LanguageCode: Optional. The language code of the conversation data within
  8999  	// this dataset. See https://cloud.google.com/apis/design/standard_fields for
  9000  	// more information. Supports all UTF-8 languages.
  9001  	LanguageCode string `json:"languageCode,omitempty"`
  9002  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
  9003  	// unconditionally include in API requests. By default, fields with empty or
  9004  	// default values are omitted from API requests. See
  9005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9006  	// details.
  9007  	ForceSendFields []string `json:"-"`
  9008  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
  9009  	// requests with the JSON null value. By default, fields with empty values are
  9010  	// omitted from API requests. See
  9011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9012  	NullFields []string `json:"-"`
  9013  }
  9014  
  9015  func (s *GoogleCloudDialogflowV2ConversationInfo) MarshalJSON() ([]byte, error) {
  9016  	type NoMethod GoogleCloudDialogflowV2ConversationInfo
  9017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9018  }
  9019  
  9020  // GoogleCloudDialogflowV2ConversationModel: Represents a conversation model.
  9021  type GoogleCloudDialogflowV2ConversationModel struct {
  9022  	// ArticleSuggestionModelMetadata: Metadata for article suggestion models.
  9023  	ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
  9024  	// CreateTime: Output only. Creation time of this model.
  9025  	CreateTime string `json:"createTime,omitempty"`
  9026  	// Datasets: Required. Datasets used to create model.
  9027  	Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
  9028  	// DisplayName: Required. The display name of the model. At most 64 bytes long.
  9029  	DisplayName string `json:"displayName,omitempty"`
  9030  	// LanguageCode: Language code for the conversation model. If not specified,
  9031  	// the language is en-US. Language at ConversationModel should be set for all
  9032  	// non en-us languages. This should be a BCP-47
  9033  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
  9034  	// "en-US".
  9035  	LanguageCode string `json:"languageCode,omitempty"`
  9036  	// Name: ConversationModel resource name. Format:
  9037  	// `projects//conversationModels/`
  9038  	Name string `json:"name,omitempty"`
  9039  	// SmartReplyModelMetadata: Metadata for smart reply models.
  9040  	SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
  9041  	// State: Output only. State of the model. A model can only serve prediction
  9042  	// requests after it gets deployed.
  9043  	//
  9044  	// Possible values:
  9045  	//   "STATE_UNSPECIFIED" - Should not be used, an un-set enum has this value by
  9046  	// default.
  9047  	//   "CREATING" - Model being created.
  9048  	//   "UNDEPLOYED" - Model is not deployed but ready to deploy.
  9049  	//   "DEPLOYING" - Model is deploying.
  9050  	//   "DEPLOYED" - Model is deployed and ready to use.
  9051  	//   "UNDEPLOYING" - Model is undeploying.
  9052  	//   "DELETING" - Model is deleting.
  9053  	//   "FAILED" - Model is in error state. Not ready to deploy and use.
  9054  	//   "PENDING" - Model is being created but the training has not started, The
  9055  	// model may remain in this state until there is enough capacity to start
  9056  	// training.
  9057  	State string `json:"state,omitempty"`
  9058  
  9059  	// ServerResponse contains the HTTP response code and headers from the server.
  9060  	googleapi.ServerResponse `json:"-"`
  9061  	// ForceSendFields is a list of field names (e.g.
  9062  	// "ArticleSuggestionModelMetadata") to unconditionally include in API
  9063  	// requests. By default, fields with empty or default values are omitted from
  9064  	// API requests. See
  9065  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9066  	// details.
  9067  	ForceSendFields []string `json:"-"`
  9068  	// NullFields is a list of field names (e.g. "ArticleSuggestionModelMetadata")
  9069  	// to include in API requests with the JSON null value. By default, fields with
  9070  	// empty values are omitted from API requests. See
  9071  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9072  	NullFields []string `json:"-"`
  9073  }
  9074  
  9075  func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
  9076  	type NoMethod GoogleCloudDialogflowV2ConversationModel
  9077  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9078  }
  9079  
  9080  // GoogleCloudDialogflowV2ConversationModelEvaluation: Represents evaluation
  9081  // result of a conversation model.
  9082  type GoogleCloudDialogflowV2ConversationModelEvaluation struct {
  9083  	// CreateTime: Output only. Creation time of this model.
  9084  	CreateTime string `json:"createTime,omitempty"`
  9085  	// DisplayName: Optional. The display name of the model evaluation. At most 64
  9086  	// bytes long.
  9087  	DisplayName string `json:"displayName,omitempty"`
  9088  	// EvaluationConfig: Optional. The configuration of the evaluation task.
  9089  	EvaluationConfig *GoogleCloudDialogflowV2EvaluationConfig `json:"evaluationConfig,omitempty"`
  9090  	// Name: The resource name of the evaluation. Format:
  9091  	// `projects//conversationModels//evaluations/`
  9092  	Name string `json:"name,omitempty"`
  9093  	// RawHumanEvalTemplateCsv: Output only. Human eval template in csv format. It
  9094  	// tooks real-world conversations provided through input dataset, generates
  9095  	// example suggestions for customer to verify quality of the model. For Smart
  9096  	// Reply, the generated csv file contains columns of Context,
  9097  	// (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest
  9098  	// messages in the conversation prior to the current suggestion. Q1: "Would you
  9099  	// send it as the next message of agent?" Evaluated based on whether the
  9100  	// suggest is appropriate to be sent by agent in current context. Q2: "Does the
  9101  	// suggestion move the conversation closer to resolution?" Evaluated based on
  9102  	// whether the suggestion provide solutions, or answers customer's question or
  9103  	// collect information from customer to resolve the customer's issue. Actual
  9104  	// reply column contains the actual agent reply sent in the context.
  9105  	RawHumanEvalTemplateCsv string `json:"rawHumanEvalTemplateCsv,omitempty"`
  9106  	// SmartReplyMetrics: Output only. Only available when model is for smart
  9107  	// reply.
  9108  	SmartReplyMetrics *GoogleCloudDialogflowV2SmartReplyMetrics `json:"smartReplyMetrics,omitempty"`
  9109  
  9110  	// ServerResponse contains the HTTP response code and headers from the server.
  9111  	googleapi.ServerResponse `json:"-"`
  9112  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9113  	// unconditionally include in API requests. By default, fields with empty or
  9114  	// default values are omitted from API requests. See
  9115  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9116  	// details.
  9117  	ForceSendFields []string `json:"-"`
  9118  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9119  	// requests with the JSON null value. By default, fields with empty values are
  9120  	// omitted from API requests. See
  9121  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9122  	NullFields []string `json:"-"`
  9123  }
  9124  
  9125  func (s *GoogleCloudDialogflowV2ConversationModelEvaluation) MarshalJSON() ([]byte, error) {
  9126  	type NoMethod GoogleCloudDialogflowV2ConversationModelEvaluation
  9127  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9128  }
  9129  
  9130  // GoogleCloudDialogflowV2ConversationPhoneNumber: Represents a phone number
  9131  // for telephony integration. It allows for connecting a particular
  9132  // conversation over telephony.
  9133  type GoogleCloudDialogflowV2ConversationPhoneNumber struct {
  9134  	// PhoneNumber: Output only. The phone number to connect to this conversation.
  9135  	PhoneNumber string `json:"phoneNumber,omitempty"`
  9136  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  9137  	// unconditionally include in API requests. By default, fields with empty or
  9138  	// default values are omitted from API requests. See
  9139  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9140  	// details.
  9141  	ForceSendFields []string `json:"-"`
  9142  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  9143  	// requests with the JSON null value. By default, fields with empty values are
  9144  	// omitted from API requests. See
  9145  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9146  	NullFields []string `json:"-"`
  9147  }
  9148  
  9149  func (s *GoogleCloudDialogflowV2ConversationPhoneNumber) MarshalJSON() ([]byte, error) {
  9150  	type NoMethod GoogleCloudDialogflowV2ConversationPhoneNumber
  9151  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9152  }
  9153  
  9154  // GoogleCloudDialogflowV2ConversationProfile: Defines the services to connect
  9155  // to incoming Dialogflow conversations.
  9156  type GoogleCloudDialogflowV2ConversationProfile struct {
  9157  	// AutomatedAgentConfig: Configuration for an automated agent to use with this
  9158  	// profile.
  9159  	AutomatedAgentConfig *GoogleCloudDialogflowV2AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`
  9160  	// CreateTime: Output only. Create time of the conversation profile.
  9161  	CreateTime string `json:"createTime,omitempty"`
  9162  	// DisplayName: Required. Human readable name for this profile. Max length 1024
  9163  	// bytes.
  9164  	DisplayName string `json:"displayName,omitempty"`
  9165  	// HumanAgentAssistantConfig: Configuration for agent assistance to use with
  9166  	// this profile.
  9167  	HumanAgentAssistantConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`
  9168  	// HumanAgentHandoffConfig: Configuration for connecting to a live agent.
  9169  	// Currently, this feature is not general available, please contact Google to
  9170  	// get access.
  9171  	HumanAgentHandoffConfig *GoogleCloudDialogflowV2HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`
  9172  	// LanguageCode: Language code for the conversation profile. If not specified,
  9173  	// the language is en-US. Language at ConversationProfile should be set for all
  9174  	// non en-US languages. This should be a BCP-47
  9175  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
  9176  	// "en-US".
  9177  	LanguageCode string `json:"languageCode,omitempty"`
  9178  	// LoggingConfig: Configuration for logging conversation lifecycle events.
  9179  	LoggingConfig *GoogleCloudDialogflowV2LoggingConfig `json:"loggingConfig,omitempty"`
  9180  	// Name: The unique identifier of this conversation profile. Format:
  9181  	// `projects//locations//conversationProfiles/`.
  9182  	Name string `json:"name,omitempty"`
  9183  	// NewMessageEventNotificationConfig: Configuration for publishing new message
  9184  	// events. Event will be sent in format of ConversationEvent
  9185  	NewMessageEventNotificationConfig *GoogleCloudDialogflowV2NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`
  9186  	// NotificationConfig: Configuration for publishing conversation lifecycle
  9187  	// events.
  9188  	NotificationConfig *GoogleCloudDialogflowV2NotificationConfig `json:"notificationConfig,omitempty"`
  9189  	// SecuritySettings: Name of the CX SecuritySettings reference for the agent.
  9190  	// Format: `projects//locations//securitySettings/`.
  9191  	SecuritySettings string `json:"securitySettings,omitempty"`
  9192  	// SttConfig: Settings for speech transcription.
  9193  	SttConfig *GoogleCloudDialogflowV2SpeechToTextConfig `json:"sttConfig,omitempty"`
  9194  	// TimeZone: The time zone of this conversational profile from the time zone
  9195  	// database (https://www.iana.org/time-zones), e.g., America/New_York,
  9196  	// Europe/Paris. Defaults to America/New_York.
  9197  	TimeZone string `json:"timeZone,omitempty"`
  9198  	// TtsConfig: Configuration for Text-to-Speech synthesization. Used by Phone
  9199  	// Gateway to specify synthesization options. If agent defines synthesization
  9200  	// options as well, agent settings overrides the option here.
  9201  	TtsConfig *GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"ttsConfig,omitempty"`
  9202  	// UpdateTime: Output only. Update time of the conversation profile.
  9203  	UpdateTime string `json:"updateTime,omitempty"`
  9204  
  9205  	// ServerResponse contains the HTTP response code and headers from the server.
  9206  	googleapi.ServerResponse `json:"-"`
  9207  	// ForceSendFields is a list of field names (e.g. "AutomatedAgentConfig") to
  9208  	// unconditionally include in API requests. By default, fields with empty or
  9209  	// default values are omitted from API requests. See
  9210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9211  	// details.
  9212  	ForceSendFields []string `json:"-"`
  9213  	// NullFields is a list of field names (e.g. "AutomatedAgentConfig") to include
  9214  	// in API requests with the JSON null value. By default, fields with empty
  9215  	// values are omitted from API requests. See
  9216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9217  	NullFields []string `json:"-"`
  9218  }
  9219  
  9220  func (s *GoogleCloudDialogflowV2ConversationProfile) MarshalJSON() ([]byte, error) {
  9221  	type NoMethod GoogleCloudDialogflowV2ConversationProfile
  9222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9223  }
  9224  
  9225  // GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata: Metadata
  9226  // for ConversationDatasets.
  9227  type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
  9228  	// ConversationDataset: The resource name of the conversation dataset that will
  9229  	// be created. Format: `projects//locations//conversationDatasets/`
  9230  	ConversationDataset string `json:"conversationDataset,omitempty"`
  9231  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
  9232  	// unconditionally include in API requests. By default, fields with empty or
  9233  	// default values are omitted from API requests. See
  9234  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9235  	// details.
  9236  	ForceSendFields []string `json:"-"`
  9237  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
  9238  	// in API requests with the JSON null value. By default, fields with empty
  9239  	// values are omitted from API requests. See
  9240  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9241  	NullFields []string `json:"-"`
  9242  }
  9243  
  9244  func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
  9245  	type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
  9246  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9247  }
  9248  
  9249  // GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata:
  9250  // Metadata for a ConversationModels.CreateConversationModelEvaluation
  9251  // operation.
  9252  type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
  9253  	// ConversationModel: The resource name of the conversation model. Format:
  9254  	// `projects//locations//conversationModels/`
  9255  	ConversationModel string `json:"conversationModel,omitempty"`
  9256  	// ConversationModelEvaluation: The resource name of the conversation model.
  9257  	// Format: `projects//locations//conversationModels//evaluations/`
  9258  	ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
  9259  	// CreateTime: Timestamp when the request to create conversation model was
  9260  	// submitted. The time is measured on server side.
  9261  	CreateTime string `json:"createTime,omitempty"`
  9262  	// State: State of CreateConversationModel operation.
  9263  	//
  9264  	// Possible values:
  9265  	//   "STATE_UNSPECIFIED" - Operation status not specified.
  9266  	//   "INITIALIZING" - The operation is being prepared.
  9267  	//   "RUNNING" - The operation is running.
  9268  	//   "CANCELLED" - The operation is cancelled.
  9269  	//   "SUCCEEDED" - The operation has succeeded.
  9270  	//   "FAILED" - The operation has failed.
  9271  	State string `json:"state,omitempty"`
  9272  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  9273  	// unconditionally include in API requests. By default, fields with empty or
  9274  	// default values are omitted from API requests. See
  9275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9276  	// details.
  9277  	ForceSendFields []string `json:"-"`
  9278  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  9279  	// API requests with the JSON null value. By default, fields with empty values
  9280  	// are omitted from API requests. See
  9281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9282  	NullFields []string `json:"-"`
  9283  }
  9284  
  9285  func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
  9286  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
  9287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9288  }
  9289  
  9290  // GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest: The request
  9291  // message for ConversationModels.CreateConversationModelEvaluation
  9292  type GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest struct {
  9293  	// ConversationModelEvaluation: Required. The conversation model evaluation to
  9294  	// be created.
  9295  	ConversationModelEvaluation *GoogleCloudDialogflowV2ConversationModelEvaluation `json:"conversationModelEvaluation,omitempty"`
  9296  	// ForceSendFields is a list of field names (e.g.
  9297  	// "ConversationModelEvaluation") to unconditionally include in API requests.
  9298  	// By default, fields with empty or default values are omitted from API
  9299  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  9300  	// for more details.
  9301  	ForceSendFields []string `json:"-"`
  9302  	// NullFields is a list of field names (e.g. "ConversationModelEvaluation") to
  9303  	// include in API requests with the JSON null value. By default, fields with
  9304  	// empty values are omitted from API requests. See
  9305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9306  	NullFields []string `json:"-"`
  9307  }
  9308  
  9309  func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest) MarshalJSON() ([]byte, error) {
  9310  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest
  9311  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9312  }
  9313  
  9314  // GoogleCloudDialogflowV2CreateConversationModelOperationMetadata: Metadata
  9315  // for a ConversationModels.CreateConversationModel operation.
  9316  type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
  9317  	// ConversationModel: The resource name of the conversation model. Format:
  9318  	// `projects//conversationModels/`
  9319  	ConversationModel string `json:"conversationModel,omitempty"`
  9320  	// CreateTime: Timestamp when the request to create conversation model is
  9321  	// submitted. The time is measured on server side.
  9322  	CreateTime string `json:"createTime,omitempty"`
  9323  	// State: State of CreateConversationModel operation.
  9324  	//
  9325  	// Possible values:
  9326  	//   "STATE_UNSPECIFIED" - Invalid.
  9327  	//   "PENDING" - Request is submitted, but training has not started yet. The
  9328  	// model may remain in this state until there is enough capacity to start
  9329  	// training.
  9330  	//   "SUCCEEDED" - The training has succeeded.
  9331  	//   "FAILED" - The training has succeeded.
  9332  	//   "CANCELLED" - The training has been cancelled.
  9333  	//   "CANCELLING" - The training is in cancelling state.
  9334  	//   "TRAINING" - Custom model is training.
  9335  	State string `json:"state,omitempty"`
  9336  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  9337  	// unconditionally include in API requests. By default, fields with empty or
  9338  	// default values are omitted from API requests. See
  9339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9340  	// details.
  9341  	ForceSendFields []string `json:"-"`
  9342  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  9343  	// API requests with the JSON null value. By default, fields with empty values
  9344  	// are omitted from API requests. See
  9345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9346  	NullFields []string `json:"-"`
  9347  }
  9348  
  9349  func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
  9350  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
  9351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9352  }
  9353  
  9354  // GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata: Metadata
  9355  // for ConversationDatasets.
  9356  type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
  9357  }
  9358  
  9359  // GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata: Metadata
  9360  // for a ConversationModels.DeleteConversationModel operation.
  9361  type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
  9362  	// ConversationModel: The resource name of the conversation model. Format:
  9363  	// `projects//conversationModels/`
  9364  	ConversationModel string `json:"conversationModel,omitempty"`
  9365  	// CreateTime: Timestamp when delete conversation model request was created.
  9366  	// The time is measured on server side.
  9367  	CreateTime string `json:"createTime,omitempty"`
  9368  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  9369  	// unconditionally include in API requests. By default, fields with empty or
  9370  	// default values are omitted from API requests. See
  9371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9372  	// details.
  9373  	ForceSendFields []string `json:"-"`
  9374  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  9375  	// API requests with the JSON null value. By default, fields with empty values
  9376  	// are omitted from API requests. See
  9377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9378  	NullFields []string `json:"-"`
  9379  }
  9380  
  9381  func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
  9382  	type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
  9383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9384  }
  9385  
  9386  // GoogleCloudDialogflowV2DeployConversationModelOperationMetadata: Metadata
  9387  // for a ConversationModels.DeployConversationModel operation.
  9388  type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
  9389  	// ConversationModel: The resource name of the conversation model. Format:
  9390  	// `projects//conversationModels/`
  9391  	ConversationModel string `json:"conversationModel,omitempty"`
  9392  	// CreateTime: Timestamp when request to deploy conversation model was
  9393  	// submitted. The time is measured on server side.
  9394  	CreateTime string `json:"createTime,omitempty"`
  9395  	// ForceSendFields is a list of field names (e.g. "ConversationModel") 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. "ConversationModel") to include in
  9402  	// API requests with the JSON null value. By default, fields with empty values
  9403  	// 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 *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
  9409  	type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
  9410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9411  }
  9412  
  9413  // GoogleCloudDialogflowV2DeployConversationModelRequest: The request message
  9414  // for ConversationModels.DeployConversationModel
  9415  type GoogleCloudDialogflowV2DeployConversationModelRequest struct {
  9416  }
  9417  
  9418  // GoogleCloudDialogflowV2DetectIntentRequest: The request to detect user's
  9419  // intent.
  9420  type GoogleCloudDialogflowV2DetectIntentRequest struct {
  9421  	// InputAudio: The natural language speech audio to be processed. This field
  9422  	// should be populated iff `query_input` is set to an input audio config. A
  9423  	// single request can contain up to 1 minute of speech audio data.
  9424  	InputAudio string `json:"inputAudio,omitempty"`
  9425  	// OutputAudioConfig: Instructs the speech synthesizer how to generate the
  9426  	// output audio. If this field is not set and agent-level speech synthesizer is
  9427  	// not configured, no output audio is generated.
  9428  	OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"`
  9429  	// OutputAudioConfigMask: Mask for output_audio_config indicating which
  9430  	// settings in this request-level config should override speech synthesizer
  9431  	// settings defined at agent-level. If unspecified or empty,
  9432  	// output_audio_config replaces the agent-level config in its entirety.
  9433  	OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"`
  9434  	// QueryInput: Required. The input specification. It can be set to: 1. an audio
  9435  	// config which instructs the speech recognizer how to process the speech
  9436  	// audio, 2. a conversational query in the form of text, or 3. an event that
  9437  	// specifies which intent to trigger.
  9438  	QueryInput *GoogleCloudDialogflowV2QueryInput `json:"queryInput,omitempty"`
  9439  	// QueryParams: The parameters of this query.
  9440  	QueryParams *GoogleCloudDialogflowV2QueryParameters `json:"queryParams,omitempty"`
  9441  	// ForceSendFields is a list of field names (e.g. "InputAudio") to
  9442  	// unconditionally include in API requests. By default, fields with empty or
  9443  	// default values are omitted from API requests. See
  9444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9445  	// details.
  9446  	ForceSendFields []string `json:"-"`
  9447  	// NullFields is a list of field names (e.g. "InputAudio") to include in API
  9448  	// requests with the JSON null value. By default, fields with empty values are
  9449  	// omitted from API requests. See
  9450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9451  	NullFields []string `json:"-"`
  9452  }
  9453  
  9454  func (s *GoogleCloudDialogflowV2DetectIntentRequest) MarshalJSON() ([]byte, error) {
  9455  	type NoMethod GoogleCloudDialogflowV2DetectIntentRequest
  9456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9457  }
  9458  
  9459  // GoogleCloudDialogflowV2DetectIntentResponse: The message returned from the
  9460  // DetectIntent method.
  9461  type GoogleCloudDialogflowV2DetectIntentResponse struct {
  9462  	// OutputAudio: The audio data bytes encoded as specified in the request. Note:
  9463  	// The output audio is generated based on the values of default platform text
  9464  	// responses found in the `query_result.fulfillment_messages` field. If
  9465  	// multiple default text responses exist, they will be concatenated when
  9466  	// generating audio. If no default platform text responses exist, the generated
  9467  	// audio content will be empty. In some scenarios, multiple output audio fields
  9468  	// may be present in the response structure. In these cases, only the
  9469  	// top-most-level audio output has content.
  9470  	OutputAudio string `json:"outputAudio,omitempty"`
  9471  	// OutputAudioConfig: The config used by the speech synthesizer to generate the
  9472  	// output audio.
  9473  	OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"`
  9474  	// QueryResult: The selected results of the conversational query or event
  9475  	// processing. See `alternative_query_results` for additional potential
  9476  	// results.
  9477  	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
  9478  	// ResponseId: The unique identifier of the response. It can be used to locate
  9479  	// a response in the training example set or for reporting issues.
  9480  	ResponseId string `json:"responseId,omitempty"`
  9481  	// WebhookStatus: Specifies the status of the webhook request.
  9482  	WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"`
  9483  
  9484  	// ServerResponse contains the HTTP response code and headers from the server.
  9485  	googleapi.ServerResponse `json:"-"`
  9486  	// ForceSendFields is a list of field names (e.g. "OutputAudio") to
  9487  	// unconditionally include in API requests. By default, fields with empty or
  9488  	// default values are omitted from API requests. See
  9489  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9490  	// details.
  9491  	ForceSendFields []string `json:"-"`
  9492  	// NullFields is a list of field names (e.g. "OutputAudio") to include in API
  9493  	// requests with the JSON null value. By default, fields with empty values are
  9494  	// omitted from API requests. See
  9495  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9496  	NullFields []string `json:"-"`
  9497  }
  9498  
  9499  func (s *GoogleCloudDialogflowV2DetectIntentResponse) MarshalJSON() ([]byte, error) {
  9500  	type NoMethod GoogleCloudDialogflowV2DetectIntentResponse
  9501  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9502  }
  9503  
  9504  // GoogleCloudDialogflowV2DialogflowAssistAnswer: Represents a Dialogflow
  9505  // assist answer.
  9506  type GoogleCloudDialogflowV2DialogflowAssistAnswer struct {
  9507  	// AnswerRecord: The name of answer record, in the format of
  9508  	// "projects//locations//answerRecords/"
  9509  	AnswerRecord string `json:"answerRecord,omitempty"`
  9510  	// IntentSuggestion: An intent suggestion generated from conversation.
  9511  	IntentSuggestion *GoogleCloudDialogflowV2IntentSuggestion `json:"intentSuggestion,omitempty"`
  9512  	// QueryResult: Result from v2 agent.
  9513  	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
  9514  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
  9515  	// unconditionally include in API requests. By default, fields with empty or
  9516  	// default values are omitted from API requests. See
  9517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9518  	// details.
  9519  	ForceSendFields []string `json:"-"`
  9520  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
  9521  	// requests with the JSON null value. By default, fields with empty values are
  9522  	// omitted from API requests. See
  9523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9524  	NullFields []string `json:"-"`
  9525  }
  9526  
  9527  func (s *GoogleCloudDialogflowV2DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
  9528  	type NoMethod GoogleCloudDialogflowV2DialogflowAssistAnswer
  9529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9530  }
  9531  
  9532  // GoogleCloudDialogflowV2Document: A knowledge document to be used by a
  9533  // KnowledgeBase. For more information, see the knowledge base guide
  9534  // (https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The
  9535  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
  9536  // `projects.knowledgeBases.documents`.
  9537  type GoogleCloudDialogflowV2Document struct {
  9538  	// ContentUri: The URI where the file content is located. For documents stored
  9539  	// in Google Cloud Storage, these URIs must have the form `gs:///`. NOTE:
  9540  	// External URLs must correspond to public webpages, i.e., they must be indexed
  9541  	// by Google Search. In particular, URLs for showing documents in Google Cloud
  9542  	// Storage (i.e. the URL in your browser) are not supported. Instead use the
  9543  	// `gs://` format URI described above.
  9544  	ContentUri string `json:"contentUri,omitempty"`
  9545  	// DisplayName: Required. The display name of the document. The name must be
  9546  	// 1024 bytes or less; otherwise, the creation request fails.
  9547  	DisplayName string `json:"displayName,omitempty"`
  9548  	// EnableAutoReload: Optional. If true, we try to automatically reload the
  9549  	// document every day (at a time picked by the system). If false or
  9550  	// unspecified, we don't try to automatically reload the document. Currently
  9551  	// you can only enable automatic reload for documents sourced from a public
  9552  	// url, see `source` field for the source types. Reload status can be tracked
  9553  	// in `latest_reload_status`. If a reload fails, we will keep the document
  9554  	// unchanged. If a reload fails with internal errors, the system will try to
  9555  	// reload the document on the next day. If a reload fails with non-retriable
  9556  	// errors (e.g. PERMISSION_DENIED), the system will not try to reload the
  9557  	// document anymore. You need to manually reload the document successfully by
  9558  	// calling `ReloadDocument` and clear the errors.
  9559  	EnableAutoReload bool `json:"enableAutoReload,omitempty"`
  9560  	// KnowledgeTypes: Required. The knowledge type of document content.
  9561  	//
  9562  	// Possible values:
  9563  	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or arbitrary.
  9564  	//   "FAQ" - The document content contains question and answer pairs as either
  9565  	// HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual
  9566  	// formats may fail to be parsed. CSV must have questions in the first column
  9567  	// and answers in the second, with no header. Because of this explicit format,
  9568  	// they are always parsed accurately.
  9569  	//   "EXTRACTIVE_QA" - Documents for which unstructured text is extracted and
  9570  	// used for question answering.
  9571  	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can be used
  9572  	// for query results. Only for Contact Center Solutions on Dialogflow.
  9573  	//   "AGENT_FACING_SMART_REPLY" - The document contains agent-facing Smart
  9574  	// Reply entries.
  9575  	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
  9576  	// LatestReloadStatus: Output only. The time and status of the latest reload.
  9577  	// This reload may have been triggered automatically or manually and may not
  9578  	// have succeeded.
  9579  	LatestReloadStatus *GoogleCloudDialogflowV2DocumentReloadStatus `json:"latestReloadStatus,omitempty"`
  9580  	// Metadata: Optional. Metadata for the document. The metadata supports
  9581  	// arbitrary key-value pairs. Suggested use cases include storing a document's
  9582  	// title, an external URL distinct from the document's content_uri, etc. The
  9583  	// max size of a `key` or a `value` of the metadata is 1024 bytes.
  9584  	Metadata map[string]string `json:"metadata,omitempty"`
  9585  	// MimeType: Required. The MIME type of this document.
  9586  	MimeType string `json:"mimeType,omitempty"`
  9587  	// Name: Optional. The document resource name. The name must be empty when
  9588  	// creating a document. Format:
  9589  	// `projects//locations//knowledgeBases//documents/`.
  9590  	Name string `json:"name,omitempty"`
  9591  	// RawContent: The raw content of the document. This field is only permitted
  9592  	// for EXTRACTIVE_QA and FAQ knowledge types.
  9593  	RawContent string `json:"rawContent,omitempty"`
  9594  	// State: Output only. The current state of the document.
  9595  	//
  9596  	// Possible values:
  9597  	//   "STATE_UNSPECIFIED" - The document state is unspecified.
  9598  	//   "CREATING" - The document creation is in progress.
  9599  	//   "ACTIVE" - The document is active and ready to use.
  9600  	//   "UPDATING" - The document updation is in progress.
  9601  	//   "RELOADING" - The document is reloading.
  9602  	//   "DELETING" - The document deletion is in progress.
  9603  	State string `json:"state,omitempty"`
  9604  
  9605  	// ServerResponse contains the HTTP response code and headers from the server.
  9606  	googleapi.ServerResponse `json:"-"`
  9607  	// ForceSendFields is a list of field names (e.g. "ContentUri") to
  9608  	// unconditionally include in API requests. By default, fields with empty or
  9609  	// default values are omitted from API requests. See
  9610  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9611  	// details.
  9612  	ForceSendFields []string `json:"-"`
  9613  	// NullFields is a list of field names (e.g. "ContentUri") to include in API
  9614  	// requests with the JSON null value. By default, fields with empty values are
  9615  	// omitted from API requests. See
  9616  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9617  	NullFields []string `json:"-"`
  9618  }
  9619  
  9620  func (s *GoogleCloudDialogflowV2Document) MarshalJSON() ([]byte, error) {
  9621  	type NoMethod GoogleCloudDialogflowV2Document
  9622  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9623  }
  9624  
  9625  // GoogleCloudDialogflowV2DocumentReloadStatus: The status of a reload attempt.
  9626  type GoogleCloudDialogflowV2DocumentReloadStatus struct {
  9627  	// Status: The status of a reload attempt or the initial load.
  9628  	Status *GoogleRpcStatus `json:"status,omitempty"`
  9629  	// Time: The time of a reload attempt. This reload may have been triggered
  9630  	// automatically or manually and may not have succeeded.
  9631  	Time string `json:"time,omitempty"`
  9632  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  9633  	// include in API requests. By default, fields with empty or default values are
  9634  	// omitted from API requests. See
  9635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9636  	// details.
  9637  	ForceSendFields []string `json:"-"`
  9638  	// NullFields is a list of field names (e.g. "Status") to include in API
  9639  	// requests with the JSON null value. By default, fields with empty values are
  9640  	// omitted from API requests. See
  9641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9642  	NullFields []string `json:"-"`
  9643  }
  9644  
  9645  func (s *GoogleCloudDialogflowV2DocumentReloadStatus) MarshalJSON() ([]byte, error) {
  9646  	type NoMethod GoogleCloudDialogflowV2DocumentReloadStatus
  9647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9648  }
  9649  
  9650  // GoogleCloudDialogflowV2DtmfParameters: The message in the response that
  9651  // indicates the parameters of DTMF.
  9652  type GoogleCloudDialogflowV2DtmfParameters struct {
  9653  	// AcceptsDtmfInput: Indicates whether DTMF input can be handled in the next
  9654  	// request.
  9655  	AcceptsDtmfInput bool `json:"acceptsDtmfInput,omitempty"`
  9656  	// ForceSendFields is a list of field names (e.g. "AcceptsDtmfInput") to
  9657  	// unconditionally include in API requests. By default, fields with empty or
  9658  	// default values are omitted from API requests. See
  9659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9660  	// details.
  9661  	ForceSendFields []string `json:"-"`
  9662  	// NullFields is a list of field names (e.g. "AcceptsDtmfInput") to include in
  9663  	// API requests with the JSON null value. By default, fields with empty values
  9664  	// are omitted from API requests. See
  9665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9666  	NullFields []string `json:"-"`
  9667  }
  9668  
  9669  func (s *GoogleCloudDialogflowV2DtmfParameters) MarshalJSON() ([]byte, error) {
  9670  	type NoMethod GoogleCloudDialogflowV2DtmfParameters
  9671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9672  }
  9673  
  9674  // GoogleCloudDialogflowV2EntityType: Each intent parameter has a type, called
  9675  // the entity type, which dictates exactly how data from an end-user expression
  9676  // is extracted. Dialogflow provides predefined system entities that can match
  9677  // many common types of data. For example, there are system entities for
  9678  // matching dates, times, colors, email addresses, and so on. You can also
  9679  // create your own custom entities for matching custom data. For example, you
  9680  // could define a vegetable entity that can match the types of vegetables
  9681  // available for purchase with a grocery store agent. For more information, see
  9682  // the Entity guide
  9683  // (https://cloud.google.com/dialogflow/docs/entities-overview).
  9684  type GoogleCloudDialogflowV2EntityType struct {
  9685  	// AutoExpansionMode: Optional. Indicates whether the entity type can be
  9686  	// automatically expanded.
  9687  	//
  9688  	// Possible values:
  9689  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
  9690  	// entity.
  9691  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
  9692  	// have not been explicitly listed in the entity.
  9693  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
  9694  	// DisplayName: Required. The name of the entity type.
  9695  	DisplayName string `json:"displayName,omitempty"`
  9696  	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during
  9697  	// classification.
  9698  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
  9699  	// Entities: Optional. The collection of entity entries associated with the
  9700  	// entity type.
  9701  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
  9702  	// Kind: Required. Indicates the kind of entity type.
  9703  	//
  9704  	// Possible values:
  9705  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
  9706  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
  9707  	// reference value.
  9708  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
  9709  	// to reference values. However, list entity types can contain references to
  9710  	// other entity types (with or without aliases).
  9711  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
  9712  	// in entries values.
  9713  	Kind string `json:"kind,omitempty"`
  9714  	// Name: The unique identifier of the entity type. Required for
  9715  	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.
  9716  	// Format: `projects//agent/entityTypes/`.
  9717  	Name string `json:"name,omitempty"`
  9718  
  9719  	// ServerResponse contains the HTTP response code and headers from the server.
  9720  	googleapi.ServerResponse `json:"-"`
  9721  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
  9722  	// unconditionally include in API requests. By default, fields with empty or
  9723  	// default values are omitted from API requests. See
  9724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9725  	// details.
  9726  	ForceSendFields []string `json:"-"`
  9727  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
  9728  	// API requests with the JSON null value. By default, fields with empty values
  9729  	// are omitted from API requests. See
  9730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9731  	NullFields []string `json:"-"`
  9732  }
  9733  
  9734  func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
  9735  	type NoMethod GoogleCloudDialogflowV2EntityType
  9736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9737  }
  9738  
  9739  // GoogleCloudDialogflowV2EntityTypeBatch: This message is a wrapper around a
  9740  // collection of entity types.
  9741  type GoogleCloudDialogflowV2EntityTypeBatch struct {
  9742  	// EntityTypes: A collection of entity types.
  9743  	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
  9744  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
  9745  	// unconditionally include in API requests. By default, fields with empty or
  9746  	// default values are omitted from API requests. See
  9747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9748  	// details.
  9749  	ForceSendFields []string `json:"-"`
  9750  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
  9751  	// requests with the JSON null value. By default, fields with empty values are
  9752  	// omitted from API requests. See
  9753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9754  	NullFields []string `json:"-"`
  9755  }
  9756  
  9757  func (s *GoogleCloudDialogflowV2EntityTypeBatch) MarshalJSON() ([]byte, error) {
  9758  	type NoMethod GoogleCloudDialogflowV2EntityTypeBatch
  9759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9760  }
  9761  
  9762  // GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an
  9763  // associated entity type.
  9764  type GoogleCloudDialogflowV2EntityTypeEntity struct {
  9765  	// Synonyms: Required. A collection of value synonyms. For example, if the
  9766  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
  9767  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
  9768  	// exactly one synonym equal to `value`.
  9769  	Synonyms []string `json:"synonyms,omitempty"`
  9770  	// Value: Required. The primary value associated with this entity entry. For
  9771  	// example, if the entity type is *vegetable*, the value could be *scallions*.
  9772  	// For `KIND_MAP` entity types: * A reference value to be used in place of
  9773  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
  9774  	// references to other entity types (with or without aliases).
  9775  	Value string `json:"value,omitempty"`
  9776  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
  9777  	// unconditionally include in API requests. By default, fields with empty or
  9778  	// default values are omitted from API requests. See
  9779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9780  	// details.
  9781  	ForceSendFields []string `json:"-"`
  9782  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
  9783  	// requests with the JSON null value. By default, fields with empty values are
  9784  	// omitted from API requests. See
  9785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9786  	NullFields []string `json:"-"`
  9787  }
  9788  
  9789  func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
  9790  	type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
  9791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9792  }
  9793  
  9794  // GoogleCloudDialogflowV2Environment: You can create multiple versions of your
  9795  // agent and publish them to separate environments. When you edit an agent, you
  9796  // are editing the draft agent. At any point, you can save the draft agent as
  9797  // an agent version, which is an immutable snapshot of your agent. When you
  9798  // save the draft agent, it is published to the default environment. When you
  9799  // create agent versions, you can publish them to custom environments. You can
  9800  // create a variety of custom environments for: - testing - development -
  9801  // production - etc. For more information, see the versions and environments
  9802  // guide (https://cloud.google.com/dialogflow/docs/agents-versions).
  9803  type GoogleCloudDialogflowV2Environment struct {
  9804  	// AgentVersion: Optional. The agent version loaded into this environment.
  9805  	// Supported formats: - `projects//agent/versions/` -
  9806  	// `projects//locations//agent/versions/`
  9807  	AgentVersion string `json:"agentVersion,omitempty"`
  9808  	// Description: Optional. The developer-provided description for this
  9809  	// environment. The maximum length is 500 characters. If exceeded, the request
  9810  	// is rejected.
  9811  	Description string `json:"description,omitempty"`
  9812  	// Fulfillment: Optional. The fulfillment settings to use for this environment.
  9813  	Fulfillment *GoogleCloudDialogflowV2Fulfillment `json:"fulfillment,omitempty"`
  9814  	// Name: Output only. The unique identifier of this agent environment.
  9815  	// Supported formats: - `projects//agent/environments/` -
  9816  	// `projects//locations//agent/environments/` The environment ID for the
  9817  	// default environment is `-`.
  9818  	Name string `json:"name,omitempty"`
  9819  	// State: Output only. The state of this environment. This field is read-only,
  9820  	// i.e., it cannot be set by create and update methods.
  9821  	//
  9822  	// Possible values:
  9823  	//   "STATE_UNSPECIFIED" - Not specified. This value is not used.
  9824  	//   "STOPPED" - Stopped.
  9825  	//   "LOADING" - Loading.
  9826  	//   "RUNNING" - Running.
  9827  	State string `json:"state,omitempty"`
  9828  	// TextToSpeechSettings: Optional. Text to speech settings for this
  9829  	// environment.
  9830  	TextToSpeechSettings *GoogleCloudDialogflowV2TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
  9831  	// UpdateTime: Output only. The last update time of this environment. This
  9832  	// field is read-only, i.e., it cannot be set by create and update methods.
  9833  	UpdateTime string `json:"updateTime,omitempty"`
  9834  
  9835  	// ServerResponse contains the HTTP response code and headers from the server.
  9836  	googleapi.ServerResponse `json:"-"`
  9837  	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
  9838  	// unconditionally include in API requests. By default, fields with empty or
  9839  	// default values are omitted from API requests. See
  9840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9841  	// details.
  9842  	ForceSendFields []string `json:"-"`
  9843  	// NullFields is a list of field names (e.g. "AgentVersion") to include in API
  9844  	// requests with the JSON null value. By default, fields with empty values are
  9845  	// omitted from API requests. See
  9846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9847  	NullFields []string `json:"-"`
  9848  }
  9849  
  9850  func (s *GoogleCloudDialogflowV2Environment) MarshalJSON() ([]byte, error) {
  9851  	type NoMethod GoogleCloudDialogflowV2Environment
  9852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9853  }
  9854  
  9855  // GoogleCloudDialogflowV2EnvironmentHistory: The response message for
  9856  // Environments.GetEnvironmentHistory.
  9857  type GoogleCloudDialogflowV2EnvironmentHistory struct {
  9858  	// Entries: Output only. The list of agent environments. There will be a
  9859  	// maximum number of items returned based on the page_size field in the
  9860  	// request.
  9861  	Entries []*GoogleCloudDialogflowV2EnvironmentHistoryEntry `json:"entries,omitempty"`
  9862  	// NextPageToken: Output only. Token to retrieve the next page of results, or
  9863  	// empty if there are no more results in the list.
  9864  	NextPageToken string `json:"nextPageToken,omitempty"`
  9865  	// Parent: Output only. The name of the environment this history is for.
  9866  	// Supported formats: - `projects//agent/environments/` -
  9867  	// `projects//locations//agent/environments/` The environment ID for the
  9868  	// default environment is `-`.
  9869  	Parent string `json:"parent,omitempty"`
  9870  
  9871  	// ServerResponse contains the HTTP response code and headers from the server.
  9872  	googleapi.ServerResponse `json:"-"`
  9873  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  9874  	// include in API requests. By default, fields with empty or default values are
  9875  	// omitted from API requests. See
  9876  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9877  	// details.
  9878  	ForceSendFields []string `json:"-"`
  9879  	// NullFields is a list of field names (e.g. "Entries") to include in API
  9880  	// requests with the JSON null value. By default, fields with empty values are
  9881  	// omitted from API requests. See
  9882  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9883  	NullFields []string `json:"-"`
  9884  }
  9885  
  9886  func (s *GoogleCloudDialogflowV2EnvironmentHistory) MarshalJSON() ([]byte, error) {
  9887  	type NoMethod GoogleCloudDialogflowV2EnvironmentHistory
  9888  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9889  }
  9890  
  9891  // GoogleCloudDialogflowV2EnvironmentHistoryEntry: Represents an environment
  9892  // history entry.
  9893  type GoogleCloudDialogflowV2EnvironmentHistoryEntry struct {
  9894  	// AgentVersion: The agent version loaded into this environment history entry.
  9895  	AgentVersion string `json:"agentVersion,omitempty"`
  9896  	// CreateTime: The creation time of this environment history entry.
  9897  	CreateTime string `json:"createTime,omitempty"`
  9898  	// Description: The developer-provided description for this environment history
  9899  	// entry.
  9900  	Description string `json:"description,omitempty"`
  9901  	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
  9902  	// unconditionally include in API requests. By default, fields with empty or
  9903  	// default values are omitted from API requests. See
  9904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9905  	// details.
  9906  	ForceSendFields []string `json:"-"`
  9907  	// NullFields is a list of field names (e.g. "AgentVersion") to include in API
  9908  	// requests with the JSON null value. By default, fields with empty values are
  9909  	// omitted from API requests. See
  9910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9911  	NullFields []string `json:"-"`
  9912  }
  9913  
  9914  func (s *GoogleCloudDialogflowV2EnvironmentHistoryEntry) MarshalJSON() ([]byte, error) {
  9915  	type NoMethod GoogleCloudDialogflowV2EnvironmentHistoryEntry
  9916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9917  }
  9918  
  9919  // GoogleCloudDialogflowV2EvaluationConfig: The configuration for model
  9920  // evaluation.
  9921  type GoogleCloudDialogflowV2EvaluationConfig struct {
  9922  	// Datasets: Required. Datasets used for evaluation.
  9923  	Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
  9924  	// SmartComposeConfig: Configuration for smart compose model evalution.
  9925  	SmartComposeConfig *GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig `json:"smartComposeConfig,omitempty"`
  9926  	// SmartReplyConfig: Configuration for smart reply model evalution.
  9927  	SmartReplyConfig *GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig `json:"smartReplyConfig,omitempty"`
  9928  	// ForceSendFields is a list of field names (e.g. "Datasets") to
  9929  	// unconditionally include in API requests. By default, fields with empty or
  9930  	// default values are omitted from API requests. See
  9931  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9932  	// details.
  9933  	ForceSendFields []string `json:"-"`
  9934  	// NullFields is a list of field names (e.g. "Datasets") to include in API
  9935  	// requests with the JSON null value. By default, fields with empty values are
  9936  	// omitted from API requests. See
  9937  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9938  	NullFields []string `json:"-"`
  9939  }
  9940  
  9941  func (s *GoogleCloudDialogflowV2EvaluationConfig) MarshalJSON() ([]byte, error) {
  9942  	type NoMethod GoogleCloudDialogflowV2EvaluationConfig
  9943  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9944  }
  9945  
  9946  // GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig: Smart compose
  9947  // specific configuration for evaluation job.
  9948  type GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig struct {
  9949  	// AllowlistDocument: The allowlist document resource name. Format:
  9950  	// `projects//knowledgeBases//documents/`. Only used for smart compose model.
  9951  	AllowlistDocument string `json:"allowlistDocument,omitempty"`
  9952  	// MaxResultCount: Required. The model to be evaluated can return multiple
  9953  	// results with confidence score on each query. These results will be sorted by
  9954  	// the descending order of the scores and we only keep the first
  9955  	// max_result_count results as the final results to evaluate.
  9956  	MaxResultCount int64 `json:"maxResultCount,omitempty"`
  9957  	// ForceSendFields is a list of field names (e.g. "AllowlistDocument") to
  9958  	// unconditionally include in API requests. By default, fields with empty or
  9959  	// default values are omitted from API requests. See
  9960  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9961  	// details.
  9962  	ForceSendFields []string `json:"-"`
  9963  	// NullFields is a list of field names (e.g. "AllowlistDocument") to include in
  9964  	// API requests with the JSON null value. By default, fields with empty values
  9965  	// are omitted from API requests. See
  9966  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9967  	NullFields []string `json:"-"`
  9968  }
  9969  
  9970  func (s *GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig) MarshalJSON() ([]byte, error) {
  9971  	type NoMethod GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
  9972  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9973  }
  9974  
  9975  // GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig: Smart reply
  9976  // specific configuration for evaluation job.
  9977  type GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig struct {
  9978  	// AllowlistDocument: The allowlist document resource name. Format:
  9979  	// `projects//knowledgeBases//documents/`. Only used for smart reply model.
  9980  	AllowlistDocument string `json:"allowlistDocument,omitempty"`
  9981  	// MaxResultCount: Required. The model to be evaluated can return multiple
  9982  	// results with confidence score on each query. These results will be sorted by
  9983  	// the descending order of the scores and we only keep the first
  9984  	// max_result_count results as the final results to evaluate.
  9985  	MaxResultCount int64 `json:"maxResultCount,omitempty"`
  9986  	// ForceSendFields is a list of field names (e.g. "AllowlistDocument") to
  9987  	// unconditionally include in API requests. By default, fields with empty or
  9988  	// default values are omitted from API requests. See
  9989  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9990  	// details.
  9991  	ForceSendFields []string `json:"-"`
  9992  	// NullFields is a list of field names (e.g. "AllowlistDocument") to include in
  9993  	// API requests with the JSON null value. By default, fields with empty values
  9994  	// are omitted from API requests. See
  9995  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9996  	NullFields []string `json:"-"`
  9997  }
  9998  
  9999  func (s *GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig) MarshalJSON() ([]byte, error) {
 10000  	type NoMethod GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig
 10001  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10002  }
 10003  
 10004  // GoogleCloudDialogflowV2EventInput: Events allow for matching intents by
 10005  // event name instead of the natural language input. For instance, input “ can
 10006  // trigger a personalized welcome response. The parameter `name` may be used by
 10007  // the agent in the response: "Hello #welcome_event.name! What can I do for
 10008  // you today?".
 10009  type GoogleCloudDialogflowV2EventInput struct {
 10010  	// LanguageCode: Required. The language of this query. See Language Support
 10011  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 10012  	// the currently supported language codes. Note that queries in the same
 10013  	// session do not necessarily need to specify the same language. This field is
 10014  	// ignored when used in the context of a WebhookResponse.followup_event_input
 10015  	// field, because the language was already defined in the originating detect
 10016  	// intent request.
 10017  	LanguageCode string `json:"languageCode,omitempty"`
 10018  	// Name: Required. The unique identifier of the event.
 10019  	Name string `json:"name,omitempty"`
 10020  	// Parameters: The collection of parameters associated with the event.
 10021  	// Depending on your protocol or client library language, this is a map,
 10022  	// associative array, symbol table, dictionary, or JSON object composed of a
 10023  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 10024  	// value: parameter name * MapValue type: If parameter's entity type is a
 10025  	// composite entity then use map, otherwise, depending on the parameter value
 10026  	// type, it could be one of string, number, boolean, null, list or map. *
 10027  	// MapValue value: If parameter's entity type is a composite entity then use
 10028  	// map from composite entity property names to property values, otherwise, use
 10029  	// parameter value.
 10030  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 10031  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 10032  	// unconditionally include in API requests. By default, fields with empty or
 10033  	// default values are omitted from API requests. See
 10034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10035  	// details.
 10036  	ForceSendFields []string `json:"-"`
 10037  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 10038  	// requests with the JSON null value. By default, fields with empty values are
 10039  	// omitted from API requests. See
 10040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10041  	NullFields []string `json:"-"`
 10042  }
 10043  
 10044  func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
 10045  	type NoMethod GoogleCloudDialogflowV2EventInput
 10046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10047  }
 10048  
 10049  // GoogleCloudDialogflowV2ExportAgentRequest: The request message for
 10050  // Agents.ExportAgent.
 10051  type GoogleCloudDialogflowV2ExportAgentRequest struct {
 10052  	// AgentUri: Required. The Google Cloud Storage
 10053  	// (https://cloud.google.com/storage/docs/) URI to export the agent to. The
 10054  	// format of this URI must be `gs:///`. If left unspecified, the serialized
 10055  	// agent is returned inline. Dialogflow performs a write operation for the
 10056  	// Cloud Storage object on the caller's behalf, so your request authentication
 10057  	// must have write permissions for the object. For more information, see
 10058  	// Dialogflow access control
 10059  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 10060  	AgentUri string `json:"agentUri,omitempty"`
 10061  	// ForceSendFields is a list of field names (e.g. "AgentUri") to
 10062  	// unconditionally include in API requests. By default, fields with empty or
 10063  	// default values are omitted from API requests. See
 10064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10065  	// details.
 10066  	ForceSendFields []string `json:"-"`
 10067  	// NullFields is a list of field names (e.g. "AgentUri") to include in API
 10068  	// requests with the JSON null value. By default, fields with empty values are
 10069  	// omitted from API requests. See
 10070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10071  	NullFields []string `json:"-"`
 10072  }
 10073  
 10074  func (s *GoogleCloudDialogflowV2ExportAgentRequest) MarshalJSON() ([]byte, error) {
 10075  	type NoMethod GoogleCloudDialogflowV2ExportAgentRequest
 10076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10077  }
 10078  
 10079  // GoogleCloudDialogflowV2ExportAgentResponse: The response message for
 10080  // Agents.ExportAgent.
 10081  type GoogleCloudDialogflowV2ExportAgentResponse struct {
 10082  	// AgentContent: Zip compressed raw byte content for agent.
 10083  	AgentContent string `json:"agentContent,omitempty"`
 10084  	// AgentUri: The URI to a file containing the exported agent. This field is
 10085  	// populated only if `agent_uri` is specified in `ExportAgentRequest`.
 10086  	AgentUri string `json:"agentUri,omitempty"`
 10087  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 10088  	// unconditionally include in API requests. By default, fields with empty or
 10089  	// default values are omitted from API requests. See
 10090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10091  	// details.
 10092  	ForceSendFields []string `json:"-"`
 10093  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 10094  	// requests with the JSON null value. By default, fields with empty values are
 10095  	// omitted from API requests. See
 10096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10097  	NullFields []string `json:"-"`
 10098  }
 10099  
 10100  func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
 10101  	type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
 10102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10103  }
 10104  
 10105  // GoogleCloudDialogflowV2ExportDocumentRequest: Request message for
 10106  // Documents.ExportDocument.
 10107  type GoogleCloudDialogflowV2ExportDocumentRequest struct {
 10108  	// ExportFullContent: When enabled, export the full content of the document
 10109  	// including empirical probability.
 10110  	ExportFullContent bool `json:"exportFullContent,omitempty"`
 10111  	// GcsDestination: Cloud Storage file path to export the document.
 10112  	GcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"gcsDestination,omitempty"`
 10113  	// SmartMessagingPartialUpdate: When enabled, export the smart messaging
 10114  	// allowlist document for partial update.
 10115  	SmartMessagingPartialUpdate bool `json:"smartMessagingPartialUpdate,omitempty"`
 10116  	// ForceSendFields is a list of field names (e.g. "ExportFullContent") to
 10117  	// unconditionally include in API requests. By default, fields with empty or
 10118  	// default values are omitted from API requests. See
 10119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10120  	// details.
 10121  	ForceSendFields []string `json:"-"`
 10122  	// NullFields is a list of field names (e.g. "ExportFullContent") to include in
 10123  	// API requests with the JSON null value. By default, fields with empty values
 10124  	// are omitted from API requests. See
 10125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10126  	NullFields []string `json:"-"`
 10127  }
 10128  
 10129  func (s *GoogleCloudDialogflowV2ExportDocumentRequest) MarshalJSON() ([]byte, error) {
 10130  	type NoMethod GoogleCloudDialogflowV2ExportDocumentRequest
 10131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10132  }
 10133  
 10134  // GoogleCloudDialogflowV2ExportOperationMetadata: Metadata related to the
 10135  // Export Data Operations (e.g. ExportDocument).
 10136  type GoogleCloudDialogflowV2ExportOperationMetadata struct {
 10137  	// ExportedGcsDestination: Cloud Storage file path of the exported data.
 10138  	ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
 10139  	// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to
 10140  	// unconditionally include in API requests. By default, fields with empty or
 10141  	// default values are omitted from API requests. See
 10142  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10143  	// details.
 10144  	ForceSendFields []string `json:"-"`
 10145  	// NullFields is a list of field names (e.g. "ExportedGcsDestination") to
 10146  	// include in API requests with the JSON null value. By default, fields with
 10147  	// empty values are omitted from API requests. See
 10148  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10149  	NullFields []string `json:"-"`
 10150  }
 10151  
 10152  func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
 10153  	type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
 10154  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10155  }
 10156  
 10157  // GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently asked
 10158  // questions".
 10159  type GoogleCloudDialogflowV2FaqAnswer struct {
 10160  	// Answer: The piece of text from the `source` knowledge base document.
 10161  	Answer string `json:"answer,omitempty"`
 10162  	// AnswerRecord: The name of answer record, in the format of
 10163  	// "projects//locations//answerRecords/"
 10164  	AnswerRecord string `json:"answerRecord,omitempty"`
 10165  	// Confidence: The system's confidence score that this Knowledge answer is a
 10166  	// good match for this conversational query, range from 0.0 (completely
 10167  	// uncertain) to 1.0 (completely certain).
 10168  	Confidence float64 `json:"confidence,omitempty"`
 10169  	// Metadata: A map that contains metadata about the answer and the document
 10170  	// from which it originates.
 10171  	Metadata map[string]string `json:"metadata,omitempty"`
 10172  	// Question: The corresponding FAQ question.
 10173  	Question string `json:"question,omitempty"`
 10174  	// Source: Indicates which Knowledge Document this answer was extracted from.
 10175  	// Format: `projects//locations//agent/knowledgeBases//documents/`.
 10176  	Source string `json:"source,omitempty"`
 10177  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 10178  	// include in API requests. By default, fields with empty or default values are
 10179  	// omitted from API requests. See
 10180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10181  	// details.
 10182  	ForceSendFields []string `json:"-"`
 10183  	// NullFields is a list of field names (e.g. "Answer") to include in API
 10184  	// requests with the JSON null value. By default, fields with empty values are
 10185  	// omitted from API requests. See
 10186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10187  	NullFields []string `json:"-"`
 10188  }
 10189  
 10190  func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
 10191  	type NoMethod GoogleCloudDialogflowV2FaqAnswer
 10192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10193  }
 10194  
 10195  func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
 10196  	type NoMethod GoogleCloudDialogflowV2FaqAnswer
 10197  	var s1 struct {
 10198  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 10199  		*NoMethod
 10200  	}
 10201  	s1.NoMethod = (*NoMethod)(s)
 10202  	if err := json.Unmarshal(data, &s1); err != nil {
 10203  		return err
 10204  	}
 10205  	s.Confidence = float64(s1.Confidence)
 10206  	return nil
 10207  }
 10208  
 10209  // GoogleCloudDialogflowV2Fulfillment: By default, your agent responds to a
 10210  // matched intent with a static response. As an alternative, you can provide a
 10211  // more dynamic response by using fulfillment. When you enable fulfillment for
 10212  // an intent, Dialogflow responds to that intent by calling a service that you
 10213  // define. For example, if an end-user wants to schedule a haircut on Friday,
 10214  // your service can check your database and respond to the end-user with
 10215  // availability information for Friday. For more information, see the
 10216  // fulfillment guide
 10217  // (https://cloud.google.com/dialogflow/docs/fulfillment-overview).
 10218  type GoogleCloudDialogflowV2Fulfillment struct {
 10219  	// DisplayName: Optional. The human-readable name of the fulfillment, unique
 10220  	// within the agent. This field is not used for Fulfillment in an Environment.
 10221  	DisplayName string `json:"displayName,omitempty"`
 10222  	// Enabled: Optional. Whether fulfillment is enabled.
 10223  	Enabled bool `json:"enabled,omitempty"`
 10224  	// Features: Optional. The field defines whether the fulfillment is enabled for
 10225  	// certain features.
 10226  	Features []*GoogleCloudDialogflowV2FulfillmentFeature `json:"features,omitempty"`
 10227  	// GenericWebService: Configuration for a generic web service.
 10228  	GenericWebService *GoogleCloudDialogflowV2FulfillmentGenericWebService `json:"genericWebService,omitempty"`
 10229  	// Name: Required. The unique identifier of the fulfillment. Supported formats:
 10230  	// - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
 10231  	// This field is not used for Fulfillment in an Environment.
 10232  	Name string `json:"name,omitempty"`
 10233  
 10234  	// ServerResponse contains the HTTP response code and headers from the server.
 10235  	googleapi.ServerResponse `json:"-"`
 10236  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 10237  	// unconditionally include in API requests. By default, fields with empty or
 10238  	// default values are omitted from API requests. See
 10239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10240  	// details.
 10241  	ForceSendFields []string `json:"-"`
 10242  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 10243  	// requests with the JSON null value. By default, fields with empty values are
 10244  	// omitted from API requests. See
 10245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10246  	NullFields []string `json:"-"`
 10247  }
 10248  
 10249  func (s *GoogleCloudDialogflowV2Fulfillment) MarshalJSON() ([]byte, error) {
 10250  	type NoMethod GoogleCloudDialogflowV2Fulfillment
 10251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10252  }
 10253  
 10254  // GoogleCloudDialogflowV2FulfillmentFeature: Whether fulfillment is enabled
 10255  // for the specific feature.
 10256  type GoogleCloudDialogflowV2FulfillmentFeature struct {
 10257  	// Type: The type of the feature that enabled for fulfillment.
 10258  	//
 10259  	// Possible values:
 10260  	//   "TYPE_UNSPECIFIED" - Feature type not specified.
 10261  	//   "SMALLTALK" - Fulfillment is enabled for SmallTalk.
 10262  	Type string `json:"type,omitempty"`
 10263  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
 10264  	// include in API requests. By default, fields with empty or default values are
 10265  	// omitted from API requests. See
 10266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10267  	// details.
 10268  	ForceSendFields []string `json:"-"`
 10269  	// NullFields is a list of field names (e.g. "Type") to include in API requests
 10270  	// with the JSON null value. By default, fields with empty values are omitted
 10271  	// from API requests. See
 10272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10273  	NullFields []string `json:"-"`
 10274  }
 10275  
 10276  func (s *GoogleCloudDialogflowV2FulfillmentFeature) MarshalJSON() ([]byte, error) {
 10277  	type NoMethod GoogleCloudDialogflowV2FulfillmentFeature
 10278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10279  }
 10280  
 10281  // GoogleCloudDialogflowV2FulfillmentGenericWebService: Represents
 10282  // configuration for a generic web service. Dialogflow supports two mechanisms
 10283  // for authentications: - Basic authentication with username and password. -
 10284  // Authentication with additional authentication headers. More information
 10285  // could be found at:
 10286  // https://cloud.google.com/dialogflow/docs/fulfillment-configure.
 10287  type GoogleCloudDialogflowV2FulfillmentGenericWebService struct {
 10288  	// IsCloudFunction: Optional. Indicates if generic web service is created
 10289  	// through Cloud Functions integration. Defaults to false. is_cloud_function is
 10290  	// deprecated. Cloud functions can be configured by its uri as a regular web
 10291  	// service now.
 10292  	IsCloudFunction bool `json:"isCloudFunction,omitempty"`
 10293  	// Password: Optional. The password for HTTP Basic authentication.
 10294  	Password string `json:"password,omitempty"`
 10295  	// RequestHeaders: Optional. The HTTP request headers to send together with
 10296  	// fulfillment requests.
 10297  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
 10298  	// Uri: Required. The fulfillment URI for receiving POST requests. It must use
 10299  	// https protocol.
 10300  	Uri string `json:"uri,omitempty"`
 10301  	// Username: Optional. The user name for HTTP Basic authentication.
 10302  	Username string `json:"username,omitempty"`
 10303  	// ForceSendFields is a list of field names (e.g. "IsCloudFunction") to
 10304  	// unconditionally include in API requests. By default, fields with empty or
 10305  	// default values are omitted from API requests. See
 10306  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10307  	// details.
 10308  	ForceSendFields []string `json:"-"`
 10309  	// NullFields is a list of field names (e.g. "IsCloudFunction") to include in
 10310  	// API requests with the JSON null value. By default, fields with empty values
 10311  	// are omitted from API requests. See
 10312  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10313  	NullFields []string `json:"-"`
 10314  }
 10315  
 10316  func (s *GoogleCloudDialogflowV2FulfillmentGenericWebService) MarshalJSON() ([]byte, error) {
 10317  	type NoMethod GoogleCloudDialogflowV2FulfillmentGenericWebService
 10318  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10319  }
 10320  
 10321  // GoogleCloudDialogflowV2GcsDestination: Google Cloud Storage location for the
 10322  // output.
 10323  type GoogleCloudDialogflowV2GcsDestination struct {
 10324  	// Uri: The Google Cloud Storage URIs for the output. A URI is of the form:
 10325  	// `gs://bucket/object-prefix-or-name` Whether a prefix or name is used depends
 10326  	// on the use case. The requesting user must have "write-permission" to the
 10327  	// bucket.
 10328  	Uri string `json:"uri,omitempty"`
 10329  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 10330  	// include in API requests. By default, fields with empty or default values are
 10331  	// omitted from API requests. See
 10332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10333  	// details.
 10334  	ForceSendFields []string `json:"-"`
 10335  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 10336  	// with the JSON null value. By default, fields with empty values are omitted
 10337  	// from API requests. See
 10338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10339  	NullFields []string `json:"-"`
 10340  }
 10341  
 10342  func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
 10343  	type NoMethod GoogleCloudDialogflowV2GcsDestination
 10344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10345  }
 10346  
 10347  // GoogleCloudDialogflowV2GcsSources: Google Cloud Storage location for the
 10348  // inputs.
 10349  type GoogleCloudDialogflowV2GcsSources struct {
 10350  	// Uris: Required. Google Cloud Storage URIs for the inputs. A URI is of the
 10351  	// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used
 10352  	// depends on the use case.
 10353  	Uris []string `json:"uris,omitempty"`
 10354  	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
 10355  	// include in API requests. By default, fields with empty or default values are
 10356  	// omitted from API requests. See
 10357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10358  	// details.
 10359  	ForceSendFields []string `json:"-"`
 10360  	// NullFields is a list of field names (e.g. "Uris") to include in API requests
 10361  	// with the JSON null value. By default, fields with empty values are omitted
 10362  	// from API requests. See
 10363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10364  	NullFields []string `json:"-"`
 10365  }
 10366  
 10367  func (s *GoogleCloudDialogflowV2GcsSources) MarshalJSON() ([]byte, error) {
 10368  	type NoMethod GoogleCloudDialogflowV2GcsSources
 10369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10370  }
 10371  
 10372  // GoogleCloudDialogflowV2GenerateStatelessSummaryRequest: The request message
 10373  // for Conversations.GenerateStatelessSummary.
 10374  type GoogleCloudDialogflowV2GenerateStatelessSummaryRequest struct {
 10375  	// ConversationProfile: Required. A ConversationProfile containing information
 10376  	// required for Summary generation. Required fields: {language_code,
 10377  	// security_settings} Optional fields: {agent_assistant_config}
 10378  	ConversationProfile *GoogleCloudDialogflowV2ConversationProfile `json:"conversationProfile,omitempty"`
 10379  	// LatestMessage: The name of the latest conversation message used as context
 10380  	// for generating a Summary. If empty, the latest message of the conversation
 10381  	// will be used. The format is specific to the user and the names of the
 10382  	// messages provided.
 10383  	LatestMessage string `json:"latestMessage,omitempty"`
 10384  	// MaxContextSize: Max number of messages prior to and including
 10385  	// [latest_message] to use as context when compiling the suggestion. By default
 10386  	// 500 and at most 1000.
 10387  	MaxContextSize int64 `json:"maxContextSize,omitempty"`
 10388  	// StatelessConversation: Required. The conversation to suggest a summary for.
 10389  	StatelessConversation *GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation `json:"statelessConversation,omitempty"`
 10390  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 10391  	// unconditionally include in API requests. By default, fields with empty or
 10392  	// default values are omitted from API requests. See
 10393  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10394  	// details.
 10395  	ForceSendFields []string `json:"-"`
 10396  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 10397  	// in API requests with the JSON null value. By default, fields with empty
 10398  	// values are omitted from API requests. See
 10399  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10400  	NullFields []string `json:"-"`
 10401  }
 10402  
 10403  func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest) MarshalJSON() ([]byte, error) {
 10404  	type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
 10405  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10406  }
 10407  
 10408  // GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation:
 10409  // The minimum amount of information required to generate a Summary without
 10410  // having a Conversation resource created.
 10411  type GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation struct {
 10412  	// Messages: Required. The messages that the Summary will be generated from. It
 10413  	// is expected that this message content is already redacted and does not
 10414  	// contain any PII. Required fields: {content, language_code, participant,
 10415  	// participant_role} Optional fields: {send_time} If send_time is not provided,
 10416  	// then the messages must be provided in chronological order.
 10417  	Messages []*GoogleCloudDialogflowV2Message `json:"messages,omitempty"`
 10418  	// ForceSendFields is a list of field names (e.g. "Messages") to
 10419  	// unconditionally include in API requests. By default, fields with empty or
 10420  	// default values are omitted from API requests. See
 10421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10422  	// details.
 10423  	ForceSendFields []string `json:"-"`
 10424  	// NullFields is a list of field names (e.g. "Messages") to include in API
 10425  	// requests with the JSON null value. By default, fields with empty values are
 10426  	// omitted from API requests. See
 10427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10428  	NullFields []string `json:"-"`
 10429  }
 10430  
 10431  func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation) MarshalJSON() ([]byte, error) {
 10432  	type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation
 10433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10434  }
 10435  
 10436  // GoogleCloudDialogflowV2GenerateStatelessSummaryResponse: The response
 10437  // message for Conversations.GenerateStatelessSummary.
 10438  type GoogleCloudDialogflowV2GenerateStatelessSummaryResponse struct {
 10439  	// ContextSize: Number of messages prior to and including
 10440  	// last_conversation_message used to compile the suggestion. It may be smaller
 10441  	// than the GenerateStatelessSummaryRequest.context_size field in the request
 10442  	// if there weren't that many messages in the conversation.
 10443  	ContextSize int64 `json:"contextSize,omitempty"`
 10444  	// LatestMessage: The name of the latest conversation message used as context
 10445  	// for compiling suggestion. The format is specific to the user and the names
 10446  	// of the messages provided.
 10447  	LatestMessage string `json:"latestMessage,omitempty"`
 10448  	// Summary: Generated summary.
 10449  	Summary *GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary `json:"summary,omitempty"`
 10450  
 10451  	// ServerResponse contains the HTTP response code and headers from the server.
 10452  	googleapi.ServerResponse `json:"-"`
 10453  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 10454  	// unconditionally include in API requests. By default, fields with empty or
 10455  	// default values are omitted from API requests. See
 10456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10457  	// details.
 10458  	ForceSendFields []string `json:"-"`
 10459  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 10460  	// requests with the JSON null value. By default, fields with empty values are
 10461  	// omitted from API requests. See
 10462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10463  	NullFields []string `json:"-"`
 10464  }
 10465  
 10466  func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryResponse) MarshalJSON() ([]byte, error) {
 10467  	type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryResponse
 10468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10469  }
 10470  
 10471  // GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary: Generated
 10472  // summary for a conversation.
 10473  type GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary struct {
 10474  	// BaselineModelVersion: The baseline model version used to generate this
 10475  	// summary. It is empty if a baseline model was not used to generate this
 10476  	// summary.
 10477  	BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
 10478  	// Text: The summary content that is concatenated into one string.
 10479  	Text string `json:"text,omitempty"`
 10480  	// TextSections: The summary content that is divided into sections. The key is
 10481  	// the section's name and the value is the section's content. There is no
 10482  	// specific format for the key or value.
 10483  	TextSections map[string]string `json:"textSections,omitempty"`
 10484  	// ForceSendFields is a list of field names (e.g. "BaselineModelVersion") to
 10485  	// unconditionally include in API requests. By default, fields with empty or
 10486  	// default values are omitted from API requests. See
 10487  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10488  	// details.
 10489  	ForceSendFields []string `json:"-"`
 10490  	// NullFields is a list of field names (e.g. "BaselineModelVersion") to include
 10491  	// in API requests with the JSON null value. By default, fields with empty
 10492  	// values are omitted from API requests. See
 10493  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10494  	NullFields []string `json:"-"`
 10495  }
 10496  
 10497  func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary) MarshalJSON() ([]byte, error) {
 10498  	type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary
 10499  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10500  }
 10501  
 10502  // GoogleCloudDialogflowV2HumanAgentAssistantConfig: Defines the Human Agent
 10503  // Assist to connect to a conversation.
 10504  type GoogleCloudDialogflowV2HumanAgentAssistantConfig struct {
 10505  	// EndUserSuggestionConfig: Configuration for agent assistance of end user
 10506  	// participant. Currently, this feature is not general available, please
 10507  	// contact Google to get access.
 10508  	EndUserSuggestionConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`
 10509  	// HumanAgentSuggestionConfig: Configuration for agent assistance of human
 10510  	// agent participant.
 10511  	HumanAgentSuggestionConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`
 10512  	// MessageAnalysisConfig: Configuration for message analysis.
 10513  	MessageAnalysisConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`
 10514  	// NotificationConfig: Pub/Sub topic on which to publish new agent assistant
 10515  	// events.
 10516  	NotificationConfig *GoogleCloudDialogflowV2NotificationConfig `json:"notificationConfig,omitempty"`
 10517  	// ForceSendFields is a list of field names (e.g. "EndUserSuggestionConfig") to
 10518  	// unconditionally include in API requests. By default, fields with empty or
 10519  	// default values are omitted from API requests. See
 10520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10521  	// details.
 10522  	ForceSendFields []string `json:"-"`
 10523  	// NullFields is a list of field names (e.g. "EndUserSuggestionConfig") to
 10524  	// include in API requests with the JSON null value. By default, fields with
 10525  	// empty values are omitted from API requests. See
 10526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10527  	NullFields []string `json:"-"`
 10528  }
 10529  
 10530  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfig) MarshalJSON() ([]byte, error) {
 10531  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfig
 10532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10533  }
 10534  
 10535  // GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig:
 10536  // Custom conversation models used in agent assist feature. Supported feature:
 10537  // ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY, CONVERSATION_SUMMARIZATION.
 10538  type GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig struct {
 10539  	// BaselineModelVersion: Version of current baseline model. It will be ignored
 10540  	// if model is set. Valid versions are: Article Suggestion baseline model: -
 10541  	// 0.9 - 1.0 (default) Summarization baseline model: - 1.0
 10542  	BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
 10543  	// Model: Conversation model resource name. Format:
 10544  	// `projects//conversationModels/`.
 10545  	Model string `json:"model,omitempty"`
 10546  	// ForceSendFields is a list of field names (e.g. "BaselineModelVersion") 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. "BaselineModelVersion") to include
 10553  	// in API requests with the JSON null value. By default, fields with empty
 10554  	// values are 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 *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig) MarshalJSON() ([]byte, error) {
 10560  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
 10561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10562  }
 10563  
 10564  // GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig:
 10565  // Config to process conversation.
 10566  type GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig struct {
 10567  	// RecentSentencesCount: Number of recent non-small-talk sentences to use as
 10568  	// context for article and FAQ suggestion
 10569  	RecentSentencesCount int64 `json:"recentSentencesCount,omitempty"`
 10570  	// ForceSendFields is a list of field names (e.g. "RecentSentencesCount") to
 10571  	// unconditionally include in API requests. By default, fields with empty or
 10572  	// default values are omitted from API requests. See
 10573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10574  	// details.
 10575  	ForceSendFields []string `json:"-"`
 10576  	// NullFields is a list of field names (e.g. "RecentSentencesCount") to include
 10577  	// in API requests with the JSON null value. By default, fields with empty
 10578  	// values are omitted from API requests. See
 10579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10580  	NullFields []string `json:"-"`
 10581  }
 10582  
 10583  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig) MarshalJSON() ([]byte, error) {
 10584  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig
 10585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10586  }
 10587  
 10588  // GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig:
 10589  // Configuration for analyses to run on each conversation message.
 10590  type GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig struct {
 10591  	// EnableEntityExtraction: Enable entity extraction in conversation messages on
 10592  	// agent assist stage
 10593  	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
 10594  	// If unspecified, defaults to false. Currently, this feature is not general
 10595  	// available, please contact Google to get access.
 10596  	EnableEntityExtraction bool `json:"enableEntityExtraction,omitempty"`
 10597  	// EnableSentimentAnalysis: Enable sentiment analysis in conversation messages
 10598  	// on agent assist stage
 10599  	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
 10600  	// If unspecified, defaults to false. Sentiment analysis inspects user input
 10601  	// and identifies the prevailing subjective opinion, especially to determine a
 10602  	// user's attitude as positive, negative, or neutral:
 10603  	// https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For
 10604  	// Participants.StreamingAnalyzeContent method, result will be in
 10605  	// StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For
 10606  	// Participants.AnalyzeContent method, result will be in
 10607  	// AnalyzeContentResponse.message.SentimentAnalysisResult For
 10608  	// Conversations.ListMessages method, result will be in
 10609  	// ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub
 10610  	// notification is configured, result will be in
 10611  	// ConversationEvent.new_message_payload.SentimentAnalysisResult.
 10612  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
 10613  	// ForceSendFields is a list of field names (e.g. "EnableEntityExtraction") to
 10614  	// unconditionally include in API requests. By default, fields with empty or
 10615  	// default values are omitted from API requests. See
 10616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10617  	// details.
 10618  	ForceSendFields []string `json:"-"`
 10619  	// NullFields is a list of field names (e.g. "EnableEntityExtraction") to
 10620  	// include in API requests with the JSON null value. By default, fields with
 10621  	// empty values are omitted from API requests. See
 10622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10623  	NullFields []string `json:"-"`
 10624  }
 10625  
 10626  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig) MarshalJSON() ([]byte, error) {
 10627  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
 10628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10629  }
 10630  
 10631  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig: Detail
 10632  // human agent assistant config.
 10633  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig struct {
 10634  	// FeatureConfigs: Configuration of different suggestion features. One feature
 10635  	// can have only one config.
 10636  	FeatureConfigs []*GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`
 10637  	// GroupSuggestionResponses: If `group_suggestion_responses` is false, and
 10638  	// there are multiple `feature_configs` in `event based suggestion` or
 10639  	// StreamingAnalyzeContent, we will try to deliver suggestions to customers as
 10640  	// soon as we get new suggestion. Different type of suggestions based on the
 10641  	// same context will be in separate Pub/Sub event or
 10642  	// `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to
 10643  	// true. All the suggestions to the same participant based on the same context
 10644  	// will be grouped into a single Pub/Sub event or
 10645  	// StreamingAnalyzeContentResponse.
 10646  	GroupSuggestionResponses bool `json:"groupSuggestionResponses,omitempty"`
 10647  	// ForceSendFields is a list of field names (e.g. "FeatureConfigs") to
 10648  	// unconditionally include in API requests. By default, fields with empty or
 10649  	// default values are omitted from API requests. See
 10650  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10651  	// details.
 10652  	ForceSendFields []string `json:"-"`
 10653  	// NullFields is a list of field names (e.g. "FeatureConfigs") to include in
 10654  	// API requests with the JSON null value. By default, fields with empty values
 10655  	// are omitted from API requests. See
 10656  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10657  	NullFields []string `json:"-"`
 10658  }
 10659  
 10660  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig) MarshalJSON() ([]byte, error) {
 10661  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig
 10662  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10663  }
 10664  
 10665  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig:
 10666  // Config for suggestion features.
 10667  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig struct {
 10668  	// ConversationModelConfig: Configs of custom conversation model.
 10669  	ConversationModelConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`
 10670  	// ConversationProcessConfig: Configs for processing conversation.
 10671  	ConversationProcessConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig `json:"conversationProcessConfig,omitempty"`
 10672  	// DisableAgentQueryLogging: Optional. Disable the logging of search queries
 10673  	// sent by human agents. It can prevent those queries from being stored at
 10674  	// answer records. Supported features: KNOWLEDGE_SEARCH.
 10675  	DisableAgentQueryLogging bool `json:"disableAgentQueryLogging,omitempty"`
 10676  	// EnableConversationAugmentedQuery: Optional. Enable including conversation
 10677  	// context during query answer generation. Supported features:
 10678  	// KNOWLEDGE_SEARCH.
 10679  	EnableConversationAugmentedQuery bool `json:"enableConversationAugmentedQuery,omitempty"`
 10680  	// EnableEventBasedSuggestion: Automatically iterates all participants and
 10681  	// tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ,
 10682  	// DIALOGFLOW_ASSIST, KNOWLEDGE_ASSIST.
 10683  	EnableEventBasedSuggestion bool `json:"enableEventBasedSuggestion,omitempty"`
 10684  	// QueryConfig: Configs of query.
 10685  	QueryConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`
 10686  	// SuggestionFeature: The suggestion feature.
 10687  	SuggestionFeature *GoogleCloudDialogflowV2SuggestionFeature `json:"suggestionFeature,omitempty"`
 10688  	// SuggestionTriggerSettings: Settings of suggestion trigger. Currently, only
 10689  	// ARTICLE_SUGGESTION and FAQ will use this field.
 10690  	SuggestionTriggerSettings *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`
 10691  	// ForceSendFields is a list of field names (e.g. "ConversationModelConfig") to
 10692  	// unconditionally include in API requests. By default, fields with empty or
 10693  	// default values are omitted from API requests. See
 10694  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10695  	// details.
 10696  	ForceSendFields []string `json:"-"`
 10697  	// NullFields is a list of field names (e.g. "ConversationModelConfig") to
 10698  	// include in API requests with the JSON null value. By default, fields with
 10699  	// empty values are omitted from API requests. See
 10700  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10701  	NullFields []string `json:"-"`
 10702  }
 10703  
 10704  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig) MarshalJSON() ([]byte, error) {
 10705  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig
 10706  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10707  }
 10708  
 10709  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig:
 10710  // Config for suggestion query.
 10711  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig struct {
 10712  	// ConfidenceThreshold: Confidence threshold of query result. Agent Assist
 10713  	// gives each suggestion a score in the range [0.0, 1.0], based on the
 10714  	// relevance between the suggestion and the current conversation context. A
 10715  	// score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only
 10716  	// suggestions with a score greater than or equal to the value of this field
 10717  	// are included in the results. For a baseline model (the default), the
 10718  	// recommended value is in the range [0.05, 0.1]. For a custom model, there is
 10719  	// no recommended value. Tune this value by starting from a very low value and
 10720  	// slowly increasing until you have desired results. If this field is not set,
 10721  	// it defaults to 0.0, which means that all suggestions are returned. Supported
 10722  	// features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
 10723  	// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
 10724  	ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
 10725  	// ContextFilterSettings: Determines how recent conversation context is
 10726  	// filtered when generating suggestions. If unspecified, no messages will be
 10727  	// dropped.
 10728  	ContextFilterSettings *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`
 10729  	// DialogflowQuerySource: Query from Dialogflow agent. It is used by
 10730  	// DIALOGFLOW_ASSIST.
 10731  	DialogflowQuerySource *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`
 10732  	// DocumentQuerySource: Query from knowledge base document. It is used by:
 10733  	// SMART_REPLY, SMART_COMPOSE.
 10734  	DocumentQuerySource *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`
 10735  	// KnowledgeBaseQuerySource: Query from knowledgebase. It is used by:
 10736  	// ARTICLE_SUGGESTION, FAQ.
 10737  	KnowledgeBaseQuerySource *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`
 10738  	// MaxResults: Maximum number of results to return. Currently, if unset,
 10739  	// defaults to 10. And the max number is 20.
 10740  	MaxResults int64 `json:"maxResults,omitempty"`
 10741  	// Sections: Optional. The customized sections chosen to return when requesting
 10742  	// a summary of a conversation.
 10743  	Sections *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections `json:"sections,omitempty"`
 10744  	// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") to
 10745  	// unconditionally include in API requests. By default, fields with empty or
 10746  	// default values are omitted from API requests. See
 10747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10748  	// details.
 10749  	ForceSendFields []string `json:"-"`
 10750  	// NullFields is a list of field names (e.g. "ConfidenceThreshold") to include
 10751  	// in API requests with the JSON null value. By default, fields with empty
 10752  	// values are omitted from API requests. See
 10753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10754  	NullFields []string `json:"-"`
 10755  }
 10756  
 10757  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig) MarshalJSON() ([]byte, error) {
 10758  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
 10759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10760  }
 10761  
 10762  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig) UnmarshalJSON(data []byte) error {
 10763  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
 10764  	var s1 struct {
 10765  		ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
 10766  		*NoMethod
 10767  	}
 10768  	s1.NoMethod = (*NoMethod)(s)
 10769  	if err := json.Unmarshal(data, &s1); err != nil {
 10770  		return err
 10771  	}
 10772  	s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
 10773  	return nil
 10774  }
 10775  
 10776  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextF
 10777  // ilterSettings: Settings that determine how to filter recent conversation
 10778  // context when generating suggestions.
 10779  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {
 10780  	// DropHandoffMessages: If set to true, the last message from virtual agent
 10781  	// (hand off message) and the message before it (trigger message of hand off)
 10782  	// are dropped.
 10783  	DropHandoffMessages bool `json:"dropHandoffMessages,omitempty"`
 10784  	// DropIvrMessages: If set to true, all messages from ivr stage are dropped.
 10785  	DropIvrMessages bool `json:"dropIvrMessages,omitempty"`
 10786  	// DropVirtualAgentMessages: If set to true, all messages from virtual agent
 10787  	// are dropped.
 10788  	DropVirtualAgentMessages bool `json:"dropVirtualAgentMessages,omitempty"`
 10789  	// ForceSendFields is a list of field names (e.g. "DropHandoffMessages") to
 10790  	// unconditionally include in API requests. By default, fields with empty or
 10791  	// default values are omitted from API requests. See
 10792  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10793  	// details.
 10794  	ForceSendFields []string `json:"-"`
 10795  	// NullFields is a list of field names (e.g. "DropHandoffMessages") to include
 10796  	// in API requests with the JSON null value. By default, fields with empty
 10797  	// values are omitted from API requests. See
 10798  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10799  	NullFields []string `json:"-"`
 10800  }
 10801  
 10802  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings) MarshalJSON() ([]byte, error) {
 10803  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
 10804  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10805  }
 10806  
 10807  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogfl
 10808  // owQuerySource: Dialogflow source setting. Supported feature:
 10809  // DIALOGFLOW_ASSIST.
 10810  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {
 10811  	// Agent: Required. The name of a Dialogflow virtual agent used for end user
 10812  	// side intent detection and suggestion. Format: `projects//locations//agent`.
 10813  	// When multiple agents are allowed in the same Dialogflow project.
 10814  	Agent string `json:"agent,omitempty"`
 10815  	// HumanAgentSideConfig: Optional. The Dialogflow assist configuration for
 10816  	// human agent.
 10817  	HumanAgentSideConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig `json:"humanAgentSideConfig,omitempty"`
 10818  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
 10819  	// include in API requests. By default, fields with empty or default values are
 10820  	// omitted from API requests. See
 10821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10822  	// details.
 10823  	ForceSendFields []string `json:"-"`
 10824  	// NullFields is a list of field names (e.g. "Agent") to include in API
 10825  	// requests with the JSON null value. By default, fields with empty values are
 10826  	// omitted from API requests. See
 10827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10828  	NullFields []string `json:"-"`
 10829  }
 10830  
 10831  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource) MarshalJSON() ([]byte, error) {
 10832  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
 10833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10834  }
 10835  
 10836  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogfl
 10837  // owQuerySourceHumanAgentSideConfig: The configuration used for human agent
 10838  // side Dialogflow assist suggestion.
 10839  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig struct {
 10840  	// Agent: Optional. The name of a dialogflow virtual agent used for intent
 10841  	// detection and suggestion triggered by human agent. Format:
 10842  	// `projects//locations//agent`.
 10843  	Agent string `json:"agent,omitempty"`
 10844  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
 10845  	// include in API requests. By default, fields with empty or default values are
 10846  	// omitted from API requests. See
 10847  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10848  	// details.
 10849  	ForceSendFields []string `json:"-"`
 10850  	// NullFields is a list of field names (e.g. "Agent") to include in API
 10851  	// requests with the JSON null value. By default, fields with empty values are
 10852  	// omitted from API requests. See
 10853  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10854  	NullFields []string `json:"-"`
 10855  }
 10856  
 10857  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig) MarshalJSON() ([]byte, error) {
 10858  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
 10859  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10860  }
 10861  
 10862  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocument
 10863  // QuerySource: Document source settings. Supported features: SMART_REPLY,
 10864  // SMART_COMPOSE.
 10865  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {
 10866  	// Documents: Required. Knowledge documents to query from. Format:
 10867  	// `projects//locations//knowledgeBases//documents/`. Currently, at most 5
 10868  	// documents are supported.
 10869  	Documents []string `json:"documents,omitempty"`
 10870  	// ForceSendFields is a list of field names (e.g. "Documents") to
 10871  	// unconditionally include in API requests. By default, fields with empty or
 10872  	// default values are omitted from API requests. See
 10873  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10874  	// details.
 10875  	ForceSendFields []string `json:"-"`
 10876  	// NullFields is a list of field names (e.g. "Documents") to include in API
 10877  	// requests with the JSON null value. By default, fields with empty values are
 10878  	// omitted from API requests. See
 10879  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10880  	NullFields []string `json:"-"`
 10881  }
 10882  
 10883  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource) MarshalJSON() ([]byte, error) {
 10884  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
 10885  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10886  }
 10887  
 10888  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledg
 10889  // eBaseQuerySource: Knowledge base source settings. Supported features:
 10890  // ARTICLE_SUGGESTION, FAQ.
 10891  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {
 10892  	// KnowledgeBases: Required. Knowledge bases to query. Format:
 10893  	// `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases
 10894  	// are supported.
 10895  	KnowledgeBases []string `json:"knowledgeBases,omitempty"`
 10896  	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
 10897  	// unconditionally include in API requests. By default, fields with empty or
 10898  	// default values are omitted from API requests. See
 10899  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10900  	// details.
 10901  	ForceSendFields []string `json:"-"`
 10902  	// NullFields is a list of field names (e.g. "KnowledgeBases") to include in
 10903  	// API requests with the JSON null value. By default, fields with empty values
 10904  	// are omitted from API requests. See
 10905  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10906  	NullFields []string `json:"-"`
 10907  }
 10908  
 10909  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource) MarshalJSON() ([]byte, error) {
 10910  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
 10911  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10912  }
 10913  
 10914  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections
 10915  // : Custom sections to return when requesting a summary of a conversation.
 10916  // This is only supported when `baseline_model_version` == '2.0'. Supported
 10917  // features: CONVERSATION_SUMMARIZATION, CONVERSATION_SUMMARIZATION_VOICE.
 10918  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections struct {
 10919  	// SectionTypes: The selected sections chosen to return when requesting a
 10920  	// summary of a conversation. A duplicate selected section will be treated as a
 10921  	// single selected section. If section types are not provided, the default will
 10922  	// be {SITUATION, ACTION, RESULT}.
 10923  	//
 10924  	// Possible values:
 10925  	//   "SECTION_TYPE_UNSPECIFIED" - Undefined section type, does not return
 10926  	// anything.
 10927  	//   "SITUATION" - What the customer needs help with or has question about.
 10928  	// Section name: "situation".
 10929  	//   "ACTION" - What the agent does to help the customer. Section name:
 10930  	// "action".
 10931  	//   "RESOLUTION" - Result of the customer service. A single word describing
 10932  	// the result of the conversation. Section name: "resolution".
 10933  	//   "REASON_FOR_CANCELLATION" - Reason for cancellation if the customer
 10934  	// requests for a cancellation. "N/A" otherwise. Section name:
 10935  	// "reason_for_cancellation".
 10936  	//   "CUSTOMER_SATISFACTION" - "Unsatisfied" or "Satisfied" depending on the
 10937  	// customer's feelings at the end of the conversation. Section name:
 10938  	// "customer_satisfaction".
 10939  	//   "ENTITIES" - Key entities extracted from the conversation, such as ticket
 10940  	// number, order number, dollar amount, etc. Section names are prefixed by
 10941  	// "entities/".
 10942  	SectionTypes []string `json:"sectionTypes,omitempty"`
 10943  	// ForceSendFields is a list of field names (e.g. "SectionTypes") to
 10944  	// unconditionally include in API requests. By default, fields with empty or
 10945  	// default values are omitted from API requests. See
 10946  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10947  	// details.
 10948  	ForceSendFields []string `json:"-"`
 10949  	// NullFields is a list of field names (e.g. "SectionTypes") to include in API
 10950  	// requests with the JSON null value. By default, fields with empty values are
 10951  	// omitted from API requests. See
 10952  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10953  	NullFields []string `json:"-"`
 10954  }
 10955  
 10956  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections) MarshalJSON() ([]byte, error) {
 10957  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections
 10958  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10959  }
 10960  
 10961  // GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings:
 10962  // Settings of suggestion trigger.
 10963  type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings struct {
 10964  	// NoSmalltalk: Do not trigger if last utterance is small talk.
 10965  	NoSmalltalk bool `json:"noSmalltalk,omitempty"`
 10966  	// OnlyEndUser: Only trigger suggestion if participant role of last utterance
 10967  	// is END_USER.
 10968  	OnlyEndUser bool `json:"onlyEndUser,omitempty"`
 10969  	// ForceSendFields is a list of field names (e.g. "NoSmalltalk") to
 10970  	// unconditionally include in API requests. By default, fields with empty or
 10971  	// default values are omitted from API requests. See
 10972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10973  	// details.
 10974  	ForceSendFields []string `json:"-"`
 10975  	// NullFields is a list of field names (e.g. "NoSmalltalk") to include in API
 10976  	// requests with the JSON null value. By default, fields with empty values are
 10977  	// omitted from API requests. See
 10978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10979  	NullFields []string `json:"-"`
 10980  }
 10981  
 10982  func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings) MarshalJSON() ([]byte, error) {
 10983  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings
 10984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10985  }
 10986  
 10987  // GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a notification
 10988  // sent to Cloud Pub/Sub subscribers for human agent assistant events in a
 10989  // specific conversation.
 10990  type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
 10991  	// Conversation: The conversation this notification refers to. Format:
 10992  	// `projects//conversations/`.
 10993  	Conversation string `json:"conversation,omitempty"`
 10994  	// Participant: The participant that the suggestion is compiled for. Format:
 10995  	// `projects//conversations//participants/`. It will not be set in legacy
 10996  	// workflow.
 10997  	Participant string `json:"participant,omitempty"`
 10998  	// SuggestionResults: The suggestion results payload that this notification
 10999  	// refers to.
 11000  	SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
 11001  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 11002  	// unconditionally include in API requests. By default, fields with empty or
 11003  	// default values are omitted from API requests. See
 11004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11005  	// details.
 11006  	ForceSendFields []string `json:"-"`
 11007  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 11008  	// requests with the JSON null value. By default, fields with empty values are
 11009  	// omitted from API requests. See
 11010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11011  	NullFields []string `json:"-"`
 11012  }
 11013  
 11014  func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
 11015  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
 11016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11017  }
 11018  
 11019  // GoogleCloudDialogflowV2HumanAgentHandoffConfig: Defines the hand off to a
 11020  // live agent, typically on which external agent service provider to connect to
 11021  // a conversation. Currently, this feature is not general available, please
 11022  // contact Google to get access.
 11023  type GoogleCloudDialogflowV2HumanAgentHandoffConfig struct {
 11024  	// LivePersonConfig: Uses LivePerson (https://www.liveperson.com).
 11025  	LivePersonConfig *GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`
 11026  	// SalesforceLiveAgentConfig: Uses Salesforce Live Agent.
 11027  	SalesforceLiveAgentConfig *GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`
 11028  	// ForceSendFields is a list of field names (e.g. "LivePersonConfig") to
 11029  	// unconditionally include in API requests. By default, fields with empty or
 11030  	// default values are omitted from API requests. See
 11031  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11032  	// details.
 11033  	ForceSendFields []string `json:"-"`
 11034  	// NullFields is a list of field names (e.g. "LivePersonConfig") to include in
 11035  	// API requests with the JSON null value. By default, fields with empty values
 11036  	// are omitted from API requests. See
 11037  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11038  	NullFields []string `json:"-"`
 11039  }
 11040  
 11041  func (s *GoogleCloudDialogflowV2HumanAgentHandoffConfig) MarshalJSON() ([]byte, error) {
 11042  	type NoMethod GoogleCloudDialogflowV2HumanAgentHandoffConfig
 11043  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11044  }
 11045  
 11046  // GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig:
 11047  // Configuration specific to LivePerson (https://www.liveperson.com).
 11048  type GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig struct {
 11049  	// AccountNumber: Required. Account number of the LivePerson account to
 11050  	// connect. This is the account number you input at the login page.
 11051  	AccountNumber string `json:"accountNumber,omitempty"`
 11052  	// ForceSendFields is a list of field names (e.g. "AccountNumber") to
 11053  	// unconditionally include in API requests. By default, fields with empty or
 11054  	// default values are omitted from API requests. See
 11055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11056  	// details.
 11057  	ForceSendFields []string `json:"-"`
 11058  	// NullFields is a list of field names (e.g. "AccountNumber") to include in API
 11059  	// requests with the JSON null value. By default, fields with empty values are
 11060  	// omitted from API requests. See
 11061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11062  	NullFields []string `json:"-"`
 11063  }
 11064  
 11065  func (s *GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig) MarshalJSON() ([]byte, error) {
 11066  	type NoMethod GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig
 11067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11068  }
 11069  
 11070  // GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig:
 11071  // Configuration specific to Salesforce Live Agent.
 11072  type GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {
 11073  	// ButtonId: Required. Live Agent chat button ID.
 11074  	ButtonId string `json:"buttonId,omitempty"`
 11075  	// DeploymentId: Required. Live Agent deployment ID.
 11076  	DeploymentId string `json:"deploymentId,omitempty"`
 11077  	// EndpointDomain: Required. Domain of the Live Agent endpoint for this agent.
 11078  	// You can find the endpoint URL in the `Live Agent settings` page. For example
 11079  	// if URL has the form https://d.la4-c2-phx.salesforceliveagent.com/..., you
 11080  	// should fill in d.la4-c2-phx.salesforceliveagent.com.
 11081  	EndpointDomain string `json:"endpointDomain,omitempty"`
 11082  	// OrganizationId: Required. The organization ID of the Salesforce account.
 11083  	OrganizationId string `json:"organizationId,omitempty"`
 11084  	// ForceSendFields is a list of field names (e.g. "ButtonId") to
 11085  	// unconditionally include in API requests. By default, fields with empty or
 11086  	// default values are omitted from API requests. See
 11087  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11088  	// details.
 11089  	ForceSendFields []string `json:"-"`
 11090  	// NullFields is a list of field names (e.g. "ButtonId") to include in API
 11091  	// requests with the JSON null value. By default, fields with empty values are
 11092  	// omitted from API requests. See
 11093  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11094  	NullFields []string `json:"-"`
 11095  }
 11096  
 11097  func (s *GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig) MarshalJSON() ([]byte, error) {
 11098  	type NoMethod GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig
 11099  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11100  }
 11101  
 11102  // GoogleCloudDialogflowV2ImportAgentRequest: The request message for
 11103  // Agents.ImportAgent.
 11104  type GoogleCloudDialogflowV2ImportAgentRequest struct {
 11105  	// AgentContent: Zip compressed raw byte content for agent.
 11106  	AgentContent string `json:"agentContent,omitempty"`
 11107  	// AgentUri: The URI to a Google Cloud Storage file containing the agent to
 11108  	// import. Note: The URI must start with "gs://". Dialogflow performs a read
 11109  	// operation for the Cloud Storage object on the caller's behalf, so your
 11110  	// request authentication must have read permissions for the object. For more
 11111  	// information, see Dialogflow access control
 11112  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 11113  	AgentUri string `json:"agentUri,omitempty"`
 11114  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 11115  	// unconditionally include in API requests. By default, fields with empty or
 11116  	// default values are omitted from API requests. See
 11117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11118  	// details.
 11119  	ForceSendFields []string `json:"-"`
 11120  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 11121  	// requests with the JSON null value. By default, fields with empty values are
 11122  	// omitted from API requests. See
 11123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11124  	NullFields []string `json:"-"`
 11125  }
 11126  
 11127  func (s *GoogleCloudDialogflowV2ImportAgentRequest) MarshalJSON() ([]byte, error) {
 11128  	type NoMethod GoogleCloudDialogflowV2ImportAgentRequest
 11129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11130  }
 11131  
 11132  // GoogleCloudDialogflowV2ImportConversationDataOperationMetadata: Metadata for
 11133  // a ConversationDatasets.ImportConversationData operation.
 11134  type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
 11135  	// ConversationDataset: The resource name of the imported conversation dataset.
 11136  	// Format: `projects//locations//conversationDatasets/`
 11137  	ConversationDataset string `json:"conversationDataset,omitempty"`
 11138  	// CreateTime: Timestamp when import conversation data request was created. The
 11139  	// time is measured on server side.
 11140  	CreateTime string `json:"createTime,omitempty"`
 11141  	// PartialFailures: Partial failures are failures that don't fail the whole
 11142  	// long running operation, e.g. single files that couldn't be read.
 11143  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
 11144  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
 11145  	// unconditionally include in API requests. By default, fields with empty or
 11146  	// default values are omitted from API requests. See
 11147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11148  	// details.
 11149  	ForceSendFields []string `json:"-"`
 11150  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
 11151  	// in API requests with the JSON null value. By default, fields with empty
 11152  	// values are omitted from API requests. See
 11153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11154  	NullFields []string `json:"-"`
 11155  }
 11156  
 11157  func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
 11158  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
 11159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11160  }
 11161  
 11162  // GoogleCloudDialogflowV2ImportConversationDataOperationResponse: Response
 11163  // used for ConversationDatasets.ImportConversationData long running operation.
 11164  type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
 11165  	// ConversationDataset: The resource name of the imported conversation dataset.
 11166  	// Format: `projects//locations//conversationDatasets/`
 11167  	ConversationDataset string `json:"conversationDataset,omitempty"`
 11168  	// ImportCount: Number of conversations imported successfully.
 11169  	ImportCount int64 `json:"importCount,omitempty"`
 11170  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
 11171  	// unconditionally include in API requests. By default, fields with empty or
 11172  	// default values are omitted from API requests. See
 11173  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11174  	// details.
 11175  	ForceSendFields []string `json:"-"`
 11176  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
 11177  	// in API requests with the JSON null value. By default, fields with empty
 11178  	// values are omitted from API requests. See
 11179  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11180  	NullFields []string `json:"-"`
 11181  }
 11182  
 11183  func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
 11184  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
 11185  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11186  }
 11187  
 11188  // GoogleCloudDialogflowV2ImportConversationDataRequest: The request message
 11189  // for ConversationDatasets.ImportConversationData.
 11190  type GoogleCloudDialogflowV2ImportConversationDataRequest struct {
 11191  	// InputConfig: Required. Configuration describing where to import data from.
 11192  	InputConfig *GoogleCloudDialogflowV2InputConfig `json:"inputConfig,omitempty"`
 11193  	// ForceSendFields is a list of field names (e.g. "InputConfig") to
 11194  	// unconditionally include in API requests. By default, fields with empty or
 11195  	// default values are omitted from API requests. See
 11196  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11197  	// details.
 11198  	ForceSendFields []string `json:"-"`
 11199  	// NullFields is a list of field names (e.g. "InputConfig") to include in API
 11200  	// requests with the JSON null value. By default, fields with empty values are
 11201  	// omitted from API requests. See
 11202  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11203  	NullFields []string `json:"-"`
 11204  }
 11205  
 11206  func (s *GoogleCloudDialogflowV2ImportConversationDataRequest) MarshalJSON() ([]byte, error) {
 11207  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataRequest
 11208  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11209  }
 11210  
 11211  // GoogleCloudDialogflowV2ImportDocumentTemplate: The template used for
 11212  // importing documents.
 11213  type GoogleCloudDialogflowV2ImportDocumentTemplate struct {
 11214  	// KnowledgeTypes: Required. The knowledge type of document content.
 11215  	//
 11216  	// Possible values:
 11217  	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or arbitrary.
 11218  	//   "FAQ" - The document content contains question and answer pairs as either
 11219  	// HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual
 11220  	// formats may fail to be parsed. CSV must have questions in the first column
 11221  	// and answers in the second, with no header. Because of this explicit format,
 11222  	// they are always parsed accurately.
 11223  	//   "EXTRACTIVE_QA" - Documents for which unstructured text is extracted and
 11224  	// used for question answering.
 11225  	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can be used
 11226  	// for query results. Only for Contact Center Solutions on Dialogflow.
 11227  	//   "AGENT_FACING_SMART_REPLY" - The document contains agent-facing Smart
 11228  	// Reply entries.
 11229  	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
 11230  	// Metadata: Metadata for the document. The metadata supports arbitrary
 11231  	// key-value pairs. Suggested use cases include storing a document's title, an
 11232  	// external URL distinct from the document's content_uri, etc. The max size of
 11233  	// a `key` or a `value` of the metadata is 1024 bytes.
 11234  	Metadata map[string]string `json:"metadata,omitempty"`
 11235  	// MimeType: Required. The MIME type of the document.
 11236  	MimeType string `json:"mimeType,omitempty"`
 11237  	// ForceSendFields is a list of field names (e.g. "KnowledgeTypes") to
 11238  	// unconditionally include in API requests. By default, fields with empty or
 11239  	// default values are omitted from API requests. See
 11240  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11241  	// details.
 11242  	ForceSendFields []string `json:"-"`
 11243  	// NullFields is a list of field names (e.g. "KnowledgeTypes") to include in
 11244  	// API requests with the JSON null value. By default, fields with empty values
 11245  	// are omitted from API requests. See
 11246  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11247  	NullFields []string `json:"-"`
 11248  }
 11249  
 11250  func (s *GoogleCloudDialogflowV2ImportDocumentTemplate) MarshalJSON() ([]byte, error) {
 11251  	type NoMethod GoogleCloudDialogflowV2ImportDocumentTemplate
 11252  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11253  }
 11254  
 11255  // GoogleCloudDialogflowV2ImportDocumentsRequest: Request message for
 11256  // Documents.ImportDocuments.
 11257  type GoogleCloudDialogflowV2ImportDocumentsRequest struct {
 11258  	// DocumentTemplate: Required. Document template used for importing all the
 11259  	// documents.
 11260  	DocumentTemplate *GoogleCloudDialogflowV2ImportDocumentTemplate `json:"documentTemplate,omitempty"`
 11261  	// GcsSource: Optional. The Google Cloud Storage location for the documents.
 11262  	// The path can include a wildcard. These URIs may have the forms `gs:///`.
 11263  	// `gs:////*.`.
 11264  	GcsSource *GoogleCloudDialogflowV2GcsSources `json:"gcsSource,omitempty"`
 11265  	// ImportGcsCustomMetadata: Whether to import custom metadata from Google Cloud
 11266  	// Storage. Only valid when the document source is Google Cloud Storage URI.
 11267  	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
 11268  	// ForceSendFields is a list of field names (e.g. "DocumentTemplate") to
 11269  	// unconditionally include in API requests. By default, fields with empty or
 11270  	// default values are omitted from API requests. See
 11271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11272  	// details.
 11273  	ForceSendFields []string `json:"-"`
 11274  	// NullFields is a list of field names (e.g. "DocumentTemplate") to include in
 11275  	// API requests with the JSON null value. By default, fields with empty values
 11276  	// are omitted from API requests. See
 11277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11278  	NullFields []string `json:"-"`
 11279  }
 11280  
 11281  func (s *GoogleCloudDialogflowV2ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
 11282  	type NoMethod GoogleCloudDialogflowV2ImportDocumentsRequest
 11283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11284  }
 11285  
 11286  // GoogleCloudDialogflowV2ImportDocumentsResponse: Response message for
 11287  // Documents.ImportDocuments.
 11288  type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
 11289  	// Warnings: Includes details about skipped documents or any other warnings.
 11290  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 11291  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 11292  	// unconditionally include in API requests. By default, fields with empty or
 11293  	// default values are omitted from API requests. See
 11294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11295  	// details.
 11296  	ForceSendFields []string `json:"-"`
 11297  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 11298  	// requests with the JSON null value. By default, fields with empty values are
 11299  	// omitted from API requests. See
 11300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11301  	NullFields []string `json:"-"`
 11302  }
 11303  
 11304  func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 11305  	type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
 11306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11307  }
 11308  
 11309  // GoogleCloudDialogflowV2InputAudioConfig: Instructs the speech recognizer how
 11310  // to process the audio content.
 11311  type GoogleCloudDialogflowV2InputAudioConfig struct {
 11312  	// AudioEncoding: Required. Audio encoding of the audio content to process.
 11313  	//
 11314  	// Possible values:
 11315  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
 11316  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
 11317  	// samples (Linear PCM).
 11318  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
 11319  	// (Free Lossless Audio Codec) is the recommended encoding because it is
 11320  	// lossless (therefore recognition is not compromised) and requires only about
 11321  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
 11322  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
 11323  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
 11324  	// using G.711 PCMU/mu-law.
 11325  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
 11326  	// `sample_rate_hertz` must be 8000.
 11327  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
 11328  	// `sample_rate_hertz` must be 16000.
 11329  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
 11330  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
 11331  	// 16000.
 11332  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
 11333  	// encodings is not recommended, if a very low bitrate encoding is required,
 11334  	// `OGG_OPUS` is highly preferred over Speex encoding. The
 11335  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
 11336  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
 11337  	// It is a variant of the RTP Speex encoding defined in [RFC
 11338  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
 11339  	// blocks, one block per RTP packet. Each block starts with a byte containing
 11340  	// the length of the block, in bytes, followed by one or more frames of Speex
 11341  	// data, padded to an integral number of bytes (octets) as specified in RFC
 11342  	// 5574. In other words, each RTP header is replaced with a single byte
 11343  	// containing the block length. Only Speex wideband is supported.
 11344  	// `sample_rate_hertz` must be 16000.
 11345  	AudioEncoding string `json:"audioEncoding,omitempty"`
 11346  	// DisableNoSpeechRecognizedEvent: Only used in Participants.AnalyzeContent and
 11347  	// Participants.StreamingAnalyzeContent. If `false` and recognition doesn't
 11348  	// return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
 11349  	DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"`
 11350  	// EnableAutomaticPunctuation: Enable automatic punctuation option at the
 11351  	// speech backend.
 11352  	EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"`
 11353  	// EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in
 11354  	// StreamingRecognitionResult with information about the recognized speech
 11355  	// words, e.g. start and end time offsets. If false or unspecified, Speech
 11356  	// doesn't return any word-level information.
 11357  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
 11358  	// LanguageCode: Required. The language of the supplied audio. Dialogflow does
 11359  	// not do translations. See Language Support
 11360  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 11361  	// the currently supported language codes. Note that queries in the same
 11362  	// session do not necessarily need to specify the same language.
 11363  	LanguageCode string `json:"languageCode,omitempty"`
 11364  	// Model: Optional. Which Speech model to select for the given request. For
 11365  	// more information, see Speech models
 11366  	// (https://cloud.google.com/dialogflow/es/docs/speech-models).
 11367  	Model string `json:"model,omitempty"`
 11368  	// ModelVariant: Which variant of the Speech model to use.
 11369  	//
 11370  	// Possible values:
 11371  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
 11372  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
 11373  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
 11374  	// that the caller is eligible for. Please see the [Dialogflow
 11375  	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make
 11376  	// your project eligible for enhanced models.
 11377  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
 11378  	// available. See the [Cloud Speech
 11379  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 11380  	// for details about enhanced models.
 11381  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
 11382  	// does not exist for the given model and request language, Dialogflow falls
 11383  	// back to the standard variant. The [Cloud Speech
 11384  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 11385  	// describes which models have enhanced variants. * If the API caller isn't
 11386  	// eligible for enhanced models, Dialogflow returns an error. Please see the
 11387  	// [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for
 11388  	// how to make your project eligible.
 11389  	ModelVariant string `json:"modelVariant,omitempty"`
 11390  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
 11391  	// conformer model migration. This field will be deprecated once force
 11392  	// migration takes place in June 2024. Please refer to Dialogflow ES Speech
 11393  	// model migration
 11394  	// (https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
 11395  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
 11396  	// PhraseHints: A list of strings containing words and phrases that the speech
 11397  	// recognizer should recognize with higher likelihood. See the Cloud Speech
 11398  	// documentation
 11399  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
 11400  	// details. This field is deprecated. Please use `speech_contexts` () instead.
 11401  	// If you specify both `phrase_hints` () and `speech_contexts` (), Dialogflow
 11402  	// will treat the `phrase_hints` () as a single additional `SpeechContext` ().
 11403  	PhraseHints []string `json:"phraseHints,omitempty"`
 11404  	// SampleRateHertz: Required. Sample rate (in Hertz) of the audio content sent
 11405  	// in the query. Refer to Cloud Speech API documentation
 11406  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
 11407  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
 11408  	// SingleUtterance: If `false` (default), recognition does not cease until the
 11409  	// client closes the stream. If `true`, the recognizer will detect a single
 11410  	// spoken utterance in input audio. Recognition ceases when it detects the
 11411  	// audio's voice has stopped or paused. In this case, once a detected intent is
 11412  	// received, the client should close the stream and start a new request with a
 11413  	// new stream as needed. Note: This setting is relevant only for streaming
 11414  	// methods. Note: When specified, InputAudioConfig.single_utterance takes
 11415  	// precedence over StreamingDetectIntentRequest.single_utterance.
 11416  	SingleUtterance bool `json:"singleUtterance,omitempty"`
 11417  	// SpeechContexts: Context information to assist speech recognition. See the
 11418  	// Cloud Speech documentation
 11419  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
 11420  	// details.
 11421  	SpeechContexts []*GoogleCloudDialogflowV2SpeechContext `json:"speechContexts,omitempty"`
 11422  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
 11423  	// unconditionally include in API requests. By default, fields with empty or
 11424  	// default values are omitted from API requests. See
 11425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11426  	// details.
 11427  	ForceSendFields []string `json:"-"`
 11428  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
 11429  	// requests with the JSON null value. By default, fields with empty values are
 11430  	// omitted from API requests. See
 11431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11432  	NullFields []string `json:"-"`
 11433  }
 11434  
 11435  func (s *GoogleCloudDialogflowV2InputAudioConfig) MarshalJSON() ([]byte, error) {
 11436  	type NoMethod GoogleCloudDialogflowV2InputAudioConfig
 11437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11438  }
 11439  
 11440  // GoogleCloudDialogflowV2InputConfig: Represents the configuration of
 11441  // importing a set of conversation files in Google Cloud Storage.
 11442  type GoogleCloudDialogflowV2InputConfig struct {
 11443  	// GcsSource: The Cloud Storage URI has the form gs:////agent*.json. Wildcards
 11444  	// are allowed and will be expanded into all matched JSON files, which will be
 11445  	// read as one conversation per file.
 11446  	GcsSource *GoogleCloudDialogflowV2GcsSources `json:"gcsSource,omitempty"`
 11447  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
 11448  	// unconditionally include in API requests. By default, fields with empty or
 11449  	// default values are omitted from API requests. See
 11450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11451  	// details.
 11452  	ForceSendFields []string `json:"-"`
 11453  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
 11454  	// requests with the JSON null value. By default, fields with empty values are
 11455  	// omitted from API requests. See
 11456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11457  	NullFields []string `json:"-"`
 11458  }
 11459  
 11460  func (s *GoogleCloudDialogflowV2InputConfig) MarshalJSON() ([]byte, error) {
 11461  	type NoMethod GoogleCloudDialogflowV2InputConfig
 11462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11463  }
 11464  
 11465  // GoogleCloudDialogflowV2InputDataset: InputDataset used to create model or do
 11466  // evaluation. NextID:5
 11467  type GoogleCloudDialogflowV2InputDataset struct {
 11468  	// Dataset: Required. ConversationDataset resource name. Format:
 11469  	// `projects//locations//conversationDatasets/`
 11470  	Dataset string `json:"dataset,omitempty"`
 11471  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
 11472  	// include in API requests. By default, fields with empty or default values are
 11473  	// omitted from API requests. See
 11474  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11475  	// details.
 11476  	ForceSendFields []string `json:"-"`
 11477  	// NullFields is a list of field names (e.g. "Dataset") to include in API
 11478  	// requests with the JSON null value. By default, fields with empty values are
 11479  	// omitted from API requests. See
 11480  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11481  	NullFields []string `json:"-"`
 11482  }
 11483  
 11484  func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
 11485  	type NoMethod GoogleCloudDialogflowV2InputDataset
 11486  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11487  }
 11488  
 11489  // GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's intention
 11490  // for one conversation turn. For each agent, you define many intents, where
 11491  // your combined intents can handle a complete conversation. When an end-user
 11492  // writes or says something, referred to as an end-user expression or end-user
 11493  // input, Dialogflow matches the end-user input to the best intent in your
 11494  // agent. Matching an intent is also known as intent classification. For more
 11495  // information, see the intent guide
 11496  // (https://cloud.google.com/dialogflow/docs/intents-overview).
 11497  type GoogleCloudDialogflowV2Intent struct {
 11498  	// Action: Optional. The name of the action associated with the intent. Note:
 11499  	// The action name must not contain whitespaces.
 11500  	Action string `json:"action,omitempty"`
 11501  	// DefaultResponsePlatforms: Optional. The list of platforms for which the
 11502  	// first responses will be copied from the messages in PLATFORM_UNSPECIFIED
 11503  	// (i.e. default platform).
 11504  	//
 11505  	// Possible values:
 11506  	//   "PLATFORM_UNSPECIFIED" - Default platform.
 11507  	//   "FACEBOOK" - Facebook.
 11508  	//   "SLACK" - Slack.
 11509  	//   "TELEGRAM" - Telegram.
 11510  	//   "KIK" - Kik.
 11511  	//   "SKYPE" - Skype.
 11512  	//   "LINE" - Line.
 11513  	//   "VIBER" - Viber.
 11514  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 11515  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 11516  	// -webhook-json)
 11517  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 11518  	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
 11519  	// DisplayName: Required. The name of this intent.
 11520  	DisplayName string `json:"displayName,omitempty"`
 11521  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 11522  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 11523  	// this information to close interaction with an end user. Default is false.
 11524  	EndInteraction bool `json:"endInteraction,omitempty"`
 11525  	// Events: Optional. The collection of event names that trigger the intent. If
 11526  	// the collection of input contexts is not empty, all of the contexts must be
 11527  	// present in the active user session for an event to trigger this intent.
 11528  	// Event names are limited to 150 characters.
 11529  	Events []string `json:"events,omitempty"`
 11530  	// FollowupIntentInfo: Output only. Read-only. Information about all followup
 11531  	// intents that have this intent as a direct or indirect parent. We populate
 11532  	// this field only in the output.
 11533  	FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
 11534  	// InputContextNames: Optional. The list of context names required for this
 11535  	// intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
 11536  	InputContextNames []string `json:"inputContextNames,omitempty"`
 11537  	// IsFallback: Optional. Indicates whether this is a fallback intent.
 11538  	IsFallback bool `json:"isFallback,omitempty"`
 11539  	// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in
 11540  	// to handle the interaction with the user. In most cases, when you set this
 11541  	// flag to true, you would also want to set end_interaction to true as well.
 11542  	// Default is false.
 11543  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 11544  	// Messages: Optional. The collection of rich messages corresponding to the
 11545  	// `Response` field in the Dialogflow console.
 11546  	Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
 11547  	// MlDisabled: Optional. Indicates whether Machine Learning is disabled for the
 11548  	// intent. Note: If `ml_disabled` setting is set to true, then this intent is
 11549  	// not taken into account during inference in `ML ONLY` match mode. Also,
 11550  	// auto-markup in the UI is turned off.
 11551  	MlDisabled bool `json:"mlDisabled,omitempty"`
 11552  	// Name: Optional. The unique identifier of this intent. Required for
 11553  	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
 11554  	// `projects//agent/intents/`.
 11555  	Name string `json:"name,omitempty"`
 11556  	// OutputContexts: Optional. The collection of contexts that are activated when
 11557  	// the intent is matched. Context messages in this collection should not set
 11558  	// the parameters field. Setting the `lifespan_count` to 0 will reset the
 11559  	// context when the intent is matched. Format:
 11560  	// `projects//agent/sessions/-/contexts/`.
 11561  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 11562  	// Parameters: Optional. The collection of parameters associated with the
 11563  	// intent.
 11564  	Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
 11565  	// ParentFollowupIntentName: Read-only after creation. The unique identifier of
 11566  	// the parent intent in the chain of followup intents. You can set this field
 11567  	// when creating an intent, for example with CreateIntent or
 11568  	// BatchUpdateIntents, in order to make this intent a followup intent. It
 11569  	// identifies the parent followup intent. Format: `projects//agent/intents/`.
 11570  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 11571  	// Priority: Optional. The priority of this intent. Higher numbers represent
 11572  	// higher priorities. - If the supplied value is unspecified or 0, the service
 11573  	// translates the value to 500,000, which corresponds to the `Normal` priority
 11574  	// in the console. - If the supplied value is negative, the intent is ignored
 11575  	// in runtime detect intent requests.
 11576  	Priority int64 `json:"priority,omitempty"`
 11577  	// ResetContexts: Optional. Indicates whether to delete all contexts in the
 11578  	// current session when this intent is matched.
 11579  	ResetContexts bool `json:"resetContexts,omitempty"`
 11580  	// RootFollowupIntentName: Output only. Read-only. The unique identifier of the
 11581  	// root intent in the chain of followup intents. It identifies the correct
 11582  	// followup intents chain for this intent. We populate this field only in the
 11583  	// output. Format: `projects//agent/intents/`.
 11584  	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
 11585  	// TrainingPhrases: Optional. The collection of examples that the agent is
 11586  	// trained on.
 11587  	TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
 11588  	// WebhookState: Optional. Indicates whether webhooks are enabled for the
 11589  	// intent.
 11590  	//
 11591  	// Possible values:
 11592  	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the
 11593  	// intent.
 11594  	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the
 11595  	// intent.
 11596  	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent
 11597  	// and in the intent. Also, each slot filling prompt is forwarded to the
 11598  	// webhook.
 11599  	WebhookState string `json:"webhookState,omitempty"`
 11600  
 11601  	// ServerResponse contains the HTTP response code and headers from the server.
 11602  	googleapi.ServerResponse `json:"-"`
 11603  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 11604  	// include in API requests. By default, fields with empty or default values are
 11605  	// omitted from API requests. See
 11606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11607  	// details.
 11608  	ForceSendFields []string `json:"-"`
 11609  	// NullFields is a list of field names (e.g. "Action") to include in API
 11610  	// requests with the JSON null value. By default, fields with empty values are
 11611  	// omitted from API requests. See
 11612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11613  	NullFields []string `json:"-"`
 11614  }
 11615  
 11616  func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
 11617  	type NoMethod GoogleCloudDialogflowV2Intent
 11618  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11619  }
 11620  
 11621  // GoogleCloudDialogflowV2IntentBatch: This message is a wrapper around a
 11622  // collection of intents.
 11623  type GoogleCloudDialogflowV2IntentBatch struct {
 11624  	// Intents: A collection of intents.
 11625  	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
 11626  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 11627  	// include in API requests. By default, fields with empty or default values are
 11628  	// omitted from API requests. See
 11629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11630  	// details.
 11631  	ForceSendFields []string `json:"-"`
 11632  	// NullFields is a list of field names (e.g. "Intents") to include in API
 11633  	// requests with the JSON null value. By default, fields with empty values are
 11634  	// omitted from API requests. See
 11635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11636  	NullFields []string `json:"-"`
 11637  }
 11638  
 11639  func (s *GoogleCloudDialogflowV2IntentBatch) MarshalJSON() ([]byte, error) {
 11640  	type NoMethod GoogleCloudDialogflowV2IntentBatch
 11641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11642  }
 11643  
 11644  // GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single
 11645  // followup intent in the chain.
 11646  type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
 11647  	// FollowupIntentName: The unique identifier of the followup intent. Format:
 11648  	// `projects//agent/intents/`.
 11649  	FollowupIntentName string `json:"followupIntentName,omitempty"`
 11650  	// ParentFollowupIntentName: The unique identifier of the followup intent's
 11651  	// parent. Format: `projects//agent/intents/`.
 11652  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 11653  	// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to
 11654  	// unconditionally include in API requests. By default, fields with empty or
 11655  	// default values are omitted from API requests. See
 11656  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11657  	// details.
 11658  	ForceSendFields []string `json:"-"`
 11659  	// NullFields is a list of field names (e.g. "FollowupIntentName") to include
 11660  	// in API requests with the JSON null value. By default, fields with empty
 11661  	// values are omitted from API requests. See
 11662  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11663  	NullFields []string `json:"-"`
 11664  }
 11665  
 11666  func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
 11667  	type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
 11668  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11669  }
 11670  
 11671  // GoogleCloudDialogflowV2IntentMessage: A rich response message. Corresponds
 11672  // to the intent `Response` field in the Dialogflow console. For more
 11673  // information, see Rich response messages
 11674  // (https://cloud.google.com/dialogflow/docs/intents-rich-messages).
 11675  type GoogleCloudDialogflowV2IntentMessage struct {
 11676  	// BasicCard: The basic card response for Actions on Google.
 11677  	BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
 11678  	// BrowseCarouselCard: Browse carousel card for Actions on Google.
 11679  	BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
 11680  	// Card: The card response.
 11681  	Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
 11682  	// CarouselSelect: The carousel card response for Actions on Google.
 11683  	CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
 11684  	// Image: The image response.
 11685  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 11686  	// LinkOutSuggestion: The link out suggestion chip for Actions on Google.
 11687  	LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
 11688  	// ListSelect: The list card response for Actions on Google.
 11689  	ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
 11690  	// MediaContent: The media content card for Actions on Google.
 11691  	MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
 11692  	// Payload: A custom platform-specific response.
 11693  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 11694  	// Platform: Optional. The platform that this message is intended for.
 11695  	//
 11696  	// Possible values:
 11697  	//   "PLATFORM_UNSPECIFIED" - Default platform.
 11698  	//   "FACEBOOK" - Facebook.
 11699  	//   "SLACK" - Slack.
 11700  	//   "TELEGRAM" - Telegram.
 11701  	//   "KIK" - Kik.
 11702  	//   "SKYPE" - Skype.
 11703  	//   "LINE" - Line.
 11704  	//   "VIBER" - Viber.
 11705  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 11706  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 11707  	// -webhook-json)
 11708  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 11709  	Platform string `json:"platform,omitempty"`
 11710  	// QuickReplies: The quick replies response.
 11711  	QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
 11712  	// SimpleResponses: The voice and text-only responses for Actions on Google.
 11713  	SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
 11714  	// Suggestions: The suggestion chips for Actions on Google.
 11715  	Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
 11716  	// TableCard: Table card for Actions on Google.
 11717  	TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
 11718  	// Text: The text response.
 11719  	Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
 11720  	// ForceSendFields is a list of field names (e.g. "BasicCard") to
 11721  	// unconditionally include in API requests. By default, fields with empty or
 11722  	// default values are omitted from API requests. See
 11723  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11724  	// details.
 11725  	ForceSendFields []string `json:"-"`
 11726  	// NullFields is a list of field names (e.g. "BasicCard") to include in API
 11727  	// requests with the JSON null value. By default, fields with empty values are
 11728  	// omitted from API requests. See
 11729  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11730  	NullFields []string `json:"-"`
 11731  }
 11732  
 11733  func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
 11734  	type NoMethod GoogleCloudDialogflowV2IntentMessage
 11735  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11736  }
 11737  
 11738  // GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card message.
 11739  // Useful for displaying information.
 11740  type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
 11741  	// Buttons: Optional. The collection of card buttons.
 11742  	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
 11743  	// FormattedText: Required, unless image is present. The body text of the card.
 11744  	FormattedText string `json:"formattedText,omitempty"`
 11745  	// Image: Optional. The image for the card.
 11746  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 11747  	// Subtitle: Optional. The subtitle of the card.
 11748  	Subtitle string `json:"subtitle,omitempty"`
 11749  	// Title: Optional. The title of the card.
 11750  	Title string `json:"title,omitempty"`
 11751  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 11752  	// include in API requests. By default, fields with empty or default values are
 11753  	// omitted from API requests. See
 11754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11755  	// details.
 11756  	ForceSendFields []string `json:"-"`
 11757  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 11758  	// requests with the JSON null value. By default, fields with empty values are
 11759  	// omitted from API requests. See
 11760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11761  	NullFields []string `json:"-"`
 11762  }
 11763  
 11764  func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
 11765  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
 11766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11767  }
 11768  
 11769  // GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button object that
 11770  // appears at the bottom of a card.
 11771  type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
 11772  	// OpenUriAction: Required. Action to take when a user taps on the button.
 11773  	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
 11774  	// Title: Required. The title of the button.
 11775  	Title string `json:"title,omitempty"`
 11776  	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
 11777  	// unconditionally include in API requests. By default, fields with empty or
 11778  	// default values are omitted from API requests. See
 11779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11780  	// details.
 11781  	ForceSendFields []string `json:"-"`
 11782  	// NullFields is a list of field names (e.g. "OpenUriAction") to include in API
 11783  	// requests with the JSON null value. By default, fields with empty values are
 11784  	// omitted from API requests. See
 11785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11786  	NullFields []string `json:"-"`
 11787  }
 11788  
 11789  func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
 11790  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
 11791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11792  }
 11793  
 11794  // GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: Opens the
 11795  // given URI.
 11796  type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
 11797  	// Uri: Required. The HTTP or HTTPS scheme URI.
 11798  	Uri string `json:"uri,omitempty"`
 11799  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 11800  	// include in API requests. By default, fields with empty or default values are
 11801  	// omitted from API requests. See
 11802  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11803  	// details.
 11804  	ForceSendFields []string `json:"-"`
 11805  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 11806  	// with the JSON null value. By default, fields with empty values are omitted
 11807  	// from API requests. See
 11808  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11809  	NullFields []string `json:"-"`
 11810  }
 11811  
 11812  func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
 11813  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
 11814  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11815  }
 11816  
 11817  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse Carousel Card
 11818  // for Actions on Google.
 11819  // https://developers.google.com/actions/assistant/responses#browsing_carousel
 11820  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
 11821  	// ImageDisplayOptions: Optional. Settings for displaying the image. Applies to
 11822  	// every image in items.
 11823  	//
 11824  	// Possible values:
 11825  	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and
 11826  	// the image container with gray bars.
 11827  	//   "GRAY" - Fill the gaps between the image and the image container with gray
 11828  	// bars.
 11829  	//   "WHITE" - Fill the gaps between the image and the image container with
 11830  	// white bars.
 11831  	//   "CROPPED" - Image is scaled such that the image width and height match or
 11832  	// exceed the container dimensions. This may crop the top and bottom of the
 11833  	// image if the scaled image height is greater than the container height, or
 11834  	// crop the left and right of the image if the scaled image width is greater
 11835  	// than the container width. This is similar to "Zoom Mode" on a widescreen TV
 11836  	// when playing a 4:3 video.
 11837  	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a
 11838  	// blurred copy of the same image.
 11839  	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
 11840  	// Items: Required. List of items in the Browse Carousel Card. Minimum of two
 11841  	// items, maximum of ten.
 11842  	Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
 11843  	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to
 11844  	// unconditionally include in API requests. By default, fields with empty or
 11845  	// default values are omitted from API requests. See
 11846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11847  	// details.
 11848  	ForceSendFields []string `json:"-"`
 11849  	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to include
 11850  	// in API requests with the JSON null value. By default, fields with empty
 11851  	// values are omitted from API requests. See
 11852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11853  	NullFields []string `json:"-"`
 11854  }
 11855  
 11856  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
 11857  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
 11858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11859  }
 11860  
 11861  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem:
 11862  //
 11863  //	Browsing carousel tile
 11864  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
 11865  	// Description: Optional. Description of the carousel item. Maximum of four
 11866  	// lines of text.
 11867  	Description string `json:"description,omitempty"`
 11868  	// Footer: Optional. Text that appears at the bottom of the Browse Carousel
 11869  	// Card. Maximum of one line of text.
 11870  	Footer string `json:"footer,omitempty"`
 11871  	// Image: Optional. Hero image for the carousel item.
 11872  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 11873  	// OpenUriAction: Required. Action to present to the user.
 11874  	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
 11875  	// Title: Required. Title of the carousel item. Maximum of two lines of text.
 11876  	Title string `json:"title,omitempty"`
 11877  	// ForceSendFields is a list of field names (e.g. "Description") to
 11878  	// unconditionally include in API requests. By default, fields with empty or
 11879  	// default values are omitted from API requests. See
 11880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11881  	// details.
 11882  	ForceSendFields []string `json:"-"`
 11883  	// NullFields is a list of field names (e.g. "Description") to include in API
 11884  	// requests with the JSON null value. By default, fields with empty values are
 11885  	// omitted from API requests. See
 11886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11887  	NullFields []string `json:"-"`
 11888  }
 11889  
 11890  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
 11891  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
 11892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11893  }
 11894  
 11895  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemO
 11896  // penUrlAction: Actions on Google action to open a given url.
 11897  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
 11898  	// Url: Required. URL
 11899  	Url string `json:"url,omitempty"`
 11900  	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
 11901  	// opening the URL. Defaults to opening via web browser.
 11902  	//
 11903  	// Possible values:
 11904  	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
 11905  	//   "AMP_ACTION" - Url would be an amp action
 11906  	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical
 11907  	// URL which refers to AMP content via .
 11908  	UrlTypeHint string `json:"urlTypeHint,omitempty"`
 11909  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
 11910  	// include in API requests. By default, fields with empty or default values are
 11911  	// omitted from API requests. See
 11912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11913  	// details.
 11914  	ForceSendFields []string `json:"-"`
 11915  	// NullFields is a list of field names (e.g. "Url") to include in API requests
 11916  	// with the JSON null value. By default, fields with empty values are omitted
 11917  	// from API requests. See
 11918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11919  	NullFields []string `json:"-"`
 11920  }
 11921  
 11922  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
 11923  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
 11924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11925  }
 11926  
 11927  // GoogleCloudDialogflowV2IntentMessageCard: The card response message.
 11928  type GoogleCloudDialogflowV2IntentMessageCard struct {
 11929  	// Buttons: Optional. The collection of card buttons.
 11930  	Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
 11931  	// ImageUri: Optional. The public URI to an image file for the card.
 11932  	ImageUri string `json:"imageUri,omitempty"`
 11933  	// Subtitle: Optional. The subtitle of the card.
 11934  	Subtitle string `json:"subtitle,omitempty"`
 11935  	// Title: Optional. The title of the card.
 11936  	Title string `json:"title,omitempty"`
 11937  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 11938  	// include in API requests. By default, fields with empty or default values are
 11939  	// omitted from API requests. See
 11940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11941  	// details.
 11942  	ForceSendFields []string `json:"-"`
 11943  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 11944  	// requests with the JSON null value. By default, fields with empty values are
 11945  	// omitted from API requests. See
 11946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11947  	NullFields []string `json:"-"`
 11948  }
 11949  
 11950  func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
 11951  	type NoMethod GoogleCloudDialogflowV2IntentMessageCard
 11952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11953  }
 11954  
 11955  // GoogleCloudDialogflowV2IntentMessageCardButton: Contains information about a
 11956  // button.
 11957  type GoogleCloudDialogflowV2IntentMessageCardButton struct {
 11958  	// Postback: Optional. The text to send back to the Dialogflow API or a URI to
 11959  	// open.
 11960  	Postback string `json:"postback,omitempty"`
 11961  	// Text: Optional. The text to show on the button.
 11962  	Text string `json:"text,omitempty"`
 11963  	// ForceSendFields is a list of field names (e.g. "Postback") to
 11964  	// unconditionally include in API requests. By default, fields with empty or
 11965  	// default values are omitted from API requests. See
 11966  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11967  	// details.
 11968  	ForceSendFields []string `json:"-"`
 11969  	// NullFields is a list of field names (e.g. "Postback") to include in API
 11970  	// requests with the JSON null value. By default, fields with empty values are
 11971  	// omitted from API requests. See
 11972  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11973  	NullFields []string `json:"-"`
 11974  }
 11975  
 11976  func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
 11977  	type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
 11978  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11979  }
 11980  
 11981  // GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for presenting
 11982  // a carousel of options to select from.
 11983  type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
 11984  	// Items: Required. Carousel items.
 11985  	Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
 11986  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 11987  	// include in API requests. By default, fields with empty or default values are
 11988  	// omitted from API requests. See
 11989  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11990  	// details.
 11991  	ForceSendFields []string `json:"-"`
 11992  	// NullFields is a list of field names (e.g. "Items") to include in API
 11993  	// requests with the JSON null value. By default, fields with empty values are
 11994  	// omitted from API requests. See
 11995  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11996  	NullFields []string `json:"-"`
 11997  }
 11998  
 11999  func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
 12000  	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
 12001  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12002  }
 12003  
 12004  // GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in the
 12005  // carousel.
 12006  type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
 12007  	// Description: Optional. The body text of the card.
 12008  	Description string `json:"description,omitempty"`
 12009  	// Image: Optional. The image to display.
 12010  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 12011  	// Info: Required. Additional info about the option item.
 12012  	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
 12013  	// Title: Required. Title of the carousel item.
 12014  	Title string `json:"title,omitempty"`
 12015  	// ForceSendFields is a list of field names (e.g. "Description") to
 12016  	// unconditionally include in API requests. By default, fields with empty or
 12017  	// default values are omitted from API requests. See
 12018  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12019  	// details.
 12020  	ForceSendFields []string `json:"-"`
 12021  	// NullFields is a list of field names (e.g. "Description") to include in API
 12022  	// requests with the JSON null value. By default, fields with empty values are
 12023  	// omitted from API requests. See
 12024  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12025  	NullFields []string `json:"-"`
 12026  }
 12027  
 12028  func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
 12029  	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
 12030  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12031  }
 12032  
 12033  // GoogleCloudDialogflowV2IntentMessageColumnProperties: Column properties for
 12034  // TableCard.
 12035  type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
 12036  	// Header: Required. Column heading.
 12037  	Header string `json:"header,omitempty"`
 12038  	// HorizontalAlignment: Optional. Defines text alignment for all cells in this
 12039  	// column.
 12040  	//
 12041  	// Possible values:
 12042  	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge
 12043  	// of the column.
 12044  	//   "LEADING" - Text is aligned to the leading edge of the column.
 12045  	//   "CENTER" - Text is centered in the column.
 12046  	//   "TRAILING" - Text is aligned to the trailing edge of the column.
 12047  	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
 12048  	// ForceSendFields is a list of field names (e.g. "Header") to unconditionally
 12049  	// include in API requests. By default, fields with empty or default values are
 12050  	// omitted from API requests. See
 12051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12052  	// details.
 12053  	ForceSendFields []string `json:"-"`
 12054  	// NullFields is a list of field names (e.g. "Header") to include in API
 12055  	// requests with the JSON null value. By default, fields with empty values are
 12056  	// omitted from API requests. See
 12057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12058  	NullFields []string `json:"-"`
 12059  }
 12060  
 12061  func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
 12062  	type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
 12063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12064  }
 12065  
 12066  // GoogleCloudDialogflowV2IntentMessageImage: The image response message.
 12067  type GoogleCloudDialogflowV2IntentMessageImage struct {
 12068  	// AccessibilityText: Optional. A text description of the image to be used for
 12069  	// accessibility, e.g., screen readers.
 12070  	AccessibilityText string `json:"accessibilityText,omitempty"`
 12071  	// ImageUri: Optional. The public URI to an image file.
 12072  	ImageUri string `json:"imageUri,omitempty"`
 12073  	// ForceSendFields is a list of field names (e.g. "AccessibilityText") to
 12074  	// unconditionally include in API requests. By default, fields with empty or
 12075  	// default values are omitted from API requests. See
 12076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12077  	// details.
 12078  	ForceSendFields []string `json:"-"`
 12079  	// NullFields is a list of field names (e.g. "AccessibilityText") to include in
 12080  	// API requests with the JSON null value. By default, fields with empty values
 12081  	// are omitted from API requests. See
 12082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12083  	NullFields []string `json:"-"`
 12084  }
 12085  
 12086  func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
 12087  	type NoMethod GoogleCloudDialogflowV2IntentMessageImage
 12088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12089  }
 12090  
 12091  // GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion chip
 12092  // message that allows the user to jump out to the app or website associated
 12093  // with this agent.
 12094  type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
 12095  	// DestinationName: Required. The name of the app or site this chip is linking
 12096  	// to.
 12097  	DestinationName string `json:"destinationName,omitempty"`
 12098  	// Uri: Required. The URI of the app or site to open when the user taps the
 12099  	// suggestion chip.
 12100  	Uri string `json:"uri,omitempty"`
 12101  	// ForceSendFields is a list of field names (e.g. "DestinationName") to
 12102  	// unconditionally include in API requests. By default, fields with empty or
 12103  	// default values are omitted from API requests. See
 12104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12105  	// details.
 12106  	ForceSendFields []string `json:"-"`
 12107  	// NullFields is a list of field names (e.g. "DestinationName") to include in
 12108  	// API requests with the JSON null value. By default, fields with empty values
 12109  	// are omitted from API requests. See
 12110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12111  	NullFields []string `json:"-"`
 12112  }
 12113  
 12114  func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
 12115  	type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
 12116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12117  }
 12118  
 12119  // GoogleCloudDialogflowV2IntentMessageListSelect: The card for presenting a
 12120  // list of options to select from.
 12121  type GoogleCloudDialogflowV2IntentMessageListSelect struct {
 12122  	// Items: Required. List items.
 12123  	Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
 12124  	// Subtitle: Optional. Subtitle of the list.
 12125  	Subtitle string `json:"subtitle,omitempty"`
 12126  	// Title: Optional. The overall title of the list.
 12127  	Title string `json:"title,omitempty"`
 12128  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 12129  	// include in API requests. By default, fields with empty or default values are
 12130  	// omitted from API requests. See
 12131  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12132  	// details.
 12133  	ForceSendFields []string `json:"-"`
 12134  	// NullFields is a list of field names (e.g. "Items") to include in API
 12135  	// requests with the JSON null value. By default, fields with empty values are
 12136  	// omitted from API requests. See
 12137  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12138  	NullFields []string `json:"-"`
 12139  }
 12140  
 12141  func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
 12142  	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
 12143  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12144  }
 12145  
 12146  // GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the list.
 12147  type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
 12148  	// Description: Optional. The main text describing the item.
 12149  	Description string `json:"description,omitempty"`
 12150  	// Image: Optional. The image to display.
 12151  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 12152  	// Info: Required. Additional information about this option.
 12153  	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
 12154  	// Title: Required. The title of the list item.
 12155  	Title string `json:"title,omitempty"`
 12156  	// ForceSendFields is a list of field names (e.g. "Description") to
 12157  	// unconditionally include in API requests. By default, fields with empty or
 12158  	// default values are omitted from API requests. See
 12159  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12160  	// details.
 12161  	ForceSendFields []string `json:"-"`
 12162  	// NullFields is a list of field names (e.g. "Description") to include in API
 12163  	// requests with the JSON null value. By default, fields with empty values are
 12164  	// omitted from API requests. See
 12165  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12166  	NullFields []string `json:"-"`
 12167  }
 12168  
 12169  func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
 12170  	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
 12171  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12172  }
 12173  
 12174  // GoogleCloudDialogflowV2IntentMessageMediaContent: The media content card for
 12175  // Actions on Google.
 12176  type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
 12177  	// MediaObjects: Required. List of media objects.
 12178  	MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
 12179  	// MediaType: Optional. What type of media is the content (ie "audio").
 12180  	//
 12181  	// Possible values:
 12182  	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
 12183  	//   "AUDIO" - Response media type is audio.
 12184  	MediaType string `json:"mediaType,omitempty"`
 12185  	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
 12186  	// unconditionally include in API requests. By default, fields with empty or
 12187  	// default values are omitted from API requests. See
 12188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12189  	// details.
 12190  	ForceSendFields []string `json:"-"`
 12191  	// NullFields is a list of field names (e.g. "MediaObjects") to include in API
 12192  	// requests with the JSON null value. By default, fields with empty values are
 12193  	// omitted from API requests. See
 12194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12195  	NullFields []string `json:"-"`
 12196  }
 12197  
 12198  func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
 12199  	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
 12200  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12201  }
 12202  
 12203  // GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:
 12204  // Response media object for media content card.
 12205  type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
 12206  	// ContentUrl: Required. Url where the media is stored.
 12207  	ContentUrl string `json:"contentUrl,omitempty"`
 12208  	// Description: Optional. Description of media card.
 12209  	Description string `json:"description,omitempty"`
 12210  	// Icon: Optional. Icon to display above media content.
 12211  	Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
 12212  	// LargeImage: Optional. Image to display above media content.
 12213  	LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
 12214  	// Name: Required. Name of media card.
 12215  	Name string `json:"name,omitempty"`
 12216  	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
 12217  	// unconditionally include in API requests. By default, fields with empty or
 12218  	// default values are omitted from API requests. See
 12219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12220  	// details.
 12221  	ForceSendFields []string `json:"-"`
 12222  	// NullFields is a list of field names (e.g. "ContentUrl") to include in API
 12223  	// requests with the JSON null value. By default, fields with empty values are
 12224  	// omitted from API requests. See
 12225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12226  	NullFields []string `json:"-"`
 12227  }
 12228  
 12229  func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
 12230  	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
 12231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12232  }
 12233  
 12234  // GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies response
 12235  // message.
 12236  type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
 12237  	// QuickReplies: Optional. The collection of quick replies.
 12238  	QuickReplies []string `json:"quickReplies,omitempty"`
 12239  	// Title: Optional. The title of the collection of quick replies.
 12240  	Title string `json:"title,omitempty"`
 12241  	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
 12242  	// unconditionally include in API requests. By default, fields with empty or
 12243  	// default values are omitted from API requests. See
 12244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12245  	// details.
 12246  	ForceSendFields []string `json:"-"`
 12247  	// NullFields is a list of field names (e.g. "QuickReplies") to include in API
 12248  	// requests with the JSON null value. By default, fields with empty values are
 12249  	// omitted from API requests. See
 12250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12251  	NullFields []string `json:"-"`
 12252  }
 12253  
 12254  func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
 12255  	type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
 12256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12257  }
 12258  
 12259  // GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info about
 12260  // the select item for when it is triggered in a dialog.
 12261  type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
 12262  	// Key: Required. A unique key that will be sent back to the agent if this
 12263  	// response is given.
 12264  	Key string `json:"key,omitempty"`
 12265  	// Synonyms: Optional. A list of synonyms that can also be used to trigger this
 12266  	// item in dialog.
 12267  	Synonyms []string `json:"synonyms,omitempty"`
 12268  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
 12269  	// include in API requests. By default, fields with empty or default values are
 12270  	// omitted from API requests. See
 12271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12272  	// details.
 12273  	ForceSendFields []string `json:"-"`
 12274  	// NullFields is a list of field names (e.g. "Key") to include in API requests
 12275  	// with the JSON null value. By default, fields with empty values are omitted
 12276  	// from API requests. See
 12277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12278  	NullFields []string `json:"-"`
 12279  }
 12280  
 12281  func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
 12282  	type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
 12283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12284  }
 12285  
 12286  // GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple response
 12287  // message containing speech or text.
 12288  type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
 12289  	// DisplayText: Optional. The text to display.
 12290  	DisplayText string `json:"displayText,omitempty"`
 12291  	// Ssml: One of text_to_speech or ssml must be provided. Structured spoken
 12292  	// response to the user in the SSML format. Mutually exclusive with
 12293  	// text_to_speech.
 12294  	Ssml string `json:"ssml,omitempty"`
 12295  	// TextToSpeech: One of text_to_speech or ssml must be provided. The plain text
 12296  	// of the speech output. Mutually exclusive with ssml.
 12297  	TextToSpeech string `json:"textToSpeech,omitempty"`
 12298  	// ForceSendFields is a list of field names (e.g. "DisplayText") to
 12299  	// unconditionally include in API requests. By default, fields with empty or
 12300  	// default values are omitted from API requests. See
 12301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12302  	// details.
 12303  	ForceSendFields []string `json:"-"`
 12304  	// NullFields is a list of field names (e.g. "DisplayText") to include in API
 12305  	// requests with the JSON null value. By default, fields with empty values are
 12306  	// omitted from API requests. See
 12307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12308  	NullFields []string `json:"-"`
 12309  }
 12310  
 12311  func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
 12312  	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
 12313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12314  }
 12315  
 12316  // GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection of
 12317  // simple response candidates. This message in
 12318  // `QueryResult.fulfillment_messages` and
 12319  // `WebhookResponse.fulfillment_messages` should contain only one
 12320  // `SimpleResponse`.
 12321  type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
 12322  	// SimpleResponses: Required. The list of simple responses.
 12323  	SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
 12324  	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
 12325  	// unconditionally include in API requests. By default, fields with empty or
 12326  	// default values are omitted from API requests. See
 12327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12328  	// details.
 12329  	ForceSendFields []string `json:"-"`
 12330  	// NullFields is a list of field names (e.g. "SimpleResponses") to include in
 12331  	// API requests with the JSON null value. By default, fields with empty values
 12332  	// are omitted from API requests. See
 12333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12334  	NullFields []string `json:"-"`
 12335  }
 12336  
 12337  func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
 12338  	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
 12339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12340  }
 12341  
 12342  // GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip message
 12343  // that the user can tap to quickly post a reply to the conversation.
 12344  type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
 12345  	// Title: Required. The text shown the in the suggestion chip.
 12346  	Title string `json:"title,omitempty"`
 12347  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
 12348  	// include in API requests. By default, fields with empty or default values are
 12349  	// omitted from API requests. See
 12350  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12351  	// details.
 12352  	ForceSendFields []string `json:"-"`
 12353  	// NullFields is a list of field names (e.g. "Title") to include in API
 12354  	// requests with the JSON null value. By default, fields with empty values are
 12355  	// omitted from API requests. See
 12356  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12357  	NullFields []string `json:"-"`
 12358  }
 12359  
 12360  func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
 12361  	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
 12362  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12363  }
 12364  
 12365  // GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of
 12366  // suggestions.
 12367  type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
 12368  	// Suggestions: Required. The list of suggested replies.
 12369  	Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
 12370  	// ForceSendFields is a list of field names (e.g. "Suggestions") to
 12371  	// unconditionally include in API requests. By default, fields with empty or
 12372  	// default values are omitted from API requests. See
 12373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12374  	// details.
 12375  	ForceSendFields []string `json:"-"`
 12376  	// NullFields is a list of field names (e.g. "Suggestions") to include in API
 12377  	// requests with the JSON null value. By default, fields with empty values are
 12378  	// omitted from API requests. See
 12379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12380  	NullFields []string `json:"-"`
 12381  }
 12382  
 12383  func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
 12384  	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
 12385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12386  }
 12387  
 12388  // GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions on
 12389  // Google.
 12390  type GoogleCloudDialogflowV2IntentMessageTableCard struct {
 12391  	// Buttons: Optional. List of buttons for the card.
 12392  	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
 12393  	// ColumnProperties: Optional. Display properties for the columns in this
 12394  	// table.
 12395  	ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
 12396  	// Image: Optional. Image which should be displayed on the card.
 12397  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
 12398  	// Rows: Optional. Rows in this table of data.
 12399  	Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
 12400  	// Subtitle: Optional. Subtitle to the title.
 12401  	Subtitle string `json:"subtitle,omitempty"`
 12402  	// Title: Required. Title of the card.
 12403  	Title string `json:"title,omitempty"`
 12404  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 12405  	// include in API requests. By default, fields with empty or default values are
 12406  	// omitted from API requests. See
 12407  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12408  	// details.
 12409  	ForceSendFields []string `json:"-"`
 12410  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 12411  	// requests with the JSON null value. By default, fields with empty values are
 12412  	// omitted from API requests. See
 12413  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12414  	NullFields []string `json:"-"`
 12415  }
 12416  
 12417  func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
 12418  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
 12419  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12420  }
 12421  
 12422  // GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of TableCardRow.
 12423  type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
 12424  	// Text: Required. Text in this cell.
 12425  	Text string `json:"text,omitempty"`
 12426  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 12427  	// include in API requests. By default, fields with empty or default values are
 12428  	// omitted from API requests. See
 12429  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12430  	// details.
 12431  	ForceSendFields []string `json:"-"`
 12432  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 12433  	// with the JSON null value. By default, fields with empty values are omitted
 12434  	// from API requests. See
 12435  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12436  	NullFields []string `json:"-"`
 12437  }
 12438  
 12439  func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
 12440  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
 12441  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12442  }
 12443  
 12444  // GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
 12445  type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
 12446  	// Cells: Optional. List of cells that make up this row.
 12447  	Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
 12448  	// DividerAfter: Optional. Whether to add a visual divider after this row.
 12449  	DividerAfter bool `json:"dividerAfter,omitempty"`
 12450  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
 12451  	// include in API requests. By default, fields with empty or default values are
 12452  	// omitted from API requests. See
 12453  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12454  	// details.
 12455  	ForceSendFields []string `json:"-"`
 12456  	// NullFields is a list of field names (e.g. "Cells") to include in API
 12457  	// requests with the JSON null value. By default, fields with empty values are
 12458  	// omitted from API requests. See
 12459  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12460  	NullFields []string `json:"-"`
 12461  }
 12462  
 12463  func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
 12464  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
 12465  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12466  }
 12467  
 12468  // GoogleCloudDialogflowV2IntentMessageText: The text response message.
 12469  type GoogleCloudDialogflowV2IntentMessageText struct {
 12470  	// Text: Optional. The collection of the agent's responses.
 12471  	Text []string `json:"text,omitempty"`
 12472  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 12473  	// include in API requests. By default, fields with empty or default values are
 12474  	// omitted from API requests. See
 12475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12476  	// details.
 12477  	ForceSendFields []string `json:"-"`
 12478  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 12479  	// with the JSON null value. By default, fields with empty values are omitted
 12480  	// from API requests. See
 12481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12482  	NullFields []string `json:"-"`
 12483  }
 12484  
 12485  func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
 12486  	type NoMethod GoogleCloudDialogflowV2IntentMessageText
 12487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12488  }
 12489  
 12490  // GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
 12491  type GoogleCloudDialogflowV2IntentParameter struct {
 12492  	// DefaultValue: Optional. The default value to use when the `value` yields an
 12493  	// empty result. Default values can be extracted from contexts by using the
 12494  	// following syntax: `#context_name.parameter_name`.
 12495  	DefaultValue string `json:"defaultValue,omitempty"`
 12496  	// DisplayName: Required. The name of the parameter.
 12497  	DisplayName string `json:"displayName,omitempty"`
 12498  	// EntityTypeDisplayName: Optional. The name of the entity type, prefixed with
 12499  	// `@`, that describes values of the parameter. If the parameter is required,
 12500  	// this must be provided.
 12501  	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
 12502  	// IsList: Optional. Indicates whether the parameter represents a list of
 12503  	// values.
 12504  	IsList bool `json:"isList,omitempty"`
 12505  	// Mandatory: Optional. Indicates whether the parameter is required. That is,
 12506  	// whether the intent cannot be completed without collecting the parameter
 12507  	// value.
 12508  	Mandatory bool `json:"mandatory,omitempty"`
 12509  	// Name: The unique identifier of this parameter.
 12510  	Name string `json:"name,omitempty"`
 12511  	// Prompts: Optional. The collection of prompts that the agent can present to
 12512  	// the user in order to collect a value for the parameter.
 12513  	Prompts []string `json:"prompts,omitempty"`
 12514  	// Value: Optional. The definition of the parameter value. It can be: - a
 12515  	// constant string, - a parameter value defined as `$parameter_name`, - an
 12516  	// original parameter value defined as `$parameter_name.original`, - a
 12517  	// parameter value from some context defined as `#context_name.parameter_name`.
 12518  	Value string `json:"value,omitempty"`
 12519  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
 12520  	// unconditionally include in API requests. By default, fields with empty or
 12521  	// default values are omitted from API requests. See
 12522  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12523  	// details.
 12524  	ForceSendFields []string `json:"-"`
 12525  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
 12526  	// requests with the JSON null value. By default, fields with empty values are
 12527  	// omitted from API requests. See
 12528  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12529  	NullFields []string `json:"-"`
 12530  }
 12531  
 12532  func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
 12533  	type NoMethod GoogleCloudDialogflowV2IntentParameter
 12534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12535  }
 12536  
 12537  // GoogleCloudDialogflowV2IntentSuggestion: Represents an intent suggestion.
 12538  type GoogleCloudDialogflowV2IntentSuggestion struct {
 12539  	// Description: Human readable description for better understanding an intent
 12540  	// like its scope, content, result etc. Maximum character limit: 140
 12541  	// characters.
 12542  	Description string `json:"description,omitempty"`
 12543  	// DisplayName: The display name of the intent.
 12544  	DisplayName string `json:"displayName,omitempty"`
 12545  	// IntentV2: The unique identifier of this intent. Format:
 12546  	// `projects//locations//agent/intents/`.
 12547  	IntentV2 string `json:"intentV2,omitempty"`
 12548  	// ForceSendFields is a list of field names (e.g. "Description") to
 12549  	// unconditionally include in API requests. By default, fields with empty or
 12550  	// default values are omitted from API requests. See
 12551  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12552  	// details.
 12553  	ForceSendFields []string `json:"-"`
 12554  	// NullFields is a list of field names (e.g. "Description") to include in API
 12555  	// requests with the JSON null value. By default, fields with empty values are
 12556  	// omitted from API requests. See
 12557  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12558  	NullFields []string `json:"-"`
 12559  }
 12560  
 12561  func (s *GoogleCloudDialogflowV2IntentSuggestion) MarshalJSON() ([]byte, error) {
 12562  	type NoMethod GoogleCloudDialogflowV2IntentSuggestion
 12563  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12564  }
 12565  
 12566  // GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example that the
 12567  // agent is trained on.
 12568  type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
 12569  	// Name: Output only. The unique identifier of this training phrase.
 12570  	Name string `json:"name,omitempty"`
 12571  	// Parts: Required. The ordered list of training phrase parts. The parts are
 12572  	// concatenated in order to form the training phrase. Note: The API does not
 12573  	// automatically annotate training phrases like the Dialogflow Console does.
 12574  	// Note: Do not forget to include whitespace at part boundaries, so the
 12575  	// training phrase is well formatted when the parts are concatenated. If the
 12576  	// training phrase does not need to be annotated with parameters, you just need
 12577  	// a single part with only the Part.text field set. If you want to annotate the
 12578  	// training phrase, you must create multiple parts, where the fields of each
 12579  	// part are populated in one of two ways: - `Part.text` is set to a part of the
 12580  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
 12581  	// that you want to annotate, and the `entity_type`, `alias`, and
 12582  	// `user_defined` fields are all set.
 12583  	Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
 12584  	// TimesAddedCount: Optional. Indicates how many times this example was added
 12585  	// to the intent. Each time a developer adds an existing sample by editing an
 12586  	// intent or training, this counter is increased.
 12587  	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
 12588  	// Type: Required. The type of the training phrase.
 12589  	//
 12590  	// Possible values:
 12591  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
 12592  	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names, but
 12593  	// example parts can be annotated with entity types.
 12594  	//   "TEMPLATE" - Templates are not annotated with entity types, but they can
 12595  	// contain @-prefixed entity type names as substrings. Template mode has been
 12596  	// deprecated. Example mode is the only supported way to create new training
 12597  	// phrases. If you have existing training phrases that you've created in
 12598  	// template mode, those will continue to work.
 12599  	Type string `json:"type,omitempty"`
 12600  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 12601  	// include in API requests. By default, fields with empty or default values are
 12602  	// omitted from API requests. See
 12603  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12604  	// details.
 12605  	ForceSendFields []string `json:"-"`
 12606  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 12607  	// with the JSON null value. By default, fields with empty values are omitted
 12608  	// from API requests. See
 12609  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12610  	NullFields []string `json:"-"`
 12611  }
 12612  
 12613  func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
 12614  	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
 12615  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12616  }
 12617  
 12618  // GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of a
 12619  // training phrase.
 12620  type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
 12621  	// Alias: Optional. The parameter name for the value extracted from the
 12622  	// annotated part of the example. This field is required for annotated parts of
 12623  	// the training phrase.
 12624  	Alias string `json:"alias,omitempty"`
 12625  	// EntityType: Optional. The entity type name prefixed with `@`. This field is
 12626  	// required for annotated parts of the training phrase.
 12627  	EntityType string `json:"entityType,omitempty"`
 12628  	// Text: Required. The text for this part.
 12629  	Text string `json:"text,omitempty"`
 12630  	// UserDefined: Optional. Indicates whether the text was manually annotated.
 12631  	// This field is set to true when the Dialogflow Console is used to manually
 12632  	// annotate the part. When creating an annotated part with the API, you must
 12633  	// set this to true.
 12634  	UserDefined bool `json:"userDefined,omitempty"`
 12635  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
 12636  	// include in API requests. By default, fields with empty or default values are
 12637  	// omitted from API requests. See
 12638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12639  	// details.
 12640  	ForceSendFields []string `json:"-"`
 12641  	// NullFields is a list of field names (e.g. "Alias") to include in API
 12642  	// requests with the JSON null value. By default, fields with empty values are
 12643  	// omitted from API requests. See
 12644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12645  	NullFields []string `json:"-"`
 12646  }
 12647  
 12648  func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
 12649  	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
 12650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12651  }
 12652  
 12653  // GoogleCloudDialogflowV2KnowledgeBase: A knowledge base represents a
 12654  // collection of knowledge documents that you provide to Dialogflow. Your
 12655  // knowledge documents contain information that may be useful during
 12656  // conversations with end-users. Some Dialogflow features use knowledge bases
 12657  // when looking for a response to an end-user input. For more information, see
 12658  // the knowledge base guide
 12659  // (https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The
 12660  // `projects.agent.knowledgeBases` resource is deprecated; only use
 12661  // `projects.knowledgeBases`.
 12662  type GoogleCloudDialogflowV2KnowledgeBase struct {
 12663  	// DisplayName: Required. The display name of the knowledge base. The name must
 12664  	// be 1024 bytes or less; otherwise, the creation request fails.
 12665  	DisplayName string `json:"displayName,omitempty"`
 12666  	// LanguageCode: Language which represents the KnowledgeBase. When the
 12667  	// KnowledgeBase is created/updated, expect this to be present for non en-us
 12668  	// languages. When unspecified, the default language code en-us applies.
 12669  	LanguageCode string `json:"languageCode,omitempty"`
 12670  	// Name: The knowledge base resource name. The name must be empty when creating
 12671  	// a knowledge base. Format: `projects//locations//knowledgeBases/`.
 12672  	Name string `json:"name,omitempty"`
 12673  
 12674  	// ServerResponse contains the HTTP response code and headers from the server.
 12675  	googleapi.ServerResponse `json:"-"`
 12676  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 12677  	// unconditionally include in API requests. By default, fields with empty or
 12678  	// default values are omitted from API requests. See
 12679  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12680  	// details.
 12681  	ForceSendFields []string `json:"-"`
 12682  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 12683  	// requests with the JSON null value. By default, fields with empty values are
 12684  	// omitted from API requests. See
 12685  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12686  	NullFields []string `json:"-"`
 12687  }
 12688  
 12689  func (s *GoogleCloudDialogflowV2KnowledgeBase) MarshalJSON() ([]byte, error) {
 12690  	type NoMethod GoogleCloudDialogflowV2KnowledgeBase
 12691  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12692  }
 12693  
 12694  // GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata in
 12695  // google::longrunning::Operation for Knowledge operations.
 12696  type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
 12697  	// ExportOperationMetadata: Metadata for the Export Data Operation such as the
 12698  	// destination of export.
 12699  	ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
 12700  	// KnowledgeBase: The name of the knowledge base interacted with during the
 12701  	// operation.
 12702  	KnowledgeBase string `json:"knowledgeBase,omitempty"`
 12703  	// State: Output only. The current state of this operation.
 12704  	//
 12705  	// Possible values:
 12706  	//   "STATE_UNSPECIFIED" - State unspecified.
 12707  	//   "PENDING" - The operation has been created.
 12708  	//   "RUNNING" - The operation is currently running.
 12709  	//   "DONE" - The operation is done, either cancelled or completed.
 12710  	State string `json:"state,omitempty"`
 12711  	// ForceSendFields is a list of field names (e.g. "ExportOperationMetadata") to
 12712  	// unconditionally include in API requests. By default, fields with empty or
 12713  	// default values are omitted from API requests. See
 12714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12715  	// details.
 12716  	ForceSendFields []string `json:"-"`
 12717  	// NullFields is a list of field names (e.g. "ExportOperationMetadata") to
 12718  	// include in API requests with the JSON null value. By default, fields with
 12719  	// empty values are omitted from API requests. See
 12720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12721  	NullFields []string `json:"-"`
 12722  }
 12723  
 12724  func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 12725  	type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
 12726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12727  }
 12728  
 12729  // GoogleCloudDialogflowV2ListAnswerRecordsResponse: Response message for
 12730  // AnswerRecords.ListAnswerRecords.
 12731  type GoogleCloudDialogflowV2ListAnswerRecordsResponse struct {
 12732  	// AnswerRecords: The list of answer records.
 12733  	AnswerRecords []*GoogleCloudDialogflowV2AnswerRecord `json:"answerRecords,omitempty"`
 12734  	// NextPageToken: A token to retrieve next page of results. Or empty if there
 12735  	// are no more results. Pass this value in the
 12736  	// ListAnswerRecordsRequest.page_token field in the subsequent call to
 12737  	// `ListAnswerRecords` method to retrieve the next page of results.
 12738  	NextPageToken string `json:"nextPageToken,omitempty"`
 12739  
 12740  	// ServerResponse contains the HTTP response code and headers from the server.
 12741  	googleapi.ServerResponse `json:"-"`
 12742  	// ForceSendFields is a list of field names (e.g. "AnswerRecords") to
 12743  	// unconditionally include in API requests. By default, fields with empty or
 12744  	// default values are omitted from API requests. See
 12745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12746  	// details.
 12747  	ForceSendFields []string `json:"-"`
 12748  	// NullFields is a list of field names (e.g. "AnswerRecords") to include in API
 12749  	// requests with the JSON null value. By default, fields with empty values are
 12750  	// omitted from API requests. See
 12751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12752  	NullFields []string `json:"-"`
 12753  }
 12754  
 12755  func (s *GoogleCloudDialogflowV2ListAnswerRecordsResponse) MarshalJSON() ([]byte, error) {
 12756  	type NoMethod GoogleCloudDialogflowV2ListAnswerRecordsResponse
 12757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12758  }
 12759  
 12760  // GoogleCloudDialogflowV2ListContextsResponse: The response message for
 12761  // Contexts.ListContexts.
 12762  type GoogleCloudDialogflowV2ListContextsResponse struct {
 12763  	// Contexts: The list of contexts. There will be a maximum number of items
 12764  	// returned based on the page_size field in the request.
 12765  	Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"`
 12766  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12767  	// are no more results in the list.
 12768  	NextPageToken string `json:"nextPageToken,omitempty"`
 12769  
 12770  	// ServerResponse contains the HTTP response code and headers from the server.
 12771  	googleapi.ServerResponse `json:"-"`
 12772  	// ForceSendFields is a list of field names (e.g. "Contexts") to
 12773  	// unconditionally include in API requests. By default, fields with empty or
 12774  	// default values are omitted from API requests. See
 12775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12776  	// details.
 12777  	ForceSendFields []string `json:"-"`
 12778  	// NullFields is a list of field names (e.g. "Contexts") to include in API
 12779  	// requests with the JSON null value. By default, fields with empty values are
 12780  	// omitted from API requests. See
 12781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12782  	NullFields []string `json:"-"`
 12783  }
 12784  
 12785  func (s *GoogleCloudDialogflowV2ListContextsResponse) MarshalJSON() ([]byte, error) {
 12786  	type NoMethod GoogleCloudDialogflowV2ListContextsResponse
 12787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12788  }
 12789  
 12790  // GoogleCloudDialogflowV2ListConversationDatasetsResponse: The response
 12791  // message for ConversationDatasets.ListConversationDatasets.
 12792  type GoogleCloudDialogflowV2ListConversationDatasetsResponse struct {
 12793  	// ConversationDatasets: The list of datasets to return.
 12794  	ConversationDatasets []*GoogleCloudDialogflowV2ConversationDataset `json:"conversationDatasets,omitempty"`
 12795  	// NextPageToken: The token to use to retrieve the next page of results, or
 12796  	// empty if there are no more results in the list.
 12797  	NextPageToken string `json:"nextPageToken,omitempty"`
 12798  
 12799  	// ServerResponse contains the HTTP response code and headers from the server.
 12800  	googleapi.ServerResponse `json:"-"`
 12801  	// ForceSendFields is a list of field names (e.g. "ConversationDatasets") to
 12802  	// unconditionally include in API requests. By default, fields with empty or
 12803  	// default values are omitted from API requests. See
 12804  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12805  	// details.
 12806  	ForceSendFields []string `json:"-"`
 12807  	// NullFields is a list of field names (e.g. "ConversationDatasets") to include
 12808  	// in API requests with the JSON null value. By default, fields with empty
 12809  	// values are omitted from API requests. See
 12810  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12811  	NullFields []string `json:"-"`
 12812  }
 12813  
 12814  func (s *GoogleCloudDialogflowV2ListConversationDatasetsResponse) MarshalJSON() ([]byte, error) {
 12815  	type NoMethod GoogleCloudDialogflowV2ListConversationDatasetsResponse
 12816  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12817  }
 12818  
 12819  // GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse: The
 12820  // response message for ConversationModels.ListConversationModelEvaluations
 12821  type GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse struct {
 12822  	// ConversationModelEvaluations: The list of evaluations to return.
 12823  	ConversationModelEvaluations []*GoogleCloudDialogflowV2ConversationModelEvaluation `json:"conversationModelEvaluations,omitempty"`
 12824  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12825  	// are no more results in the list.
 12826  	NextPageToken string `json:"nextPageToken,omitempty"`
 12827  
 12828  	// ServerResponse contains the HTTP response code and headers from the server.
 12829  	googleapi.ServerResponse `json:"-"`
 12830  	// ForceSendFields is a list of field names (e.g.
 12831  	// "ConversationModelEvaluations") to unconditionally include in API requests.
 12832  	// By default, fields with empty or default values are omitted from API
 12833  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 12834  	// for more details.
 12835  	ForceSendFields []string `json:"-"`
 12836  	// NullFields is a list of field names (e.g. "ConversationModelEvaluations") to
 12837  	// include in API requests with the JSON null value. By default, fields with
 12838  	// empty values are omitted from API requests. See
 12839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12840  	NullFields []string `json:"-"`
 12841  }
 12842  
 12843  func (s *GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse) MarshalJSON() ([]byte, error) {
 12844  	type NoMethod GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse
 12845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12846  }
 12847  
 12848  // GoogleCloudDialogflowV2ListConversationModelsResponse: The response message
 12849  // for ConversationModels.ListConversationModels
 12850  type GoogleCloudDialogflowV2ListConversationModelsResponse struct {
 12851  	// ConversationModels: The list of models to return.
 12852  	ConversationModels []*GoogleCloudDialogflowV2ConversationModel `json:"conversationModels,omitempty"`
 12853  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12854  	// are no more results in the list.
 12855  	NextPageToken string `json:"nextPageToken,omitempty"`
 12856  
 12857  	// ServerResponse contains the HTTP response code and headers from the server.
 12858  	googleapi.ServerResponse `json:"-"`
 12859  	// ForceSendFields is a list of field names (e.g. "ConversationModels") to
 12860  	// unconditionally include in API requests. By default, fields with empty or
 12861  	// default values are omitted from API requests. See
 12862  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12863  	// details.
 12864  	ForceSendFields []string `json:"-"`
 12865  	// NullFields is a list of field names (e.g. "ConversationModels") to include
 12866  	// in API requests with the JSON null value. By default, fields with empty
 12867  	// values are omitted from API requests. See
 12868  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12869  	NullFields []string `json:"-"`
 12870  }
 12871  
 12872  func (s *GoogleCloudDialogflowV2ListConversationModelsResponse) MarshalJSON() ([]byte, error) {
 12873  	type NoMethod GoogleCloudDialogflowV2ListConversationModelsResponse
 12874  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12875  }
 12876  
 12877  // GoogleCloudDialogflowV2ListConversationProfilesResponse: The response
 12878  // message for ConversationProfiles.ListConversationProfiles.
 12879  type GoogleCloudDialogflowV2ListConversationProfilesResponse struct {
 12880  	// ConversationProfiles: The list of project conversation profiles. There is a
 12881  	// maximum number of items returned based on the page_size field in the
 12882  	// request.
 12883  	ConversationProfiles []*GoogleCloudDialogflowV2ConversationProfile `json:"conversationProfiles,omitempty"`
 12884  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12885  	// are no more results in the list.
 12886  	NextPageToken string `json:"nextPageToken,omitempty"`
 12887  
 12888  	// ServerResponse contains the HTTP response code and headers from the server.
 12889  	googleapi.ServerResponse `json:"-"`
 12890  	// ForceSendFields is a list of field names (e.g. "ConversationProfiles") to
 12891  	// unconditionally include in API requests. By default, fields with empty or
 12892  	// default values are omitted from API requests. See
 12893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12894  	// details.
 12895  	ForceSendFields []string `json:"-"`
 12896  	// NullFields is a list of field names (e.g. "ConversationProfiles") to include
 12897  	// in API requests with the JSON null value. By default, fields with empty
 12898  	// values are omitted from API requests. See
 12899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12900  	NullFields []string `json:"-"`
 12901  }
 12902  
 12903  func (s *GoogleCloudDialogflowV2ListConversationProfilesResponse) MarshalJSON() ([]byte, error) {
 12904  	type NoMethod GoogleCloudDialogflowV2ListConversationProfilesResponse
 12905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12906  }
 12907  
 12908  // GoogleCloudDialogflowV2ListConversationsResponse: The response message for
 12909  // Conversations.ListConversations.
 12910  type GoogleCloudDialogflowV2ListConversationsResponse struct {
 12911  	// Conversations: The list of conversations. There will be a maximum number of
 12912  	// items returned based on the page_size field in the request.
 12913  	Conversations []*GoogleCloudDialogflowV2Conversation `json:"conversations,omitempty"`
 12914  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12915  	// are no more results in the list.
 12916  	NextPageToken string `json:"nextPageToken,omitempty"`
 12917  
 12918  	// ServerResponse contains the HTTP response code and headers from the server.
 12919  	googleapi.ServerResponse `json:"-"`
 12920  	// ForceSendFields is a list of field names (e.g. "Conversations") to
 12921  	// unconditionally include in API requests. By default, fields with empty or
 12922  	// default values are omitted from API requests. See
 12923  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12924  	// details.
 12925  	ForceSendFields []string `json:"-"`
 12926  	// NullFields is a list of field names (e.g. "Conversations") to include in API
 12927  	// requests with the JSON null value. By default, fields with empty values are
 12928  	// omitted from API requests. See
 12929  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12930  	NullFields []string `json:"-"`
 12931  }
 12932  
 12933  func (s *GoogleCloudDialogflowV2ListConversationsResponse) MarshalJSON() ([]byte, error) {
 12934  	type NoMethod GoogleCloudDialogflowV2ListConversationsResponse
 12935  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12936  }
 12937  
 12938  // GoogleCloudDialogflowV2ListDocumentsResponse: Response message for
 12939  // Documents.ListDocuments.
 12940  type GoogleCloudDialogflowV2ListDocumentsResponse struct {
 12941  	// Documents: The list of documents.
 12942  	Documents []*GoogleCloudDialogflowV2Document `json:"documents,omitempty"`
 12943  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12944  	// are no more results in the list.
 12945  	NextPageToken string `json:"nextPageToken,omitempty"`
 12946  
 12947  	// ServerResponse contains the HTTP response code and headers from the server.
 12948  	googleapi.ServerResponse `json:"-"`
 12949  	// ForceSendFields is a list of field names (e.g. "Documents") to
 12950  	// unconditionally include in API requests. By default, fields with empty or
 12951  	// default values are omitted from API requests. See
 12952  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12953  	// details.
 12954  	ForceSendFields []string `json:"-"`
 12955  	// NullFields is a list of field names (e.g. "Documents") to include in API
 12956  	// requests with the JSON null value. By default, fields with empty values are
 12957  	// omitted from API requests. See
 12958  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12959  	NullFields []string `json:"-"`
 12960  }
 12961  
 12962  func (s *GoogleCloudDialogflowV2ListDocumentsResponse) MarshalJSON() ([]byte, error) {
 12963  	type NoMethod GoogleCloudDialogflowV2ListDocumentsResponse
 12964  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12965  }
 12966  
 12967  // GoogleCloudDialogflowV2ListEntityTypesResponse: The response message for
 12968  // EntityTypes.ListEntityTypes.
 12969  type GoogleCloudDialogflowV2ListEntityTypesResponse struct {
 12970  	// EntityTypes: The list of agent entity types. There will be a maximum number
 12971  	// of items returned based on the page_size field in the request.
 12972  	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
 12973  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 12974  	// are no more results in the list.
 12975  	NextPageToken string `json:"nextPageToken,omitempty"`
 12976  
 12977  	// ServerResponse contains the HTTP response code and headers from the server.
 12978  	googleapi.ServerResponse `json:"-"`
 12979  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 12980  	// unconditionally include in API requests. By default, fields with empty or
 12981  	// default values are omitted from API requests. See
 12982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12983  	// details.
 12984  	ForceSendFields []string `json:"-"`
 12985  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 12986  	// requests with the JSON null value. By default, fields with empty values are
 12987  	// omitted from API requests. See
 12988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12989  	NullFields []string `json:"-"`
 12990  }
 12991  
 12992  func (s *GoogleCloudDialogflowV2ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
 12993  	type NoMethod GoogleCloudDialogflowV2ListEntityTypesResponse
 12994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12995  }
 12996  
 12997  // GoogleCloudDialogflowV2ListEnvironmentsResponse: The response message for
 12998  // Environments.ListEnvironments.
 12999  type GoogleCloudDialogflowV2ListEnvironmentsResponse struct {
 13000  	// Environments: The list of agent environments. There will be a maximum number
 13001  	// of items returned based on the page_size field in the request.
 13002  	Environments []*GoogleCloudDialogflowV2Environment `json:"environments,omitempty"`
 13003  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13004  	// are no more results in the list.
 13005  	NextPageToken string `json:"nextPageToken,omitempty"`
 13006  
 13007  	// ServerResponse contains the HTTP response code and headers from the server.
 13008  	googleapi.ServerResponse `json:"-"`
 13009  	// ForceSendFields is a list of field names (e.g. "Environments") to
 13010  	// unconditionally include in API requests. By default, fields with empty or
 13011  	// default values are omitted from API requests. See
 13012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13013  	// details.
 13014  	ForceSendFields []string `json:"-"`
 13015  	// NullFields is a list of field names (e.g. "Environments") to include in API
 13016  	// requests with the JSON null value. By default, fields with empty values are
 13017  	// omitted from API requests. See
 13018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13019  	NullFields []string `json:"-"`
 13020  }
 13021  
 13022  func (s *GoogleCloudDialogflowV2ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
 13023  	type NoMethod GoogleCloudDialogflowV2ListEnvironmentsResponse
 13024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13025  }
 13026  
 13027  // GoogleCloudDialogflowV2ListIntentsResponse: The response message for
 13028  // Intents.ListIntents.
 13029  type GoogleCloudDialogflowV2ListIntentsResponse struct {
 13030  	// Intents: The list of agent intents. There will be a maximum number of items
 13031  	// returned based on the page_size field in the request.
 13032  	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
 13033  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13034  	// are no more results in the list.
 13035  	NextPageToken string `json:"nextPageToken,omitempty"`
 13036  
 13037  	// ServerResponse contains the HTTP response code and headers from the server.
 13038  	googleapi.ServerResponse `json:"-"`
 13039  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 13040  	// include in API requests. By default, fields with empty or default values are
 13041  	// omitted from API requests. See
 13042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13043  	// details.
 13044  	ForceSendFields []string `json:"-"`
 13045  	// NullFields is a list of field names (e.g. "Intents") to include in API
 13046  	// requests with the JSON null value. By default, fields with empty values are
 13047  	// omitted from API requests. See
 13048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13049  	NullFields []string `json:"-"`
 13050  }
 13051  
 13052  func (s *GoogleCloudDialogflowV2ListIntentsResponse) MarshalJSON() ([]byte, error) {
 13053  	type NoMethod GoogleCloudDialogflowV2ListIntentsResponse
 13054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13055  }
 13056  
 13057  // GoogleCloudDialogflowV2ListKnowledgeBasesResponse: Response message for
 13058  // KnowledgeBases.ListKnowledgeBases.
 13059  type GoogleCloudDialogflowV2ListKnowledgeBasesResponse struct {
 13060  	// KnowledgeBases: The list of knowledge bases.
 13061  	KnowledgeBases []*GoogleCloudDialogflowV2KnowledgeBase `json:"knowledgeBases,omitempty"`
 13062  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13063  	// are no more results in the list.
 13064  	NextPageToken string `json:"nextPageToken,omitempty"`
 13065  
 13066  	// ServerResponse contains the HTTP response code and headers from the server.
 13067  	googleapi.ServerResponse `json:"-"`
 13068  	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
 13069  	// unconditionally include in API requests. By default, fields with empty or
 13070  	// default values are omitted from API requests. See
 13071  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13072  	// details.
 13073  	ForceSendFields []string `json:"-"`
 13074  	// NullFields is a list of field names (e.g. "KnowledgeBases") to include in
 13075  	// API requests with the JSON null value. By default, fields with empty values
 13076  	// are omitted from API requests. See
 13077  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13078  	NullFields []string `json:"-"`
 13079  }
 13080  
 13081  func (s *GoogleCloudDialogflowV2ListKnowledgeBasesResponse) MarshalJSON() ([]byte, error) {
 13082  	type NoMethod GoogleCloudDialogflowV2ListKnowledgeBasesResponse
 13083  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13084  }
 13085  
 13086  // GoogleCloudDialogflowV2ListMessagesResponse: The response message for
 13087  // Conversations.ListMessages.
 13088  type GoogleCloudDialogflowV2ListMessagesResponse struct {
 13089  	// Messages: The list of messages. There will be a maximum number of items
 13090  	// returned based on the page_size field in the request. `messages` is sorted
 13091  	// by `create_time` in descending order.
 13092  	Messages []*GoogleCloudDialogflowV2Message `json:"messages,omitempty"`
 13093  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13094  	// are no more results in the list.
 13095  	NextPageToken string `json:"nextPageToken,omitempty"`
 13096  
 13097  	// ServerResponse contains the HTTP response code and headers from the server.
 13098  	googleapi.ServerResponse `json:"-"`
 13099  	// ForceSendFields is a list of field names (e.g. "Messages") to
 13100  	// unconditionally include in API requests. By default, fields with empty or
 13101  	// default values are omitted from API requests. See
 13102  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13103  	// details.
 13104  	ForceSendFields []string `json:"-"`
 13105  	// NullFields is a list of field names (e.g. "Messages") to include in API
 13106  	// requests with the JSON null value. By default, fields with empty values are
 13107  	// omitted from API requests. See
 13108  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13109  	NullFields []string `json:"-"`
 13110  }
 13111  
 13112  func (s *GoogleCloudDialogflowV2ListMessagesResponse) MarshalJSON() ([]byte, error) {
 13113  	type NoMethod GoogleCloudDialogflowV2ListMessagesResponse
 13114  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13115  }
 13116  
 13117  // GoogleCloudDialogflowV2ListParticipantsResponse: The response message for
 13118  // Participants.ListParticipants.
 13119  type GoogleCloudDialogflowV2ListParticipantsResponse struct {
 13120  	// NextPageToken: Token to retrieve the next page of results or empty if there
 13121  	// are no more results in the list.
 13122  	NextPageToken string `json:"nextPageToken,omitempty"`
 13123  	// Participants: The list of participants. There is a maximum number of items
 13124  	// returned based on the page_size field in the request.
 13125  	Participants []*GoogleCloudDialogflowV2Participant `json:"participants,omitempty"`
 13126  
 13127  	// ServerResponse contains the HTTP response code and headers from the server.
 13128  	googleapi.ServerResponse `json:"-"`
 13129  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 13130  	// unconditionally include in API requests. By default, fields with empty or
 13131  	// default values are omitted from API requests. See
 13132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13133  	// details.
 13134  	ForceSendFields []string `json:"-"`
 13135  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 13136  	// requests with the JSON null value. By default, fields with empty values are
 13137  	// omitted from API requests. See
 13138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13139  	NullFields []string `json:"-"`
 13140  }
 13141  
 13142  func (s *GoogleCloudDialogflowV2ListParticipantsResponse) MarshalJSON() ([]byte, error) {
 13143  	type NoMethod GoogleCloudDialogflowV2ListParticipantsResponse
 13144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13145  }
 13146  
 13147  // GoogleCloudDialogflowV2ListSessionEntityTypesResponse: The response message
 13148  // for SessionEntityTypes.ListSessionEntityTypes.
 13149  type GoogleCloudDialogflowV2ListSessionEntityTypesResponse struct {
 13150  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13151  	// are no more results in the list.
 13152  	NextPageToken string `json:"nextPageToken,omitempty"`
 13153  	// SessionEntityTypes: The list of session entity types. There will be a
 13154  	// maximum number of items returned based on the page_size field in the
 13155  	// request.
 13156  	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
 13157  
 13158  	// ServerResponse contains the HTTP response code and headers from the server.
 13159  	googleapi.ServerResponse `json:"-"`
 13160  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 13161  	// unconditionally include in API requests. By default, fields with empty or
 13162  	// default values are omitted from API requests. See
 13163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13164  	// details.
 13165  	ForceSendFields []string `json:"-"`
 13166  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 13167  	// requests with the JSON null value. By default, fields with empty values are
 13168  	// omitted from API requests. See
 13169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13170  	NullFields []string `json:"-"`
 13171  }
 13172  
 13173  func (s *GoogleCloudDialogflowV2ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
 13174  	type NoMethod GoogleCloudDialogflowV2ListSessionEntityTypesResponse
 13175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13176  }
 13177  
 13178  // GoogleCloudDialogflowV2ListVersionsResponse: The response message for
 13179  // Versions.ListVersions.
 13180  type GoogleCloudDialogflowV2ListVersionsResponse struct {
 13181  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13182  	// are no more results in the list.
 13183  	NextPageToken string `json:"nextPageToken,omitempty"`
 13184  	// Versions: The list of agent versions. There will be a maximum number of
 13185  	// items returned based on the page_size field in the request.
 13186  	Versions []*GoogleCloudDialogflowV2Version `json:"versions,omitempty"`
 13187  
 13188  	// ServerResponse contains the HTTP response code and headers from the server.
 13189  	googleapi.ServerResponse `json:"-"`
 13190  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 13191  	// unconditionally include in API requests. By default, fields with empty or
 13192  	// default values are omitted from API requests. See
 13193  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13194  	// details.
 13195  	ForceSendFields []string `json:"-"`
 13196  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 13197  	// requests with the JSON null value. By default, fields with empty values are
 13198  	// omitted from API requests. See
 13199  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13200  	NullFields []string `json:"-"`
 13201  }
 13202  
 13203  func (s *GoogleCloudDialogflowV2ListVersionsResponse) MarshalJSON() ([]byte, error) {
 13204  	type NoMethod GoogleCloudDialogflowV2ListVersionsResponse
 13205  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13206  }
 13207  
 13208  // GoogleCloudDialogflowV2LoggingConfig: Defines logging behavior for
 13209  // conversation lifecycle events.
 13210  type GoogleCloudDialogflowV2LoggingConfig struct {
 13211  	// EnableStackdriverLogging: Whether to log conversation events like
 13212  	// CONVERSATION_STARTED to Stackdriver in the conversation project as JSON
 13213  	// format ConversationEvent protos.
 13214  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
 13215  	// ForceSendFields is a list of field names (e.g. "EnableStackdriverLogging")
 13216  	// to unconditionally include in API requests. By default, fields with empty or
 13217  	// default values are omitted from API requests. See
 13218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13219  	// details.
 13220  	ForceSendFields []string `json:"-"`
 13221  	// NullFields is a list of field names (e.g. "EnableStackdriverLogging") to
 13222  	// include in API requests with the JSON null value. By default, fields with
 13223  	// empty values are omitted from API requests. See
 13224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13225  	NullFields []string `json:"-"`
 13226  }
 13227  
 13228  func (s *GoogleCloudDialogflowV2LoggingConfig) MarshalJSON() ([]byte, error) {
 13229  	type NoMethod GoogleCloudDialogflowV2LoggingConfig
 13230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13231  }
 13232  
 13233  // GoogleCloudDialogflowV2Message: Represents a message posted into a
 13234  // conversation.
 13235  type GoogleCloudDialogflowV2Message struct {
 13236  	// Content: Required. The message content.
 13237  	Content string `json:"content,omitempty"`
 13238  	// CreateTime: Output only. The time when the message was created in Contact
 13239  	// Center AI.
 13240  	CreateTime string `json:"createTime,omitempty"`
 13241  	// LanguageCode: Optional. The message language. This should be a BCP-47
 13242  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 13243  	// "en-US".
 13244  	LanguageCode string `json:"languageCode,omitempty"`
 13245  	// MessageAnnotation: Output only. The annotation for the message.
 13246  	MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
 13247  	// Name: Optional. The unique identifier of the message. Format:
 13248  	// `projects//locations//conversations//messages/`.
 13249  	Name string `json:"name,omitempty"`
 13250  	// Participant: Output only. The participant that sends this message.
 13251  	Participant string `json:"participant,omitempty"`
 13252  	// ParticipantRole: Output only. The role of the participant.
 13253  	//
 13254  	// Possible values:
 13255  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 13256  	//   "HUMAN_AGENT" - Participant is a human agent.
 13257  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 13258  	// Dialogflow agent.
 13259  	//   "END_USER" - Participant is an end user that has called or chatted with
 13260  	// Dialogflow services.
 13261  	ParticipantRole string `json:"participantRole,omitempty"`
 13262  	// SendTime: Optional. The time when the message was sent.
 13263  	SendTime string `json:"sendTime,omitempty"`
 13264  	// SentimentAnalysis: Output only. The sentiment analysis result for the
 13265  	// message.
 13266  	SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
 13267  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 13268  	// include in API requests. By default, fields with empty or default values are
 13269  	// omitted from API requests. See
 13270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13271  	// details.
 13272  	ForceSendFields []string `json:"-"`
 13273  	// NullFields is a list of field names (e.g. "Content") to include in API
 13274  	// requests with the JSON null value. By default, fields with empty values are
 13275  	// omitted from API requests. See
 13276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13277  	NullFields []string `json:"-"`
 13278  }
 13279  
 13280  func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
 13281  	type NoMethod GoogleCloudDialogflowV2Message
 13282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13283  }
 13284  
 13285  // GoogleCloudDialogflowV2MessageAnnotation: Represents the result of
 13286  // annotation for the message.
 13287  type GoogleCloudDialogflowV2MessageAnnotation struct {
 13288  	// ContainEntities: Indicates whether the text message contains entities.
 13289  	ContainEntities bool `json:"containEntities,omitempty"`
 13290  	// Parts: The collection of annotated message parts ordered by their position
 13291  	// in the message. You can recover the annotated message by concatenating
 13292  	// [AnnotatedMessagePart.text].
 13293  	Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
 13294  	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
 13295  	// unconditionally include in API requests. By default, fields with empty or
 13296  	// default values are omitted from API requests. See
 13297  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13298  	// details.
 13299  	ForceSendFields []string `json:"-"`
 13300  	// NullFields is a list of field names (e.g. "ContainEntities") to include in
 13301  	// API requests with the JSON null value. By default, fields with empty values
 13302  	// are omitted from API requests. See
 13303  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13304  	NullFields []string `json:"-"`
 13305  }
 13306  
 13307  func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
 13308  	type NoMethod GoogleCloudDialogflowV2MessageAnnotation
 13309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13310  }
 13311  
 13312  // GoogleCloudDialogflowV2NotificationConfig: Defines notification behavior.
 13313  type GoogleCloudDialogflowV2NotificationConfig struct {
 13314  	// MessageFormat: Format of message.
 13315  	//
 13316  	// Possible values:
 13317  	//   "MESSAGE_FORMAT_UNSPECIFIED" - If it is unspecified, PROTO will be used.
 13318  	//   "PROTO" - Pub/Sub message will be serialized proto.
 13319  	//   "JSON" - Pub/Sub message will be json.
 13320  	MessageFormat string `json:"messageFormat,omitempty"`
 13321  	// Topic: Name of the Pub/Sub topic to publish conversation events like
 13322  	// CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony
 13323  	// integration to receive notification, make sure either this topic is in the
 13324  	// same project as the conversation or you grant
 13325  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
 13326  	// Agent` role in the topic project. For chat integration to receive
 13327  	// notification, make sure API caller has been granted the `Dialogflow Service
 13328  	// Agent` role for the topic. Format: `projects//locations//topics/`.
 13329  	Topic string `json:"topic,omitempty"`
 13330  	// ForceSendFields is a list of field names (e.g. "MessageFormat") to
 13331  	// unconditionally include in API requests. By default, fields with empty or
 13332  	// default values are omitted from API requests. See
 13333  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13334  	// details.
 13335  	ForceSendFields []string `json:"-"`
 13336  	// NullFields is a list of field names (e.g. "MessageFormat") to include in API
 13337  	// requests with the JSON null value. By default, fields with empty values are
 13338  	// omitted from API requests. See
 13339  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13340  	NullFields []string `json:"-"`
 13341  }
 13342  
 13343  func (s *GoogleCloudDialogflowV2NotificationConfig) MarshalJSON() ([]byte, error) {
 13344  	type NoMethod GoogleCloudDialogflowV2NotificationConfig
 13345  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13346  }
 13347  
 13348  // GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the contents
 13349  // of the original request that was passed to the `[Streaming]DetectIntent`
 13350  // call.
 13351  type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
 13352  	// Payload: Optional. This field is set to the value of the
 13353  	// `QueryParameters.payload` field passed in the request. Some integrations
 13354  	// that query a Dialogflow agent may provide additional information in the
 13355  	// payload. In particular, for the Dialogflow Phone Gateway integration, this
 13356  	// field has the form: { "telephony": { "caller_id": "+18558363987" } } Note:
 13357  	// The caller ID field (`caller_id`) will be redacted for Trial Edition agents
 13358  	// and populated with the caller ID in E.164 format
 13359  	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
 13360  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 13361  	// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It
 13362  	// is set by Dialogflow-owned servers.
 13363  	Source string `json:"source,omitempty"`
 13364  	// Version: Optional. The version of the protocol used for this request. This
 13365  	// field is AoG-specific.
 13366  	Version string `json:"version,omitempty"`
 13367  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
 13368  	// include in API requests. By default, fields with empty or default values are
 13369  	// omitted from API requests. See
 13370  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13371  	// details.
 13372  	ForceSendFields []string `json:"-"`
 13373  	// NullFields is a list of field names (e.g. "Payload") to include in API
 13374  	// requests with the JSON null value. By default, fields with empty values are
 13375  	// omitted from API requests. See
 13376  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13377  	NullFields []string `json:"-"`
 13378  }
 13379  
 13380  func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
 13381  	type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
 13382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13383  }
 13384  
 13385  // GoogleCloudDialogflowV2OutputAudio: Represents the natural language speech
 13386  // audio to be played to the end user.
 13387  type GoogleCloudDialogflowV2OutputAudio struct {
 13388  	// Audio: The natural language speech audio.
 13389  	Audio string `json:"audio,omitempty"`
 13390  	// Config: Instructs the speech synthesizer how to generate the speech audio.
 13391  	Config *GoogleCloudDialogflowV2OutputAudioConfig `json:"config,omitempty"`
 13392  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
 13393  	// include in API requests. By default, fields with empty or default values are
 13394  	// omitted from API requests. See
 13395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13396  	// details.
 13397  	ForceSendFields []string `json:"-"`
 13398  	// NullFields is a list of field names (e.g. "Audio") to include in API
 13399  	// requests with the JSON null value. By default, fields with empty values are
 13400  	// omitted from API requests. See
 13401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13402  	NullFields []string `json:"-"`
 13403  }
 13404  
 13405  func (s *GoogleCloudDialogflowV2OutputAudio) MarshalJSON() ([]byte, error) {
 13406  	type NoMethod GoogleCloudDialogflowV2OutputAudio
 13407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13408  }
 13409  
 13410  // GoogleCloudDialogflowV2OutputAudioConfig: Instructs the speech synthesizer
 13411  // on how to generate the output audio content. If this audio config is
 13412  // supplied in a request, it overrides all existing text-to-speech settings
 13413  // applied to the agent.
 13414  type GoogleCloudDialogflowV2OutputAudioConfig struct {
 13415  	// AudioEncoding: Required. Audio encoding of the synthesized audio content.
 13416  	//
 13417  	// Possible values:
 13418  	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
 13419  	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
 13420  	// little-endian samples (Linear PCM). Audio content returned as LINEAR16 also
 13421  	// contains a WAV header.
 13422  	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
 13423  	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
 13424  	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an ogg
 13425  	// container. The result will be a file which can be played natively on
 13426  	// Android, and in browsers (at least Chrome and Firefox). The quality of the
 13427  	// encoding is considerably higher than MP3 while using approximately the same
 13428  	// bitrate.
 13429  	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
 13430  	// samples using G.711 PCMU/mu-law.
 13431  	AudioEncoding string `json:"audioEncoding,omitempty"`
 13432  	// SampleRateHertz: The synthesis sample rate (in hertz) for this audio. If not
 13433  	// provided, then the synthesizer will use the default sample rate based on the
 13434  	// audio encoding. If this is different from the voice's natural sample rate,
 13435  	// then the synthesizer will honor this request by converting to the desired
 13436  	// sample rate (which might result in worse audio quality).
 13437  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
 13438  	// SynthesizeSpeechConfig: Configuration of how speech should be synthesized.
 13439  	SynthesizeSpeechConfig *GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
 13440  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
 13441  	// unconditionally include in API requests. By default, fields with empty or
 13442  	// default values are omitted from API requests. See
 13443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13444  	// details.
 13445  	ForceSendFields []string `json:"-"`
 13446  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
 13447  	// requests with the JSON null value. By default, fields with empty values are
 13448  	// omitted from API requests. See
 13449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13450  	NullFields []string `json:"-"`
 13451  }
 13452  
 13453  func (s *GoogleCloudDialogflowV2OutputAudioConfig) MarshalJSON() ([]byte, error) {
 13454  	type NoMethod GoogleCloudDialogflowV2OutputAudioConfig
 13455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13456  }
 13457  
 13458  // GoogleCloudDialogflowV2Participant: Represents a conversation participant
 13459  // (human agent, virtual agent, end-user).
 13460  type GoogleCloudDialogflowV2Participant struct {
 13461  	// DocumentsMetadataFilters: Optional. Key-value filters on the metadata of
 13462  	// documents returned by article suggestion. If specified, article suggestion
 13463  	// only returns suggested documents that match all filters in their
 13464  	// Document.metadata. Multiple values for a metadata key should be concatenated
 13465  	// by comma. For example, filters to match all documents that have 'US' or 'CA'
 13466  	// in their market metadata values and 'agent' in their user metadata values
 13467  	// will be ``` documents_metadata_filters { key: "market" value: "US,CA" }
 13468  	// documents_metadata_filters { key: "user" value: "agent" } ```
 13469  	DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
 13470  	// Name: Optional. The unique identifier of this participant. Format:
 13471  	// `projects//locations//conversations//participants/`.
 13472  	Name string `json:"name,omitempty"`
 13473  	// ObfuscatedExternalUserId: Optional. Obfuscated user id that should be
 13474  	// associated with the created participant. You can specify a user id as
 13475  	// follows: 1. If you set this field in CreateParticipantRequest or
 13476  	// UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the
 13477  	// participant. 2. If you set this field in AnalyzeContent or
 13478  	// StreamingAnalyzeContent, Dialogflow will update
 13479  	// Participant.obfuscated_external_user_id. Dialogflow returns an error if you
 13480  	// try to add a user id for a non-END_USER participant. Dialogflow uses this
 13481  	// user id for billing and measurement purposes. For example, Dialogflow
 13482  	// determines whether a user in one conversation returned in a later
 13483  	// conversation. Note: * Please never pass raw user ids to Dialogflow. Always
 13484  	// obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded
 13485  	// string, e.g., a hex digest of a hash function like SHA-512. * The length of
 13486  	// the user id must be <= 256 characters.
 13487  	ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
 13488  	// Role: Immutable. The role this participant plays in the conversation. This
 13489  	// field must be set during participant creation and is then immutable.
 13490  	//
 13491  	// Possible values:
 13492  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 13493  	//   "HUMAN_AGENT" - Participant is a human agent.
 13494  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 13495  	// Dialogflow agent.
 13496  	//   "END_USER" - Participant is an end user that has called or chatted with
 13497  	// Dialogflow services.
 13498  	Role string `json:"role,omitempty"`
 13499  	// SipRecordingMediaLabel: Optional. Label applied to streams representing this
 13500  	// participant in SIPREC XML metadata and SDP. This is used to assign
 13501  	// transcriptions from that media stream to this participant. This field can be
 13502  	// updated.
 13503  	SipRecordingMediaLabel string `json:"sipRecordingMediaLabel,omitempty"`
 13504  
 13505  	// ServerResponse contains the HTTP response code and headers from the server.
 13506  	googleapi.ServerResponse `json:"-"`
 13507  	// ForceSendFields is a list of field names (e.g. "DocumentsMetadataFilters")
 13508  	// to unconditionally include in API requests. By default, fields with empty or
 13509  	// default values are omitted from API requests. See
 13510  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13511  	// details.
 13512  	ForceSendFields []string `json:"-"`
 13513  	// NullFields is a list of field names (e.g. "DocumentsMetadataFilters") to
 13514  	// include in API requests with the JSON null value. By default, fields with
 13515  	// empty values are omitted from API requests. See
 13516  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13517  	NullFields []string `json:"-"`
 13518  }
 13519  
 13520  func (s *GoogleCloudDialogflowV2Participant) MarshalJSON() ([]byte, error) {
 13521  	type NoMethod GoogleCloudDialogflowV2Participant
 13522  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13523  }
 13524  
 13525  // GoogleCloudDialogflowV2QueryInput: Represents the query input. It can
 13526  // contain either: 1. An audio config which instructs the speech recognizer how
 13527  // to process the speech audio. 2. A conversational query in the form of text.
 13528  // 3. An event that specifies which intent to trigger.
 13529  type GoogleCloudDialogflowV2QueryInput struct {
 13530  	// AudioConfig: Instructs the speech recognizer how to process the speech
 13531  	// audio.
 13532  	AudioConfig *GoogleCloudDialogflowV2InputAudioConfig `json:"audioConfig,omitempty"`
 13533  	// Event: The event to be processed.
 13534  	Event *GoogleCloudDialogflowV2EventInput `json:"event,omitempty"`
 13535  	// Text: The natural language text to be processed. Text length must not exceed
 13536  	// 256 character for virtual agent interactions.
 13537  	Text *GoogleCloudDialogflowV2TextInput `json:"text,omitempty"`
 13538  	// ForceSendFields is a list of field names (e.g. "AudioConfig") to
 13539  	// unconditionally include in API requests. By default, fields with empty or
 13540  	// default values are omitted from API requests. See
 13541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13542  	// details.
 13543  	ForceSendFields []string `json:"-"`
 13544  	// NullFields is a list of field names (e.g. "AudioConfig") to include in API
 13545  	// requests with the JSON null value. By default, fields with empty values are
 13546  	// omitted from API requests. See
 13547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13548  	NullFields []string `json:"-"`
 13549  }
 13550  
 13551  func (s *GoogleCloudDialogflowV2QueryInput) MarshalJSON() ([]byte, error) {
 13552  	type NoMethod GoogleCloudDialogflowV2QueryInput
 13553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13554  }
 13555  
 13556  // GoogleCloudDialogflowV2QueryParameters: Represents the parameters of the
 13557  // conversational query.
 13558  type GoogleCloudDialogflowV2QueryParameters struct {
 13559  	// Contexts: The collection of contexts to be activated before this query is
 13560  	// executed.
 13561  	Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"`
 13562  	// GeoLocation: The geo location of this conversational query.
 13563  	GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
 13564  	// Payload: This field can be used to pass custom data to your webhook.
 13565  	// Arbitrary JSON objects are supported. If supplied, the value is used to
 13566  	// populate the `WebhookRequest.original_detect_intent_request.payload` field
 13567  	// sent to your webhook.
 13568  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 13569  	// Platform: The platform of the virtual agent response messages. If not empty,
 13570  	// only emits messages from this platform in the response. Valid values are the
 13571  	// enum names of platform.
 13572  	Platform string `json:"platform,omitempty"`
 13573  	// ResetContexts: Specifies whether to delete all contexts in the current
 13574  	// session before the new ones are activated.
 13575  	ResetContexts bool `json:"resetContexts,omitempty"`
 13576  	// SentimentAnalysisRequestConfig: Configures the type of sentiment analysis to
 13577  	// perform. If not provided, sentiment analysis is not performed.
 13578  	SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"`
 13579  	// SessionEntityTypes: Additional session entity types to replace or extend
 13580  	// developer entity types with. The entity synonyms apply to all languages and
 13581  	// persist for the session of this query.
 13582  	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
 13583  	// TimeZone: The time zone of this conversational query from the time zone
 13584  	// database (https://www.iana.org/time-zones), e.g., America/New_York,
 13585  	// Europe/Paris. If not provided, the time zone specified in agent settings is
 13586  	// used.
 13587  	TimeZone string `json:"timeZone,omitempty"`
 13588  	// WebhookHeaders: This field can be used to pass HTTP headers for a webhook
 13589  	// call. These headers will be sent to webhook along with the headers that have
 13590  	// been configured through the Dialogflow web console. The headers defined
 13591  	// within this field will overwrite the headers configured through the
 13592  	// Dialogflow console if there is a conflict. Header names are
 13593  	// case-insensitive. Google's specified headers are not allowed. Including:
 13594  	// "Host", "Content-Length", "Connection", "From", "User-Agent",
 13595  	// "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For",
 13596  	// etc.
 13597  	WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
 13598  	// ForceSendFields is a list of field names (e.g. "Contexts") to
 13599  	// unconditionally include in API requests. By default, fields with empty or
 13600  	// default values are omitted from API requests. See
 13601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13602  	// details.
 13603  	ForceSendFields []string `json:"-"`
 13604  	// NullFields is a list of field names (e.g. "Contexts") to include in API
 13605  	// requests with the JSON null value. By default, fields with empty values are
 13606  	// omitted from API requests. See
 13607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13608  	NullFields []string `json:"-"`
 13609  }
 13610  
 13611  func (s *GoogleCloudDialogflowV2QueryParameters) MarshalJSON() ([]byte, error) {
 13612  	type NoMethod GoogleCloudDialogflowV2QueryParameters
 13613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13614  }
 13615  
 13616  // GoogleCloudDialogflowV2QueryResult: Represents the result of conversational
 13617  // query or event processing.
 13618  type GoogleCloudDialogflowV2QueryResult struct {
 13619  	// Action: The action name from the matched intent.
 13620  	Action string `json:"action,omitempty"`
 13621  	// AllRequiredParamsPresent: This field is set to: - `false` if the matched
 13622  	// intent has required parameters and not all of the required parameter values
 13623  	// have been collected. - `true` if all required parameter values have been
 13624  	// collected, or if the matched intent doesn't contain any required parameters.
 13625  	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
 13626  	// CancelsSlotFilling: Indicates whether the conversational query triggers a
 13627  	// cancellation for slot filling. For more information, see the cancel slot
 13628  	// filling documentation
 13629  	// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
 13630  	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
 13631  	// DiagnosticInfo: Free-form diagnostic information for the associated detect
 13632  	// intent request. The fields of this data can change without notice, so you
 13633  	// should not write code that depends on its structure. The data may contain: -
 13634  	// webhook call latency - webhook errors
 13635  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
 13636  	// FulfillmentMessages: The collection of rich messages to present to the user.
 13637  	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
 13638  	// FulfillmentText: The text to be pronounced to the user or shown on the
 13639  	// screen. Note: This is a legacy field, `fulfillment_messages` should be
 13640  	// preferred.
 13641  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 13642  	// Intent: The intent that matched the conversational query. Some, not all
 13643  	// fields are filled in this message, including but not limited to: `name`,
 13644  	// `display_name`, `end_interaction` and `is_fallback`.
 13645  	Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
 13646  	// IntentDetectionConfidence: The intent detection confidence. Values range
 13647  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
 13648  	// for informational purpose only and is only used to help match the best
 13649  	// intent within the classification threshold. This value may change for the
 13650  	// same end-user expression at any time due to a model retraining or change in
 13651  	// implementation. If there are `multiple knowledge_answers` messages, this
 13652  	// value is set to the greatest `knowledgeAnswers.match_confidence` value in
 13653  	// the list.
 13654  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
 13655  	// LanguageCode: The language that was triggered during intent detection. See
 13656  	// Language Support
 13657  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 13658  	// the currently supported language codes.
 13659  	LanguageCode string `json:"languageCode,omitempty"`
 13660  	// OutputContexts: The collection of output contexts. If applicable,
 13661  	// `output_contexts.parameters` contains entries with name `.original`
 13662  	// containing the original parameter values before the query.
 13663  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 13664  	// Parameters: The collection of extracted parameters. Depending on your
 13665  	// protocol or client library language, this is a map, associative array,
 13666  	// symbol table, dictionary, or JSON object composed of a collection of
 13667  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
 13668  	// name * MapValue type: If parameter's entity type is a composite entity then
 13669  	// use map, otherwise, depending on the parameter value type, it could be one
 13670  	// of string, number, boolean, null, list or map. * MapValue value: If
 13671  	// parameter's entity type is a composite entity then use map from composite
 13672  	// entity property names to property values, otherwise, use parameter value.
 13673  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 13674  	// QueryText: The original conversational query text: - If natural language
 13675  	// text was provided as input, `query_text` contains a copy of the input. - If
 13676  	// natural language speech audio was provided as input, `query_text` contains
 13677  	// the speech recognition result. If speech recognizer produced multiple
 13678  	// alternatives, a particular one is picked. - If automatic spell correction is
 13679  	// enabled, `query_text` will contain the corrected user input.
 13680  	QueryText string `json:"queryText,omitempty"`
 13681  	// SentimentAnalysisResult: The sentiment analysis result, which depends on the
 13682  	// `sentiment_analysis_request_config` specified in the request.
 13683  	SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
 13684  	// SpeechRecognitionConfidence: The Speech recognition confidence between 0.0
 13685  	// and 1.0. A higher number indicates an estimated greater likelihood that the
 13686  	// recognized words are correct. The default of 0.0 is a sentinel value
 13687  	// indicating that confidence was not set. This field is not guaranteed to be
 13688  	// accurate or set. In particular this field isn't set for
 13689  	// StreamingDetectIntent since the streaming endpoint has separate confidence
 13690  	// estimates per portion of the audio in StreamingRecognitionResult.
 13691  	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
 13692  	// WebhookPayload: If the query was fulfilled by a webhook call, this field is
 13693  	// set to the value of the `payload` field returned in the webhook response.
 13694  	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
 13695  	// WebhookSource: If the query was fulfilled by a webhook call, this field is
 13696  	// set to the value of the `source` field returned in the webhook response.
 13697  	WebhookSource string `json:"webhookSource,omitempty"`
 13698  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 13699  	// include in API requests. By default, fields with empty or default values are
 13700  	// omitted from API requests. See
 13701  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13702  	// details.
 13703  	ForceSendFields []string `json:"-"`
 13704  	// NullFields is a list of field names (e.g. "Action") to include in API
 13705  	// requests with the JSON null value. By default, fields with empty values are
 13706  	// omitted from API requests. See
 13707  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13708  	NullFields []string `json:"-"`
 13709  }
 13710  
 13711  func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
 13712  	type NoMethod GoogleCloudDialogflowV2QueryResult
 13713  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13714  }
 13715  
 13716  func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
 13717  	type NoMethod GoogleCloudDialogflowV2QueryResult
 13718  	var s1 struct {
 13719  		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
 13720  		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
 13721  		*NoMethod
 13722  	}
 13723  	s1.NoMethod = (*NoMethod)(s)
 13724  	if err := json.Unmarshal(data, &s1); err != nil {
 13725  		return err
 13726  	}
 13727  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
 13728  	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
 13729  	return nil
 13730  }
 13731  
 13732  // GoogleCloudDialogflowV2ReloadDocumentRequest: Request message for
 13733  // Documents.ReloadDocument.
 13734  type GoogleCloudDialogflowV2ReloadDocumentRequest struct {
 13735  	// ContentUri: Optional. The path of gcs source file for reloading document
 13736  	// content. For now, only gcs uri is supported. For documents stored in Google
 13737  	// Cloud Storage, these URIs must have the form `gs:///`.
 13738  	ContentUri string `json:"contentUri,omitempty"`
 13739  	// ImportGcsCustomMetadata: Optional. Whether to import custom metadata from
 13740  	// Google Cloud Storage. Only valid when the document source is Google Cloud
 13741  	// Storage URI.
 13742  	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
 13743  	// SmartMessagingPartialUpdate: Optional. When enabled, the reload request is
 13744  	// to apply partial update to the smart messaging allowlist.
 13745  	SmartMessagingPartialUpdate bool `json:"smartMessagingPartialUpdate,omitempty"`
 13746  	// ForceSendFields is a list of field names (e.g. "ContentUri") to
 13747  	// unconditionally include in API requests. By default, fields with empty or
 13748  	// default values are omitted from API requests. See
 13749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13750  	// details.
 13751  	ForceSendFields []string `json:"-"`
 13752  	// NullFields is a list of field names (e.g. "ContentUri") to include in API
 13753  	// requests with the JSON null value. By default, fields with empty values are
 13754  	// omitted from API requests. See
 13755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13756  	NullFields []string `json:"-"`
 13757  }
 13758  
 13759  func (s *GoogleCloudDialogflowV2ReloadDocumentRequest) MarshalJSON() ([]byte, error) {
 13760  	type NoMethod GoogleCloudDialogflowV2ReloadDocumentRequest
 13761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13762  }
 13763  
 13764  // GoogleCloudDialogflowV2RestoreAgentRequest: The request message for
 13765  // Agents.RestoreAgent.
 13766  type GoogleCloudDialogflowV2RestoreAgentRequest struct {
 13767  	// AgentContent: Zip compressed raw byte content for agent.
 13768  	AgentContent string `json:"agentContent,omitempty"`
 13769  	// AgentUri: The URI to a Google Cloud Storage file containing the agent to
 13770  	// restore. Note: The URI must start with "gs://". Dialogflow performs a read
 13771  	// operation for the Cloud Storage object on the caller's behalf, so your
 13772  	// request authentication must have read permissions for the object. For more
 13773  	// information, see Dialogflow access control
 13774  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 13775  	AgentUri string `json:"agentUri,omitempty"`
 13776  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 13777  	// unconditionally include in API requests. By default, fields with empty or
 13778  	// default values are omitted from API requests. See
 13779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13780  	// details.
 13781  	ForceSendFields []string `json:"-"`
 13782  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 13783  	// requests with the JSON null value. By default, fields with empty values are
 13784  	// omitted from API requests. See
 13785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13786  	NullFields []string `json:"-"`
 13787  }
 13788  
 13789  func (s *GoogleCloudDialogflowV2RestoreAgentRequest) MarshalJSON() ([]byte, error) {
 13790  	type NoMethod GoogleCloudDialogflowV2RestoreAgentRequest
 13791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13792  }
 13793  
 13794  // GoogleCloudDialogflowV2SearchAgentsResponse: The response message for
 13795  // Agents.SearchAgents.
 13796  type GoogleCloudDialogflowV2SearchAgentsResponse struct {
 13797  	// Agents: The list of agents. There will be a maximum number of items returned
 13798  	// based on the page_size field in the request.
 13799  	Agents []*GoogleCloudDialogflowV2Agent `json:"agents,omitempty"`
 13800  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 13801  	// are no more results in the list.
 13802  	NextPageToken string `json:"nextPageToken,omitempty"`
 13803  
 13804  	// ServerResponse contains the HTTP response code and headers from the server.
 13805  	googleapi.ServerResponse `json:"-"`
 13806  	// ForceSendFields is a list of field names (e.g. "Agents") to unconditionally
 13807  	// include in API requests. By default, fields with empty or default values are
 13808  	// omitted from API requests. See
 13809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13810  	// details.
 13811  	ForceSendFields []string `json:"-"`
 13812  	// NullFields is a list of field names (e.g. "Agents") to include in API
 13813  	// requests with the JSON null value. By default, fields with empty values are
 13814  	// omitted from API requests. See
 13815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13816  	NullFields []string `json:"-"`
 13817  }
 13818  
 13819  func (s *GoogleCloudDialogflowV2SearchAgentsResponse) MarshalJSON() ([]byte, error) {
 13820  	type NoMethod GoogleCloudDialogflowV2SearchAgentsResponse
 13821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13822  }
 13823  
 13824  // GoogleCloudDialogflowV2SearchKnowledgeAnswer: Represents a SearchKnowledge
 13825  // answer.
 13826  type GoogleCloudDialogflowV2SearchKnowledgeAnswer struct {
 13827  	// Answer: The piece of text from the knowledge base documents that answers the
 13828  	// search query
 13829  	Answer string `json:"answer,omitempty"`
 13830  	// AnswerRecord: The name of the answer record. Format:
 13831  	// `projects//locations//answer Records/`
 13832  	AnswerRecord string `json:"answerRecord,omitempty"`
 13833  	// AnswerSources: All sources used to generate the answer.
 13834  	AnswerSources []*GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`
 13835  	// AnswerType: The type of the answer.
 13836  	//
 13837  	// Possible values:
 13838  	//   "ANSWER_TYPE_UNSPECIFIED" - The answer has a unspecified type.
 13839  	//   "FAQ" - The answer is from FAQ documents.
 13840  	//   "GENERATIVE" - The answer is from generative model.
 13841  	//   "INTENT" - The answer is from intent matching.
 13842  	AnswerType string `json:"answerType,omitempty"`
 13843  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 13844  	// include in API requests. By default, fields with empty or default values are
 13845  	// omitted from API requests. See
 13846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13847  	// details.
 13848  	ForceSendFields []string `json:"-"`
 13849  	// NullFields is a list of field names (e.g. "Answer") to include in API
 13850  	// requests with the JSON null value. By default, fields with empty values are
 13851  	// omitted from API requests. See
 13852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13853  	NullFields []string `json:"-"`
 13854  }
 13855  
 13856  func (s *GoogleCloudDialogflowV2SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) {
 13857  	type NoMethod GoogleCloudDialogflowV2SearchKnowledgeAnswer
 13858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13859  }
 13860  
 13861  // GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource: The sources of the
 13862  // answers.
 13863  type GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource struct {
 13864  	// Snippet: The relevant snippet of the article.
 13865  	Snippet string `json:"snippet,omitempty"`
 13866  	// Title: The title of the article.
 13867  	Title string `json:"title,omitempty"`
 13868  	// Uri: The URI of the article.
 13869  	Uri string `json:"uri,omitempty"`
 13870  	// ForceSendFields is a list of field names (e.g. "Snippet") to unconditionally
 13871  	// include in API requests. By default, fields with empty or default values are
 13872  	// omitted from API requests. See
 13873  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13874  	// details.
 13875  	ForceSendFields []string `json:"-"`
 13876  	// NullFields is a list of field names (e.g. "Snippet") to include in API
 13877  	// requests with the JSON null value. By default, fields with empty values are
 13878  	// omitted from API requests. See
 13879  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13880  	NullFields []string `json:"-"`
 13881  }
 13882  
 13883  func (s *GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) {
 13884  	type NoMethod GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource
 13885  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13886  }
 13887  
 13888  // GoogleCloudDialogflowV2SearchKnowledgeRequest: The request message for
 13889  // Conversations.SearchKnowledge.
 13890  type GoogleCloudDialogflowV2SearchKnowledgeRequest struct {
 13891  	// Conversation: The conversation (between human agent and end user) where the
 13892  	// search request is triggered. Format: `projects//locations//conversations/`.
 13893  	Conversation string `json:"conversation,omitempty"`
 13894  	// ConversationProfile: Required. The conversation profile used to configure
 13895  	// the search. Format: `projects//locations//conversationProfiles/`.
 13896  	ConversationProfile string `json:"conversationProfile,omitempty"`
 13897  	// LatestMessage: The name of the latest conversation message when the request
 13898  	// is triggered. Format: `projects//locations//conversations//messages/`.
 13899  	LatestMessage string `json:"latestMessage,omitempty"`
 13900  	// Parent: The parent resource contains the conversation profile Format:
 13901  	// 'projects/' or `projects//locations/`.
 13902  	Parent string `json:"parent,omitempty"`
 13903  	// Query: Required. The natural language text query for knowledge search.
 13904  	Query *GoogleCloudDialogflowV2TextInput `json:"query,omitempty"`
 13905  	// SessionId: The ID of the search session. The session_id can be combined with
 13906  	// Dialogflow V3 Agent ID retrieved from conversation profile or on its own to
 13907  	// identify a search session. The search history of the same session will
 13908  	// impact the search result. It's up to the API caller to choose an appropriate
 13909  	// `Session ID`. It can be a random number or some type of session identifiers
 13910  	// (preferably hashed). The length must not exceed 36 characters.
 13911  	SessionId string `json:"sessionId,omitempty"`
 13912  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 13913  	// unconditionally include in API requests. By default, fields with empty or
 13914  	// default values are omitted from API requests. See
 13915  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13916  	// details.
 13917  	ForceSendFields []string `json:"-"`
 13918  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 13919  	// requests with the JSON null value. By default, fields with empty values are
 13920  	// omitted from API requests. See
 13921  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13922  	NullFields []string `json:"-"`
 13923  }
 13924  
 13925  func (s *GoogleCloudDialogflowV2SearchKnowledgeRequest) MarshalJSON() ([]byte, error) {
 13926  	type NoMethod GoogleCloudDialogflowV2SearchKnowledgeRequest
 13927  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13928  }
 13929  
 13930  // GoogleCloudDialogflowV2SearchKnowledgeResponse: The response message for
 13931  // Conversations.SearchKnowledge.
 13932  type GoogleCloudDialogflowV2SearchKnowledgeResponse struct {
 13933  	// Answers: Most relevant snippets extracted from articles in the given
 13934  	// knowledge base, ordered by confidence.
 13935  	Answers []*GoogleCloudDialogflowV2SearchKnowledgeAnswer `json:"answers,omitempty"`
 13936  	// RewrittenQuery: The rewritten query used to search knowledge.
 13937  	RewrittenQuery string `json:"rewrittenQuery,omitempty"`
 13938  
 13939  	// ServerResponse contains the HTTP response code and headers from the server.
 13940  	googleapi.ServerResponse `json:"-"`
 13941  	// ForceSendFields is a list of field names (e.g. "Answers") to unconditionally
 13942  	// include in API requests. By default, fields with empty or default values are
 13943  	// omitted from API requests. See
 13944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13945  	// details.
 13946  	ForceSendFields []string `json:"-"`
 13947  	// NullFields is a list of field names (e.g. "Answers") to include in API
 13948  	// requests with the JSON null value. By default, fields with empty values are
 13949  	// omitted from API requests. See
 13950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13951  	NullFields []string `json:"-"`
 13952  }
 13953  
 13954  func (s *GoogleCloudDialogflowV2SearchKnowledgeResponse) MarshalJSON() ([]byte, error) {
 13955  	type NoMethod GoogleCloudDialogflowV2SearchKnowledgeResponse
 13956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13957  }
 13958  
 13959  // GoogleCloudDialogflowV2Sentiment: The sentiment, such as positive/negative
 13960  // feeling or association, for a unit of analysis, such as the query text. See:
 13961  // https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
 13962  // for how to interpret the result.
 13963  type GoogleCloudDialogflowV2Sentiment struct {
 13964  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 13965  	// the absolute magnitude of sentiment, regardless of score (positive or
 13966  	// negative).
 13967  	Magnitude float64 `json:"magnitude,omitempty"`
 13968  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 13969  	// sentiment).
 13970  	Score float64 `json:"score,omitempty"`
 13971  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 13972  	// unconditionally include in API requests. By default, fields with empty or
 13973  	// default values are omitted from API requests. See
 13974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13975  	// details.
 13976  	ForceSendFields []string `json:"-"`
 13977  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 13978  	// requests with the JSON null value. By default, fields with empty values are
 13979  	// omitted from API requests. See
 13980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13981  	NullFields []string `json:"-"`
 13982  }
 13983  
 13984  func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
 13985  	type NoMethod GoogleCloudDialogflowV2Sentiment
 13986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13987  }
 13988  
 13989  func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
 13990  	type NoMethod GoogleCloudDialogflowV2Sentiment
 13991  	var s1 struct {
 13992  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 13993  		Score     gensupport.JSONFloat64 `json:"score"`
 13994  		*NoMethod
 13995  	}
 13996  	s1.NoMethod = (*NoMethod)(s)
 13997  	if err := json.Unmarshal(data, &s1); err != nil {
 13998  		return err
 13999  	}
 14000  	s.Magnitude = float64(s1.Magnitude)
 14001  	s.Score = float64(s1.Score)
 14002  	return nil
 14003  }
 14004  
 14005  // GoogleCloudDialogflowV2SentimentAnalysisRequestConfig: Configures the types
 14006  // of sentiment analysis to perform.
 14007  type GoogleCloudDialogflowV2SentimentAnalysisRequestConfig struct {
 14008  	// AnalyzeQueryTextSentiment: Instructs the service to perform sentiment
 14009  	// analysis on `query_text`. If not provided, sentiment analysis is not
 14010  	// performed on `query_text`.
 14011  	AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
 14012  	// ForceSendFields is a list of field names (e.g. "AnalyzeQueryTextSentiment")
 14013  	// to unconditionally include in API requests. By default, fields with empty or
 14014  	// default values are omitted from API requests. See
 14015  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14016  	// details.
 14017  	ForceSendFields []string `json:"-"`
 14018  	// NullFields is a list of field names (e.g. "AnalyzeQueryTextSentiment") to
 14019  	// include in API requests with the JSON null value. By default, fields with
 14020  	// empty values are omitted from API requests. See
 14021  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14022  	NullFields []string `json:"-"`
 14023  }
 14024  
 14025  func (s *GoogleCloudDialogflowV2SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error) {
 14026  	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
 14027  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14028  }
 14029  
 14030  // GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentiment
 14031  // analysis. Sentiment analysis inspects user input and identifies the
 14032  // prevailing subjective opinion, especially to determine a user's attitude as
 14033  // positive, negative, or neutral. For Participants.DetectIntent, it needs to
 14034  // be configured in DetectIntentRequest.query_params. For
 14035  // Participants.StreamingDetectIntent, it needs to be configured in
 14036  // StreamingDetectIntentRequest.query_params. And for
 14037  // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it
 14038  // needs to be configured in ConversationProfile.human_agent_assistant_config
 14039  type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
 14040  	// QueryTextSentiment: The sentiment analysis result for `query_text`.
 14041  	QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
 14042  	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to
 14043  	// unconditionally include in API requests. By default, fields with empty or
 14044  	// default values are omitted from API requests. See
 14045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14046  	// details.
 14047  	ForceSendFields []string `json:"-"`
 14048  	// NullFields is a list of field names (e.g. "QueryTextSentiment") to include
 14049  	// in API requests with the JSON null value. By default, fields with empty
 14050  	// values are omitted from API requests. See
 14051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14052  	NullFields []string `json:"-"`
 14053  }
 14054  
 14055  func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 14056  	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
 14057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14058  }
 14059  
 14060  // GoogleCloudDialogflowV2SessionEntityType: A session represents a
 14061  // conversation between a Dialogflow agent and an end-user. You can create
 14062  // special entities, called session entities, during a session. Session
 14063  // entities can extend or replace custom entity types and only exist during the
 14064  // session that they were created for. All session data, including session
 14065  // entities, is stored by Dialogflow for 20 minutes. For more information, see
 14066  // the session entity guide
 14067  // (https://cloud.google.com/dialogflow/docs/entities-session).
 14068  type GoogleCloudDialogflowV2SessionEntityType struct {
 14069  	// Entities: Required. The collection of entities associated with this session
 14070  	// entity type.
 14071  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
 14072  	// EntityOverrideMode: Required. Indicates whether the additional data should
 14073  	// override or supplement the custom entity type definition.
 14074  	//
 14075  	// Possible values:
 14076  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 14077  	// never used.
 14078  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 14079  	// overrides the collection of entities in the corresponding custom entity
 14080  	// type.
 14081  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 14082  	// extends the collection of entities in the corresponding custom entity type.
 14083  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 14084  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 14085  	// `UpdateSessionEntityType` only return the additional entities added in this
 14086  	// session entity type. If you want to get the supplemented list, please call
 14087  	// EntityTypes.GetEntityType on the custom entity type and merge.
 14088  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 14089  	// Name: Required. The unique identifier of this session entity type. Format:
 14090  	// `projects//agent/sessions//entityTypes/`, or
 14091  	// `projects//agent/environments//users//sessions//entityTypes/`. If
 14092  	// `Environment ID` is not specified, we assume default 'draft' environment. If
 14093  	// `User ID` is not specified, we assume default '-' user. `` must be the
 14094  	// display name of an existing entity type in the same agent that will be
 14095  	// overridden or supplemented.
 14096  	Name string `json:"name,omitempty"`
 14097  
 14098  	// ServerResponse contains the HTTP response code and headers from the server.
 14099  	googleapi.ServerResponse `json:"-"`
 14100  	// ForceSendFields is a list of field names (e.g. "Entities") to
 14101  	// unconditionally include in API requests. By default, fields with empty or
 14102  	// default values are omitted from API requests. See
 14103  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14104  	// details.
 14105  	ForceSendFields []string `json:"-"`
 14106  	// NullFields is a list of field names (e.g. "Entities") to include in API
 14107  	// requests with the JSON null value. By default, fields with empty values are
 14108  	// omitted from API requests. See
 14109  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14110  	NullFields []string `json:"-"`
 14111  }
 14112  
 14113  func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
 14114  	type NoMethod GoogleCloudDialogflowV2SessionEntityType
 14115  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14116  }
 14117  
 14118  // GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata: Metadata
 14119  // for a ConversationProfile.SetSuggestionFeatureConfig operation.
 14120  type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
 14121  	// ConversationProfile: The resource name of the conversation profile. Format:
 14122  	// `projects//locations//conversationProfiles/`
 14123  	ConversationProfile string `json:"conversationProfile,omitempty"`
 14124  	// CreateTime: Timestamp whe the request was created. The time is measured on
 14125  	// server side.
 14126  	CreateTime string `json:"createTime,omitempty"`
 14127  	// ParticipantRole: Required. The participant role to add or update the
 14128  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 14129  	//
 14130  	// Possible values:
 14131  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 14132  	//   "HUMAN_AGENT" - Participant is a human agent.
 14133  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 14134  	// Dialogflow agent.
 14135  	//   "END_USER" - Participant is an end user that has called or chatted with
 14136  	// Dialogflow services.
 14137  	ParticipantRole string `json:"participantRole,omitempty"`
 14138  	// SuggestionFeatureType: Required. The type of the suggestion feature to add
 14139  	// or update.
 14140  	//
 14141  	// Possible values:
 14142  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 14143  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 14144  	//   "FAQ" - Run FAQ model for chat.
 14145  	//   "SMART_REPLY" - Run smart reply model for chat.
 14146  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 14147  	// text generated query.
 14148  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 14149  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 14150  	// unconditionally include in API requests. By default, fields with empty or
 14151  	// default values are omitted from API requests. See
 14152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14153  	// details.
 14154  	ForceSendFields []string `json:"-"`
 14155  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 14156  	// in API requests with the JSON null value. By default, fields with empty
 14157  	// values are omitted from API requests. See
 14158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14159  	NullFields []string `json:"-"`
 14160  }
 14161  
 14162  func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 14163  	type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
 14164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14165  }
 14166  
 14167  // GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest: The request
 14168  // message for ConversationProfiles.SetSuggestionFeature.
 14169  type GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest struct {
 14170  	// ParticipantRole: Required. The participant role to add or update the
 14171  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 14172  	//
 14173  	// Possible values:
 14174  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 14175  	//   "HUMAN_AGENT" - Participant is a human agent.
 14176  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 14177  	// Dialogflow agent.
 14178  	//   "END_USER" - Participant is an end user that has called or chatted with
 14179  	// Dialogflow services.
 14180  	ParticipantRole string `json:"participantRole,omitempty"`
 14181  	// SuggestionFeatureConfig: Required. The suggestion feature config to add or
 14182  	// update.
 14183  	SuggestionFeatureConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig `json:"suggestionFeatureConfig,omitempty"`
 14184  	// ForceSendFields is a list of field names (e.g. "ParticipantRole") to
 14185  	// unconditionally include in API requests. By default, fields with empty or
 14186  	// default values are omitted from API requests. See
 14187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14188  	// details.
 14189  	ForceSendFields []string `json:"-"`
 14190  	// NullFields is a list of field names (e.g. "ParticipantRole") to include in
 14191  	// API requests with the JSON null value. By default, fields with empty values
 14192  	// are omitted from API requests. See
 14193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14194  	NullFields []string `json:"-"`
 14195  }
 14196  
 14197  func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
 14198  	type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
 14199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14200  }
 14201  
 14202  // GoogleCloudDialogflowV2SmartReplyAnswer: Represents a smart reply answer.
 14203  type GoogleCloudDialogflowV2SmartReplyAnswer struct {
 14204  	// AnswerRecord: The name of answer record, in the format of
 14205  	// "projects//locations//answerRecords/"
 14206  	AnswerRecord string `json:"answerRecord,omitempty"`
 14207  	// Confidence: Smart reply confidence. The system's confidence score that this
 14208  	// reply is a good match for this conversation, as a value from 0.0 (completely
 14209  	// uncertain) to 1.0 (completely certain).
 14210  	Confidence float64 `json:"confidence,omitempty"`
 14211  	// Reply: The content of the reply.
 14212  	Reply string `json:"reply,omitempty"`
 14213  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 14214  	// unconditionally include in API requests. By default, fields with empty or
 14215  	// default values are omitted from API requests. See
 14216  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14217  	// details.
 14218  	ForceSendFields []string `json:"-"`
 14219  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 14220  	// requests with the JSON null value. By default, fields with empty values are
 14221  	// omitted from API requests. See
 14222  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14223  	NullFields []string `json:"-"`
 14224  }
 14225  
 14226  func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
 14227  	type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
 14228  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14229  }
 14230  
 14231  func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
 14232  	type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
 14233  	var s1 struct {
 14234  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 14235  		*NoMethod
 14236  	}
 14237  	s1.NoMethod = (*NoMethod)(s)
 14238  	if err := json.Unmarshal(data, &s1); err != nil {
 14239  		return err
 14240  	}
 14241  	s.Confidence = float64(s1.Confidence)
 14242  	return nil
 14243  }
 14244  
 14245  // GoogleCloudDialogflowV2SmartReplyMetrics: The evaluation metrics for smart
 14246  // reply model.
 14247  type GoogleCloudDialogflowV2SmartReplyMetrics struct {
 14248  	// AllowlistCoverage: Percentage of target participant messages in the
 14249  	// evaluation dataset for which similar messages have appeared at least once in
 14250  	// the allowlist. Should be [0, 1].
 14251  	AllowlistCoverage float64 `json:"allowlistCoverage,omitempty"`
 14252  	// ConversationCount: Total number of conversations used to generate this
 14253  	// metric.
 14254  	ConversationCount int64 `json:"conversationCount,omitempty,string"`
 14255  	// TopNMetrics: Metrics of top n smart replies, sorted by TopNMetric.n.
 14256  	TopNMetrics []*GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics `json:"topNMetrics,omitempty"`
 14257  	// ForceSendFields is a list of field names (e.g. "AllowlistCoverage") to
 14258  	// unconditionally include in API requests. By default, fields with empty or
 14259  	// default values are omitted from API requests. See
 14260  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14261  	// details.
 14262  	ForceSendFields []string `json:"-"`
 14263  	// NullFields is a list of field names (e.g. "AllowlistCoverage") to include in
 14264  	// API requests with the JSON null value. By default, fields with empty values
 14265  	// are omitted from API requests. See
 14266  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14267  	NullFields []string `json:"-"`
 14268  }
 14269  
 14270  func (s *GoogleCloudDialogflowV2SmartReplyMetrics) MarshalJSON() ([]byte, error) {
 14271  	type NoMethod GoogleCloudDialogflowV2SmartReplyMetrics
 14272  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14273  }
 14274  
 14275  func (s *GoogleCloudDialogflowV2SmartReplyMetrics) UnmarshalJSON(data []byte) error {
 14276  	type NoMethod GoogleCloudDialogflowV2SmartReplyMetrics
 14277  	var s1 struct {
 14278  		AllowlistCoverage gensupport.JSONFloat64 `json:"allowlistCoverage"`
 14279  		*NoMethod
 14280  	}
 14281  	s1.NoMethod = (*NoMethod)(s)
 14282  	if err := json.Unmarshal(data, &s1); err != nil {
 14283  		return err
 14284  	}
 14285  	s.AllowlistCoverage = float64(s1.AllowlistCoverage)
 14286  	return nil
 14287  }
 14288  
 14289  // GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics: Evaluation metrics when
 14290  // retrieving `n` smart replies with the model.
 14291  type GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics struct {
 14292  	// N: Number of retrieved smart replies. For example, when `n` is 3, this
 14293  	// evaluation contains metrics for when Dialogflow retrieves 3 smart replies
 14294  	// with the model.
 14295  	N int64 `json:"n,omitempty"`
 14296  	// Recall: Defined as `number of queries whose top n smart replies have at
 14297  	// least one similar (token match similarity above the defined threshold) reply
 14298  	// as the real reply` divided by `number of queries with at least one smart
 14299  	// reply`. Value ranges from 0.0 to 1.0 inclusive.
 14300  	Recall float64 `json:"recall,omitempty"`
 14301  	// ForceSendFields is a list of field names (e.g. "N") to unconditionally
 14302  	// include in API requests. By default, fields with empty or default values are
 14303  	// omitted from API requests. See
 14304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14305  	// details.
 14306  	ForceSendFields []string `json:"-"`
 14307  	// NullFields is a list of field names (e.g. "N") to include in API requests
 14308  	// with the JSON null value. By default, fields with empty values are omitted
 14309  	// from API requests. See
 14310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14311  	NullFields []string `json:"-"`
 14312  }
 14313  
 14314  func (s *GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics) MarshalJSON() ([]byte, error) {
 14315  	type NoMethod GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
 14316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14317  }
 14318  
 14319  func (s *GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics) UnmarshalJSON(data []byte) error {
 14320  	type NoMethod GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
 14321  	var s1 struct {
 14322  		Recall gensupport.JSONFloat64 `json:"recall"`
 14323  		*NoMethod
 14324  	}
 14325  	s1.NoMethod = (*NoMethod)(s)
 14326  	if err := json.Unmarshal(data, &s1); err != nil {
 14327  		return err
 14328  	}
 14329  	s.Recall = float64(s1.Recall)
 14330  	return nil
 14331  }
 14332  
 14333  // GoogleCloudDialogflowV2SmartReplyModelMetadata: Metadata for smart reply
 14334  // models.
 14335  type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
 14336  	// TrainingModelType: Optional. Type of the smart reply model. If not provided,
 14337  	// model_type is used.
 14338  	//
 14339  	// Possible values:
 14340  	//   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.
 14341  	//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder
 14342  	// model.
 14343  	//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.
 14344  	TrainingModelType string `json:"trainingModelType,omitempty"`
 14345  	// ForceSendFields is a list of field names (e.g. "TrainingModelType") to
 14346  	// unconditionally include in API requests. By default, fields with empty or
 14347  	// default values are omitted from API requests. See
 14348  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14349  	// details.
 14350  	ForceSendFields []string `json:"-"`
 14351  	// NullFields is a list of field names (e.g. "TrainingModelType") to include in
 14352  	// API requests with the JSON null value. By default, fields with empty values
 14353  	// are omitted from API requests. See
 14354  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14355  	NullFields []string `json:"-"`
 14356  }
 14357  
 14358  func (s *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
 14359  	type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
 14360  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14361  }
 14362  
 14363  // GoogleCloudDialogflowV2SpeechContext: Hints for the speech recognizer to
 14364  // help with recognition in a specific conversation state.
 14365  type GoogleCloudDialogflowV2SpeechContext struct {
 14366  	// Boost: Optional. Boost for this context compared to other contexts: * If the
 14367  	// boost is positive, Dialogflow will increase the probability that the phrases
 14368  	// in this context are recognized over similar sounding phrases. * If the boost
 14369  	// is unspecified or non-positive, Dialogflow will not apply any boost.
 14370  	// Dialogflow recommends that you use boosts in the range (0, 20] and that you
 14371  	// find a value that fits your use case with binary search.
 14372  	Boost float64 `json:"boost,omitempty"`
 14373  	// Phrases: Optional. A list of strings containing words and phrases that the
 14374  	// speech recognizer should recognize with higher likelihood. This list can be
 14375  	// used to: * improve accuracy for words and phrases you expect the user to
 14376  	// say, e.g. typical commands for your Dialogflow agent * add additional words
 14377  	// to the speech recognizer vocabulary * ... See the Cloud Speech documentation
 14378  	// (https://cloud.google.com/speech-to-text/quotas) for usage limits.
 14379  	Phrases []string `json:"phrases,omitempty"`
 14380  	// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
 14381  	// include in API requests. By default, fields with empty or default values are
 14382  	// omitted from API requests. See
 14383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14384  	// details.
 14385  	ForceSendFields []string `json:"-"`
 14386  	// NullFields is a list of field names (e.g. "Boost") to include in API
 14387  	// requests with the JSON null value. By default, fields with empty values are
 14388  	// omitted from API requests. See
 14389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14390  	NullFields []string `json:"-"`
 14391  }
 14392  
 14393  func (s *GoogleCloudDialogflowV2SpeechContext) MarshalJSON() ([]byte, error) {
 14394  	type NoMethod GoogleCloudDialogflowV2SpeechContext
 14395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14396  }
 14397  
 14398  func (s *GoogleCloudDialogflowV2SpeechContext) UnmarshalJSON(data []byte) error {
 14399  	type NoMethod GoogleCloudDialogflowV2SpeechContext
 14400  	var s1 struct {
 14401  		Boost gensupport.JSONFloat64 `json:"boost"`
 14402  		*NoMethod
 14403  	}
 14404  	s1.NoMethod = (*NoMethod)(s)
 14405  	if err := json.Unmarshal(data, &s1); err != nil {
 14406  		return err
 14407  	}
 14408  	s.Boost = float64(s1.Boost)
 14409  	return nil
 14410  }
 14411  
 14412  // GoogleCloudDialogflowV2SpeechToTextConfig: Configures speech transcription
 14413  // for ConversationProfile.
 14414  type GoogleCloudDialogflowV2SpeechToTextConfig struct {
 14415  	// Model: Which Speech model to select. Select the model best suited to your
 14416  	// domain to get best results. If a model is not explicitly specified, then
 14417  	// Dialogflow auto-selects a model based on other parameters in the
 14418  	// SpeechToTextConfig and Agent settings. If enhanced speech model is enabled
 14419  	// for the agent and an enhanced version of the specified model for the
 14420  	// language does not exist, then the speech is recognized using the standard
 14421  	// version of the specified model. Refer to Cloud Speech API documentation
 14422  	// (https://cloud.google.com/speech-to-text/docs/basics#select-model) for more
 14423  	// details. If you specify a model, the following models typically have the
 14424  	// best performance: - phone_call (best for Agent Assist and telephony) -
 14425  	// latest_short (best for Dialogflow non-telephony) - command_and_search Leave
 14426  	// this field unspecified to use Agent Speech settings
 14427  	// (https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
 14428  	// for model selection.
 14429  	Model string `json:"model,omitempty"`
 14430  	// SpeechModelVariant: The speech model used in speech to text.
 14431  	// `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
 14432  	// `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and
 14433  	// StreamingAnalyzeContentRequest request. If enhanced model variant is
 14434  	// specified and an enhanced version of the specified model for the language
 14435  	// does not exist, then it would emit an error.
 14436  	//
 14437  	// Possible values:
 14438  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
 14439  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
 14440  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
 14441  	// that the caller is eligible for. Please see the [Dialogflow
 14442  	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make
 14443  	// your project eligible for enhanced models.
 14444  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
 14445  	// available. See the [Cloud Speech
 14446  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 14447  	// for details about enhanced models.
 14448  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
 14449  	// does not exist for the given model and request language, Dialogflow falls
 14450  	// back to the standard variant. The [Cloud Speech
 14451  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 14452  	// describes which models have enhanced variants. * If the API caller isn't
 14453  	// eligible for enhanced models, Dialogflow returns an error. Please see the
 14454  	// [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for
 14455  	// how to make your project eligible.
 14456  	SpeechModelVariant string `json:"speechModelVariant,omitempty"`
 14457  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
 14458  	// endpointer sensitivy as seconds of timeout value.
 14459  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
 14460  	// ForceSendFields is a list of field names (e.g. "Model") to unconditionally
 14461  	// include in API requests. By default, fields with empty or default values are
 14462  	// omitted from API requests. See
 14463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14464  	// details.
 14465  	ForceSendFields []string `json:"-"`
 14466  	// NullFields is a list of field names (e.g. "Model") to include in API
 14467  	// requests with the JSON null value. By default, fields with empty values are
 14468  	// omitted from API requests. See
 14469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14470  	NullFields []string `json:"-"`
 14471  }
 14472  
 14473  func (s *GoogleCloudDialogflowV2SpeechToTextConfig) MarshalJSON() ([]byte, error) {
 14474  	type NoMethod GoogleCloudDialogflowV2SpeechToTextConfig
 14475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14476  }
 14477  
 14478  // GoogleCloudDialogflowV2SuggestArticlesRequest: The request message for
 14479  // Participants.SuggestArticles.
 14480  type GoogleCloudDialogflowV2SuggestArticlesRequest struct {
 14481  	// AssistQueryParams: Parameters for a human assist query.
 14482  	AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
 14483  	// ContextSize: Optional. Max number of messages prior to and including
 14484  	// latest_message to use as context when compiling the suggestion. By default
 14485  	// 20 and at most 50.
 14486  	ContextSize int64 `json:"contextSize,omitempty"`
 14487  	// LatestMessage: Optional. The name of the latest conversation message to
 14488  	// compile suggestion for. If empty, it will be the latest message of the
 14489  	// conversation. Format: `projects//locations//conversations//messages/`.
 14490  	LatestMessage string `json:"latestMessage,omitempty"`
 14491  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 14492  	// unconditionally include in API requests. By default, fields with empty or
 14493  	// default values are omitted from API requests. See
 14494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14495  	// details.
 14496  	ForceSendFields []string `json:"-"`
 14497  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
 14498  	// API requests with the JSON null value. By default, fields with empty values
 14499  	// are omitted from API requests. See
 14500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14501  	NullFields []string `json:"-"`
 14502  }
 14503  
 14504  func (s *GoogleCloudDialogflowV2SuggestArticlesRequest) MarshalJSON() ([]byte, error) {
 14505  	type NoMethod GoogleCloudDialogflowV2SuggestArticlesRequest
 14506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14507  }
 14508  
 14509  // GoogleCloudDialogflowV2SuggestArticlesResponse: The response message for
 14510  // Participants.SuggestArticles.
 14511  type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
 14512  	// ArticleAnswers: Articles ordered by score in descending order.
 14513  	ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
 14514  	// ContextSize: Number of messages prior to and including latest_message to
 14515  	// compile the suggestion. It may be smaller than the
 14516  	// SuggestArticlesRequest.context_size field in the request if there aren't
 14517  	// that many messages in the conversation.
 14518  	ContextSize int64 `json:"contextSize,omitempty"`
 14519  	// LatestMessage: The name of the latest conversation message used to compile
 14520  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 14521  	LatestMessage string `json:"latestMessage,omitempty"`
 14522  
 14523  	// ServerResponse contains the HTTP response code and headers from the server.
 14524  	googleapi.ServerResponse `json:"-"`
 14525  	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
 14526  	// unconditionally include in API requests. By default, fields with empty or
 14527  	// default values are omitted from API requests. See
 14528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14529  	// details.
 14530  	ForceSendFields []string `json:"-"`
 14531  	// NullFields is a list of field names (e.g. "ArticleAnswers") to include in
 14532  	// API requests with the JSON null value. By default, fields with empty values
 14533  	// are omitted from API requests. See
 14534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14535  	NullFields []string `json:"-"`
 14536  }
 14537  
 14538  func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
 14539  	type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
 14540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14541  }
 14542  
 14543  // GoogleCloudDialogflowV2SuggestConversationSummaryRequest: The request
 14544  // message for Conversations.SuggestConversationSummary.
 14545  type GoogleCloudDialogflowV2SuggestConversationSummaryRequest struct {
 14546  	// AssistQueryParams: Parameters for a human assist query. Only used for
 14547  	// POC/demo purpose.
 14548  	AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
 14549  	// ContextSize: Max number of messages prior to and including [latest_message]
 14550  	// to use as context when compiling the suggestion. By default 500 and at most
 14551  	// 1000.
 14552  	ContextSize int64 `json:"contextSize,omitempty"`
 14553  	// LatestMessage: The name of the latest conversation message used as context
 14554  	// for compiling suggestion. If empty, the latest message of the conversation
 14555  	// will be used. Format: `projects//locations//conversations//messages/`.
 14556  	LatestMessage string `json:"latestMessage,omitempty"`
 14557  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 14558  	// unconditionally include in API requests. By default, fields with empty or
 14559  	// default values are 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. "AssistQueryParams") to include in
 14564  	// API requests with the JSON null value. By default, fields with empty values
 14565  	// are 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 *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) MarshalJSON() ([]byte, error) {
 14571  	type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryRequest
 14572  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14573  }
 14574  
 14575  // GoogleCloudDialogflowV2SuggestConversationSummaryResponse: The response
 14576  // message for Conversations.SuggestConversationSummary.
 14577  type GoogleCloudDialogflowV2SuggestConversationSummaryResponse struct {
 14578  	// ContextSize: Number of messages prior to and including
 14579  	// last_conversation_message used to compile the suggestion. It may be smaller
 14580  	// than the SuggestSummaryRequest.context_size field in the request if there
 14581  	// weren't that many messages in the conversation.
 14582  	ContextSize int64 `json:"contextSize,omitempty"`
 14583  	// LatestMessage: The name of the latest conversation message used as context
 14584  	// for compiling suggestion. Format:
 14585  	// `projects//locations//conversations//messages/`.
 14586  	LatestMessage string `json:"latestMessage,omitempty"`
 14587  	// Summary: Generated summary.
 14588  	Summary *GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary `json:"summary,omitempty"`
 14589  
 14590  	// ServerResponse contains the HTTP response code and headers from the server.
 14591  	googleapi.ServerResponse `json:"-"`
 14592  	// ForceSendFields is a list of field names (e.g. "ContextSize") 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. "ContextSize") to include in API
 14599  	// requests with the JSON null value. By default, fields with empty values are
 14600  	// 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 *GoogleCloudDialogflowV2SuggestConversationSummaryResponse) MarshalJSON() ([]byte, error) {
 14606  	type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryResponse
 14607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14608  }
 14609  
 14610  // GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary: Generated
 14611  // summary for a conversation.
 14612  type GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary struct {
 14613  	// AnswerRecord: The name of the answer record. Format:
 14614  	// "projects//answerRecords/"
 14615  	AnswerRecord string `json:"answerRecord,omitempty"`
 14616  	// BaselineModelVersion: The baseline model version used to generate this
 14617  	// summary. It is empty if a baseline model was not used to generate this
 14618  	// summary.
 14619  	BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
 14620  	// Text: The summary content that is concatenated into one string.
 14621  	Text string `json:"text,omitempty"`
 14622  	// TextSections: The summary content that is divided into sections. The key is
 14623  	// the section's name and the value is the section's content. There is no
 14624  	// specific format for the key or value.
 14625  	TextSections map[string]string `json:"textSections,omitempty"`
 14626  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 14627  	// unconditionally include in API requests. By default, fields with empty or
 14628  	// default values are omitted from API requests. See
 14629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14630  	// details.
 14631  	ForceSendFields []string `json:"-"`
 14632  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 14633  	// requests with the JSON null value. By default, fields with empty values are
 14634  	// omitted from API requests. See
 14635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14636  	NullFields []string `json:"-"`
 14637  }
 14638  
 14639  func (s *GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary) MarshalJSON() ([]byte, error) {
 14640  	type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary
 14641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14642  }
 14643  
 14644  // GoogleCloudDialogflowV2SuggestFaqAnswersRequest: The request message for
 14645  // Participants.SuggestFaqAnswers.
 14646  type GoogleCloudDialogflowV2SuggestFaqAnswersRequest struct {
 14647  	// AssistQueryParams: Parameters for a human assist query.
 14648  	AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
 14649  	// ContextSize: Optional. Max number of messages prior to and including
 14650  	// [latest_message] to use as context when compiling the suggestion. By default
 14651  	// 20 and at most 50.
 14652  	ContextSize int64 `json:"contextSize,omitempty"`
 14653  	// LatestMessage: Optional. The name of the latest conversation message to
 14654  	// compile suggestion for. If empty, it will be the latest message of the
 14655  	// conversation. Format: `projects//locations//conversations//messages/`.
 14656  	LatestMessage string `json:"latestMessage,omitempty"`
 14657  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 14658  	// unconditionally include in API requests. By default, fields with empty or
 14659  	// default values are omitted from API requests. See
 14660  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14661  	// details.
 14662  	ForceSendFields []string `json:"-"`
 14663  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
 14664  	// API requests with the JSON null value. By default, fields with empty values
 14665  	// are omitted from API requests. See
 14666  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14667  	NullFields []string `json:"-"`
 14668  }
 14669  
 14670  func (s *GoogleCloudDialogflowV2SuggestFaqAnswersRequest) MarshalJSON() ([]byte, error) {
 14671  	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersRequest
 14672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14673  }
 14674  
 14675  // GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message for
 14676  // Participants.SuggestFaqAnswers.
 14677  type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
 14678  	// ContextSize: Number of messages prior to and including latest_message to
 14679  	// compile the suggestion. It may be smaller than the
 14680  	// SuggestFaqAnswersRequest.context_size field in the request if there aren't
 14681  	// that many messages in the conversation.
 14682  	ContextSize int64 `json:"contextSize,omitempty"`
 14683  	// FaqAnswers: Answers extracted from FAQ documents.
 14684  	FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
 14685  	// LatestMessage: The name of the latest conversation message used to compile
 14686  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 14687  	LatestMessage string `json:"latestMessage,omitempty"`
 14688  
 14689  	// ServerResponse contains the HTTP response code and headers from the server.
 14690  	googleapi.ServerResponse `json:"-"`
 14691  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 14692  	// unconditionally include in API requests. By default, fields with empty or
 14693  	// default values are omitted from API requests. See
 14694  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14695  	// details.
 14696  	ForceSendFields []string `json:"-"`
 14697  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 14698  	// requests with the JSON null value. By default, fields with empty values are
 14699  	// omitted from API requests. See
 14700  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14701  	NullFields []string `json:"-"`
 14702  }
 14703  
 14704  func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
 14705  	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
 14706  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14707  }
 14708  
 14709  // GoogleCloudDialogflowV2SuggestSmartRepliesRequest: The request message for
 14710  // Participants.SuggestSmartReplies.
 14711  type GoogleCloudDialogflowV2SuggestSmartRepliesRequest struct {
 14712  	// ContextSize: Max number of messages prior to and including [latest_message]
 14713  	// to use as context when compiling the suggestion. By default 20 and at most
 14714  	// 50.
 14715  	ContextSize int64 `json:"contextSize,omitempty"`
 14716  	// CurrentTextInput: The current natural language text segment to compile
 14717  	// suggestion for. This provides a way for user to get follow up smart reply
 14718  	// suggestion after a smart reply selection, without sending a text message.
 14719  	CurrentTextInput *GoogleCloudDialogflowV2TextInput `json:"currentTextInput,omitempty"`
 14720  	// LatestMessage: The name of the latest conversation message to compile
 14721  	// suggestion for. If empty, it will be the latest message of the conversation.
 14722  	// Format: `projects//locations//conversations//messages/`.
 14723  	LatestMessage string `json:"latestMessage,omitempty"`
 14724  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 14725  	// unconditionally include in API requests. By default, fields with empty or
 14726  	// default values are omitted from API requests. See
 14727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14728  	// details.
 14729  	ForceSendFields []string `json:"-"`
 14730  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 14731  	// requests with the JSON null value. By default, fields with empty values are
 14732  	// omitted from API requests. See
 14733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14734  	NullFields []string `json:"-"`
 14735  }
 14736  
 14737  func (s *GoogleCloudDialogflowV2SuggestSmartRepliesRequest) MarshalJSON() ([]byte, error) {
 14738  	type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesRequest
 14739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14740  }
 14741  
 14742  // GoogleCloudDialogflowV2SuggestSmartRepliesResponse: The response message for
 14743  // Participants.SuggestSmartReplies.
 14744  type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
 14745  	// ContextSize: Number of messages prior to and including latest_message to
 14746  	// compile the suggestion. It may be smaller than the
 14747  	// SuggestSmartRepliesRequest.context_size field in the request if there aren't
 14748  	// that many messages in the conversation.
 14749  	ContextSize int64 `json:"contextSize,omitempty"`
 14750  	// LatestMessage: The name of the latest conversation message used to compile
 14751  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 14752  	LatestMessage string `json:"latestMessage,omitempty"`
 14753  	// SmartReplyAnswers: Output only. Multiple reply options provided by smart
 14754  	// reply service. The order is based on the rank of the model prediction. The
 14755  	// maximum number of the returned replies is set in SmartReplyConfig.
 14756  	SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
 14757  
 14758  	// ServerResponse contains the HTTP response code and headers from the server.
 14759  	googleapi.ServerResponse `json:"-"`
 14760  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 14761  	// unconditionally include in API requests. By default, fields with empty or
 14762  	// default values are omitted from API requests. See
 14763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14764  	// details.
 14765  	ForceSendFields []string `json:"-"`
 14766  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 14767  	// requests with the JSON null value. By default, fields with empty values are
 14768  	// omitted from API requests. See
 14769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14770  	NullFields []string `json:"-"`
 14771  }
 14772  
 14773  func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
 14774  	type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
 14775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14776  }
 14777  
 14778  // GoogleCloudDialogflowV2SuggestionFeature: The type of Human Agent Assistant
 14779  // API suggestion to perform, and the maximum number of results to return for
 14780  // that type. Multiple `Feature` objects can be specified in the `features`
 14781  // list.
 14782  type GoogleCloudDialogflowV2SuggestionFeature struct {
 14783  	// Type: Type of Human Agent Assistant API feature to request.
 14784  	//
 14785  	// Possible values:
 14786  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 14787  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 14788  	//   "FAQ" - Run FAQ model for chat.
 14789  	//   "SMART_REPLY" - Run smart reply model for chat.
 14790  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 14791  	// text generated query.
 14792  	Type string `json:"type,omitempty"`
 14793  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
 14794  	// include in API requests. By default, fields with empty or default values are
 14795  	// omitted from API requests. See
 14796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14797  	// details.
 14798  	ForceSendFields []string `json:"-"`
 14799  	// NullFields is a list of field names (e.g. "Type") to include in API requests
 14800  	// with the JSON null value. By default, fields with empty values are omitted
 14801  	// from API requests. See
 14802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14803  	NullFields []string `json:"-"`
 14804  }
 14805  
 14806  func (s *GoogleCloudDialogflowV2SuggestionFeature) MarshalJSON() ([]byte, error) {
 14807  	type NoMethod GoogleCloudDialogflowV2SuggestionFeature
 14808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14809  }
 14810  
 14811  // GoogleCloudDialogflowV2SuggestionInput: Represents the selection of a
 14812  // suggestion.
 14813  type GoogleCloudDialogflowV2SuggestionInput struct {
 14814  	// AnswerRecord: Required. The ID of a suggestion selected by the human agent.
 14815  	// The suggestion(s) were generated in a previous call to request Dialogflow
 14816  	// assist. The format is: `projects//locations//answerRecords/` where is an
 14817  	// alphanumeric string.
 14818  	AnswerRecord string `json:"answerRecord,omitempty"`
 14819  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 14820  	// unconditionally include in API requests. By default, fields with empty or
 14821  	// default values are omitted from API requests. See
 14822  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14823  	// details.
 14824  	ForceSendFields []string `json:"-"`
 14825  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 14826  	// requests with the JSON null value. By default, fields with empty values are
 14827  	// omitted from API requests. See
 14828  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14829  	NullFields []string `json:"-"`
 14830  }
 14831  
 14832  func (s *GoogleCloudDialogflowV2SuggestionInput) MarshalJSON() ([]byte, error) {
 14833  	type NoMethod GoogleCloudDialogflowV2SuggestionInput
 14834  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14835  }
 14836  
 14837  // GoogleCloudDialogflowV2SuggestionResult: One response of different type of
 14838  // suggestion response which is used in the response of
 14839  // Participants.AnalyzeContent and Participants.AnalyzeContent, as well as
 14840  // HumanAgentAssistantEvent.
 14841  type GoogleCloudDialogflowV2SuggestionResult struct {
 14842  	// Error: Error status if the request failed.
 14843  	Error *GoogleRpcStatus `json:"error,omitempty"`
 14844  	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
 14845  	// ARTICLE_SUGGESTION.
 14846  	SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
 14847  	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for
 14848  	// FAQ_ANSWER.
 14849  	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
 14850  	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for
 14851  	// SMART_REPLY.
 14852  	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
 14853  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 14854  	// include in API requests. By default, fields with empty or default values are
 14855  	// omitted from API requests. See
 14856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14857  	// details.
 14858  	ForceSendFields []string `json:"-"`
 14859  	// NullFields is a list of field names (e.g. "Error") to include in API
 14860  	// requests with the JSON null value. By default, fields with empty values are
 14861  	// omitted from API requests. See
 14862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14863  	NullFields []string `json:"-"`
 14864  }
 14865  
 14866  func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
 14867  	type NoMethod GoogleCloudDialogflowV2SuggestionResult
 14868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14869  }
 14870  
 14871  // GoogleCloudDialogflowV2SynthesizeSpeechConfig: Configuration of how speech
 14872  // should be synthesized.
 14873  type GoogleCloudDialogflowV2SynthesizeSpeechConfig struct {
 14874  	// EffectsProfileId: Optional. An identifier which selects 'audio effects'
 14875  	// profiles that are applied on (post synthesized) text to speech. Effects are
 14876  	// applied on top of each other in the order they are given.
 14877  	EffectsProfileId []string `json:"effectsProfileId,omitempty"`
 14878  	// Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means
 14879  	// increase 20 semitones from the original pitch. -20 means decrease 20
 14880  	// semitones from the original pitch.
 14881  	Pitch float64 `json:"pitch,omitempty"`
 14882  	// SpeakingRate: Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0
 14883  	// is the normal native speed supported by the specific voice. 2.0 is twice as
 14884  	// fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
 14885  	// speed. Any other values < 0.25 or > 4.0 will return an error.
 14886  	SpeakingRate float64 `json:"speakingRate,omitempty"`
 14887  	// Voice: Optional. The desired voice of the synthesized audio.
 14888  	Voice *GoogleCloudDialogflowV2VoiceSelectionParams `json:"voice,omitempty"`
 14889  	// VolumeGainDb: Optional. Volume gain (in dB) of the normal native volume
 14890  	// supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
 14891  	// set to a value of 0.0 (dB), will play at normal native signal amplitude. A
 14892  	// value of -6.0 (dB) will play at approximately half the amplitude of the
 14893  	// normal native signal amplitude. A value of +6.0 (dB) will play at
 14894  	// approximately twice the amplitude of the normal native signal amplitude. We
 14895  	// strongly recommend not to exceed +10 (dB) as there's usually no effective
 14896  	// increase in loudness for any value greater than that.
 14897  	VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
 14898  	// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to
 14899  	// unconditionally include in API requests. By default, fields with empty or
 14900  	// default values are omitted from API requests. See
 14901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14902  	// details.
 14903  	ForceSendFields []string `json:"-"`
 14904  	// NullFields is a list of field names (e.g. "EffectsProfileId") to include in
 14905  	// API requests with the JSON null value. By default, fields with empty values
 14906  	// are omitted from API requests. See
 14907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14908  	NullFields []string `json:"-"`
 14909  }
 14910  
 14911  func (s *GoogleCloudDialogflowV2SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
 14912  	type NoMethod GoogleCloudDialogflowV2SynthesizeSpeechConfig
 14913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14914  }
 14915  
 14916  func (s *GoogleCloudDialogflowV2SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
 14917  	type NoMethod GoogleCloudDialogflowV2SynthesizeSpeechConfig
 14918  	var s1 struct {
 14919  		Pitch        gensupport.JSONFloat64 `json:"pitch"`
 14920  		SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
 14921  		VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
 14922  		*NoMethod
 14923  	}
 14924  	s1.NoMethod = (*NoMethod)(s)
 14925  	if err := json.Unmarshal(data, &s1); err != nil {
 14926  		return err
 14927  	}
 14928  	s.Pitch = float64(s1.Pitch)
 14929  	s.SpeakingRate = float64(s1.SpeakingRate)
 14930  	s.VolumeGainDb = float64(s1.VolumeGainDb)
 14931  	return nil
 14932  }
 14933  
 14934  // GoogleCloudDialogflowV2TextInput: Auxiliary proto messages. Represents the
 14935  // natural language text to be processed.
 14936  type GoogleCloudDialogflowV2TextInput struct {
 14937  	// LanguageCode: Required. The language of this conversational query. See
 14938  	// Language Support
 14939  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 14940  	// the currently supported language codes. Note that queries in the same
 14941  	// session do not necessarily need to specify the same language.
 14942  	LanguageCode string `json:"languageCode,omitempty"`
 14943  	// Text: Required. The UTF-8 encoded natural language text to be processed.
 14944  	// Text length must not exceed 256 characters for virtual agent interactions.
 14945  	Text string `json:"text,omitempty"`
 14946  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 14947  	// unconditionally include in API requests. By default, fields with empty or
 14948  	// default values are omitted from API requests. See
 14949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14950  	// details.
 14951  	ForceSendFields []string `json:"-"`
 14952  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 14953  	// requests with the JSON null value. By default, fields with empty values are
 14954  	// omitted from API requests. See
 14955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14956  	NullFields []string `json:"-"`
 14957  }
 14958  
 14959  func (s *GoogleCloudDialogflowV2TextInput) MarshalJSON() ([]byte, error) {
 14960  	type NoMethod GoogleCloudDialogflowV2TextInput
 14961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14962  }
 14963  
 14964  // GoogleCloudDialogflowV2TextToSpeechSettings: Instructs the speech
 14965  // synthesizer on how to generate the output audio content.
 14966  type GoogleCloudDialogflowV2TextToSpeechSettings struct {
 14967  	// EnableTextToSpeech: Optional. Indicates whether text to speech is enabled.
 14968  	// Even when this field is false, other settings in this proto are still
 14969  	// retained.
 14970  	EnableTextToSpeech bool `json:"enableTextToSpeech,omitempty"`
 14971  	// OutputAudioEncoding: Required. Audio encoding of the synthesized audio
 14972  	// content.
 14973  	//
 14974  	// Possible values:
 14975  	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
 14976  	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
 14977  	// little-endian samples (Linear PCM). Audio content returned as LINEAR16 also
 14978  	// contains a WAV header.
 14979  	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
 14980  	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
 14981  	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an ogg
 14982  	// container. The result will be a file which can be played natively on
 14983  	// Android, and in browsers (at least Chrome and Firefox). The quality of the
 14984  	// encoding is considerably higher than MP3 while using approximately the same
 14985  	// bitrate.
 14986  	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
 14987  	// samples using G.711 PCMU/mu-law.
 14988  	OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"`
 14989  	// SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this
 14990  	// audio. If not provided, then the synthesizer will use the default sample
 14991  	// rate based on the audio encoding. If this is different from the voice's
 14992  	// natural sample rate, then the synthesizer will honor this request by
 14993  	// converting to the desired sample rate (which might result in worse audio
 14994  	// quality).
 14995  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
 14996  	// SynthesizeSpeechConfigs: Optional. Configuration of how speech should be
 14997  	// synthesized, mapping from language
 14998  	// (https://cloud.google.com/dialogflow/docs/reference/language) to
 14999  	// SynthesizeSpeechConfig.
 15000  	SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
 15001  	// ForceSendFields is a list of field names (e.g. "EnableTextToSpeech") to
 15002  	// unconditionally include in API requests. By default, fields with empty or
 15003  	// default values are omitted from API requests. See
 15004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15005  	// details.
 15006  	ForceSendFields []string `json:"-"`
 15007  	// NullFields is a list of field names (e.g. "EnableTextToSpeech") to include
 15008  	// in API requests with the JSON null value. By default, fields with empty
 15009  	// values are omitted from API requests. See
 15010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15011  	NullFields []string `json:"-"`
 15012  }
 15013  
 15014  func (s *GoogleCloudDialogflowV2TextToSpeechSettings) MarshalJSON() ([]byte, error) {
 15015  	type NoMethod GoogleCloudDialogflowV2TextToSpeechSettings
 15016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15017  }
 15018  
 15019  // GoogleCloudDialogflowV2TrainAgentRequest: The request message for
 15020  // Agents.TrainAgent.
 15021  type GoogleCloudDialogflowV2TrainAgentRequest struct {
 15022  }
 15023  
 15024  // GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata: Metadata
 15025  // for a ConversationModels.UndeployConversationModel operation.
 15026  type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
 15027  	// ConversationModel: The resource name of the conversation model. Format:
 15028  	// `projects//conversationModels/`
 15029  	ConversationModel string `json:"conversationModel,omitempty"`
 15030  	// CreateTime: Timestamp when the request to undeploy conversation model was
 15031  	// submitted. The time is measured on server side.
 15032  	CreateTime string `json:"createTime,omitempty"`
 15033  	// ForceSendFields is a list of field names (e.g. "ConversationModel") 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. "ConversationModel") to include in
 15040  	// API requests with the JSON null value. By default, fields with empty values
 15041  	// are 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 *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
 15047  	type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
 15048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15049  }
 15050  
 15051  // GoogleCloudDialogflowV2UndeployConversationModelRequest: The request message
 15052  // for ConversationModels.UndeployConversationModel
 15053  type GoogleCloudDialogflowV2UndeployConversationModelRequest struct {
 15054  }
 15055  
 15056  // GoogleCloudDialogflowV2ValidationError: Represents a single validation
 15057  // error.
 15058  type GoogleCloudDialogflowV2ValidationError struct {
 15059  	// Entries: The names of the entries that the error is associated with. Format:
 15060  	// - `projects//agent`, if the error is associated with the entire agent. -
 15061  	// `projects//agent/intents/`, if the error is associated with certain intents.
 15062  	// - `projects//agent/intents//trainingPhrases/`, if the error is associated
 15063  	// with certain intent training phrases. -
 15064  	// `projects//agent/intents//parameters/`, if the error is associated with
 15065  	// certain intent parameters. - `projects//agent/entities/`, if the error is
 15066  	// associated with certain entities.
 15067  	Entries []string `json:"entries,omitempty"`
 15068  	// ErrorMessage: The detailed error message.
 15069  	ErrorMessage string `json:"errorMessage,omitempty"`
 15070  	// Severity: The severity of the error.
 15071  	//
 15072  	// Possible values:
 15073  	//   "SEVERITY_UNSPECIFIED" - Not specified. This value should never be used.
 15074  	//   "INFO" - The agent doesn't follow Dialogflow best practices.
 15075  	//   "WARNING" - The agent may not behave as expected.
 15076  	//   "ERROR" - The agent may experience partial failures.
 15077  	//   "CRITICAL" - The agent may completely fail.
 15078  	Severity string `json:"severity,omitempty"`
 15079  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 15080  	// include in API requests. By default, fields with empty or default values are
 15081  	// omitted from API requests. See
 15082  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15083  	// details.
 15084  	ForceSendFields []string `json:"-"`
 15085  	// NullFields is a list of field names (e.g. "Entries") to include in API
 15086  	// requests with the JSON null value. By default, fields with empty values are
 15087  	// omitted from API requests. See
 15088  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15089  	NullFields []string `json:"-"`
 15090  }
 15091  
 15092  func (s *GoogleCloudDialogflowV2ValidationError) MarshalJSON() ([]byte, error) {
 15093  	type NoMethod GoogleCloudDialogflowV2ValidationError
 15094  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15095  }
 15096  
 15097  // GoogleCloudDialogflowV2ValidationResult: Represents the output of agent
 15098  // validation.
 15099  type GoogleCloudDialogflowV2ValidationResult struct {
 15100  	// ValidationErrors: Contains all validation errors.
 15101  	ValidationErrors []*GoogleCloudDialogflowV2ValidationError `json:"validationErrors,omitempty"`
 15102  
 15103  	// ServerResponse contains the HTTP response code and headers from the server.
 15104  	googleapi.ServerResponse `json:"-"`
 15105  	// ForceSendFields is a list of field names (e.g. "ValidationErrors") to
 15106  	// unconditionally include in API requests. By default, fields with empty or
 15107  	// default values are omitted from API requests. See
 15108  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15109  	// details.
 15110  	ForceSendFields []string `json:"-"`
 15111  	// NullFields is a list of field names (e.g. "ValidationErrors") to include in
 15112  	// API requests with the JSON null value. By default, fields with empty values
 15113  	// are omitted from API requests. See
 15114  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15115  	NullFields []string `json:"-"`
 15116  }
 15117  
 15118  func (s *GoogleCloudDialogflowV2ValidationResult) MarshalJSON() ([]byte, error) {
 15119  	type NoMethod GoogleCloudDialogflowV2ValidationResult
 15120  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15121  }
 15122  
 15123  // GoogleCloudDialogflowV2Version: You can create multiple versions of your
 15124  // agent and publish them to separate environments. When you edit an agent, you
 15125  // are editing the draft agent. At any point, you can save the draft agent as
 15126  // an agent version, which is an immutable snapshot of your agent. When you
 15127  // save the draft agent, it is published to the default environment. When you
 15128  // create agent versions, you can publish them to custom environments. You can
 15129  // create a variety of custom environments for: - testing - development -
 15130  // production - etc. For more information, see the versions and environments
 15131  // guide (https://cloud.google.com/dialogflow/docs/agents-versions).
 15132  type GoogleCloudDialogflowV2Version struct {
 15133  	// CreateTime: Output only. The creation time of this version. This field is
 15134  	// read-only, i.e., it cannot be set by create and update methods.
 15135  	CreateTime string `json:"createTime,omitempty"`
 15136  	// Description: Optional. The developer-provided description of this version.
 15137  	Description string `json:"description,omitempty"`
 15138  	// Name: Output only. The unique identifier of this agent version. Supported
 15139  	// formats: - `projects//agent/versions/` -
 15140  	// `projects//locations//agent/versions/`
 15141  	Name string `json:"name,omitempty"`
 15142  	// Status: Output only. The status of this version. This field is read-only and
 15143  	// cannot be set by create and update methods.
 15144  	//
 15145  	// Possible values:
 15146  	//   "VERSION_STATUS_UNSPECIFIED" - Not specified. This value is not used.
 15147  	//   "IN_PROGRESS" - Version is not ready to serve (e.g. training is in
 15148  	// progress).
 15149  	//   "READY" - Version is ready to serve.
 15150  	//   "FAILED" - Version training failed.
 15151  	Status string `json:"status,omitempty"`
 15152  	// VersionNumber: Output only. The sequential number of this version. This
 15153  	// field is read-only which means it cannot be set by create and update
 15154  	// methods.
 15155  	VersionNumber int64 `json:"versionNumber,omitempty"`
 15156  
 15157  	// ServerResponse contains the HTTP response code and headers from the server.
 15158  	googleapi.ServerResponse `json:"-"`
 15159  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 15160  	// unconditionally include in API requests. By default, fields with empty or
 15161  	// default values are omitted from API requests. See
 15162  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15163  	// details.
 15164  	ForceSendFields []string `json:"-"`
 15165  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 15166  	// requests with the JSON null value. By default, fields with empty values are
 15167  	// omitted from API requests. See
 15168  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15169  	NullFields []string `json:"-"`
 15170  }
 15171  
 15172  func (s *GoogleCloudDialogflowV2Version) MarshalJSON() ([]byte, error) {
 15173  	type NoMethod GoogleCloudDialogflowV2Version
 15174  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15175  }
 15176  
 15177  // GoogleCloudDialogflowV2VoiceSelectionParams: Description of which voice to
 15178  // use for speech synthesis.
 15179  type GoogleCloudDialogflowV2VoiceSelectionParams struct {
 15180  	// Name: Optional. The name of the voice. If not set, the service will choose a
 15181  	// voice based on the other parameters such as language_code and ssml_gender.
 15182  	Name string `json:"name,omitempty"`
 15183  	// SsmlGender: Optional. The preferred gender of the voice. If not set, the
 15184  	// service will choose a voice based on the other parameters such as
 15185  	// language_code and name. Note that this is only a preference, not
 15186  	// requirement. If a voice of the appropriate gender is not available, the
 15187  	// synthesizer should substitute a voice with a different gender rather than
 15188  	// failing the request.
 15189  	//
 15190  	// Possible values:
 15191  	//   "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which means that
 15192  	// the client doesn't care which gender the selected voice will have.
 15193  	//   "SSML_VOICE_GENDER_MALE" - A male voice.
 15194  	//   "SSML_VOICE_GENDER_FEMALE" - A female voice.
 15195  	//   "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice.
 15196  	SsmlGender string `json:"ssmlGender,omitempty"`
 15197  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 15198  	// include in API requests. By default, fields with empty or default values are
 15199  	// omitted from API requests. See
 15200  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15201  	// details.
 15202  	ForceSendFields []string `json:"-"`
 15203  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 15204  	// with the JSON null value. By default, fields with empty values are omitted
 15205  	// from API requests. See
 15206  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15207  	NullFields []string `json:"-"`
 15208  }
 15209  
 15210  func (s *GoogleCloudDialogflowV2VoiceSelectionParams) MarshalJSON() ([]byte, error) {
 15211  	type NoMethod GoogleCloudDialogflowV2VoiceSelectionParams
 15212  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15213  }
 15214  
 15215  // GoogleCloudDialogflowV2WebhookRequest: The request message for a webhook
 15216  // call.
 15217  type GoogleCloudDialogflowV2WebhookRequest struct {
 15218  	// OriginalDetectIntentRequest: Optional. The contents of the original request
 15219  	// that was passed to `[Streaming]DetectIntent` call.
 15220  	OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
 15221  	// QueryResult: The result of the conversational query or event processing.
 15222  	// Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
 15223  	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
 15224  	// ResponseId: The unique identifier of the response. Contains the same value
 15225  	// as `[Streaming]DetectIntentResponse.response_id`.
 15226  	ResponseId string `json:"responseId,omitempty"`
 15227  	// Session: The unique identifier of detectIntent request session. Can be used
 15228  	// to identify end-user inside webhook implementation. Format:
 15229  	// `projects//agent/sessions/`, or
 15230  	// `projects//agent/environments//users//sessions/`.
 15231  	Session string `json:"session,omitempty"`
 15232  	// ForceSendFields is a list of field names (e.g.
 15233  	// "OriginalDetectIntentRequest") to unconditionally include in API requests.
 15234  	// By default, fields with empty or default values are omitted from API
 15235  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 15236  	// for more details.
 15237  	ForceSendFields []string `json:"-"`
 15238  	// NullFields is a list of field names (e.g. "OriginalDetectIntentRequest") to
 15239  	// include in API requests with the JSON null value. By default, fields with
 15240  	// empty values are omitted from API requests. See
 15241  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15242  	NullFields []string `json:"-"`
 15243  }
 15244  
 15245  func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
 15246  	type NoMethod GoogleCloudDialogflowV2WebhookRequest
 15247  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15248  }
 15249  
 15250  // GoogleCloudDialogflowV2WebhookResponse: The response message for a webhook
 15251  // call. This response is validated by the Dialogflow server. If validation
 15252  // fails, an error will be returned in the QueryResult.diagnostic_info field.
 15253  // Setting JSON fields to an empty value with the wrong type is a common error.
 15254  // To avoid this error: - Use "" for empty strings - Use `{}` or `null` for
 15255  // empty objects - Use `[]` or `null` for empty arrays For more information,
 15256  // see the Protocol Buffers Language Guide
 15257  // (https://developers.google.com/protocol-buffers/docs/proto3#json).
 15258  type GoogleCloudDialogflowV2WebhookResponse struct {
 15259  	// FollowupEventInput: Optional. Invokes the supplied events. When this field
 15260  	// is set, Dialogflow ignores the `fulfillment_text`, `fulfillment_messages`,
 15261  	// and `payload` fields.
 15262  	FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
 15263  	// FulfillmentMessages: Optional. The rich response messages intended for the
 15264  	// end-user. When provided, Dialogflow uses this field to populate
 15265  	// QueryResult.fulfillment_messages sent to the integration or API caller.
 15266  	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
 15267  	// FulfillmentText: Optional. The text response message intended for the
 15268  	// end-user. It is recommended to use `fulfillment_messages.text.text[0]`
 15269  	// instead. When provided, Dialogflow uses this field to populate
 15270  	// QueryResult.fulfillment_text sent to the integration or API caller.
 15271  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 15272  	// OutputContexts: Optional. The collection of output contexts that will
 15273  	// overwrite currently active contexts for the session and reset their
 15274  	// lifespans. When provided, Dialogflow uses this field to populate
 15275  	// QueryResult.output_contexts sent to the integration or API caller.
 15276  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 15277  	// Payload: Optional. This field can be used to pass custom data from your
 15278  	// webhook to the integration or API caller. Arbitrary JSON objects are
 15279  	// supported. When provided, Dialogflow uses this field to populate
 15280  	// QueryResult.webhook_payload sent to the integration or API caller. This
 15281  	// field is also used by the Google Assistant integration
 15282  	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
 15283  	// response messages. See the format definition at Google Assistant Dialogflow
 15284  	// webhook format
 15285  	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
 15286  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 15287  	// SessionEntityTypes: Optional. Additional session entity types to replace or
 15288  	// extend developer entity types with. The entity synonyms apply to all
 15289  	// languages and persist for the session. Setting this data from a webhook
 15290  	// overwrites the session entity types that have been set using `detectIntent`,
 15291  	// `streamingDetectIntent` or SessionEntityType management methods.
 15292  	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
 15293  	// Source: Optional. A custom field used to identify the webhook source.
 15294  	// Arbitrary strings are supported. When provided, Dialogflow uses this field
 15295  	// to populate QueryResult.webhook_source sent to the integration or API
 15296  	// caller.
 15297  	Source string `json:"source,omitempty"`
 15298  	// ForceSendFields is a list of field names (e.g. "FollowupEventInput") to
 15299  	// unconditionally include in API requests. By default, fields with empty or
 15300  	// default values are omitted from API requests. See
 15301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15302  	// details.
 15303  	ForceSendFields []string `json:"-"`
 15304  	// NullFields is a list of field names (e.g. "FollowupEventInput") to include
 15305  	// in API requests with the JSON null value. By default, fields with empty
 15306  	// values are omitted from API requests. See
 15307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15308  	NullFields []string `json:"-"`
 15309  }
 15310  
 15311  func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
 15312  	type NoMethod GoogleCloudDialogflowV2WebhookResponse
 15313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15314  }
 15315  
 15316  // GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part of a
 15317  // message possibly annotated with an entity. The part can be an entity or
 15318  // purely a part of the message between two entities or message start/end.
 15319  type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
 15320  	// EntityType: Optional. The Dialogflow system entity type
 15321  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 15322  	// message part. If this is empty, Dialogflow could not annotate the phrase
 15323  	// part with a system entity.
 15324  	EntityType string `json:"entityType,omitempty"`
 15325  	// FormattedValue: Optional. The Dialogflow system entity formatted value
 15326  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 15327  	// message part. For example for a system entity of type `@sys.unit-currency`,
 15328  	// this may contain: { "amount": 5, "currency": "USD" }
 15329  	FormattedValue interface{} `json:"formattedValue,omitempty"`
 15330  	// Text: Required. A part of a message possibly annotated with an entity.
 15331  	Text string `json:"text,omitempty"`
 15332  	// ForceSendFields is a list of field names (e.g. "EntityType") to
 15333  	// unconditionally include in API requests. By default, fields with empty or
 15334  	// default values are omitted from API requests. See
 15335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15336  	// details.
 15337  	ForceSendFields []string `json:"-"`
 15338  	// NullFields is a list of field names (e.g. "EntityType") to include in API
 15339  	// requests with the JSON null value. By default, fields with empty values are
 15340  	// omitted from API requests. See
 15341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15342  	NullFields []string `json:"-"`
 15343  }
 15344  
 15345  func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
 15346  	type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
 15347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15348  }
 15349  
 15350  // GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.
 15351  type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
 15352  	// AnswerRecord: The name of answer record, in the format of
 15353  	// "projects//locations//answerRecords/"
 15354  	AnswerRecord string `json:"answerRecord,omitempty"`
 15355  	// Metadata: A map that contains metadata about the answer and the document
 15356  	// from which it originates.
 15357  	Metadata map[string]string `json:"metadata,omitempty"`
 15358  	// Snippets: Output only. Article snippets.
 15359  	Snippets []string `json:"snippets,omitempty"`
 15360  	// Title: The article title.
 15361  	Title string `json:"title,omitempty"`
 15362  	// Uri: The article URI.
 15363  	Uri string `json:"uri,omitempty"`
 15364  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 15365  	// unconditionally include in API requests. By default, fields with empty or
 15366  	// default values are omitted from API requests. See
 15367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15368  	// details.
 15369  	ForceSendFields []string `json:"-"`
 15370  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 15371  	// requests with the JSON null value. By default, fields with empty values are
 15372  	// omitted from API requests. See
 15373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15374  	NullFields []string `json:"-"`
 15375  }
 15376  
 15377  func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
 15378  	type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
 15379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15380  }
 15381  
 15382  // GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The response
 15383  // message for EntityTypes.BatchUpdateEntityTypes.
 15384  type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
 15385  	// EntityTypes: The collection of updated or created entity types.
 15386  	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
 15387  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 15388  	// unconditionally include in API requests. By default, fields with empty or
 15389  	// default values are omitted from API requests. See
 15390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15391  	// details.
 15392  	ForceSendFields []string `json:"-"`
 15393  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 15394  	// requests with the JSON null value. By default, fields with empty values are
 15395  	// omitted from API requests. See
 15396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15397  	NullFields []string `json:"-"`
 15398  }
 15399  
 15400  func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
 15401  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
 15402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15403  }
 15404  
 15405  // GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response message
 15406  // for Intents.BatchUpdateIntents.
 15407  type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
 15408  	// Intents: The collection of updated or created intents.
 15409  	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
 15410  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 15411  	// include in API requests. By default, fields with empty or default values are
 15412  	// omitted from API requests. See
 15413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15414  	// details.
 15415  	ForceSendFields []string `json:"-"`
 15416  	// NullFields is a list of field names (e.g. "Intents") to include in API
 15417  	// requests with the JSON null value. By default, fields with empty values are
 15418  	// omitted from API requests. See
 15419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15420  	NullFields []string `json:"-"`
 15421  }
 15422  
 15423  func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
 15424  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
 15425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15426  }
 15427  
 15428  // GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata:
 15429  // Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
 15430  type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
 15431  	// ConversationProfile: The resource name of the conversation profile. Format:
 15432  	// `projects//locations//conversationProfiles/`
 15433  	ConversationProfile string `json:"conversationProfile,omitempty"`
 15434  	// CreateTime: Timestamp whe the request was created. The time is measured on
 15435  	// server side.
 15436  	CreateTime string `json:"createTime,omitempty"`
 15437  	// ParticipantRole: Required. The participant role to remove the suggestion
 15438  	// feature config. Only HUMAN_AGENT or END_USER can be used.
 15439  	//
 15440  	// Possible values:
 15441  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 15442  	//   "HUMAN_AGENT" - Participant is a human agent.
 15443  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 15444  	// Dialogflow agent.
 15445  	//   "END_USER" - Participant is an end user that has called or chatted with
 15446  	// Dialogflow services.
 15447  	ParticipantRole string `json:"participantRole,omitempty"`
 15448  	// SuggestionFeatureType: Required. The type of the suggestion feature to
 15449  	// remove.
 15450  	//
 15451  	// Possible values:
 15452  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 15453  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 15454  	//   "FAQ" - Run FAQ model.
 15455  	//   "SMART_REPLY" - Run smart reply model for chat.
 15456  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 15457  	// return automated agent response as suggestion.
 15458  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 15459  	// chat.
 15460  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 15461  	// text generated query.
 15462  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 15463  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 15464  	// unconditionally include in API requests. By default, fields with empty or
 15465  	// default values are omitted from API requests. See
 15466  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15467  	// details.
 15468  	ForceSendFields []string `json:"-"`
 15469  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 15470  	// in API requests with the JSON null value. By default, fields with empty
 15471  	// values are omitted from API requests. See
 15472  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15473  	NullFields []string `json:"-"`
 15474  }
 15475  
 15476  func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 15477  	type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
 15478  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15479  }
 15480  
 15481  // GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar to
 15482  // natural language context. If a person says to you "they are orange", you
 15483  // need context in order to understand what "they" is referring to. Similarly,
 15484  // for Dialogflow to handle an end-user expression like that, it needs to be
 15485  // provided with context in order to correctly match an intent. Using contexts,
 15486  // you can control the flow of a conversation. You can configure contexts for
 15487  // an intent by setting input and output contexts, which are identified by
 15488  // string names. When an intent is matched, any configured output contexts for
 15489  // that intent become active. While any contexts are active, Dialogflow is more
 15490  // likely to match intents that are configured with input contexts that
 15491  // correspond to the currently active contexts. For more information about
 15492  // context, see the Contexts guide
 15493  // (https://cloud.google.com/dialogflow/docs/contexts-overview).
 15494  type GoogleCloudDialogflowV2beta1Context struct {
 15495  	// LifespanCount: Optional. The number of conversational query requests after
 15496  	// which the context expires. The default is `0`. If set to `0`, the context
 15497  	// expires immediately. Contexts expire automatically after 20 minutes if there
 15498  	// are no matching queries.
 15499  	LifespanCount int64 `json:"lifespanCount,omitempty"`
 15500  	// Name: Required. The unique identifier of the context. Supported formats: -
 15501  	// `projects//agent/sessions//contexts/`, -
 15502  	// `projects//locations//agent/sessions//contexts/`, -
 15503  	// `projects//agent/environments//users//sessions//contexts/`, -
 15504  	// `projects//locations//agent/environments//users//sessions//contexts/`, The
 15505  	// `Context ID` is always converted to lowercase, may only contain characters
 15506  	// in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 15507  	// not specified, we assume default 'draft' environment. If `User ID` is not
 15508  	// specified, we assume default '-' user. The following context names are
 15509  	// reserved for internal use by Dialogflow. You should not use these contexts
 15510  	// or create contexts with these names: * `__system_counters__` *
 15511  	// `*_id_dialog_context` * `*_dialog_params_size`
 15512  	Name string `json:"name,omitempty"`
 15513  	// Parameters: Optional. The collection of parameters associated with this
 15514  	// context. Depending on your protocol or client library language, this is a
 15515  	// map, associative array, symbol table, dictionary, or JSON object composed of
 15516  	// a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 15517  	// value: parameter name * MapValue type: If parameter's entity type is a
 15518  	// composite entity then use map, otherwise, depending on the parameter value
 15519  	// type, it could be one of string, number, boolean, null, list or map. *
 15520  	// MapValue value: If parameter's entity type is a composite entity then use
 15521  	// map from composite entity property names to property values, otherwise, use
 15522  	// parameter value.
 15523  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 15524  	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
 15525  	// unconditionally include in API requests. By default, fields with empty or
 15526  	// default values are omitted from API requests. See
 15527  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15528  	// details.
 15529  	ForceSendFields []string `json:"-"`
 15530  	// NullFields is a list of field names (e.g. "LifespanCount") to include in API
 15531  	// requests with the JSON null value. By default, fields with empty values are
 15532  	// omitted from API requests. See
 15533  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15534  	NullFields []string `json:"-"`
 15535  }
 15536  
 15537  func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
 15538  	type NoMethod GoogleCloudDialogflowV2beta1Context
 15539  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15540  }
 15541  
 15542  // GoogleCloudDialogflowV2beta1ConversationEvent: Represents a notification
 15543  // sent to Pub/Sub subscribers for conversation lifecycle events.
 15544  type GoogleCloudDialogflowV2beta1ConversationEvent struct {
 15545  	// Conversation: Required. The unique identifier of the conversation this
 15546  	// notification refers to. Format: `projects//conversations/`.
 15547  	Conversation string `json:"conversation,omitempty"`
 15548  	// ErrorStatus: Optional. More detailed information about an error. Only set
 15549  	// for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
 15550  	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
 15551  	// NewMessagePayload: Payload of NEW_MESSAGE event.
 15552  	NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
 15553  	// Type: Required. The type of the event that this notification refers to.
 15554  	//
 15555  	// Possible values:
 15556  	//   "TYPE_UNSPECIFIED" - Type not set.
 15557  	//   "CONVERSATION_STARTED" - A new conversation has been opened. This is fired
 15558  	// when a telephone call is answered, or a conversation is created via the API.
 15559  	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This is
 15560  	// fired when a telephone call is terminated, or a conversation is closed via
 15561  	// the API.
 15562  	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
 15563  	// notification from Dialogflow that human intervention is required.
 15564  	//   "NEW_MESSAGE" - An existing conversation has received a new message,
 15565  	// either from API or telephony. It is configured in
 15566  	// ConversationProfile.new_message_event_notification_config
 15567  	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. In
 15568  	// general non-recoverable errors only occur if something was misconfigured in
 15569  	// the ConversationProfile corresponding to the call. After a non-recoverable
 15570  	// error, Dialogflow may stop responding. We don't fire this event: * in an API
 15571  	// call because we can directly return the error, or, * when we can recover
 15572  	// from an error.
 15573  	Type string `json:"type,omitempty"`
 15574  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 15575  	// unconditionally include in API requests. By default, fields with empty or
 15576  	// default values are omitted from API requests. See
 15577  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15578  	// details.
 15579  	ForceSendFields []string `json:"-"`
 15580  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 15581  	// requests with the JSON null value. By default, fields with empty values are
 15582  	// omitted from API requests. See
 15583  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15584  	NullFields []string `json:"-"`
 15585  }
 15586  
 15587  func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
 15588  	type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
 15589  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15590  }
 15591  
 15592  // GoogleCloudDialogflowV2beta1DialogflowAssistAnswer: Represents a Dialogflow
 15593  // assist answer.
 15594  type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
 15595  	// AnswerRecord: The name of answer record, in the format of
 15596  	// "projects//locations//answerRecords/"
 15597  	AnswerRecord string `json:"answerRecord,omitempty"`
 15598  	// IntentSuggestion: An intent suggestion generated from conversation.
 15599  	IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
 15600  	// QueryResult: Result from v2 agent.
 15601  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 15602  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 15603  	// unconditionally include in API requests. By default, fields with empty or
 15604  	// default values are omitted from API requests. See
 15605  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15606  	// details.
 15607  	ForceSendFields []string `json:"-"`
 15608  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 15609  	// requests with the JSON null value. By default, fields with empty values are
 15610  	// omitted from API requests. See
 15611  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15612  	NullFields []string `json:"-"`
 15613  }
 15614  
 15615  func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
 15616  	type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
 15617  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15618  }
 15619  
 15620  // GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a type,
 15621  // called the entity type, which dictates exactly how data from an end-user
 15622  // expression is extracted. Dialogflow provides predefined system entities that
 15623  // can match many common types of data. For example, there are system entities
 15624  // for matching dates, times, colors, email addresses, and so on. You can also
 15625  // create your own custom entities for matching custom data. For example, you
 15626  // could define a vegetable entity that can match the types of vegetables
 15627  // available for purchase with a grocery store agent. For more information, see
 15628  // the Entity guide
 15629  // (https://cloud.google.com/dialogflow/docs/entities-overview).
 15630  type GoogleCloudDialogflowV2beta1EntityType struct {
 15631  	// AutoExpansionMode: Optional. Indicates whether the entity type can be
 15632  	// automatically expanded.
 15633  	//
 15634  	// Possible values:
 15635  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
 15636  	// entity.
 15637  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
 15638  	// have not been explicitly listed in the entity.
 15639  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
 15640  	// DisplayName: Required. The name of the entity type.
 15641  	DisplayName string `json:"displayName,omitempty"`
 15642  	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during
 15643  	// classification.
 15644  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
 15645  	// Entities: Optional. The collection of entity entries associated with the
 15646  	// entity type.
 15647  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 15648  	// Kind: Required. Indicates the kind of entity type.
 15649  	//
 15650  	// Possible values:
 15651  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
 15652  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
 15653  	// reference value.
 15654  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
 15655  	// to reference values. However, list entity types can contain references to
 15656  	// other entity types (with or without aliases).
 15657  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
 15658  	// in entries values.
 15659  	Kind string `json:"kind,omitempty"`
 15660  	// Name: The unique identifier of the entity type. Required for
 15661  	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.
 15662  	// Supported formats: - `projects//agent/entityTypes/` -
 15663  	// `projects//locations//agent/entityTypes/`
 15664  	Name string `json:"name,omitempty"`
 15665  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
 15666  	// unconditionally include in API requests. By default, fields with empty or
 15667  	// default values are omitted from API requests. See
 15668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15669  	// details.
 15670  	ForceSendFields []string `json:"-"`
 15671  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
 15672  	// API requests with the JSON null value. By default, fields with empty values
 15673  	// are omitted from API requests. See
 15674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15675  	NullFields []string `json:"-"`
 15676  }
 15677  
 15678  func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
 15679  	type NoMethod GoogleCloudDialogflowV2beta1EntityType
 15680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15681  }
 15682  
 15683  // GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for an
 15684  // associated entity type.
 15685  type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
 15686  	// Synonyms: Required. A collection of value synonyms. For example, if the
 15687  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
 15688  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
 15689  	// exactly one synonym equal to `value`.
 15690  	Synonyms []string `json:"synonyms,omitempty"`
 15691  	// Value: Required. The primary value associated with this entity entry. For
 15692  	// example, if the entity type is *vegetable*, the value could be *scallions*.
 15693  	// For `KIND_MAP` entity types: * A reference value to be used in place of
 15694  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
 15695  	// references to other entity types (with or without aliases).
 15696  	Value string `json:"value,omitempty"`
 15697  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
 15698  	// unconditionally include in API requests. By default, fields with empty or
 15699  	// default values are omitted from API requests. See
 15700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15701  	// details.
 15702  	ForceSendFields []string `json:"-"`
 15703  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
 15704  	// requests with the JSON null value. By default, fields with empty values are
 15705  	// omitted from API requests. See
 15706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15707  	NullFields []string `json:"-"`
 15708  }
 15709  
 15710  func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
 15711  	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
 15712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15713  }
 15714  
 15715  // GoogleCloudDialogflowV2beta1EventInput: Events allow for matching intents by
 15716  // event name instead of the natural language input. For instance, input “ can
 15717  // trigger a personalized welcome response. The parameter `name` may be used by
 15718  // the agent in the response: "Hello #welcome_event.name! What can I do for
 15719  // you today?".
 15720  type GoogleCloudDialogflowV2beta1EventInput struct {
 15721  	// LanguageCode: Required. The language of this query. See Language Support
 15722  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 15723  	// the currently supported language codes. Note that queries in the same
 15724  	// session do not necessarily need to specify the same language. This field is
 15725  	// ignored when used in the context of a WebhookResponse.followup_event_input
 15726  	// field, because the language was already defined in the originating detect
 15727  	// intent request.
 15728  	LanguageCode string `json:"languageCode,omitempty"`
 15729  	// Name: Required. The unique identifier of the event.
 15730  	Name string `json:"name,omitempty"`
 15731  	// Parameters: The collection of parameters associated with the event.
 15732  	// Depending on your protocol or client library language, this is a map,
 15733  	// associative array, symbol table, dictionary, or JSON object composed of a
 15734  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 15735  	// value: parameter name * MapValue type: If parameter's entity type is a
 15736  	// composite entity then use map, otherwise, depending on the parameter value
 15737  	// type, it could be one of string, number, boolean, null, list or map. *
 15738  	// MapValue value: If parameter's entity type is a composite entity then use
 15739  	// map from composite entity property names to property values, otherwise, use
 15740  	// parameter value.
 15741  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 15742  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 15743  	// unconditionally include in API requests. By default, fields with empty or
 15744  	// default values are omitted from API requests. See
 15745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15746  	// details.
 15747  	ForceSendFields []string `json:"-"`
 15748  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 15749  	// requests with the JSON null value. By default, fields with empty values are
 15750  	// omitted from API requests. See
 15751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15752  	NullFields []string `json:"-"`
 15753  }
 15754  
 15755  func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
 15756  	type NoMethod GoogleCloudDialogflowV2beta1EventInput
 15757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15758  }
 15759  
 15760  // GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message for
 15761  // Agents.ExportAgent.
 15762  type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
 15763  	// AgentContent: Zip compressed raw byte content for agent.
 15764  	AgentContent string `json:"agentContent,omitempty"`
 15765  	// AgentUri: The URI to a file containing the exported agent. This field is
 15766  	// populated only if `agent_uri` is specified in `ExportAgentRequest`.
 15767  	AgentUri string `json:"agentUri,omitempty"`
 15768  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 15769  	// unconditionally include in API requests. By default, fields with empty or
 15770  	// default values are omitted from API requests. See
 15771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15772  	// details.
 15773  	ForceSendFields []string `json:"-"`
 15774  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 15775  	// requests with the JSON null value. By default, fields with empty values are
 15776  	// omitted from API requests. See
 15777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15778  	NullFields []string `json:"-"`
 15779  }
 15780  
 15781  func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
 15782  	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
 15783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15784  }
 15785  
 15786  // GoogleCloudDialogflowV2beta1ExportOperationMetadata: Metadata related to the
 15787  // Export Data Operations (e.g. ExportDocument).
 15788  type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
 15789  	// ExportedGcsDestination: Cloud Storage file path of the exported data.
 15790  	ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
 15791  	// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to
 15792  	// unconditionally include in API requests. By default, fields with empty or
 15793  	// default values are omitted from API requests. See
 15794  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15795  	// details.
 15796  	ForceSendFields []string `json:"-"`
 15797  	// NullFields is a list of field names (e.g. "ExportedGcsDestination") to
 15798  	// include in API requests with the JSON null value. By default, fields with
 15799  	// empty values are omitted from API requests. See
 15800  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15801  	NullFields []string `json:"-"`
 15802  }
 15803  
 15804  func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
 15805  	type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
 15806  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15807  }
 15808  
 15809  // GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from "frequently
 15810  // asked questions".
 15811  type GoogleCloudDialogflowV2beta1FaqAnswer struct {
 15812  	// Answer: The piece of text from the `source` knowledge base document.
 15813  	Answer string `json:"answer,omitempty"`
 15814  	// AnswerRecord: The name of answer record, in the format of
 15815  	// "projects//locations//answerRecords/"
 15816  	AnswerRecord string `json:"answerRecord,omitempty"`
 15817  	// Confidence: The system's confidence score that this Knowledge answer is a
 15818  	// good match for this conversational query, range from 0.0 (completely
 15819  	// uncertain) to 1.0 (completely certain).
 15820  	Confidence float64 `json:"confidence,omitempty"`
 15821  	// Metadata: A map that contains metadata about the answer and the document
 15822  	// from which it originates.
 15823  	Metadata map[string]string `json:"metadata,omitempty"`
 15824  	// Question: The corresponding FAQ question.
 15825  	Question string `json:"question,omitempty"`
 15826  	// Source: Indicates which Knowledge Document this answer was extracted from.
 15827  	// Format: `projects//locations//agent/knowledgeBases//documents/`.
 15828  	Source string `json:"source,omitempty"`
 15829  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 15830  	// include in API requests. By default, fields with empty or default values are
 15831  	// omitted from API requests. See
 15832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15833  	// details.
 15834  	ForceSendFields []string `json:"-"`
 15835  	// NullFields is a list of field names (e.g. "Answer") to include in API
 15836  	// requests with the JSON null value. By default, fields with empty values are
 15837  	// omitted from API requests. See
 15838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15839  	NullFields []string `json:"-"`
 15840  }
 15841  
 15842  func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
 15843  	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
 15844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15845  }
 15846  
 15847  func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
 15848  	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
 15849  	var s1 struct {
 15850  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 15851  		*NoMethod
 15852  	}
 15853  	s1.NoMethod = (*NoMethod)(s)
 15854  	if err := json.Unmarshal(data, &s1); err != nil {
 15855  		return err
 15856  	}
 15857  	s.Confidence = float64(s1.Confidence)
 15858  	return nil
 15859  }
 15860  
 15861  // GoogleCloudDialogflowV2beta1GcsDestination: Google Cloud Storage location
 15862  // for the output.
 15863  type GoogleCloudDialogflowV2beta1GcsDestination struct {
 15864  	// Uri: Required. The Google Cloud Storage URIs for the output. A URI is of the
 15865  	// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used
 15866  	// depends on the use case. The requesting user must have "write-permission" to
 15867  	// the bucket.
 15868  	Uri string `json:"uri,omitempty"`
 15869  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 15870  	// include in API requests. By default, fields with empty or default values are
 15871  	// omitted from API requests. See
 15872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15873  	// details.
 15874  	ForceSendFields []string `json:"-"`
 15875  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 15876  	// with the JSON null value. By default, fields with empty values are omitted
 15877  	// from API requests. See
 15878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15879  	NullFields []string `json:"-"`
 15880  }
 15881  
 15882  func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
 15883  	type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
 15884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15885  }
 15886  
 15887  // GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.
 15888  // Represents a notification sent to Pub/Sub subscribers for agent assistant
 15889  // events in a specific conversation.
 15890  type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
 15891  	// Conversation: The conversation this notification refers to. Format:
 15892  	// `projects//conversations/`.
 15893  	Conversation string `json:"conversation,omitempty"`
 15894  	// Participant: The participant that the suggestion is compiled for. And This
 15895  	// field is used to call Participants.ListSuggestions API. Format:
 15896  	// `projects//conversations//participants/`. It will not be set in legacy
 15897  	// workflow. HumanAgentAssistantConfig.name for more information.
 15898  	Participant string `json:"participant,omitempty"`
 15899  	// SuggestionResults: The suggestion results payload that this notification
 15900  	// refers to. It will only be set when
 15901  	// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses sets
 15902  	// to true.
 15903  	SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
 15904  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 15905  	// unconditionally include in API requests. By default, fields with empty or
 15906  	// default values are omitted from API requests. See
 15907  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15908  	// details.
 15909  	ForceSendFields []string `json:"-"`
 15910  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 15911  	// requests with the JSON null value. By default, fields with empty values are
 15912  	// omitted from API requests. See
 15913  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15914  	NullFields []string `json:"-"`
 15915  }
 15916  
 15917  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
 15918  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
 15919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15920  }
 15921  
 15922  // GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message for
 15923  // Documents.ImportDocuments.
 15924  type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
 15925  	// Warnings: Includes details about skipped documents or any other warnings.
 15926  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 15927  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 15928  	// unconditionally include in API requests. By default, fields with empty or
 15929  	// default values are omitted from API requests. See
 15930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15931  	// details.
 15932  	ForceSendFields []string `json:"-"`
 15933  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 15934  	// requests with the JSON null value. By default, fields with empty values are
 15935  	// omitted from API requests. See
 15936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15937  	NullFields []string `json:"-"`
 15938  }
 15939  
 15940  func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 15941  	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
 15942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15943  }
 15944  
 15945  // GoogleCloudDialogflowV2beta1Intent: An intent categorizes an end-user's
 15946  // intention for one conversation turn. For each agent, you define many
 15947  // intents, where your combined intents can handle a complete conversation.
 15948  // When an end-user writes or says something, referred to as an end-user
 15949  // expression or end-user input, Dialogflow matches the end-user input to the
 15950  // best intent in your agent. Matching an intent is also known as intent
 15951  // classification. For more information, see the intent guide
 15952  // (https://cloud.google.com/dialogflow/docs/intents-overview).
 15953  type GoogleCloudDialogflowV2beta1Intent struct {
 15954  	// Action: Optional. The name of the action associated with the intent. Note:
 15955  	// The action name must not contain whitespaces.
 15956  	Action string `json:"action,omitempty"`
 15957  	// DefaultResponsePlatforms: Optional. The list of platforms for which the
 15958  	// first responses will be copied from the messages in PLATFORM_UNSPECIFIED
 15959  	// (i.e. default platform).
 15960  	//
 15961  	// Possible values:
 15962  	//   "PLATFORM_UNSPECIFIED" - Not specified.
 15963  	//   "FACEBOOK" - Facebook.
 15964  	//   "SLACK" - Slack.
 15965  	//   "TELEGRAM" - Telegram.
 15966  	//   "KIK" - Kik.
 15967  	//   "SKYPE" - Skype.
 15968  	//   "LINE" - Line.
 15969  	//   "VIBER" - Viber.
 15970  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 15971  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 15972  	// -webhook-json)
 15973  	//   "TELEPHONY" - Telephony Gateway.
 15974  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 15975  	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
 15976  	// DisplayName: Required. The name of this intent.
 15977  	DisplayName string `json:"displayName,omitempty"`
 15978  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 15979  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 15980  	// this information to close interaction with an end user. Default is false.
 15981  	EndInteraction bool `json:"endInteraction,omitempty"`
 15982  	// Events: Optional. The collection of event names that trigger the intent. If
 15983  	// the collection of input contexts is not empty, all of the contexts must be
 15984  	// present in the active user session for an event to trigger this intent.
 15985  	// Event names are limited to 150 characters.
 15986  	Events []string `json:"events,omitempty"`
 15987  	// FollowupIntentInfo: Output only. Information about all followup intents that
 15988  	// have this intent as a direct or indirect parent. We populate this field only
 15989  	// in the output.
 15990  	FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
 15991  	// InputContextNames: Optional. The list of context names required for this
 15992  	// intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` -
 15993  	// `projects//locations//agent/sessions/-/contexts/`
 15994  	InputContextNames []string `json:"inputContextNames,omitempty"`
 15995  	// IsFallback: Optional. Indicates whether this is a fallback intent.
 15996  	IsFallback bool `json:"isFallback,omitempty"`
 15997  	// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in
 15998  	// to handle the interaction with the user. In most cases, when you set this
 15999  	// flag to true, you would also want to set end_interaction to true as well.
 16000  	// Default is false.
 16001  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 16002  	// Messages: Optional. The collection of rich messages corresponding to the
 16003  	// `Response` field in the Dialogflow console.
 16004  	Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
 16005  	// MlDisabled: Optional. Indicates whether Machine Learning is disabled for the
 16006  	// intent. Note: If `ml_disabled` setting is set to true, then this intent is
 16007  	// not taken into account during inference in `ML ONLY` match mode. Also,
 16008  	// auto-markup in the UI is turned off.
 16009  	MlDisabled bool `json:"mlDisabled,omitempty"`
 16010  	// MlEnabled: Optional. Indicates whether Machine Learning is enabled for the
 16011  	// intent. Note: If `ml_enabled` setting is set to false, then this intent is
 16012  	// not taken into account during inference in `ML ONLY` match mode. Also,
 16013  	// auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled`
 16014  	// field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not
 16015  	// set or false, then the default value is determined as follows: - Before
 16016  	// April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. -
 16017  	// After April 15th, 2018 the default is: ml_enabled = true / ml_disabled =
 16018  	// false.
 16019  	MlEnabled bool `json:"mlEnabled,omitempty"`
 16020  	// Name: Optional. The unique identifier of this intent. Required for
 16021  	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported
 16022  	// formats: - `projects//agent/intents/` -
 16023  	// `projects//locations//agent/intents/`
 16024  	Name string `json:"name,omitempty"`
 16025  	// OutputContexts: Optional. The collection of contexts that are activated when
 16026  	// the intent is matched. Context messages in this collection should not set
 16027  	// the parameters field. Setting the `lifespan_count` to 0 will reset the
 16028  	// context when the intent is matched. Format:
 16029  	// `projects//agent/sessions/-/contexts/`.
 16030  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 16031  	// Parameters: Optional. The collection of parameters associated with the
 16032  	// intent.
 16033  	Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
 16034  	// ParentFollowupIntentName: Optional. The unique identifier of the parent
 16035  	// intent in the chain of followup intents. You can set this field when
 16036  	// creating an intent, for example with CreateIntent or BatchUpdateIntents, in
 16037  	// order to make this intent a followup intent. It identifies the parent
 16038  	// followup intent. Format: `projects//agent/intents/`.
 16039  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 16040  	// Priority: Optional. The priority of this intent. Higher numbers represent
 16041  	// higher priorities. - If the supplied value is unspecified or 0, the service
 16042  	// translates the value to 500,000, which corresponds to the `Normal` priority
 16043  	// in the console. - If the supplied value is negative, the intent is ignored
 16044  	// in runtime detect intent requests.
 16045  	Priority int64 `json:"priority,omitempty"`
 16046  	// ResetContexts: Optional. Indicates whether to delete all contexts in the
 16047  	// current session when this intent is matched.
 16048  	ResetContexts bool `json:"resetContexts,omitempty"`
 16049  	// RootFollowupIntentName: Output only. The unique identifier of the root
 16050  	// intent in the chain of followup intents. It identifies the correct followup
 16051  	// intents chain for this intent. Format: `projects//agent/intents/`.
 16052  	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
 16053  	// TrainingPhrases: Optional. The collection of examples that the agent is
 16054  	// trained on.
 16055  	TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
 16056  	// WebhookState: Optional. Indicates whether webhooks are enabled for the
 16057  	// intent.
 16058  	//
 16059  	// Possible values:
 16060  	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the
 16061  	// intent.
 16062  	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the
 16063  	// intent.
 16064  	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent
 16065  	// and in the intent. Also, each slot filling prompt is forwarded to the
 16066  	// webhook.
 16067  	WebhookState string `json:"webhookState,omitempty"`
 16068  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 16069  	// include in API requests. By default, fields with empty or default values are
 16070  	// omitted from API requests. See
 16071  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16072  	// details.
 16073  	ForceSendFields []string `json:"-"`
 16074  	// NullFields is a list of field names (e.g. "Action") to include in API
 16075  	// requests with the JSON null value. By default, fields with empty values are
 16076  	// omitted from API requests. See
 16077  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16078  	NullFields []string `json:"-"`
 16079  }
 16080  
 16081  func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
 16082  	type NoMethod GoogleCloudDialogflowV2beta1Intent
 16083  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16084  }
 16085  
 16086  // GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a single
 16087  // followup intent in the chain.
 16088  type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
 16089  	// FollowupIntentName: The unique identifier of the followup intent. Format:
 16090  	// `projects//agent/intents/`.
 16091  	FollowupIntentName string `json:"followupIntentName,omitempty"`
 16092  	// ParentFollowupIntentName: The unique identifier of the followup intent's
 16093  	// parent. Format: `projects//agent/intents/`.
 16094  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 16095  	// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to
 16096  	// unconditionally include in API requests. By default, fields with empty or
 16097  	// default values are omitted from API requests. See
 16098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16099  	// details.
 16100  	ForceSendFields []string `json:"-"`
 16101  	// NullFields is a list of field names (e.g. "FollowupIntentName") to include
 16102  	// in API requests with the JSON null value. By default, fields with empty
 16103  	// values are omitted from API requests. See
 16104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16105  	NullFields []string `json:"-"`
 16106  }
 16107  
 16108  func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
 16109  	type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
 16110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16111  }
 16112  
 16113  // GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the `Response`
 16114  // field in the Dialogflow console.
 16115  type GoogleCloudDialogflowV2beta1IntentMessage struct {
 16116  	// BasicCard: Displays a basic card for Actions on Google.
 16117  	BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
 16118  	// BrowseCarouselCard: Browse carousel card for Actions on Google.
 16119  	BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
 16120  	// Card: Displays a card.
 16121  	Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
 16122  	// CarouselSelect: Displays a carousel card for Actions on Google.
 16123  	CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
 16124  	// Image: Displays an image.
 16125  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16126  	// LinkOutSuggestion: Displays a link out suggestion chip for Actions on
 16127  	// Google.
 16128  	LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
 16129  	// ListSelect: Displays a list card for Actions on Google.
 16130  	ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
 16131  	// MediaContent: The media content card for Actions on Google.
 16132  	MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
 16133  	// Payload: A custom platform-specific response.
 16134  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 16135  	// Platform: Optional. The platform that this message is intended for.
 16136  	//
 16137  	// Possible values:
 16138  	//   "PLATFORM_UNSPECIFIED" - Not specified.
 16139  	//   "FACEBOOK" - Facebook.
 16140  	//   "SLACK" - Slack.
 16141  	//   "TELEGRAM" - Telegram.
 16142  	//   "KIK" - Kik.
 16143  	//   "SKYPE" - Skype.
 16144  	//   "LINE" - Line.
 16145  	//   "VIBER" - Viber.
 16146  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 16147  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 16148  	// -webhook-json)
 16149  	//   "TELEPHONY" - Telephony Gateway.
 16150  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 16151  	Platform string `json:"platform,omitempty"`
 16152  	// QuickReplies: Displays quick replies.
 16153  	QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
 16154  	// RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card
 16155  	// response.
 16156  	RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
 16157  	// RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich card
 16158  	// response.
 16159  	RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
 16160  	// RbmText: Rich Business Messaging (RBM) text response. RBM allows businesses
 16161  	// to send enriched and branded versions of SMS. See
 16162  	// https://jibe.google.com/business-messaging.
 16163  	RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
 16164  	// SimpleResponses: Returns a voice or text-only response for Actions on
 16165  	// Google.
 16166  	SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
 16167  	// Suggestions: Displays suggestion chips for Actions on Google.
 16168  	Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
 16169  	// TableCard: Table card for Actions on Google.
 16170  	TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
 16171  	// TelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
 16172  	TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
 16173  	// TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway.
 16174  	TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
 16175  	// TelephonyTransferCall: Transfers the call in Telephony Gateway.
 16176  	TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
 16177  	// Text: Returns a text response.
 16178  	Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
 16179  	// ForceSendFields is a list of field names (e.g. "BasicCard") to
 16180  	// unconditionally include in API requests. By default, fields with empty or
 16181  	// default values are omitted from API requests. See
 16182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16183  	// details.
 16184  	ForceSendFields []string `json:"-"`
 16185  	// NullFields is a list of field names (e.g. "BasicCard") to include in API
 16186  	// requests with the JSON null value. By default, fields with empty values are
 16187  	// omitted from API requests. See
 16188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16189  	NullFields []string `json:"-"`
 16190  }
 16191  
 16192  func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
 16193  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
 16194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16195  }
 16196  
 16197  // GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card message.
 16198  // Useful for displaying information.
 16199  type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
 16200  	// Buttons: Optional. The collection of card buttons.
 16201  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
 16202  	// FormattedText: Required, unless image is present. The body text of the card.
 16203  	FormattedText string `json:"formattedText,omitempty"`
 16204  	// Image: Optional. The image for the card.
 16205  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16206  	// Subtitle: Optional. The subtitle of the card.
 16207  	Subtitle string `json:"subtitle,omitempty"`
 16208  	// Title: Optional. The title of the card.
 16209  	Title string `json:"title,omitempty"`
 16210  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 16211  	// include in API requests. By default, fields with empty or default values are
 16212  	// omitted from API requests. See
 16213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16214  	// details.
 16215  	ForceSendFields []string `json:"-"`
 16216  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 16217  	// requests with the JSON null value. By default, fields with empty values are
 16218  	// omitted from API requests. See
 16219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16220  	NullFields []string `json:"-"`
 16221  }
 16222  
 16223  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
 16224  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
 16225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16226  }
 16227  
 16228  // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button object
 16229  // that appears at the bottom of a card.
 16230  type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
 16231  	// OpenUriAction: Required. Action to take when a user taps on the button.
 16232  	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
 16233  	// Title: Required. The title of the button.
 16234  	Title string `json:"title,omitempty"`
 16235  	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
 16236  	// unconditionally include in API requests. By default, fields with empty or
 16237  	// default values are omitted from API requests. See
 16238  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16239  	// details.
 16240  	ForceSendFields []string `json:"-"`
 16241  	// NullFields is a list of field names (e.g. "OpenUriAction") to include in API
 16242  	// requests with the JSON null value. By default, fields with empty values are
 16243  	// omitted from API requests. See
 16244  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16245  	NullFields []string `json:"-"`
 16246  }
 16247  
 16248  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
 16249  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
 16250  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16251  }
 16252  
 16253  // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: Opens
 16254  // the given URI.
 16255  type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
 16256  	// Uri: Required. The HTTP or HTTPS scheme URI.
 16257  	Uri string `json:"uri,omitempty"`
 16258  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 16259  	// include in API requests. By default, fields with empty or default values are
 16260  	// omitted from API requests. See
 16261  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16262  	// details.
 16263  	ForceSendFields []string `json:"-"`
 16264  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 16265  	// with the JSON null value. By default, fields with empty values are omitted
 16266  	// from API requests. See
 16267  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16268  	NullFields []string `json:"-"`
 16269  }
 16270  
 16271  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
 16272  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
 16273  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16274  }
 16275  
 16276  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse Carousel
 16277  // Card for Actions on Google.
 16278  // https://developers.google.com/actions/assistant/responses#browsing_carousel
 16279  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
 16280  	// ImageDisplayOptions: Optional. Settings for displaying the image. Applies to
 16281  	// every image in items.
 16282  	//
 16283  	// Possible values:
 16284  	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and
 16285  	// the image container with gray bars.
 16286  	//   "GRAY" - Fill the gaps between the image and the image container with gray
 16287  	// bars.
 16288  	//   "WHITE" - Fill the gaps between the image and the image container with
 16289  	// white bars.
 16290  	//   "CROPPED" - Image is scaled such that the image width and height match or
 16291  	// exceed the container dimensions. This may crop the top and bottom of the
 16292  	// image if the scaled image height is greater than the container height, or
 16293  	// crop the left and right of the image if the scaled image width is greater
 16294  	// than the container width. This is similar to "Zoom Mode" on a widescreen TV
 16295  	// when playing a 4:3 video.
 16296  	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a
 16297  	// blurred copy of the same image.
 16298  	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
 16299  	// Items: Required. List of items in the Browse Carousel Card. Minimum of two
 16300  	// items, maximum of ten.
 16301  	Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
 16302  	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to
 16303  	// unconditionally include in API requests. By default, fields with empty or
 16304  	// default values are omitted from API requests. See
 16305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16306  	// details.
 16307  	ForceSendFields []string `json:"-"`
 16308  	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to include
 16309  	// in API requests with the JSON null value. By default, fields with empty
 16310  	// values are omitted from API requests. See
 16311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16312  	NullFields []string `json:"-"`
 16313  }
 16314  
 16315  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
 16316  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
 16317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16318  }
 16319  
 16320  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard
 16321  // Item: Browsing carousel tile
 16322  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
 16323  	// Description: Optional. Description of the carousel item. Maximum of four
 16324  	// lines of text.
 16325  	Description string `json:"description,omitempty"`
 16326  	// Footer: Optional. Text that appears at the bottom of the Browse Carousel
 16327  	// Card. Maximum of one line of text.
 16328  	Footer string `json:"footer,omitempty"`
 16329  	// Image: Optional. Hero image for the carousel item.
 16330  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16331  	// OpenUriAction: Required. Action to present to the user.
 16332  	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
 16333  	// Title: Required. Title of the carousel item. Maximum of two lines of text.
 16334  	Title string `json:"title,omitempty"`
 16335  	// ForceSendFields is a list of field names (e.g. "Description") to
 16336  	// unconditionally include in API requests. By default, fields with empty or
 16337  	// default values are omitted from API requests. See
 16338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16339  	// details.
 16340  	ForceSendFields []string `json:"-"`
 16341  	// NullFields is a list of field names (e.g. "Description") to include in API
 16342  	// requests with the JSON null value. By default, fields with empty values are
 16343  	// omitted from API requests. See
 16344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16345  	NullFields []string `json:"-"`
 16346  }
 16347  
 16348  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
 16349  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
 16350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16351  }
 16352  
 16353  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard
 16354  // ItemOpenUrlAction: Actions on Google action to open a given url.
 16355  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
 16356  	// Url: Required. URL
 16357  	Url string `json:"url,omitempty"`
 16358  	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
 16359  	// opening the URL. Defaults to opening via web browser.
 16360  	//
 16361  	// Possible values:
 16362  	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
 16363  	//   "AMP_ACTION" - Url would be an amp action
 16364  	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical
 16365  	// URL which refers to AMP content via .
 16366  	UrlTypeHint string `json:"urlTypeHint,omitempty"`
 16367  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
 16368  	// include in API requests. By default, fields with empty or default values are
 16369  	// omitted from API requests. See
 16370  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16371  	// details.
 16372  	ForceSendFields []string `json:"-"`
 16373  	// NullFields is a list of field names (e.g. "Url") to include in API requests
 16374  	// with the JSON null value. By default, fields with empty values are omitted
 16375  	// from API requests. See
 16376  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16377  	NullFields []string `json:"-"`
 16378  }
 16379  
 16380  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
 16381  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
 16382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16383  }
 16384  
 16385  // GoogleCloudDialogflowV2beta1IntentMessageCard: The card response message.
 16386  type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
 16387  	// Buttons: Optional. The collection of card buttons.
 16388  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
 16389  	// ImageUri: Optional. The public URI to an image file for the card.
 16390  	ImageUri string `json:"imageUri,omitempty"`
 16391  	// Subtitle: Optional. The subtitle of the card.
 16392  	Subtitle string `json:"subtitle,omitempty"`
 16393  	// Title: Optional. The title of the card.
 16394  	Title string `json:"title,omitempty"`
 16395  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 16396  	// include in API requests. By default, fields with empty or default values are
 16397  	// omitted from API requests. See
 16398  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16399  	// details.
 16400  	ForceSendFields []string `json:"-"`
 16401  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 16402  	// requests with the JSON null value. By default, fields with empty values are
 16403  	// omitted from API requests. See
 16404  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16405  	NullFields []string `json:"-"`
 16406  }
 16407  
 16408  func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
 16409  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
 16410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16411  }
 16412  
 16413  // GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. Contains
 16414  // information about a button.
 16415  type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
 16416  	// Postback: Optional. The text to send back to the Dialogflow API or a URI to
 16417  	// open.
 16418  	Postback string `json:"postback,omitempty"`
 16419  	// Text: Optional. The text to show on the button.
 16420  	Text string `json:"text,omitempty"`
 16421  	// ForceSendFields is a list of field names (e.g. "Postback") to
 16422  	// unconditionally include in API requests. By default, fields with empty or
 16423  	// default values are omitted from API requests. See
 16424  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16425  	// details.
 16426  	ForceSendFields []string `json:"-"`
 16427  	// NullFields is a list of field names (e.g. "Postback") to include in API
 16428  	// requests with the JSON null value. By default, fields with empty values are
 16429  	// omitted from API requests. See
 16430  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16431  	NullFields []string `json:"-"`
 16432  }
 16433  
 16434  func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
 16435  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
 16436  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16437  }
 16438  
 16439  // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for
 16440  // presenting a carousel of options to select from.
 16441  type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
 16442  	// Items: Required. Carousel items.
 16443  	Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
 16444  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 16445  	// include in API requests. By default, fields with empty or default values are
 16446  	// omitted from API requests. See
 16447  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16448  	// details.
 16449  	ForceSendFields []string `json:"-"`
 16450  	// NullFields is a list of field names (e.g. "Items") to include in API
 16451  	// requests with the JSON null value. By default, fields with empty values are
 16452  	// omitted from API requests. See
 16453  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16454  	NullFields []string `json:"-"`
 16455  }
 16456  
 16457  func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
 16458  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
 16459  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16460  }
 16461  
 16462  // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item in the
 16463  // carousel.
 16464  type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
 16465  	// Description: Optional. The body text of the card.
 16466  	Description string `json:"description,omitempty"`
 16467  	// Image: Optional. The image to display.
 16468  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16469  	// Info: Required. Additional info about the option item.
 16470  	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
 16471  	// Title: Required. Title of the carousel item.
 16472  	Title string `json:"title,omitempty"`
 16473  	// ForceSendFields is a list of field names (e.g. "Description") to
 16474  	// unconditionally include in API requests. By default, fields with empty or
 16475  	// default values are omitted from API requests. See
 16476  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16477  	// details.
 16478  	ForceSendFields []string `json:"-"`
 16479  	// NullFields is a list of field names (e.g. "Description") to include in API
 16480  	// requests with the JSON null value. By default, fields with empty values are
 16481  	// omitted from API requests. See
 16482  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16483  	NullFields []string `json:"-"`
 16484  }
 16485  
 16486  func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
 16487  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
 16488  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16489  }
 16490  
 16491  // GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column properties
 16492  // for TableCard.
 16493  type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
 16494  	// Header: Required. Column heading.
 16495  	Header string `json:"header,omitempty"`
 16496  	// HorizontalAlignment: Optional. Defines text alignment for all cells in this
 16497  	// column.
 16498  	//
 16499  	// Possible values:
 16500  	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge
 16501  	// of the column.
 16502  	//   "LEADING" - Text is aligned to the leading edge of the column.
 16503  	//   "CENTER" - Text is centered in the column.
 16504  	//   "TRAILING" - Text is aligned to the trailing edge of the column.
 16505  	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
 16506  	// ForceSendFields is a list of field names (e.g. "Header") to unconditionally
 16507  	// include in API requests. By default, fields with empty or default values are
 16508  	// omitted from API requests. See
 16509  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16510  	// details.
 16511  	ForceSendFields []string `json:"-"`
 16512  	// NullFields is a list of field names (e.g. "Header") to include in API
 16513  	// requests with the JSON null value. By default, fields with empty values are
 16514  	// omitted from API requests. See
 16515  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16516  	NullFields []string `json:"-"`
 16517  }
 16518  
 16519  func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
 16520  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
 16521  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16522  }
 16523  
 16524  // GoogleCloudDialogflowV2beta1IntentMessageImage: The image response message.
 16525  type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
 16526  	// AccessibilityText: A text description of the image to be used for
 16527  	// accessibility, e.g., screen readers. Required if image_uri is set for
 16528  	// CarouselSelect.
 16529  	AccessibilityText string `json:"accessibilityText,omitempty"`
 16530  	// ImageUri: Optional. The public URI to an image file.
 16531  	ImageUri string `json:"imageUri,omitempty"`
 16532  	// ForceSendFields is a list of field names (e.g. "AccessibilityText") to
 16533  	// unconditionally include in API requests. By default, fields with empty or
 16534  	// default values are omitted from API requests. See
 16535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16536  	// details.
 16537  	ForceSendFields []string `json:"-"`
 16538  	// NullFields is a list of field names (e.g. "AccessibilityText") to include in
 16539  	// API requests with the JSON null value. By default, fields with empty values
 16540  	// are omitted from API requests. See
 16541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16542  	NullFields []string `json:"-"`
 16543  }
 16544  
 16545  func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
 16546  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
 16547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16548  }
 16549  
 16550  // GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The suggestion
 16551  // chip message that allows the user to jump out to the app or website
 16552  // associated with this agent.
 16553  type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
 16554  	// DestinationName: Required. The name of the app or site this chip is linking
 16555  	// to.
 16556  	DestinationName string `json:"destinationName,omitempty"`
 16557  	// Uri: Required. The URI of the app or site to open when the user taps the
 16558  	// suggestion chip.
 16559  	Uri string `json:"uri,omitempty"`
 16560  	// ForceSendFields is a list of field names (e.g. "DestinationName") to
 16561  	// unconditionally include in API requests. By default, fields with empty or
 16562  	// default values are omitted from API requests. See
 16563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16564  	// details.
 16565  	ForceSendFields []string `json:"-"`
 16566  	// NullFields is a list of field names (e.g. "DestinationName") to include in
 16567  	// API requests with the JSON null value. By default, fields with empty values
 16568  	// are omitted from API requests. See
 16569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16570  	NullFields []string `json:"-"`
 16571  }
 16572  
 16573  func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
 16574  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
 16575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16576  }
 16577  
 16578  // GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for presenting
 16579  // a list of options to select from.
 16580  type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
 16581  	// Items: Required. List items.
 16582  	Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
 16583  	// Subtitle: Optional. Subtitle of the list.
 16584  	Subtitle string `json:"subtitle,omitempty"`
 16585  	// Title: Optional. The overall title of the list.
 16586  	Title string `json:"title,omitempty"`
 16587  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 16588  	// include in API requests. By default, fields with empty or default values are
 16589  	// omitted from API requests. See
 16590  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16591  	// details.
 16592  	ForceSendFields []string `json:"-"`
 16593  	// NullFields is a list of field names (e.g. "Items") to include in API
 16594  	// requests with the JSON null value. By default, fields with empty values are
 16595  	// omitted from API requests. See
 16596  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16597  	NullFields []string `json:"-"`
 16598  }
 16599  
 16600  func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
 16601  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
 16602  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16603  }
 16604  
 16605  // GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in the
 16606  // list.
 16607  type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
 16608  	// Description: Optional. The main text describing the item.
 16609  	Description string `json:"description,omitempty"`
 16610  	// Image: Optional. The image to display.
 16611  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 16612  	// Info: Required. Additional information about this option.
 16613  	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
 16614  	// Title: Required. The title of the list item.
 16615  	Title string `json:"title,omitempty"`
 16616  	// ForceSendFields is a list of field names (e.g. "Description") to
 16617  	// unconditionally include in API requests. By default, fields with empty or
 16618  	// default values are omitted from API requests. See
 16619  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16620  	// details.
 16621  	ForceSendFields []string `json:"-"`
 16622  	// NullFields is a list of field names (e.g. "Description") to include in API
 16623  	// requests with the JSON null value. By default, fields with empty values are
 16624  	// omitted from API requests. See
 16625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16626  	NullFields []string `json:"-"`
 16627  }
 16628  
 16629  func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
 16630  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
 16631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16632  }
 16633  
 16634  // GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media content
 16635  // card for Actions on Google.
 16636  type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
 16637  	// MediaObjects: Required. List of media objects.
 16638  	MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
 16639  	// MediaType: Optional. What type of media is the content (ie "audio").
 16640  	//
 16641  	// Possible values:
 16642  	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
 16643  	//   "AUDIO" - Response media type is audio.
 16644  	MediaType string `json:"mediaType,omitempty"`
 16645  	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
 16646  	// unconditionally include in API requests. By default, fields with empty or
 16647  	// default values are omitted from API requests. See
 16648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16649  	// details.
 16650  	ForceSendFields []string `json:"-"`
 16651  	// NullFields is a list of field names (e.g. "MediaObjects") to include in API
 16652  	// requests with the JSON null value. By default, fields with empty values are
 16653  	// omitted from API requests. See
 16654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16655  	NullFields []string `json:"-"`
 16656  }
 16657  
 16658  func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
 16659  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
 16660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16661  }
 16662  
 16663  // GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject:
 16664  // Response media object for media content card.
 16665  type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
 16666  	// ContentUrl: Required. Url where the media is stored.
 16667  	ContentUrl string `json:"contentUrl,omitempty"`
 16668  	// Description: Optional. Description of media card.
 16669  	Description string `json:"description,omitempty"`
 16670  	// Icon: Optional. Icon to display above media content.
 16671  	Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
 16672  	// LargeImage: Optional. Image to display above media content.
 16673  	LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
 16674  	// Name: Required. Name of media card.
 16675  	Name string `json:"name,omitempty"`
 16676  	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
 16677  	// unconditionally include in API requests. By default, fields with empty or
 16678  	// default values are omitted from API requests. See
 16679  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16680  	// details.
 16681  	ForceSendFields []string `json:"-"`
 16682  	// NullFields is a list of field names (e.g. "ContentUrl") to include in API
 16683  	// requests with the JSON null value. By default, fields with empty values are
 16684  	// omitted from API requests. See
 16685  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16686  	NullFields []string `json:"-"`
 16687  }
 16688  
 16689  func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
 16690  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
 16691  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16692  }
 16693  
 16694  // GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick replies
 16695  // response message.
 16696  type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
 16697  	// QuickReplies: Optional. The collection of quick replies.
 16698  	QuickReplies []string `json:"quickReplies,omitempty"`
 16699  	// Title: Optional. The title of the collection of quick replies.
 16700  	Title string `json:"title,omitempty"`
 16701  	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
 16702  	// unconditionally include in API requests. By default, fields with empty or
 16703  	// default values are omitted from API requests. See
 16704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16705  	// details.
 16706  	ForceSendFields []string `json:"-"`
 16707  	// NullFields is a list of field names (e.g. "QuickReplies") to include in API
 16708  	// requests with the JSON null value. By default, fields with empty values are
 16709  	// omitted from API requests. See
 16710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16711  	NullFields []string `json:"-"`
 16712  }
 16713  
 16714  func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
 16715  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
 16716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16717  }
 16718  
 16719  // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich Business
 16720  // Messaging (RBM) Card content
 16721  type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
 16722  	// Description: Optional. Description of the card (at most 2000 bytes). At
 16723  	// least one of the title, description or media must be set.
 16724  	Description string `json:"description,omitempty"`
 16725  	// Media: Optional. However at least one of the title, description or media
 16726  	// must be set. Media (image, GIF or a video) to include in the card.
 16727  	Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
 16728  	// Suggestions: Optional. List of suggestions to include in the card.
 16729  	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
 16730  	// Title: Optional. Title of the card (at most 200 bytes). At least one of the
 16731  	// title, description or media must be set.
 16732  	Title string `json:"title,omitempty"`
 16733  	// ForceSendFields is a list of field names (e.g. "Description") to
 16734  	// unconditionally include in API requests. By default, fields with empty or
 16735  	// default values are omitted from API requests. See
 16736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16737  	// details.
 16738  	ForceSendFields []string `json:"-"`
 16739  	// NullFields is a list of field names (e.g. "Description") to include in API
 16740  	// requests with the JSON null value. By default, fields with empty values are
 16741  	// omitted from API requests. See
 16742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16743  	NullFields []string `json:"-"`
 16744  }
 16745  
 16746  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
 16747  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
 16748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16749  }
 16750  
 16751  // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich
 16752  // Business Messaging (RBM) Media displayed in Cards The following media-types
 16753  // are currently supported: Image Types * image/jpeg * image/jpg' * image/gif *
 16754  // image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg *
 16755  // video/mpeg4 * video/webm
 16756  type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
 16757  	// FileUri: Required. Publicly reachable URI of the file. The RBM platform
 16758  	// determines the MIME type of the file from the content-type field in the HTTP
 16759  	// headers when the platform fetches the file. The content-type field must be
 16760  	// present and accurate in the HTTP response from the URL.
 16761  	FileUri string `json:"fileUri,omitempty"`
 16762  	// Height: Required for cards with vertical orientation. The height of the
 16763  	// media within a rich card with a vertical layout. For a standalone card with
 16764  	// horizontal layout, height is not customizable, and this field is ignored.
 16765  	//
 16766  	// Possible values:
 16767  	//   "HEIGHT_UNSPECIFIED" - Not specified.
 16768  	//   "SHORT" - 112 DP.
 16769  	//   "MEDIUM" - 168 DP.
 16770  	//   "TALL" - 264 DP. Not available for rich card carousels when the card width
 16771  	// is set to small.
 16772  	Height string `json:"height,omitempty"`
 16773  	// ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If you don't
 16774  	// provide a thumbnail URI, the RBM platform displays a blank placeholder
 16775  	// thumbnail until the user's device downloads the file. Depending on the
 16776  	// user's setting, the file may not download automatically and may require the
 16777  	// user to tap a download button.
 16778  	ThumbnailUri string `json:"thumbnailUri,omitempty"`
 16779  	// ForceSendFields is a list of field names (e.g. "FileUri") to unconditionally
 16780  	// include in API requests. By default, fields with empty or default values are
 16781  	// omitted from API requests. See
 16782  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16783  	// details.
 16784  	ForceSendFields []string `json:"-"`
 16785  	// NullFields is a list of field names (e.g. "FileUri") to include in API
 16786  	// requests with the JSON null value. By default, fields with empty values are
 16787  	// omitted from API requests. See
 16788  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16789  	NullFields []string `json:"-"`
 16790  }
 16791  
 16792  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
 16793  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
 16794  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16795  }
 16796  
 16797  // GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel Rich
 16798  // Business Messaging (RBM) rich card. Rich cards allow you to respond to users
 16799  // with more vivid content, e.g. with media and suggestions. If you want to
 16800  // show a single card with more control over the layout, please use
 16801  // RbmStandaloneCard instead.
 16802  type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
 16803  	// CardContents: Required. The cards in the carousel. A carousel must have at
 16804  	// least 2 cards and at most 10.
 16805  	CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
 16806  	// CardWidth: Required. The width of the cards in the carousel.
 16807  	//
 16808  	// Possible values:
 16809  	//   "CARD_WIDTH_UNSPECIFIED" - Not specified.
 16810  	//   "SMALL" - 120 DP. Note that tall media cannot be used.
 16811  	//   "MEDIUM" - 232 DP.
 16812  	CardWidth string `json:"cardWidth,omitempty"`
 16813  	// ForceSendFields is a list of field names (e.g. "CardContents") to
 16814  	// unconditionally include in API requests. By default, fields with empty or
 16815  	// default values are omitted from API requests. See
 16816  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16817  	// details.
 16818  	ForceSendFields []string `json:"-"`
 16819  	// NullFields is a list of field names (e.g. "CardContents") to include in API
 16820  	// requests with the JSON null value. By default, fields with empty values are
 16821  	// omitted from API requests. See
 16822  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16823  	NullFields []string `json:"-"`
 16824  }
 16825  
 16826  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
 16827  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
 16828  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16829  }
 16830  
 16831  // GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: Standalone Rich
 16832  // Business Messaging (RBM) rich card. Rich cards allow you to respond to users
 16833  // with more vivid content, e.g. with media and suggestions. You can group
 16834  // multiple rich cards into one using RbmCarouselCard but carousel cards will
 16835  // give you less control over the card layout.
 16836  type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
 16837  	// CardContent: Required. Card content.
 16838  	CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
 16839  	// CardOrientation: Required. Orientation of the card.
 16840  	//
 16841  	// Possible values:
 16842  	//   "CARD_ORIENTATION_UNSPECIFIED" - Not specified.
 16843  	//   "HORIZONTAL" - Horizontal layout.
 16844  	//   "VERTICAL" - Vertical layout.
 16845  	CardOrientation string `json:"cardOrientation,omitempty"`
 16846  	// ThumbnailImageAlignment: Required if orientation is horizontal. Image
 16847  	// preview alignment for standalone cards with horizontal layout.
 16848  	//
 16849  	// Possible values:
 16850  	//   "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified.
 16851  	//   "LEFT" - Thumbnail preview is left-aligned.
 16852  	//   "RIGHT" - Thumbnail preview is right-aligned.
 16853  	ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
 16854  	// ForceSendFields is a list of field names (e.g. "CardContent") to
 16855  	// unconditionally include in API requests. By default, fields with empty or
 16856  	// default values are omitted from API requests. See
 16857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16858  	// details.
 16859  	ForceSendFields []string `json:"-"`
 16860  	// NullFields is a list of field names (e.g. "CardContent") to include in API
 16861  	// requests with the JSON null value. By default, fields with empty values are
 16862  	// omitted from API requests. See
 16863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16864  	NullFields []string `json:"-"`
 16865  }
 16866  
 16867  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
 16868  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
 16869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16870  }
 16871  
 16872  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich Business
 16873  // Messaging (RBM) suggested client-side action that the user can choose from
 16874  // the card.
 16875  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
 16876  	// Dial: Suggested client side action: Dial a phone number
 16877  	Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
 16878  	// OpenUrl: Suggested client side action: Open a URI on device
 16879  	OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
 16880  	// PostbackData: Opaque payload that the Dialogflow receives in a user event
 16881  	// when the user taps the suggested action. This data will be also forwarded to
 16882  	// webhook to allow performing custom business logic.
 16883  	PostbackData string `json:"postbackData,omitempty"`
 16884  	// ShareLocation: Suggested client side action: Share user location
 16885  	ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
 16886  	// Text: Text to display alongside the action.
 16887  	Text string `json:"text,omitempty"`
 16888  	// ForceSendFields is a list of field names (e.g. "Dial") to unconditionally
 16889  	// include in API requests. By default, fields with empty or default values are
 16890  	// omitted from API requests. See
 16891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16892  	// details.
 16893  	ForceSendFields []string `json:"-"`
 16894  	// NullFields is a list of field names (e.g. "Dial") to include in API requests
 16895  	// with the JSON null value. By default, fields with empty values are omitted
 16896  	// from API requests. See
 16897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16898  	NullFields []string `json:"-"`
 16899  }
 16900  
 16901  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
 16902  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
 16903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16904  }
 16905  
 16906  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 16907  // Dial: Opens the user's default dialer app with the specified phone number
 16908  // but does not dial automatically.
 16909  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
 16910  	// PhoneNumber: Required. The phone number to fill in the default dialer app.
 16911  	// This field should be in E.164 (https://en.wikipedia.org/wiki/E.164) format.
 16912  	// An example of a correctly formatted phone number: +15556767888.
 16913  	PhoneNumber string `json:"phoneNumber,omitempty"`
 16914  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 16915  	// unconditionally include in API requests. By default, fields with empty or
 16916  	// default values are omitted from API requests. See
 16917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16918  	// details.
 16919  	ForceSendFields []string `json:"-"`
 16920  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 16921  	// requests with the JSON null value. By default, fields with empty values are
 16922  	// omitted from API requests. See
 16923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16924  	NullFields []string `json:"-"`
 16925  }
 16926  
 16927  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
 16928  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
 16929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16930  }
 16931  
 16932  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 16933  // OpenUri: Opens the user's default web browser app to the specified uri If
 16934  // the user has an app installed that is registered as the default handler for
 16935  // the URL, then this app will be opened instead, and its icon will be used in
 16936  // the suggested action UI.
 16937  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
 16938  	// Uri: Required. The uri to open on the user device
 16939  	Uri string `json:"uri,omitempty"`
 16940  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 16941  	// include in API requests. By default, fields with empty or default values are
 16942  	// omitted from API requests. See
 16943  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16944  	// details.
 16945  	ForceSendFields []string `json:"-"`
 16946  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 16947  	// with the JSON null value. By default, fields with empty values are omitted
 16948  	// from API requests. See
 16949  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16950  	NullFields []string `json:"-"`
 16951  }
 16952  
 16953  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
 16954  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
 16955  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16956  }
 16957  
 16958  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 16959  // ShareLocation: Opens the device's location chooser so the user can pick a
 16960  // location to send back to the agent.
 16961  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
 16962  }
 16963  
 16964  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich Business
 16965  // Messaging (RBM) suggested reply that the user can click instead of typing in
 16966  // their own response.
 16967  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
 16968  	// PostbackData: Opaque payload that the Dialogflow receives in a user event
 16969  	// when the user taps the suggested reply. This data will be also forwarded to
 16970  	// webhook to allow performing custom business logic.
 16971  	PostbackData string `json:"postbackData,omitempty"`
 16972  	// Text: Suggested reply text.
 16973  	Text string `json:"text,omitempty"`
 16974  	// ForceSendFields is a list of field names (e.g. "PostbackData") to
 16975  	// unconditionally include in API requests. By default, fields with empty or
 16976  	// default values are omitted from API requests. See
 16977  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16978  	// details.
 16979  	ForceSendFields []string `json:"-"`
 16980  	// NullFields is a list of field names (e.g. "PostbackData") to include in API
 16981  	// requests with the JSON null value. By default, fields with empty values are
 16982  	// omitted from API requests. See
 16983  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16984  	NullFields []string `json:"-"`
 16985  }
 16986  
 16987  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
 16988  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
 16989  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16990  }
 16991  
 16992  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business
 16993  // Messaging (RBM) suggestion. Suggestions allow user to easily select/click a
 16994  // predefined response or perform an action (like opening a web uri).
 16995  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
 16996  	// Action: Predefined client side actions that user can choose
 16997  	Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
 16998  	// Reply: Predefined replies for user to select instead of typing
 16999  	Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
 17000  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 17001  	// include in API requests. By default, fields with empty or default values are
 17002  	// omitted from API requests. See
 17003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17004  	// details.
 17005  	ForceSendFields []string `json:"-"`
 17006  	// NullFields is a list of field names (e.g. "Action") to include in API
 17007  	// requests with the JSON null value. By default, fields with empty values are
 17008  	// omitted from API requests. See
 17009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17010  	NullFields []string `json:"-"`
 17011  }
 17012  
 17013  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
 17014  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
 17015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17016  }
 17017  
 17018  // GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business Messaging
 17019  // (RBM) text response with suggestions.
 17020  type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
 17021  	// RbmSuggestion: Optional. One or more suggestions to show to the user.
 17022  	RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
 17023  	// Text: Required. Text sent and displayed to the user.
 17024  	Text string `json:"text,omitempty"`
 17025  	// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to
 17026  	// unconditionally include in API requests. By default, fields with empty or
 17027  	// default values are omitted from API requests. See
 17028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17029  	// details.
 17030  	ForceSendFields []string `json:"-"`
 17031  	// NullFields is a list of field names (e.g. "RbmSuggestion") to include in API
 17032  	// requests with the JSON null value. By default, fields with empty values are
 17033  	// omitted from API requests. See
 17034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17035  	NullFields []string `json:"-"`
 17036  }
 17037  
 17038  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
 17039  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
 17040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17041  }
 17042  
 17043  // GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional info
 17044  // about the select item for when it is triggered in a dialog.
 17045  type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
 17046  	// Key: Required. A unique key that will be sent back to the agent if this
 17047  	// response is given.
 17048  	Key string `json:"key,omitempty"`
 17049  	// Synonyms: Optional. A list of synonyms that can also be used to trigger this
 17050  	// item in dialog.
 17051  	Synonyms []string `json:"synonyms,omitempty"`
 17052  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
 17053  	// include in API requests. By default, fields with empty or default values are
 17054  	// omitted from API requests. See
 17055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17056  	// details.
 17057  	ForceSendFields []string `json:"-"`
 17058  	// NullFields is a list of field names (e.g. "Key") to include in API requests
 17059  	// with the JSON null value. By default, fields with empty values are omitted
 17060  	// from API requests. See
 17061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17062  	NullFields []string `json:"-"`
 17063  }
 17064  
 17065  func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
 17066  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
 17067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17068  }
 17069  
 17070  // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple response
 17071  // message containing speech or text.
 17072  type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
 17073  	// DisplayText: Optional. The text to display.
 17074  	DisplayText string `json:"displayText,omitempty"`
 17075  	// Ssml: One of text_to_speech or ssml must be provided. Structured spoken
 17076  	// response to the user in the SSML format. Mutually exclusive with
 17077  	// text_to_speech.
 17078  	Ssml string `json:"ssml,omitempty"`
 17079  	// TextToSpeech: One of text_to_speech or ssml must be provided. The plain text
 17080  	// of the speech output. Mutually exclusive with ssml.
 17081  	TextToSpeech string `json:"textToSpeech,omitempty"`
 17082  	// ForceSendFields is a list of field names (e.g. "DisplayText") to
 17083  	// unconditionally include in API requests. By default, fields with empty or
 17084  	// default values are omitted from API requests. See
 17085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17086  	// details.
 17087  	ForceSendFields []string `json:"-"`
 17088  	// NullFields is a list of field names (e.g. "DisplayText") to include in API
 17089  	// requests with the JSON null value. By default, fields with empty values are
 17090  	// omitted from API requests. See
 17091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17092  	NullFields []string `json:"-"`
 17093  }
 17094  
 17095  func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
 17096  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
 17097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17098  }
 17099  
 17100  // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The collection of
 17101  // simple response candidates. This message in
 17102  // `QueryResult.fulfillment_messages` and
 17103  // `WebhookResponse.fulfillment_messages` should contain only one
 17104  // `SimpleResponse`.
 17105  type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
 17106  	// SimpleResponses: Required. The list of simple responses.
 17107  	SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
 17108  	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
 17109  	// unconditionally include in API requests. By default, fields with empty or
 17110  	// default values are omitted from API requests. See
 17111  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17112  	// details.
 17113  	ForceSendFields []string `json:"-"`
 17114  	// NullFields is a list of field names (e.g. "SimpleResponses") to include in
 17115  	// API requests with the JSON null value. By default, fields with empty values
 17116  	// are omitted from API requests. See
 17117  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17118  	NullFields []string `json:"-"`
 17119  }
 17120  
 17121  func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
 17122  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
 17123  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17124  }
 17125  
 17126  // GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion chip
 17127  // message that the user can tap to quickly post a reply to the conversation.
 17128  type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
 17129  	// Title: Required. The text shown the in the suggestion chip.
 17130  	Title string `json:"title,omitempty"`
 17131  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
 17132  	// include in API requests. By default, fields with empty or default values are
 17133  	// omitted from API requests. See
 17134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17135  	// details.
 17136  	ForceSendFields []string `json:"-"`
 17137  	// NullFields is a list of field names (e.g. "Title") to include in API
 17138  	// requests with the JSON null value. By default, fields with empty values are
 17139  	// omitted from API requests. See
 17140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17141  	NullFields []string `json:"-"`
 17142  }
 17143  
 17144  func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
 17145  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
 17146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17147  }
 17148  
 17149  // GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection of
 17150  // suggestions.
 17151  type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
 17152  	// Suggestions: Required. The list of suggested replies.
 17153  	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
 17154  	// ForceSendFields is a list of field names (e.g. "Suggestions") to
 17155  	// unconditionally include in API requests. By default, fields with empty or
 17156  	// default values are omitted from API requests. See
 17157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17158  	// details.
 17159  	ForceSendFields []string `json:"-"`
 17160  	// NullFields is a list of field names (e.g. "Suggestions") to include in API
 17161  	// requests with the JSON null value. By default, fields with empty values are
 17162  	// omitted from API requests. See
 17163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17164  	NullFields []string `json:"-"`
 17165  }
 17166  
 17167  func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
 17168  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
 17169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17170  }
 17171  
 17172  // GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for Actions
 17173  // on Google.
 17174  type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
 17175  	// Buttons: Optional. List of buttons for the card.
 17176  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
 17177  	// ColumnProperties: Optional. Display properties for the columns in this
 17178  	// table.
 17179  	ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
 17180  	// Image: Optional. Image which should be displayed on the card.
 17181  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 17182  	// Rows: Optional. Rows in this table of data.
 17183  	Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
 17184  	// Subtitle: Optional. Subtitle to the title.
 17185  	Subtitle string `json:"subtitle,omitempty"`
 17186  	// Title: Required. Title of the card.
 17187  	Title string `json:"title,omitempty"`
 17188  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 17189  	// include in API requests. By default, fields with empty or default values are
 17190  	// omitted from API requests. See
 17191  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17192  	// details.
 17193  	ForceSendFields []string `json:"-"`
 17194  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 17195  	// requests with the JSON null value. By default, fields with empty values are
 17196  	// omitted from API requests. See
 17197  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17198  	NullFields []string `json:"-"`
 17199  }
 17200  
 17201  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
 17202  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
 17203  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17204  }
 17205  
 17206  // GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of
 17207  // TableCardRow.
 17208  type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
 17209  	// Text: Required. Text in this cell.
 17210  	Text string `json:"text,omitempty"`
 17211  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 17212  	// include in API requests. By default, fields with empty or default values are
 17213  	// omitted from API requests. See
 17214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17215  	// details.
 17216  	ForceSendFields []string `json:"-"`
 17217  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 17218  	// with the JSON null value. By default, fields with empty values are omitted
 17219  	// from API requests. See
 17220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17221  	NullFields []string `json:"-"`
 17222  }
 17223  
 17224  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
 17225  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
 17226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17227  }
 17228  
 17229  // GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of TableCard.
 17230  type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
 17231  	// Cells: Optional. List of cells that make up this row.
 17232  	Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
 17233  	// DividerAfter: Optional. Whether to add a visual divider after this row.
 17234  	DividerAfter bool `json:"dividerAfter,omitempty"`
 17235  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
 17236  	// include in API requests. By default, fields with empty or default values are
 17237  	// omitted from API requests. See
 17238  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17239  	// details.
 17240  	ForceSendFields []string `json:"-"`
 17241  	// NullFields is a list of field names (e.g. "Cells") to include in API
 17242  	// requests with the JSON null value. By default, fields with empty values are
 17243  	// omitted from API requests. See
 17244  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17245  	NullFields []string `json:"-"`
 17246  }
 17247  
 17248  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
 17249  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
 17250  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17251  }
 17252  
 17253  // GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays audio
 17254  // from a file in Telephony Gateway.
 17255  type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
 17256  	// AudioUri: Required. URI to a Google Cloud Storage object containing the
 17257  	// audio to play, e.g., "gs://bucket/object". The object must contain a single
 17258  	// channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object
 17259  	// must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`
 17260  	// service account where is the number of the Telephony Gateway project
 17261  	// (usually the same as the Dialogflow agent project). If the Google Cloud
 17262  	// Storage bucket is in the Telephony Gateway project, this permission is added
 17263  	// by default when enabling the Dialogflow V2 API. For audio from other
 17264  	// sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
 17265  	AudioUri string `json:"audioUri,omitempty"`
 17266  	// ForceSendFields is a list of field names (e.g. "AudioUri") to
 17267  	// unconditionally include in API requests. By default, fields with empty or
 17268  	// default values are omitted from API requests. See
 17269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17270  	// details.
 17271  	ForceSendFields []string `json:"-"`
 17272  	// NullFields is a list of field names (e.g. "AudioUri") to include in API
 17273  	// requests with the JSON null value. By default, fields with empty values are
 17274  	// omitted from API requests. See
 17275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17276  	NullFields []string `json:"-"`
 17277  }
 17278  
 17279  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
 17280  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
 17281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17282  }
 17283  
 17284  // GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:
 17285  // Synthesizes speech and plays back the synthesized audio to the caller in
 17286  // Telephony Gateway. Telephony Gateway takes the synthesizer settings from
 17287  // `DetectIntentResponse.output_audio_config` which can either be set at
 17288  // request-level or can come from the agent-level synthesizer config.
 17289  type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
 17290  	// Ssml: The SSML to be synthesized. For more information, see SSML
 17291  	// (https://developers.google.com/actions/reference/ssml).
 17292  	Ssml string `json:"ssml,omitempty"`
 17293  	// Text: The raw text to be synthesized.
 17294  	Text string `json:"text,omitempty"`
 17295  	// ForceSendFields is a list of field names (e.g. "Ssml") to unconditionally
 17296  	// include in API requests. By default, fields with empty or default values are
 17297  	// omitted from API requests. See
 17298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17299  	// details.
 17300  	ForceSendFields []string `json:"-"`
 17301  	// NullFields is a list of field names (e.g. "Ssml") to include in API requests
 17302  	// with the JSON null value. By default, fields with empty values are omitted
 17303  	// from API requests. See
 17304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17305  	NullFields []string `json:"-"`
 17306  }
 17307  
 17308  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
 17309  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
 17310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17311  }
 17312  
 17313  // GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: Transfers
 17314  // the call in Telephony Gateway.
 17315  type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
 17316  	// PhoneNumber: Required. The phone number to transfer the call to in E.164
 17317  	// format (https://en.wikipedia.org/wiki/E.164). We currently only allow
 17318  	// transferring to US numbers (+1xxxyyyzzzz).
 17319  	PhoneNumber string `json:"phoneNumber,omitempty"`
 17320  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 17321  	// unconditionally include in API requests. By default, fields with empty or
 17322  	// default values are omitted from API requests. See
 17323  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17324  	// details.
 17325  	ForceSendFields []string `json:"-"`
 17326  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 17327  	// requests with the JSON null value. By default, fields with empty values are
 17328  	// omitted from API requests. See
 17329  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17330  	NullFields []string `json:"-"`
 17331  }
 17332  
 17333  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
 17334  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
 17335  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17336  }
 17337  
 17338  // GoogleCloudDialogflowV2beta1IntentMessageText: The text response message.
 17339  type GoogleCloudDialogflowV2beta1IntentMessageText struct {
 17340  	// Text: Optional. The collection of the agent's responses.
 17341  	Text []string `json:"text,omitempty"`
 17342  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 17343  	// include in API requests. By default, fields with empty or default values are
 17344  	// omitted from API requests. See
 17345  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17346  	// details.
 17347  	ForceSendFields []string `json:"-"`
 17348  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 17349  	// with the JSON null value. By default, fields with empty values are omitted
 17350  	// from API requests. See
 17351  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17352  	NullFields []string `json:"-"`
 17353  }
 17354  
 17355  func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
 17356  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
 17357  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17358  }
 17359  
 17360  // GoogleCloudDialogflowV2beta1IntentParameter: Represents intent parameters.
 17361  type GoogleCloudDialogflowV2beta1IntentParameter struct {
 17362  	// DefaultValue: Optional. The default value to use when the `value` yields an
 17363  	// empty result. Default values can be extracted from contexts by using the
 17364  	// following syntax: `#context_name.parameter_name`.
 17365  	DefaultValue string `json:"defaultValue,omitempty"`
 17366  	// DisplayName: Required. The name of the parameter.
 17367  	DisplayName string `json:"displayName,omitempty"`
 17368  	// EntityTypeDisplayName: Optional. The name of the entity type, prefixed with
 17369  	// `@`, that describes values of the parameter. If the parameter is required,
 17370  	// this must be provided.
 17371  	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
 17372  	// IsList: Optional. Indicates whether the parameter represents a list of
 17373  	// values.
 17374  	IsList bool `json:"isList,omitempty"`
 17375  	// Mandatory: Optional. Indicates whether the parameter is required. That is,
 17376  	// whether the intent cannot be completed without collecting the parameter
 17377  	// value.
 17378  	Mandatory bool `json:"mandatory,omitempty"`
 17379  	// Name: The unique identifier of this parameter.
 17380  	Name string `json:"name,omitempty"`
 17381  	// Prompts: Optional. The collection of prompts that the agent can present to
 17382  	// the user in order to collect a value for the parameter.
 17383  	Prompts []string `json:"prompts,omitempty"`
 17384  	// Value: Optional. The definition of the parameter value. It can be: - a
 17385  	// constant string, - a parameter value defined as `$parameter_name`, - an
 17386  	// original parameter value defined as `$parameter_name.original`, - a
 17387  	// parameter value from some context defined as `#context_name.parameter_name`.
 17388  	Value string `json:"value,omitempty"`
 17389  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
 17390  	// unconditionally include in API requests. By default, fields with empty or
 17391  	// default values are omitted from API requests. See
 17392  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17393  	// details.
 17394  	ForceSendFields []string `json:"-"`
 17395  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
 17396  	// requests with the JSON null value. By default, fields with empty values are
 17397  	// omitted from API requests. See
 17398  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17399  	NullFields []string `json:"-"`
 17400  }
 17401  
 17402  func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
 17403  	type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
 17404  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17405  }
 17406  
 17407  // GoogleCloudDialogflowV2beta1IntentSuggestion: Represents an intent
 17408  // suggestion.
 17409  type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
 17410  	// Description: Human readable description for better understanding an intent
 17411  	// like its scope, content, result etc. Maximum character limit: 140
 17412  	// characters.
 17413  	Description string `json:"description,omitempty"`
 17414  	// DisplayName: The display name of the intent.
 17415  	DisplayName string `json:"displayName,omitempty"`
 17416  	// IntentV2: The unique identifier of this intent. Format:
 17417  	// `projects//locations//agent/intents/`.
 17418  	IntentV2 string `json:"intentV2,omitempty"`
 17419  	// ForceSendFields is a list of field names (e.g. "Description") to
 17420  	// unconditionally include in API requests. By default, fields with empty or
 17421  	// default values are omitted from API requests. See
 17422  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17423  	// details.
 17424  	ForceSendFields []string `json:"-"`
 17425  	// NullFields is a list of field names (e.g. "Description") to include in API
 17426  	// requests with the JSON null value. By default, fields with empty values are
 17427  	// omitted from API requests. See
 17428  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17429  	NullFields []string `json:"-"`
 17430  }
 17431  
 17432  func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
 17433  	type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
 17434  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17435  }
 17436  
 17437  // GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an example that
 17438  // the agent is trained on.
 17439  type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
 17440  	// Name: Output only. The unique identifier of this training phrase.
 17441  	Name string `json:"name,omitempty"`
 17442  	// Parts: Required. The ordered list of training phrase parts. The parts are
 17443  	// concatenated in order to form the training phrase. Note: The API does not
 17444  	// automatically annotate training phrases like the Dialogflow Console does.
 17445  	// Note: Do not forget to include whitespace at part boundaries, so the
 17446  	// training phrase is well formatted when the parts are concatenated. If the
 17447  	// training phrase does not need to be annotated with parameters, you just need
 17448  	// a single part with only the Part.text field set. If you want to annotate the
 17449  	// training phrase, you must create multiple parts, where the fields of each
 17450  	// part are populated in one of two ways: - `Part.text` is set to a part of the
 17451  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
 17452  	// that you want to annotate, and the `entity_type`, `alias`, and
 17453  	// `user_defined` fields are all set.
 17454  	Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
 17455  	// TimesAddedCount: Optional. Indicates how many times this example was added
 17456  	// to the intent. Each time a developer adds an existing sample by editing an
 17457  	// intent or training, this counter is increased.
 17458  	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
 17459  	// Type: Required. The type of the training phrase.
 17460  	//
 17461  	// Possible values:
 17462  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
 17463  	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names, but
 17464  	// example parts can be annotated with entity types.
 17465  	//   "TEMPLATE" - Templates are not annotated with entity types, but they can
 17466  	// contain @-prefixed entity type names as substrings. Note: Template mode has
 17467  	// been deprecated. Example mode is the only supported way to create new
 17468  	// training phrases. If you have existing training phrases in template mode,
 17469  	// they will be removed during training and it can cause a drop in agent
 17470  	// performance.
 17471  	Type string `json:"type,omitempty"`
 17472  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 17473  	// include in API requests. By default, fields with empty or default values are
 17474  	// omitted from API requests. See
 17475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17476  	// details.
 17477  	ForceSendFields []string `json:"-"`
 17478  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 17479  	// with the JSON null value. By default, fields with empty values are omitted
 17480  	// from API requests. See
 17481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17482  	NullFields []string `json:"-"`
 17483  }
 17484  
 17485  func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
 17486  	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
 17487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17488  }
 17489  
 17490  // GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a part of a
 17491  // training phrase.
 17492  type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
 17493  	// Alias: Optional. The parameter name for the value extracted from the
 17494  	// annotated part of the example. This field is required for annotated parts of
 17495  	// the training phrase.
 17496  	Alias string `json:"alias,omitempty"`
 17497  	// EntityType: Optional. The entity type name prefixed with `@`. This field is
 17498  	// required for annotated parts of the training phrase.
 17499  	EntityType string `json:"entityType,omitempty"`
 17500  	// Text: Required. The text for this part.
 17501  	Text string `json:"text,omitempty"`
 17502  	// UserDefined: Optional. Indicates whether the text was manually annotated.
 17503  	// This field is set to true when the Dialogflow Console is used to manually
 17504  	// annotate the part. When creating an annotated part with the API, you must
 17505  	// set this to true.
 17506  	UserDefined bool `json:"userDefined,omitempty"`
 17507  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
 17508  	// include in API requests. By default, fields with empty or default values are
 17509  	// omitted from API requests. See
 17510  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17511  	// details.
 17512  	ForceSendFields []string `json:"-"`
 17513  	// NullFields is a list of field names (e.g. "Alias") to include in API
 17514  	// requests with the JSON null value. By default, fields with empty values are
 17515  	// omitted from API requests. See
 17516  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17517  	NullFields []string `json:"-"`
 17518  }
 17519  
 17520  func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
 17521  	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
 17522  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17523  }
 17524  
 17525  // GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result of
 17526  // querying a Knowledge base.
 17527  type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
 17528  	// Answers: A list of answers from Knowledge Connector.
 17529  	Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
 17530  	// ForceSendFields is a list of field names (e.g. "Answers") to unconditionally
 17531  	// include in API requests. By default, fields with empty or default values are
 17532  	// omitted from API requests. See
 17533  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17534  	// details.
 17535  	ForceSendFields []string `json:"-"`
 17536  	// NullFields is a list of field names (e.g. "Answers") to include in API
 17537  	// requests with the JSON null value. By default, fields with empty values are
 17538  	// omitted from API requests. See
 17539  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17540  	NullFields []string `json:"-"`
 17541  }
 17542  
 17543  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
 17544  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
 17545  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17546  }
 17547  
 17548  // GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from Knowledge
 17549  // Connector.
 17550  type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
 17551  	// Answer: The piece of text from the `source` knowledge base document that
 17552  	// answers this conversational query.
 17553  	Answer string `json:"answer,omitempty"`
 17554  	// FaqQuestion: The corresponding FAQ question if the answer was extracted from
 17555  	// a FAQ Document, empty otherwise.
 17556  	FaqQuestion string `json:"faqQuestion,omitempty"`
 17557  	// MatchConfidence: The system's confidence score that this Knowledge answer is
 17558  	// a good match for this conversational query. The range is from 0.0
 17559  	// (completely uncertain) to 1.0 (completely certain). Note: The confidence
 17560  	// score is likely to vary somewhat (possibly even for identical requests), as
 17561  	// the underlying model is under constant improvement. It may be deprecated in
 17562  	// the future. We recommend using `match_confidence_level` which should be
 17563  	// generally more stable.
 17564  	MatchConfidence float64 `json:"matchConfidence,omitempty"`
 17565  	// MatchConfidenceLevel: The system's confidence level that this knowledge
 17566  	// answer is a good match for this conversational query. NOTE: The confidence
 17567  	// level for a given `` pair may change without notice, as it depends on models
 17568  	// that are constantly being improved. However, it will change less frequently
 17569  	// than the confidence score below, and should be preferred for referencing the
 17570  	// quality of an answer.
 17571  	//
 17572  	// Possible values:
 17573  	//   "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified.
 17574  	//   "LOW" - Indicates that the confidence is low.
 17575  	//   "MEDIUM" - Indicates our confidence is medium.
 17576  	//   "HIGH" - Indicates our confidence is high.
 17577  	MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
 17578  	// Source: Indicates which Knowledge Document this answer was extracted from.
 17579  	// Format: `projects//knowledgeBases//documents/`.
 17580  	Source string `json:"source,omitempty"`
 17581  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 17582  	// include in API requests. By default, fields with empty or default values are
 17583  	// omitted from API requests. See
 17584  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17585  	// details.
 17586  	ForceSendFields []string `json:"-"`
 17587  	// NullFields is a list of field names (e.g. "Answer") to include in API
 17588  	// requests with the JSON null value. By default, fields with empty values are
 17589  	// omitted from API requests. See
 17590  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17591  	NullFields []string `json:"-"`
 17592  }
 17593  
 17594  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
 17595  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
 17596  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17597  }
 17598  
 17599  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
 17600  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
 17601  	var s1 struct {
 17602  		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
 17603  		*NoMethod
 17604  	}
 17605  	s1.NoMethod = (*NoMethod)(s)
 17606  	if err := json.Unmarshal(data, &s1); err != nil {
 17607  		return err
 17608  	}
 17609  	s.MatchConfidence = float64(s1.MatchConfidence)
 17610  	return nil
 17611  }
 17612  
 17613  // GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in
 17614  // google::longrunning::Operation for Knowledge operations.
 17615  type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
 17616  	// ExportOperationMetadata: Metadata for the Export Data Operation such as the
 17617  	// destination of export.
 17618  	ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
 17619  	// KnowledgeBase: The name of the knowledge base interacted with during the
 17620  	// operation.
 17621  	KnowledgeBase string `json:"knowledgeBase,omitempty"`
 17622  	// State: Required. Output only. The current state of this operation.
 17623  	//
 17624  	// Possible values:
 17625  	//   "STATE_UNSPECIFIED" - State unspecified.
 17626  	//   "PENDING" - The operation has been created.
 17627  	//   "RUNNING" - The operation is currently running.
 17628  	//   "DONE" - The operation is done, either cancelled or completed.
 17629  	State string `json:"state,omitempty"`
 17630  	// ForceSendFields is a list of field names (e.g. "ExportOperationMetadata") to
 17631  	// unconditionally include in API requests. By default, fields with empty or
 17632  	// default values are omitted from API requests. See
 17633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17634  	// details.
 17635  	ForceSendFields []string `json:"-"`
 17636  	// NullFields is a list of field names (e.g. "ExportOperationMetadata") to
 17637  	// include in API requests with the JSON null value. By default, fields with
 17638  	// empty values are omitted from API requests. See
 17639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17640  	NullFields []string `json:"-"`
 17641  }
 17642  
 17643  func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 17644  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
 17645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17646  }
 17647  
 17648  // GoogleCloudDialogflowV2beta1Message: Represents a message posted into a
 17649  // conversation.
 17650  type GoogleCloudDialogflowV2beta1Message struct {
 17651  	// Content: Required. The message content.
 17652  	Content string `json:"content,omitempty"`
 17653  	// CreateTime: Output only. The time when the message was created in Contact
 17654  	// Center AI.
 17655  	CreateTime string `json:"createTime,omitempty"`
 17656  	// LanguageCode: Optional. The message language. This should be a BCP-47
 17657  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 17658  	// "en-US".
 17659  	LanguageCode string `json:"languageCode,omitempty"`
 17660  	// MessageAnnotation: Output only. The annotation for the message.
 17661  	MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
 17662  	// Name: Optional. The unique identifier of the message. Format:
 17663  	// `projects//locations//conversations//messages/`.
 17664  	Name string `json:"name,omitempty"`
 17665  	// Participant: Output only. The participant that sends this message.
 17666  	Participant string `json:"participant,omitempty"`
 17667  	// ParticipantRole: Output only. The role of the participant.
 17668  	//
 17669  	// Possible values:
 17670  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 17671  	//   "HUMAN_AGENT" - Participant is a human agent.
 17672  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 17673  	// Dialogflow agent.
 17674  	//   "END_USER" - Participant is an end user that has called or chatted with
 17675  	// Dialogflow services.
 17676  	ParticipantRole string `json:"participantRole,omitempty"`
 17677  	// SendTime: Optional. The time when the message was sent.
 17678  	SendTime string `json:"sendTime,omitempty"`
 17679  	// SentimentAnalysis: Output only. The sentiment analysis result for the
 17680  	// message.
 17681  	SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
 17682  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 17683  	// include in API requests. By default, fields with empty or default values are
 17684  	// omitted from API requests. See
 17685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17686  	// details.
 17687  	ForceSendFields []string `json:"-"`
 17688  	// NullFields is a list of field names (e.g. "Content") to include in API
 17689  	// requests with the JSON null value. By default, fields with empty values are
 17690  	// omitted from API requests. See
 17691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17692  	NullFields []string `json:"-"`
 17693  }
 17694  
 17695  func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
 17696  	type NoMethod GoogleCloudDialogflowV2beta1Message
 17697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17698  }
 17699  
 17700  // GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result of
 17701  // annotation for the message.
 17702  type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
 17703  	// ContainEntities: Required. Indicates whether the text message contains
 17704  	// entities.
 17705  	ContainEntities bool `json:"containEntities,omitempty"`
 17706  	// Parts: Optional. The collection of annotated message parts ordered by their
 17707  	// position in the message. You can recover the annotated message by
 17708  	// concatenating [AnnotatedMessagePart.text].
 17709  	Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
 17710  	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
 17711  	// unconditionally include in API requests. By default, fields with empty or
 17712  	// default values are omitted from API requests. See
 17713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17714  	// details.
 17715  	ForceSendFields []string `json:"-"`
 17716  	// NullFields is a list of field names (e.g. "ContainEntities") to include in
 17717  	// API requests with the JSON null value. By default, fields with empty values
 17718  	// are omitted from API requests. See
 17719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17720  	NullFields []string `json:"-"`
 17721  }
 17722  
 17723  func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
 17724  	type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
 17725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17726  }
 17727  
 17728  // GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents the
 17729  // contents of the original request that was passed to the
 17730  // `[Streaming]DetectIntent` call.
 17731  type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
 17732  	// Payload: Optional. This field is set to the value of the
 17733  	// `QueryParameters.payload` field passed in the request. Some integrations
 17734  	// that query a Dialogflow agent may provide additional information in the
 17735  	// payload. In particular, for the Dialogflow Phone Gateway integration, this
 17736  	// field has the form: { "telephony": { "caller_id": "+18558363987" } } Note:
 17737  	// The caller ID field (`caller_id`) will be redacted for Trial Edition agents
 17738  	// and populated with the caller ID in E.164 format
 17739  	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
 17740  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 17741  	// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It
 17742  	// is set by Dialogflow-owned servers.
 17743  	Source string `json:"source,omitempty"`
 17744  	// Version: Optional. The version of the protocol used for this request. This
 17745  	// field is AoG-specific.
 17746  	Version string `json:"version,omitempty"`
 17747  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
 17748  	// include in API requests. By default, fields with empty or default values are
 17749  	// omitted from API requests. See
 17750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17751  	// details.
 17752  	ForceSendFields []string `json:"-"`
 17753  	// NullFields is a list of field names (e.g. "Payload") to include in API
 17754  	// requests with the JSON null value. By default, fields with empty values are
 17755  	// omitted from API requests. See
 17756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17757  	NullFields []string `json:"-"`
 17758  }
 17759  
 17760  func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
 17761  	type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
 17762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17763  }
 17764  
 17765  // GoogleCloudDialogflowV2beta1QueryResult: Represents the result of
 17766  // conversational query or event processing.
 17767  type GoogleCloudDialogflowV2beta1QueryResult struct {
 17768  	// Action: The action name from the matched intent.
 17769  	Action string `json:"action,omitempty"`
 17770  	// AllRequiredParamsPresent: This field is set to: - `false` if the matched
 17771  	// intent has required parameters and not all of the required parameter values
 17772  	// have been collected. - `true` if all required parameter values have been
 17773  	// collected, or if the matched intent doesn't contain any required parameters.
 17774  	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
 17775  	// CancelsSlotFilling: Indicates whether the conversational query triggers a
 17776  	// cancellation for slot filling. For more information, see the cancel slot
 17777  	// filling documentation
 17778  	// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
 17779  	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
 17780  	// DiagnosticInfo: Free-form diagnostic information for the associated detect
 17781  	// intent request. The fields of this data can change without notice, so you
 17782  	// should not write code that depends on its structure. The data may contain: -
 17783  	// webhook call latency - webhook errors
 17784  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
 17785  	// FulfillmentMessages: The collection of rich messages to present to the user.
 17786  	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
 17787  	// FulfillmentText: The text to be pronounced to the user or shown on the
 17788  	// screen. Note: This is a legacy field, `fulfillment_messages` should be
 17789  	// preferred.
 17790  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 17791  	// Intent: The intent that matched the conversational query. Some, not all
 17792  	// fields are filled in this message, including but not limited to: `name`,
 17793  	// `display_name`, `end_interaction` and `is_fallback`.
 17794  	Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
 17795  	// IntentDetectionConfidence: The intent detection confidence. Values range
 17796  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
 17797  	// for informational purpose only and is only used to help match the best
 17798  	// intent within the classification threshold. This value may change for the
 17799  	// same end-user expression at any time due to a model retraining or change in
 17800  	// implementation. If there are `multiple knowledge_answers` messages, this
 17801  	// value is set to the greatest `knowledgeAnswers.match_confidence` value in
 17802  	// the list.
 17803  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
 17804  	// KnowledgeAnswers: The result from Knowledge Connector (if any), ordered by
 17805  	// decreasing `KnowledgeAnswers.match_confidence`.
 17806  	KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
 17807  	// LanguageCode: The language that was triggered during intent detection. See
 17808  	// Language Support
 17809  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 17810  	// the currently supported language codes.
 17811  	LanguageCode string `json:"languageCode,omitempty"`
 17812  	// OutputContexts: The collection of output contexts. If applicable,
 17813  	// `output_contexts.parameters` contains entries with name `.original`
 17814  	// containing the original parameter values before the query.
 17815  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 17816  	// Parameters: The collection of extracted parameters. Depending on your
 17817  	// protocol or client library language, this is a map, associative array,
 17818  	// symbol table, dictionary, or JSON object composed of a collection of
 17819  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
 17820  	// name * MapValue type: If parameter's entity type is a composite entity then
 17821  	// use map, otherwise, depending on the parameter value type, it could be one
 17822  	// of string, number, boolean, null, list or map. * MapValue value: If
 17823  	// parameter's entity type is a composite entity then use map from composite
 17824  	// entity property names to property values, otherwise, use parameter value.
 17825  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 17826  	// QueryText: The original conversational query text: - If natural language
 17827  	// text was provided as input, `query_text` contains a copy of the input. - If
 17828  	// natural language speech audio was provided as input, `query_text` contains
 17829  	// the speech recognition result. If speech recognizer produced multiple
 17830  	// alternatives, a particular one is picked. - If automatic spell correction is
 17831  	// enabled, `query_text` will contain the corrected user input.
 17832  	QueryText string `json:"queryText,omitempty"`
 17833  	// SentimentAnalysisResult: The sentiment analysis result, which depends on the
 17834  	// `sentiment_analysis_request_config` specified in the request.
 17835  	SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
 17836  	// SpeechRecognitionConfidence: The Speech recognition confidence between 0.0
 17837  	// and 1.0. A higher number indicates an estimated greater likelihood that the
 17838  	// recognized words are correct. The default of 0.0 is a sentinel value
 17839  	// indicating that confidence was not set. This field is not guaranteed to be
 17840  	// accurate or set. In particular this field isn't set for
 17841  	// StreamingDetectIntent since the streaming endpoint has separate confidence
 17842  	// estimates per portion of the audio in StreamingRecognitionResult.
 17843  	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
 17844  	// WebhookPayload: If the query was fulfilled by a webhook call, this field is
 17845  	// set to the value of the `payload` field returned in the webhook response.
 17846  	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
 17847  	// WebhookSource: If the query was fulfilled by a webhook call, this field is
 17848  	// set to the value of the `source` field returned in the webhook response.
 17849  	WebhookSource string `json:"webhookSource,omitempty"`
 17850  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 17851  	// include in API requests. By default, fields with empty or default values are
 17852  	// omitted from API requests. See
 17853  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17854  	// details.
 17855  	ForceSendFields []string `json:"-"`
 17856  	// NullFields is a list of field names (e.g. "Action") to include in API
 17857  	// requests with the JSON null value. By default, fields with empty values are
 17858  	// omitted from API requests. See
 17859  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17860  	NullFields []string `json:"-"`
 17861  }
 17862  
 17863  func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
 17864  	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
 17865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17866  }
 17867  
 17868  func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
 17869  	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
 17870  	var s1 struct {
 17871  		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
 17872  		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
 17873  		*NoMethod
 17874  	}
 17875  	s1.NoMethod = (*NoMethod)(s)
 17876  	if err := json.Unmarshal(data, &s1); err != nil {
 17877  		return err
 17878  	}
 17879  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
 17880  	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
 17881  	return nil
 17882  }
 17883  
 17884  // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as
 17885  // positive/negative feeling or association, for a unit of analysis, such as
 17886  // the query text. See:
 17887  // https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
 17888  // for how to interpret the result.
 17889  type GoogleCloudDialogflowV2beta1Sentiment struct {
 17890  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 17891  	// the absolute magnitude of sentiment, regardless of score (positive or
 17892  	// negative).
 17893  	Magnitude float64 `json:"magnitude,omitempty"`
 17894  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 17895  	// sentiment).
 17896  	Score float64 `json:"score,omitempty"`
 17897  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 17898  	// unconditionally include in API requests. By default, fields with empty or
 17899  	// default values are omitted from API requests. See
 17900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17901  	// details.
 17902  	ForceSendFields []string `json:"-"`
 17903  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 17904  	// requests with the JSON null value. By default, fields with empty values are
 17905  	// omitted from API requests. See
 17906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17907  	NullFields []string `json:"-"`
 17908  }
 17909  
 17910  func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
 17911  	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
 17912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17913  }
 17914  
 17915  func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
 17916  	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
 17917  	var s1 struct {
 17918  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 17919  		Score     gensupport.JSONFloat64 `json:"score"`
 17920  		*NoMethod
 17921  	}
 17922  	s1.NoMethod = (*NoMethod)(s)
 17923  	if err := json.Unmarshal(data, &s1); err != nil {
 17924  		return err
 17925  	}
 17926  	s.Magnitude = float64(s1.Magnitude)
 17927  	s.Score = float64(s1.Score)
 17928  	return nil
 17929  }
 17930  
 17931  // GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of sentiment
 17932  // analysis. Sentiment analysis inspects user input and identifies the
 17933  // prevailing subjective opinion, especially to determine a user's attitude as
 17934  // positive, negative, or neutral. For Participants.DetectIntent, it needs to
 17935  // be configured in DetectIntentRequest.query_params. For
 17936  // Participants.StreamingDetectIntent, it needs to be configured in
 17937  // StreamingDetectIntentRequest.query_params. And for
 17938  // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it
 17939  // needs to be configured in ConversationProfile.human_agent_assistant_config
 17940  type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
 17941  	// QueryTextSentiment: The sentiment analysis result for `query_text`.
 17942  	QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
 17943  	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to
 17944  	// unconditionally include in API requests. By default, fields with empty or
 17945  	// default values are omitted from API requests. See
 17946  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17947  	// details.
 17948  	ForceSendFields []string `json:"-"`
 17949  	// NullFields is a list of field names (e.g. "QueryTextSentiment") to include
 17950  	// in API requests with the JSON null value. By default, fields with empty
 17951  	// values are omitted from API requests. See
 17952  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17953  	NullFields []string `json:"-"`
 17954  }
 17955  
 17956  func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 17957  	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
 17958  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17959  }
 17960  
 17961  // GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a
 17962  // conversation between a Dialogflow agent and an end-user. You can create
 17963  // special entities, called session entities, during a session. Session
 17964  // entities can extend or replace custom entity types and only exist during the
 17965  // session that they were created for. All session data, including session
 17966  // entities, is stored by Dialogflow for 20 minutes. For more information, see
 17967  // the session entity guide
 17968  // (https://cloud.google.com/dialogflow/docs/entities-session).
 17969  type GoogleCloudDialogflowV2beta1SessionEntityType struct {
 17970  	// Entities: Required. The collection of entities associated with this session
 17971  	// entity type.
 17972  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 17973  	// EntityOverrideMode: Required. Indicates whether the additional data should
 17974  	// override or supplement the custom entity type definition.
 17975  	//
 17976  	// Possible values:
 17977  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 17978  	// never used.
 17979  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 17980  	// overrides the collection of entities in the corresponding custom entity
 17981  	// type.
 17982  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 17983  	// extends the collection of entities in the corresponding custom entity type.
 17984  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 17985  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 17986  	// `UpdateSessionEntityType` only return the additional entities added in this
 17987  	// session entity type. If you want to get the supplemented list, please call
 17988  	// EntityTypes.GetEntityType on the custom entity type and merge.
 17989  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 17990  	// Name: Required. The unique identifier of this session entity type. Supported
 17991  	// formats: - `projects//agent/sessions//entityTypes/` -
 17992  	// `projects//locations//agent/sessions//entityTypes/` -
 17993  	// `projects//agent/environments//users//sessions//entityTypes/` -
 17994  	// `projects//locations//agent/environments/ /users//sessions//entityTypes/` If
 17995  	// `Location ID` is not specified we assume default 'us' location. If
 17996  	// `Environment ID` is not specified, we assume default 'draft' environment. If
 17997  	// `User ID` is not specified, we assume default '-' user. `` must be the
 17998  	// display name of an existing entity type in the same agent that will be
 17999  	// overridden or supplemented.
 18000  	Name string `json:"name,omitempty"`
 18001  	// ForceSendFields is a list of field names (e.g. "Entities") to
 18002  	// unconditionally include in API requests. By default, fields with empty or
 18003  	// default values are omitted from API requests. See
 18004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18005  	// details.
 18006  	ForceSendFields []string `json:"-"`
 18007  	// NullFields is a list of field names (e.g. "Entities") to include in API
 18008  	// requests with the JSON null value. By default, fields with empty values are
 18009  	// omitted from API requests. See
 18010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18011  	NullFields []string `json:"-"`
 18012  }
 18013  
 18014  func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
 18015  	type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
 18016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18017  }
 18018  
 18019  // GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata:
 18020  // Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
 18021  type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
 18022  	// ConversationProfile: The resource name of the conversation profile. Format:
 18023  	// `projects//locations//conversationProfiles/`
 18024  	ConversationProfile string `json:"conversationProfile,omitempty"`
 18025  	// CreateTime: Timestamp whe the request was created. The time is measured on
 18026  	// server side.
 18027  	CreateTime string `json:"createTime,omitempty"`
 18028  	// ParticipantRole: Required. The participant role to add or update the
 18029  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 18030  	//
 18031  	// Possible values:
 18032  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 18033  	//   "HUMAN_AGENT" - Participant is a human agent.
 18034  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 18035  	// Dialogflow agent.
 18036  	//   "END_USER" - Participant is an end user that has called or chatted with
 18037  	// Dialogflow services.
 18038  	ParticipantRole string `json:"participantRole,omitempty"`
 18039  	// SuggestionFeatureType: Required. The type of the suggestion feature to add
 18040  	// or update.
 18041  	//
 18042  	// Possible values:
 18043  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 18044  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 18045  	//   "FAQ" - Run FAQ model.
 18046  	//   "SMART_REPLY" - Run smart reply model for chat.
 18047  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 18048  	// return automated agent response as suggestion.
 18049  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 18050  	// chat.
 18051  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 18052  	// text generated query.
 18053  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 18054  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 18055  	// unconditionally include in API requests. By default, fields with empty or
 18056  	// default values are omitted from API requests. See
 18057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18058  	// details.
 18059  	ForceSendFields []string `json:"-"`
 18060  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 18061  	// in API requests with the JSON null value. By default, fields with empty
 18062  	// values are omitted from API requests. See
 18063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18064  	NullFields []string `json:"-"`
 18065  }
 18066  
 18067  func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 18068  	type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
 18069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18070  }
 18071  
 18072  // GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart reply
 18073  // answer.
 18074  type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
 18075  	// AnswerRecord: The name of answer record, in the format of
 18076  	// "projects//locations//answerRecords/"
 18077  	AnswerRecord string `json:"answerRecord,omitempty"`
 18078  	// Confidence: Smart reply confidence. The system's confidence score that this
 18079  	// reply is a good match for this conversation, as a value from 0.0 (completely
 18080  	// uncertain) to 1.0 (completely certain).
 18081  	Confidence float64 `json:"confidence,omitempty"`
 18082  	// Reply: The content of the reply.
 18083  	Reply string `json:"reply,omitempty"`
 18084  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 18085  	// unconditionally include in API requests. By default, fields with empty or
 18086  	// default values are omitted from API requests. See
 18087  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18088  	// details.
 18089  	ForceSendFields []string `json:"-"`
 18090  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 18091  	// requests with the JSON null value. By default, fields with empty values are
 18092  	// omitted from API requests. See
 18093  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18094  	NullFields []string `json:"-"`
 18095  }
 18096  
 18097  func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
 18098  	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
 18099  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18100  }
 18101  
 18102  func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
 18103  	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
 18104  	var s1 struct {
 18105  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 18106  		*NoMethod
 18107  	}
 18108  	s1.NoMethod = (*NoMethod)(s)
 18109  	if err := json.Unmarshal(data, &s1); err != nil {
 18110  		return err
 18111  	}
 18112  	s.Confidence = float64(s1.Confidence)
 18113  	return nil
 18114  }
 18115  
 18116  // GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response message
 18117  // for Participants.SuggestArticles.
 18118  type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
 18119  	// ArticleAnswers: Output only. Articles ordered by score in descending order.
 18120  	ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
 18121  	// ContextSize: Number of messages prior to and including latest_message to
 18122  	// compile the suggestion. It may be smaller than the
 18123  	// SuggestArticlesResponse.context_size field in the request if there aren't
 18124  	// that many messages in the conversation.
 18125  	ContextSize int64 `json:"contextSize,omitempty"`
 18126  	// LatestMessage: The name of the latest conversation message used to compile
 18127  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 18128  	LatestMessage string `json:"latestMessage,omitempty"`
 18129  	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
 18130  	// unconditionally include in API requests. By default, fields with empty or
 18131  	// default values are omitted from API requests. See
 18132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18133  	// details.
 18134  	ForceSendFields []string `json:"-"`
 18135  	// NullFields is a list of field names (e.g. "ArticleAnswers") to include in
 18136  	// API requests with the JSON null value. By default, fields with empty values
 18137  	// are omitted from API requests. See
 18138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18139  	NullFields []string `json:"-"`
 18140  }
 18141  
 18142  func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
 18143  	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
 18144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18145  }
 18146  
 18147  // GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse: The response
 18148  // message for Participants.SuggestDialogflowAssists.
 18149  type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
 18150  	// ContextSize: Number of messages prior to and including latest_message to
 18151  	// compile the suggestion. It may be smaller than the
 18152  	// SuggestDialogflowAssistsRequest.context_size field in the request if there
 18153  	// aren't that many messages in the conversation.
 18154  	ContextSize int64 `json:"contextSize,omitempty"`
 18155  	// DialogflowAssistAnswers: Output only. Multiple reply options provided by
 18156  	// Dialogflow assist service. The order is based on the rank of the model
 18157  	// prediction.
 18158  	DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
 18159  	// LatestMessage: The name of the latest conversation message used to suggest
 18160  	// answer. Format: `projects//locations//conversations//messages/`.
 18161  	LatestMessage string `json:"latestMessage,omitempty"`
 18162  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 18163  	// unconditionally include in API requests. By default, fields with empty or
 18164  	// default values are omitted from API requests. See
 18165  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18166  	// details.
 18167  	ForceSendFields []string `json:"-"`
 18168  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 18169  	// requests with the JSON null value. By default, fields with empty values are
 18170  	// omitted from API requests. See
 18171  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18172  	NullFields []string `json:"-"`
 18173  }
 18174  
 18175  func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
 18176  	type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
 18177  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18178  }
 18179  
 18180  // GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request message
 18181  // for Participants.SuggestFaqAnswers.
 18182  type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
 18183  	// ContextSize: Number of messages prior to and including latest_message to
 18184  	// compile the suggestion. It may be smaller than the
 18185  	// SuggestFaqAnswersRequest.context_size field in the request if there aren't
 18186  	// that many messages in the conversation.
 18187  	ContextSize int64 `json:"contextSize,omitempty"`
 18188  	// FaqAnswers: Output only. Answers extracted from FAQ documents.
 18189  	FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
 18190  	// LatestMessage: The name of the latest conversation message used to compile
 18191  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 18192  	LatestMessage string `json:"latestMessage,omitempty"`
 18193  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 18194  	// unconditionally include in API requests. By default, fields with empty or
 18195  	// default values are omitted from API requests. See
 18196  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18197  	// details.
 18198  	ForceSendFields []string `json:"-"`
 18199  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 18200  	// requests with the JSON null value. By default, fields with empty values are
 18201  	// omitted from API requests. See
 18202  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18203  	NullFields []string `json:"-"`
 18204  }
 18205  
 18206  func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
 18207  	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
 18208  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18209  }
 18210  
 18211  // GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The response
 18212  // message for Participants.SuggestSmartReplies.
 18213  type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
 18214  	// ContextSize: Number of messages prior to and including latest_message to
 18215  	// compile the suggestion. It may be smaller than the
 18216  	// SuggestSmartRepliesRequest.context_size field in the request if there aren't
 18217  	// that many messages in the conversation.
 18218  	ContextSize int64 `json:"contextSize,omitempty"`
 18219  	// LatestMessage: The name of the latest conversation message used to compile
 18220  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 18221  	LatestMessage string `json:"latestMessage,omitempty"`
 18222  	// SmartReplyAnswers: Output only. Multiple reply options provided by smart
 18223  	// reply service. The order is based on the rank of the model prediction. The
 18224  	// maximum number of the returned replies is set in SmartReplyConfig.
 18225  	SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
 18226  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 18227  	// unconditionally include in API requests. By default, fields with empty or
 18228  	// default values are omitted from API requests. See
 18229  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18230  	// details.
 18231  	ForceSendFields []string `json:"-"`
 18232  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 18233  	// requests with the JSON null value. By default, fields with empty values are
 18234  	// omitted from API requests. See
 18235  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18236  	NullFields []string `json:"-"`
 18237  }
 18238  
 18239  func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
 18240  	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
 18241  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18242  }
 18243  
 18244  // GoogleCloudDialogflowV2beta1SuggestionResult: One response of different type
 18245  // of suggestion response which is used in the response of
 18246  // Participants.AnalyzeContent and Participants.AnalyzeContent, as well as
 18247  // HumanAgentAssistantEvent.
 18248  type GoogleCloudDialogflowV2beta1SuggestionResult struct {
 18249  	// Error: Error status if the request failed.
 18250  	Error *GoogleRpcStatus `json:"error,omitempty"`
 18251  	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
 18252  	// ARTICLE_SUGGESTION.
 18253  	SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
 18254  	// SuggestDialogflowAssistsResponse: SuggestDialogflowAssistsResponse if
 18255  	// request is for DIALOGFLOW_ASSIST.
 18256  	SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
 18257  	// SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if request
 18258  	// is for ENTITY_EXTRACTION.
 18259  	SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
 18260  	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for
 18261  	// FAQ_ANSWER.
 18262  	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
 18263  	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for
 18264  	// SMART_REPLY.
 18265  	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
 18266  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 18267  	// include in API requests. By default, fields with empty or default values are
 18268  	// omitted from API requests. See
 18269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18270  	// details.
 18271  	ForceSendFields []string `json:"-"`
 18272  	// NullFields is a list of field names (e.g. "Error") to include in API
 18273  	// requests with the JSON null value. By default, fields with empty values are
 18274  	// omitted from API requests. See
 18275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18276  	NullFields []string `json:"-"`
 18277  }
 18278  
 18279  func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
 18280  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
 18281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18282  }
 18283  
 18284  // GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a
 18285  // webhook call.
 18286  type GoogleCloudDialogflowV2beta1WebhookRequest struct {
 18287  	// AlternativeQueryResults: Alternative query results from KnowledgeService.
 18288  	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
 18289  	// OriginalDetectIntentRequest: Optional. The contents of the original request
 18290  	// that was passed to `[Streaming]DetectIntent` call.
 18291  	OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
 18292  	// QueryResult: The result of the conversational query or event processing.
 18293  	// Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
 18294  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 18295  	// ResponseId: The unique identifier of the response. Contains the same value
 18296  	// as `[Streaming]DetectIntentResponse.response_id`.
 18297  	ResponseId string `json:"responseId,omitempty"`
 18298  	// Session: The unique identifier of detectIntent request session. Can be used
 18299  	// to identify end-user inside webhook implementation. Supported formats: -
 18300  	// `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 18301  	// `projects//agent/environments//users//sessions/`, -
 18302  	// `projects//locations//agent/environments//users//sessions/`,
 18303  	Session string `json:"session,omitempty"`
 18304  	// ForceSendFields is a list of field names (e.g. "AlternativeQueryResults") to
 18305  	// unconditionally include in API requests. By default, fields with empty or
 18306  	// default values are omitted from API requests. See
 18307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18308  	// details.
 18309  	ForceSendFields []string `json:"-"`
 18310  	// NullFields is a list of field names (e.g. "AlternativeQueryResults") to
 18311  	// include in API requests with the JSON null value. By default, fields with
 18312  	// empty values are omitted from API requests. See
 18313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18314  	NullFields []string `json:"-"`
 18315  }
 18316  
 18317  func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
 18318  	type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
 18319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18320  }
 18321  
 18322  // GoogleCloudDialogflowV2beta1WebhookResponse: The response message for a
 18323  // webhook call. This response is validated by the Dialogflow server. If
 18324  // validation fails, an error will be returned in the
 18325  // QueryResult.diagnostic_info field. Setting JSON fields to an empty value
 18326  // with the wrong type is a common error. To avoid this error: - Use "" for
 18327  // empty strings - Use `{}` or `null` for empty objects - Use `[]` or `null`
 18328  // for empty arrays For more information, see the Protocol Buffers Language
 18329  // Guide (https://developers.google.com/protocol-buffers/docs/proto3#json).
 18330  type GoogleCloudDialogflowV2beta1WebhookResponse struct {
 18331  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 18332  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 18333  	// this information to close interaction with an end user. Default is false.
 18334  	EndInteraction bool `json:"endInteraction,omitempty"`
 18335  	// FollowupEventInput: Optional. Invokes the supplied events. When this field
 18336  	// is set, Dialogflow ignores the `fulfillment_text`, `fulfillment_messages`,
 18337  	// and `payload` fields.
 18338  	FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
 18339  	// FulfillmentMessages: Optional. The rich response messages intended for the
 18340  	// end-user. When provided, Dialogflow uses this field to populate
 18341  	// QueryResult.fulfillment_messages sent to the integration or API caller.
 18342  	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
 18343  	// FulfillmentText: Optional. The text response message intended for the
 18344  	// end-user. It is recommended to use `fulfillment_messages.text.text[0]`
 18345  	// instead. When provided, Dialogflow uses this field to populate
 18346  	// QueryResult.fulfillment_text sent to the integration or API caller.
 18347  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 18348  	// LiveAgentHandoff: Indicates that a live agent should be brought in to handle
 18349  	// the interaction with the user. In most cases, when you set this flag to
 18350  	// true, you would also want to set end_interaction to true as well. Default is
 18351  	// false.
 18352  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 18353  	// OutputContexts: Optional. The collection of output contexts that will
 18354  	// overwrite currently active contexts for the session and reset their
 18355  	// lifespans. When provided, Dialogflow uses this field to populate
 18356  	// QueryResult.output_contexts sent to the integration or API caller.
 18357  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 18358  	// Payload: Optional. This field can be used to pass custom data from your
 18359  	// webhook to the integration or API caller. Arbitrary JSON objects are
 18360  	// supported. When provided, Dialogflow uses this field to populate
 18361  	// QueryResult.webhook_payload sent to the integration or API caller. This
 18362  	// field is also used by the Google Assistant integration
 18363  	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
 18364  	// response messages. See the format definition at Google Assistant Dialogflow
 18365  	// webhook format
 18366  	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
 18367  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 18368  	// SessionEntityTypes: Optional. Additional session entity types to replace or
 18369  	// extend developer entity types with. The entity synonyms apply to all
 18370  	// languages and persist for the session. Setting this data from a webhook
 18371  	// overwrites the session entity types that have been set using `detectIntent`,
 18372  	// `streamingDetectIntent` or SessionEntityType management methods.
 18373  	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
 18374  	// Source: Optional. A custom field used to identify the webhook source.
 18375  	// Arbitrary strings are supported. When provided, Dialogflow uses this field
 18376  	// to populate QueryResult.webhook_source sent to the integration or API
 18377  	// caller.
 18378  	Source string `json:"source,omitempty"`
 18379  	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
 18380  	// unconditionally include in API requests. By default, fields with empty or
 18381  	// default values are omitted from API requests. See
 18382  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18383  	// details.
 18384  	ForceSendFields []string `json:"-"`
 18385  	// NullFields is a list of field names (e.g. "EndInteraction") to include in
 18386  	// API requests with the JSON null value. By default, fields with empty values
 18387  	// are omitted from API requests. See
 18388  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18389  	NullFields []string `json:"-"`
 18390  }
 18391  
 18392  func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
 18393  	type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
 18394  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18395  }
 18396  
 18397  // GoogleCloudDialogflowV3alpha1ConversationSignals: This message is used to
 18398  // hold all the Conversation Signals data, which will be converted to JSON and
 18399  // exported to BigQuery.
 18400  type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
 18401  	// TurnSignals: Required. Turn signals for the current turn.
 18402  	TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
 18403  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
 18404  	// unconditionally include in API requests. By default, fields with empty or
 18405  	// default values are omitted from API requests. See
 18406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18407  	// details.
 18408  	ForceSendFields []string `json:"-"`
 18409  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
 18410  	// requests with the JSON null value. By default, fields with empty values are
 18411  	// omitted from API requests. See
 18412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18413  	NullFields []string `json:"-"`
 18414  }
 18415  
 18416  func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
 18417  	type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
 18418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18419  }
 18420  
 18421  // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: Metadata for
 18422  // CreateDocument operation.
 18423  type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
 18424  	// GenericMetadata: The generic information of the operation.
 18425  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18426  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18427  	// unconditionally include in API requests. By default, fields with empty or
 18428  	// default values are omitted from API requests. See
 18429  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18430  	// details.
 18431  	ForceSendFields []string `json:"-"`
 18432  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18433  	// API requests with the JSON null value. By default, fields with empty values
 18434  	// are omitted from API requests. See
 18435  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18436  	NullFields []string `json:"-"`
 18437  }
 18438  
 18439  func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18440  	type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
 18441  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18442  }
 18443  
 18444  // GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata: Metadata for
 18445  // DeleteDocument operation.
 18446  type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
 18447  	// GenericMetadata: The generic information of the operation.
 18448  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18449  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18450  	// unconditionally include in API requests. By default, fields with empty or
 18451  	// default values are omitted from API requests. See
 18452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18453  	// details.
 18454  	ForceSendFields []string `json:"-"`
 18455  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18456  	// API requests with the JSON null value. By default, fields with empty values
 18457  	// are omitted from API requests. See
 18458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18459  	NullFields []string `json:"-"`
 18460  }
 18461  
 18462  func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18463  	type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
 18464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18465  }
 18466  
 18467  // GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata: Metadata in
 18468  // google::longrunning::Operation for Knowledge operations.
 18469  type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
 18470  	// State: Required. Output only. The current state of this operation.
 18471  	//
 18472  	// Possible values:
 18473  	//   "STATE_UNSPECIFIED" - State unspecified.
 18474  	//   "PENDING" - The operation has been created.
 18475  	//   "RUNNING" - The operation is currently running.
 18476  	//   "DONE" - The operation is done, either cancelled or completed.
 18477  	State string `json:"state,omitempty"`
 18478  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
 18479  	// include in API requests. By default, fields with empty or default values are
 18480  	// omitted from API requests. See
 18481  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18482  	// details.
 18483  	ForceSendFields []string `json:"-"`
 18484  	// NullFields is a list of field names (e.g. "State") to include in API
 18485  	// requests with the JSON null value. By default, fields with empty values are
 18486  	// omitted from API requests. See
 18487  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18488  	NullFields []string `json:"-"`
 18489  }
 18490  
 18491  func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 18492  	type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
 18493  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18494  }
 18495  
 18496  // GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata: Metadata for
 18497  // ImportDocuments operation.
 18498  type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
 18499  	// GenericMetadata: The generic information of the operation.
 18500  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18501  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18502  	// unconditionally include in API requests. By default, fields with empty or
 18503  	// default values are omitted from API requests. See
 18504  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18505  	// details.
 18506  	ForceSendFields []string `json:"-"`
 18507  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18508  	// API requests with the JSON null value. By default, fields with empty values
 18509  	// are omitted from API requests. See
 18510  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18511  	NullFields []string `json:"-"`
 18512  }
 18513  
 18514  func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
 18515  	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
 18516  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18517  }
 18518  
 18519  // GoogleCloudDialogflowV3alpha1ImportDocumentsResponse: Response message for
 18520  // Documents.ImportDocuments.
 18521  type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
 18522  	// Warnings: Includes details about skipped documents or any other warnings.
 18523  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 18524  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 18525  	// unconditionally include in API requests. By default, fields with empty or
 18526  	// default values are omitted from API requests. See
 18527  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18528  	// details.
 18529  	ForceSendFields []string `json:"-"`
 18530  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 18531  	// requests with the JSON null value. By default, fields with empty values are
 18532  	// omitted from API requests. See
 18533  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18534  	NullFields []string `json:"-"`
 18535  }
 18536  
 18537  func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 18538  	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
 18539  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18540  }
 18541  
 18542  // GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata: Metadata for
 18543  // ReloadDocument operation.
 18544  type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
 18545  	// GenericMetadata: The generic information of the operation.
 18546  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18547  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18548  	// unconditionally include in API requests. By default, fields with empty or
 18549  	// default values are omitted from API requests. See
 18550  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18551  	// details.
 18552  	ForceSendFields []string `json:"-"`
 18553  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18554  	// API requests with the JSON null value. By default, fields with empty values
 18555  	// are omitted from API requests. See
 18556  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18557  	NullFields []string `json:"-"`
 18558  }
 18559  
 18560  func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18561  	type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
 18562  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18563  }
 18564  
 18565  // GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals that
 18566  // were extracted for a single turn of the conversation.
 18567  type GoogleCloudDialogflowV3alpha1TurnSignals struct {
 18568  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
 18569  	AgentEscalated bool `json:"agentEscalated,omitempty"`
 18570  	// DtmfUsed: Whether user was using DTMF input.
 18571  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
 18572  	// FailureReasons: Failure reasons of the turn.
 18573  	//
 18574  	// Possible values:
 18575  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
 18576  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
 18577  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
 18578  	FailureReasons []string `json:"failureReasons,omitempty"`
 18579  	// NoMatch: Whether NLU predicted NO_MATCH.
 18580  	NoMatch bool `json:"noMatch,omitempty"`
 18581  	// NoUserInput: Whether user provided no input.
 18582  	NoUserInput bool `json:"noUserInput,omitempty"`
 18583  	// ReachedEndPage: Whether turn resulted in End Session page.
 18584  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
 18585  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
 18586  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 18587  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
 18588  	// SentimentScore: Sentiment score of the user utterance if sentiment
 18589  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 18590  	SentimentScore float64 `json:"sentimentScore,omitempty"`
 18591  	// TriggeredAbandonmentEvent: Whether agent has triggered the event
 18592  	// corresponding to user abandoning the conversation.
 18593  	TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
 18594  	// UserEscalated: Whether user was specifically asking for a live agent.
 18595  	UserEscalated bool `json:"userEscalated,omitempty"`
 18596  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
 18597  	// this turn.
 18598  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
 18599  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
 18600  	// unconditionally include in API requests. By default, fields with empty or
 18601  	// default values are omitted from API requests. See
 18602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18603  	// details.
 18604  	ForceSendFields []string `json:"-"`
 18605  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
 18606  	// API requests with the JSON null value. By default, fields with empty values
 18607  	// are omitted from API requests. See
 18608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18609  	NullFields []string `json:"-"`
 18610  }
 18611  
 18612  func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
 18613  	type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
 18614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18615  }
 18616  
 18617  func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
 18618  	type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
 18619  	var s1 struct {
 18620  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
 18621  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
 18622  		*NoMethod
 18623  	}
 18624  	s1.NoMethod = (*NoMethod)(s)
 18625  	if err := json.Unmarshal(data, &s1); err != nil {
 18626  		return err
 18627  	}
 18628  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
 18629  	s.SentimentScore = float64(s1.SentimentScore)
 18630  	return nil
 18631  }
 18632  
 18633  // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: Metadata for
 18634  // UpdateDocument operation.
 18635  type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
 18636  	// GenericMetadata: The generic information of the operation.
 18637  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18638  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18639  	// unconditionally include in API requests. By default, fields with empty or
 18640  	// default values are omitted from API requests. See
 18641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18642  	// details.
 18643  	ForceSendFields []string `json:"-"`
 18644  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18645  	// API requests with the JSON null value. By default, fields with empty values
 18646  	// are omitted from API requests. See
 18647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18648  	NullFields []string `json:"-"`
 18649  }
 18650  
 18651  func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18652  	type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
 18653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18654  }
 18655  
 18656  // GoogleCloudLocationListLocationsResponse: The response message for
 18657  // Locations.ListLocations.
 18658  type GoogleCloudLocationListLocationsResponse struct {
 18659  	// Locations: A list of locations that matches the specified filter in the
 18660  	// request.
 18661  	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
 18662  	// NextPageToken: The standard List next-page token.
 18663  	NextPageToken string `json:"nextPageToken,omitempty"`
 18664  
 18665  	// ServerResponse contains the HTTP response code and headers from the server.
 18666  	googleapi.ServerResponse `json:"-"`
 18667  	// ForceSendFields is a list of field names (e.g. "Locations") to
 18668  	// unconditionally include in API requests. By default, fields with empty or
 18669  	// default values are omitted from API requests. See
 18670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18671  	// details.
 18672  	ForceSendFields []string `json:"-"`
 18673  	// NullFields is a list of field names (e.g. "Locations") to include in API
 18674  	// requests with the JSON null value. By default, fields with empty values are
 18675  	// omitted from API requests. See
 18676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18677  	NullFields []string `json:"-"`
 18678  }
 18679  
 18680  func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
 18681  	type NoMethod GoogleCloudLocationListLocationsResponse
 18682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18683  }
 18684  
 18685  // GoogleCloudLocationLocation: A resource that represents a Google Cloud
 18686  // location.
 18687  type GoogleCloudLocationLocation struct {
 18688  	// DisplayName: The friendly name for this location, typically a nearby city
 18689  	// name. For example, "Tokyo".
 18690  	DisplayName string `json:"displayName,omitempty"`
 18691  	// Labels: Cross-service attributes for the location. For example
 18692  	// {"cloud.googleapis.com/region": "us-east1"}
 18693  	Labels map[string]string `json:"labels,omitempty"`
 18694  	// LocationId: The canonical id for this location. For example: "us-east1".
 18695  	LocationId string `json:"locationId,omitempty"`
 18696  	// Metadata: Service-specific metadata. For example the available capacity at
 18697  	// the given location.
 18698  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 18699  	// Name: Resource name for the location, which may vary between
 18700  	// implementations. For example:
 18701  	// "projects/example-project/locations/us-east1"
 18702  	Name string `json:"name,omitempty"`
 18703  
 18704  	// ServerResponse contains the HTTP response code and headers from the server.
 18705  	googleapi.ServerResponse `json:"-"`
 18706  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 18707  	// unconditionally include in API requests. By default, fields with empty or
 18708  	// default values are omitted from API requests. See
 18709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18710  	// details.
 18711  	ForceSendFields []string `json:"-"`
 18712  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 18713  	// requests with the JSON null value. By default, fields with empty values are
 18714  	// omitted from API requests. See
 18715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18716  	NullFields []string `json:"-"`
 18717  }
 18718  
 18719  func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
 18720  	type NoMethod GoogleCloudLocationLocation
 18721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18722  }
 18723  
 18724  // GoogleLongrunningListOperationsResponse: The response message for
 18725  // Operations.ListOperations.
 18726  type GoogleLongrunningListOperationsResponse struct {
 18727  	// NextPageToken: The standard List next-page token.
 18728  	NextPageToken string `json:"nextPageToken,omitempty"`
 18729  	// Operations: A list of operations that matches the specified filter in the
 18730  	// request.
 18731  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 18732  
 18733  	// ServerResponse contains the HTTP response code and headers from the server.
 18734  	googleapi.ServerResponse `json:"-"`
 18735  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 18736  	// unconditionally include in API requests. By default, fields with empty or
 18737  	// default values are omitted from API requests. See
 18738  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18739  	// details.
 18740  	ForceSendFields []string `json:"-"`
 18741  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 18742  	// requests with the JSON null value. By default, fields with empty values are
 18743  	// omitted from API requests. See
 18744  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18745  	NullFields []string `json:"-"`
 18746  }
 18747  
 18748  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 18749  	type NoMethod GoogleLongrunningListOperationsResponse
 18750  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18751  }
 18752  
 18753  // GoogleLongrunningOperation: This resource represents a long-running
 18754  // operation that is the result of a network API call.
 18755  type GoogleLongrunningOperation struct {
 18756  	// Done: If the value is `false`, it means the operation is still in progress.
 18757  	// If `true`, the operation is completed, and either `error` or `response` is
 18758  	// available.
 18759  	Done bool `json:"done,omitempty"`
 18760  	// Error: The error result of the operation in case of failure or cancellation.
 18761  	Error *GoogleRpcStatus `json:"error,omitempty"`
 18762  	// Metadata: Service-specific metadata associated with the operation. It
 18763  	// typically contains progress information and common metadata such as create
 18764  	// time. Some services might not provide such metadata. Any method that returns
 18765  	// a long-running operation should document the metadata type, if any.
 18766  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 18767  	// Name: The server-assigned name, which is only unique within the same service
 18768  	// that originally returns it. If you use the default HTTP mapping, the `name`
 18769  	// should be a resource name ending with `operations/{unique_id}`.
 18770  	Name string `json:"name,omitempty"`
 18771  	// Response: The normal, successful response of the operation. If the original
 18772  	// method returns no data on success, such as `Delete`, the response is
 18773  	// `google.protobuf.Empty`. If the original method is standard
 18774  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 18775  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 18776  	// original method name. For example, if the original method name is
 18777  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 18778  	Response googleapi.RawMessage `json:"response,omitempty"`
 18779  
 18780  	// ServerResponse contains the HTTP response code and headers from the server.
 18781  	googleapi.ServerResponse `json:"-"`
 18782  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 18783  	// include in API requests. By default, fields with empty or default values are
 18784  	// omitted from API requests. See
 18785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18786  	// details.
 18787  	ForceSendFields []string `json:"-"`
 18788  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 18789  	// with the JSON null value. By default, fields with empty values are omitted
 18790  	// from API requests. See
 18791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18792  	NullFields []string `json:"-"`
 18793  }
 18794  
 18795  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 18796  	type NoMethod GoogleLongrunningOperation
 18797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18798  }
 18799  
 18800  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 18801  // defining duplicated empty messages in your APIs. A typical example is to use
 18802  // it as the request or the response type of an API method. For instance:
 18803  // service Foo { rpc Bar(google.protobuf.Empty) returns
 18804  // (google.protobuf.Empty); }
 18805  type GoogleProtobufEmpty struct {
 18806  	// ServerResponse contains the HTTP response code and headers from the server.
 18807  	googleapi.ServerResponse `json:"-"`
 18808  }
 18809  
 18810  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 18811  // suitable for different programming environments, including REST APIs and RPC
 18812  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 18813  // contains three pieces of data: error code, error message, and error details.
 18814  // You can find out more about this error model and how to work with it in the
 18815  // API Design Guide (https://cloud.google.com/apis/design/errors).
 18816  type GoogleRpcStatus struct {
 18817  	// Code: The status code, which should be an enum value of google.rpc.Code.
 18818  	Code int64 `json:"code,omitempty"`
 18819  	// Details: A list of messages that carry the error details. There is a common
 18820  	// set of message types for APIs to use.
 18821  	Details []googleapi.RawMessage `json:"details,omitempty"`
 18822  	// Message: A developer-facing error message, which should be in English. Any
 18823  	// user-facing error message should be localized and sent in the
 18824  	// google.rpc.Status.details field, or localized by the client.
 18825  	Message string `json:"message,omitempty"`
 18826  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 18827  	// include in API requests. By default, fields with empty or default values are
 18828  	// omitted from API requests. See
 18829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18830  	// details.
 18831  	ForceSendFields []string `json:"-"`
 18832  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 18833  	// with the JSON null value. By default, fields with empty values are omitted
 18834  	// from API requests. See
 18835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18836  	NullFields []string `json:"-"`
 18837  }
 18838  
 18839  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 18840  	type NoMethod GoogleRpcStatus
 18841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18842  }
 18843  
 18844  // GoogleTypeLatLng: An object that represents a latitude/longitude pair. This
 18845  // is expressed as a pair of doubles to represent degrees latitude and degrees
 18846  // longitude. Unless specified otherwise, this object must conform to the WGS84
 18847  // standard. Values must be within normalized ranges.
 18848  type GoogleTypeLatLng struct {
 18849  	// Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0].
 18850  	Latitude float64 `json:"latitude,omitempty"`
 18851  	// Longitude: The longitude in degrees. It must be in the range [-180.0,
 18852  	// +180.0].
 18853  	Longitude float64 `json:"longitude,omitempty"`
 18854  	// ForceSendFields is a list of field names (e.g. "Latitude") to
 18855  	// unconditionally include in API requests. By default, fields with empty or
 18856  	// default values are omitted from API requests. See
 18857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18858  	// details.
 18859  	ForceSendFields []string `json:"-"`
 18860  	// NullFields is a list of field names (e.g. "Latitude") to include in API
 18861  	// requests with the JSON null value. By default, fields with empty values are
 18862  	// omitted from API requests. See
 18863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18864  	NullFields []string `json:"-"`
 18865  }
 18866  
 18867  func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
 18868  	type NoMethod GoogleTypeLatLng
 18869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18870  }
 18871  
 18872  func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
 18873  	type NoMethod GoogleTypeLatLng
 18874  	var s1 struct {
 18875  		Latitude  gensupport.JSONFloat64 `json:"latitude"`
 18876  		Longitude gensupport.JSONFloat64 `json:"longitude"`
 18877  		*NoMethod
 18878  	}
 18879  	s1.NoMethod = (*NoMethod)(s)
 18880  	if err := json.Unmarshal(data, &s1); err != nil {
 18881  		return err
 18882  	}
 18883  	s.Latitude = float64(s1.Latitude)
 18884  	s.Longitude = float64(s1.Longitude)
 18885  	return nil
 18886  }
 18887  
 18888  type ProjectsDeleteAgentCall struct {
 18889  	s          *Service
 18890  	parent     string
 18891  	urlParams_ gensupport.URLParams
 18892  	ctx_       context.Context
 18893  	header_    http.Header
 18894  }
 18895  
 18896  // DeleteAgent: Deletes the specified agent.
 18897  //
 18898  //   - parent: The project that the agent to delete is associated with. Format:
 18899  //     `projects/`.
 18900  func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall {
 18901  	c := &ProjectsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18902  	c.parent = parent
 18903  	return c
 18904  }
 18905  
 18906  // Fields allows partial responses to be retrieved. See
 18907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18908  // details.
 18909  func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall {
 18910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18911  	return c
 18912  }
 18913  
 18914  // Context sets the context to be used in this call's Do method.
 18915  func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall {
 18916  	c.ctx_ = ctx
 18917  	return c
 18918  }
 18919  
 18920  // Header returns a http.Header that can be modified by the caller to add
 18921  // headers to the request.
 18922  func (c *ProjectsDeleteAgentCall) Header() http.Header {
 18923  	if c.header_ == nil {
 18924  		c.header_ = make(http.Header)
 18925  	}
 18926  	return c.header_
 18927  }
 18928  
 18929  func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
 18930  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18931  	var body io.Reader = nil
 18932  	c.urlParams_.Set("alt", alt)
 18933  	c.urlParams_.Set("prettyPrint", "false")
 18934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
 18935  	urls += "?" + c.urlParams_.Encode()
 18936  	req, err := http.NewRequest("DELETE", urls, body)
 18937  	if err != nil {
 18938  		return nil, err
 18939  	}
 18940  	req.Header = reqHeaders
 18941  	googleapi.Expand(req.URL, map[string]string{
 18942  		"parent": c.parent,
 18943  	})
 18944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18945  }
 18946  
 18947  // Do executes the "dialogflow.projects.deleteAgent" call.
 18948  // Any non-2xx status code is an error. Response headers are in either
 18949  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 18950  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18951  // check whether the returned error was because http.StatusNotModified was
 18952  // returned.
 18953  func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 18954  	gensupport.SetOptions(c.urlParams_, opts...)
 18955  	res, err := c.doRequest("json")
 18956  	if res != nil && res.StatusCode == http.StatusNotModified {
 18957  		if res.Body != nil {
 18958  			res.Body.Close()
 18959  		}
 18960  		return nil, gensupport.WrapError(&googleapi.Error{
 18961  			Code:   res.StatusCode,
 18962  			Header: res.Header,
 18963  		})
 18964  	}
 18965  	if err != nil {
 18966  		return nil, err
 18967  	}
 18968  	defer googleapi.CloseBody(res)
 18969  	if err := googleapi.CheckResponse(res); err != nil {
 18970  		return nil, gensupport.WrapError(err)
 18971  	}
 18972  	ret := &GoogleProtobufEmpty{
 18973  		ServerResponse: googleapi.ServerResponse{
 18974  			Header:         res.Header,
 18975  			HTTPStatusCode: res.StatusCode,
 18976  		},
 18977  	}
 18978  	target := &ret
 18979  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18980  		return nil, err
 18981  	}
 18982  	return ret, nil
 18983  }
 18984  
 18985  type ProjectsGetAgentCall struct {
 18986  	s            *Service
 18987  	parent       string
 18988  	urlParams_   gensupport.URLParams
 18989  	ifNoneMatch_ string
 18990  	ctx_         context.Context
 18991  	header_      http.Header
 18992  }
 18993  
 18994  // GetAgent: Retrieves the specified agent.
 18995  //
 18996  //   - parent: The project that the agent to fetch is associated with. Format:
 18997  //     `projects/`.
 18998  func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall {
 18999  	c := &ProjectsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19000  	c.parent = parent
 19001  	return c
 19002  }
 19003  
 19004  // Fields allows partial responses to be retrieved. See
 19005  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19006  // details.
 19007  func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall {
 19008  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19009  	return c
 19010  }
 19011  
 19012  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19013  // object's ETag matches the given value. This is useful for getting updates
 19014  // only after the object has changed since the last request.
 19015  func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall {
 19016  	c.ifNoneMatch_ = entityTag
 19017  	return c
 19018  }
 19019  
 19020  // Context sets the context to be used in this call's Do method.
 19021  func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall {
 19022  	c.ctx_ = ctx
 19023  	return c
 19024  }
 19025  
 19026  // Header returns a http.Header that can be modified by the caller to add
 19027  // headers to the request.
 19028  func (c *ProjectsGetAgentCall) Header() http.Header {
 19029  	if c.header_ == nil {
 19030  		c.header_ = make(http.Header)
 19031  	}
 19032  	return c.header_
 19033  }
 19034  
 19035  func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) {
 19036  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19037  	if c.ifNoneMatch_ != "" {
 19038  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19039  	}
 19040  	var body io.Reader = nil
 19041  	c.urlParams_.Set("alt", alt)
 19042  	c.urlParams_.Set("prettyPrint", "false")
 19043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
 19044  	urls += "?" + c.urlParams_.Encode()
 19045  	req, err := http.NewRequest("GET", urls, body)
 19046  	if err != nil {
 19047  		return nil, err
 19048  	}
 19049  	req.Header = reqHeaders
 19050  	googleapi.Expand(req.URL, map[string]string{
 19051  		"parent": c.parent,
 19052  	})
 19053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19054  }
 19055  
 19056  // Do executes the "dialogflow.projects.getAgent" call.
 19057  // Any non-2xx status code is an error. Response headers are in either
 19058  // *GoogleCloudDialogflowV2Agent.ServerResponse.Header or (if a response was
 19059  // returned at all) in error.(*googleapi.Error).Header. Use
 19060  // googleapi.IsNotModified to check whether the returned error was because
 19061  // http.StatusNotModified was returned.
 19062  func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
 19063  	gensupport.SetOptions(c.urlParams_, opts...)
 19064  	res, err := c.doRequest("json")
 19065  	if res != nil && res.StatusCode == http.StatusNotModified {
 19066  		if res.Body != nil {
 19067  			res.Body.Close()
 19068  		}
 19069  		return nil, gensupport.WrapError(&googleapi.Error{
 19070  			Code:   res.StatusCode,
 19071  			Header: res.Header,
 19072  		})
 19073  	}
 19074  	if err != nil {
 19075  		return nil, err
 19076  	}
 19077  	defer googleapi.CloseBody(res)
 19078  	if err := googleapi.CheckResponse(res); err != nil {
 19079  		return nil, gensupport.WrapError(err)
 19080  	}
 19081  	ret := &GoogleCloudDialogflowV2Agent{
 19082  		ServerResponse: googleapi.ServerResponse{
 19083  			Header:         res.Header,
 19084  			HTTPStatusCode: res.StatusCode,
 19085  		},
 19086  	}
 19087  	target := &ret
 19088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19089  		return nil, err
 19090  	}
 19091  	return ret, nil
 19092  }
 19093  
 19094  type ProjectsSetAgentCall struct {
 19095  	s                            *Service
 19096  	parent                       string
 19097  	googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent
 19098  	urlParams_                   gensupport.URLParams
 19099  	ctx_                         context.Context
 19100  	header_                      http.Header
 19101  }
 19102  
 19103  // SetAgent: Creates/updates the specified agent. Note: You should always train
 19104  // an agent prior to sending it queries. See the training documentation
 19105  // (https://cloud.google.com/dialogflow/es/docs/training).
 19106  //
 19107  // - parent: The project of this agent. Format: `projects/`.
 19108  func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent) *ProjectsSetAgentCall {
 19109  	c := &ProjectsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19110  	c.parent = parent
 19111  	c.googleclouddialogflowv2agent = googleclouddialogflowv2agent
 19112  	return c
 19113  }
 19114  
 19115  // UpdateMask sets the optional parameter "updateMask": The mask to control
 19116  // which fields get updated.
 19117  func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall {
 19118  	c.urlParams_.Set("updateMask", updateMask)
 19119  	return c
 19120  }
 19121  
 19122  // Fields allows partial responses to be retrieved. See
 19123  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19124  // details.
 19125  func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall {
 19126  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19127  	return c
 19128  }
 19129  
 19130  // Context sets the context to be used in this call's Do method.
 19131  func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall {
 19132  	c.ctx_ = ctx
 19133  	return c
 19134  }
 19135  
 19136  // Header returns a http.Header that can be modified by the caller to add
 19137  // headers to the request.
 19138  func (c *ProjectsSetAgentCall) Header() http.Header {
 19139  	if c.header_ == nil {
 19140  		c.header_ = make(http.Header)
 19141  	}
 19142  	return c.header_
 19143  }
 19144  
 19145  func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) {
 19146  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19147  	var body io.Reader = nil
 19148  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2agent)
 19149  	if err != nil {
 19150  		return nil, err
 19151  	}
 19152  	c.urlParams_.Set("alt", alt)
 19153  	c.urlParams_.Set("prettyPrint", "false")
 19154  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
 19155  	urls += "?" + c.urlParams_.Encode()
 19156  	req, err := http.NewRequest("POST", urls, body)
 19157  	if err != nil {
 19158  		return nil, err
 19159  	}
 19160  	req.Header = reqHeaders
 19161  	googleapi.Expand(req.URL, map[string]string{
 19162  		"parent": c.parent,
 19163  	})
 19164  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19165  }
 19166  
 19167  // Do executes the "dialogflow.projects.setAgent" call.
 19168  // Any non-2xx status code is an error. Response headers are in either
 19169  // *GoogleCloudDialogflowV2Agent.ServerResponse.Header or (if a response was
 19170  // returned at all) in error.(*googleapi.Error).Header. Use
 19171  // googleapi.IsNotModified to check whether the returned error was because
 19172  // http.StatusNotModified was returned.
 19173  func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
 19174  	gensupport.SetOptions(c.urlParams_, opts...)
 19175  	res, err := c.doRequest("json")
 19176  	if res != nil && res.StatusCode == http.StatusNotModified {
 19177  		if res.Body != nil {
 19178  			res.Body.Close()
 19179  		}
 19180  		return nil, gensupport.WrapError(&googleapi.Error{
 19181  			Code:   res.StatusCode,
 19182  			Header: res.Header,
 19183  		})
 19184  	}
 19185  	if err != nil {
 19186  		return nil, err
 19187  	}
 19188  	defer googleapi.CloseBody(res)
 19189  	if err := googleapi.CheckResponse(res); err != nil {
 19190  		return nil, gensupport.WrapError(err)
 19191  	}
 19192  	ret := &GoogleCloudDialogflowV2Agent{
 19193  		ServerResponse: googleapi.ServerResponse{
 19194  			Header:         res.Header,
 19195  			HTTPStatusCode: res.StatusCode,
 19196  		},
 19197  	}
 19198  	target := &ret
 19199  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19200  		return nil, err
 19201  	}
 19202  	return ret, nil
 19203  }
 19204  
 19205  type ProjectsAgentExportCall struct {
 19206  	s                                         *Service
 19207  	parent                                    string
 19208  	googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest
 19209  	urlParams_                                gensupport.URLParams
 19210  	ctx_                                      context.Context
 19211  	header_                                   http.Header
 19212  }
 19213  
 19214  // Export: Exports the specified agent to a ZIP file. This method is a
 19215  // long-running operation
 19216  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19217  // The returned `Operation` type has the following method-specific fields: -
 19218  // `metadata`: An empty Struct message
 19219  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19220  // - `response`: ExportAgentResponse
 19221  //
 19222  //   - parent: The project that the agent to export is associated with. Format:
 19223  //     `projects/`.
 19224  func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest) *ProjectsAgentExportCall {
 19225  	c := &ProjectsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19226  	c.parent = parent
 19227  	c.googleclouddialogflowv2exportagentrequest = googleclouddialogflowv2exportagentrequest
 19228  	return c
 19229  }
 19230  
 19231  // Fields allows partial responses to be retrieved. See
 19232  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19233  // details.
 19234  func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall {
 19235  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19236  	return c
 19237  }
 19238  
 19239  // Context sets the context to be used in this call's Do method.
 19240  func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall {
 19241  	c.ctx_ = ctx
 19242  	return c
 19243  }
 19244  
 19245  // Header returns a http.Header that can be modified by the caller to add
 19246  // headers to the request.
 19247  func (c *ProjectsAgentExportCall) Header() http.Header {
 19248  	if c.header_ == nil {
 19249  		c.header_ = make(http.Header)
 19250  	}
 19251  	return c.header_
 19252  }
 19253  
 19254  func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) {
 19255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19256  	var body io.Reader = nil
 19257  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportagentrequest)
 19258  	if err != nil {
 19259  		return nil, err
 19260  	}
 19261  	c.urlParams_.Set("alt", alt)
 19262  	c.urlParams_.Set("prettyPrint", "false")
 19263  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:export")
 19264  	urls += "?" + c.urlParams_.Encode()
 19265  	req, err := http.NewRequest("POST", urls, body)
 19266  	if err != nil {
 19267  		return nil, err
 19268  	}
 19269  	req.Header = reqHeaders
 19270  	googleapi.Expand(req.URL, map[string]string{
 19271  		"parent": c.parent,
 19272  	})
 19273  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19274  }
 19275  
 19276  // Do executes the "dialogflow.projects.agent.export" call.
 19277  // Any non-2xx status code is an error. Response headers are in either
 19278  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19279  // returned at all) in error.(*googleapi.Error).Header. Use
 19280  // googleapi.IsNotModified to check whether the returned error was because
 19281  // http.StatusNotModified was returned.
 19282  func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19283  	gensupport.SetOptions(c.urlParams_, opts...)
 19284  	res, err := c.doRequest("json")
 19285  	if res != nil && res.StatusCode == http.StatusNotModified {
 19286  		if res.Body != nil {
 19287  			res.Body.Close()
 19288  		}
 19289  		return nil, gensupport.WrapError(&googleapi.Error{
 19290  			Code:   res.StatusCode,
 19291  			Header: res.Header,
 19292  		})
 19293  	}
 19294  	if err != nil {
 19295  		return nil, err
 19296  	}
 19297  	defer googleapi.CloseBody(res)
 19298  	if err := googleapi.CheckResponse(res); err != nil {
 19299  		return nil, gensupport.WrapError(err)
 19300  	}
 19301  	ret := &GoogleLongrunningOperation{
 19302  		ServerResponse: googleapi.ServerResponse{
 19303  			Header:         res.Header,
 19304  			HTTPStatusCode: res.StatusCode,
 19305  		},
 19306  	}
 19307  	target := &ret
 19308  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19309  		return nil, err
 19310  	}
 19311  	return ret, nil
 19312  }
 19313  
 19314  type ProjectsAgentGetFulfillmentCall struct {
 19315  	s            *Service
 19316  	name         string
 19317  	urlParams_   gensupport.URLParams
 19318  	ifNoneMatch_ string
 19319  	ctx_         context.Context
 19320  	header_      http.Header
 19321  }
 19322  
 19323  // GetFulfillment: Retrieves the fulfillment.
 19324  //
 19325  // - name: The name of the fulfillment. Format: `projects//agent/fulfillment`.
 19326  func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall {
 19327  	c := &ProjectsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19328  	c.name = name
 19329  	return c
 19330  }
 19331  
 19332  // Fields allows partial responses to be retrieved. See
 19333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19334  // details.
 19335  func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall {
 19336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19337  	return c
 19338  }
 19339  
 19340  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19341  // object's ETag matches the given value. This is useful for getting updates
 19342  // only after the object has changed since the last request.
 19343  func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall {
 19344  	c.ifNoneMatch_ = entityTag
 19345  	return c
 19346  }
 19347  
 19348  // Context sets the context to be used in this call's Do method.
 19349  func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall {
 19350  	c.ctx_ = ctx
 19351  	return c
 19352  }
 19353  
 19354  // Header returns a http.Header that can be modified by the caller to add
 19355  // headers to the request.
 19356  func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header {
 19357  	if c.header_ == nil {
 19358  		c.header_ = make(http.Header)
 19359  	}
 19360  	return c.header_
 19361  }
 19362  
 19363  func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 19364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19365  	if c.ifNoneMatch_ != "" {
 19366  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19367  	}
 19368  	var body io.Reader = nil
 19369  	c.urlParams_.Set("alt", alt)
 19370  	c.urlParams_.Set("prettyPrint", "false")
 19371  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 19372  	urls += "?" + c.urlParams_.Encode()
 19373  	req, err := http.NewRequest("GET", urls, body)
 19374  	if err != nil {
 19375  		return nil, err
 19376  	}
 19377  	req.Header = reqHeaders
 19378  	googleapi.Expand(req.URL, map[string]string{
 19379  		"name": c.name,
 19380  	})
 19381  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19382  }
 19383  
 19384  // Do executes the "dialogflow.projects.agent.getFulfillment" call.
 19385  // Any non-2xx status code is an error. Response headers are in either
 19386  // *GoogleCloudDialogflowV2Fulfillment.ServerResponse.Header or (if a response
 19387  // was returned at all) in error.(*googleapi.Error).Header. Use
 19388  // googleapi.IsNotModified to check whether the returned error was because
 19389  // http.StatusNotModified was returned.
 19390  func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
 19391  	gensupport.SetOptions(c.urlParams_, opts...)
 19392  	res, err := c.doRequest("json")
 19393  	if res != nil && res.StatusCode == http.StatusNotModified {
 19394  		if res.Body != nil {
 19395  			res.Body.Close()
 19396  		}
 19397  		return nil, gensupport.WrapError(&googleapi.Error{
 19398  			Code:   res.StatusCode,
 19399  			Header: res.Header,
 19400  		})
 19401  	}
 19402  	if err != nil {
 19403  		return nil, err
 19404  	}
 19405  	defer googleapi.CloseBody(res)
 19406  	if err := googleapi.CheckResponse(res); err != nil {
 19407  		return nil, gensupport.WrapError(err)
 19408  	}
 19409  	ret := &GoogleCloudDialogflowV2Fulfillment{
 19410  		ServerResponse: googleapi.ServerResponse{
 19411  			Header:         res.Header,
 19412  			HTTPStatusCode: res.StatusCode,
 19413  		},
 19414  	}
 19415  	target := &ret
 19416  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19417  		return nil, err
 19418  	}
 19419  	return ret, nil
 19420  }
 19421  
 19422  type ProjectsAgentGetValidationResultCall struct {
 19423  	s            *Service
 19424  	parent       string
 19425  	urlParams_   gensupport.URLParams
 19426  	ifNoneMatch_ string
 19427  	ctx_         context.Context
 19428  	header_      http.Header
 19429  }
 19430  
 19431  // GetValidationResult: Gets agent validation result. Agent validation is
 19432  // performed during training time and is updated automatically when training is
 19433  // completed.
 19434  //
 19435  //   - parent: The project that the agent is associated with. Format:
 19436  //     `projects/`.
 19437  func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall {
 19438  	c := &ProjectsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19439  	c.parent = parent
 19440  	return c
 19441  }
 19442  
 19443  // LanguageCode sets the optional parameter "languageCode": The language for
 19444  // which you want a validation result. If not specified, the agent's default
 19445  // language is used. Many languages
 19446  // (https://cloud.google.com/dialogflow/docs/reference/language) are supported.
 19447  // Note: languages must be enabled in the agent before they can be used.
 19448  func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall {
 19449  	c.urlParams_.Set("languageCode", languageCode)
 19450  	return c
 19451  }
 19452  
 19453  // Fields allows partial responses to be retrieved. See
 19454  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19455  // details.
 19456  func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall {
 19457  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19458  	return c
 19459  }
 19460  
 19461  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19462  // object's ETag matches the given value. This is useful for getting updates
 19463  // only after the object has changed since the last request.
 19464  func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall {
 19465  	c.ifNoneMatch_ = entityTag
 19466  	return c
 19467  }
 19468  
 19469  // Context sets the context to be used in this call's Do method.
 19470  func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall {
 19471  	c.ctx_ = ctx
 19472  	return c
 19473  }
 19474  
 19475  // Header returns a http.Header that can be modified by the caller to add
 19476  // headers to the request.
 19477  func (c *ProjectsAgentGetValidationResultCall) Header() http.Header {
 19478  	if c.header_ == nil {
 19479  		c.header_ = make(http.Header)
 19480  	}
 19481  	return c.header_
 19482  }
 19483  
 19484  func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
 19485  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19486  	if c.ifNoneMatch_ != "" {
 19487  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19488  	}
 19489  	var body io.Reader = nil
 19490  	c.urlParams_.Set("alt", alt)
 19491  	c.urlParams_.Set("prettyPrint", "false")
 19492  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent/validationResult")
 19493  	urls += "?" + c.urlParams_.Encode()
 19494  	req, err := http.NewRequest("GET", urls, body)
 19495  	if err != nil {
 19496  		return nil, err
 19497  	}
 19498  	req.Header = reqHeaders
 19499  	googleapi.Expand(req.URL, map[string]string{
 19500  		"parent": c.parent,
 19501  	})
 19502  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19503  }
 19504  
 19505  // Do executes the "dialogflow.projects.agent.getValidationResult" call.
 19506  // Any non-2xx status code is an error. Response headers are in either
 19507  // *GoogleCloudDialogflowV2ValidationResult.ServerResponse.Header or (if a
 19508  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19509  // googleapi.IsNotModified to check whether the returned error was because
 19510  // http.StatusNotModified was returned.
 19511  func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ValidationResult, error) {
 19512  	gensupport.SetOptions(c.urlParams_, opts...)
 19513  	res, err := c.doRequest("json")
 19514  	if res != nil && res.StatusCode == http.StatusNotModified {
 19515  		if res.Body != nil {
 19516  			res.Body.Close()
 19517  		}
 19518  		return nil, gensupport.WrapError(&googleapi.Error{
 19519  			Code:   res.StatusCode,
 19520  			Header: res.Header,
 19521  		})
 19522  	}
 19523  	if err != nil {
 19524  		return nil, err
 19525  	}
 19526  	defer googleapi.CloseBody(res)
 19527  	if err := googleapi.CheckResponse(res); err != nil {
 19528  		return nil, gensupport.WrapError(err)
 19529  	}
 19530  	ret := &GoogleCloudDialogflowV2ValidationResult{
 19531  		ServerResponse: googleapi.ServerResponse{
 19532  			Header:         res.Header,
 19533  			HTTPStatusCode: res.StatusCode,
 19534  		},
 19535  	}
 19536  	target := &ret
 19537  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19538  		return nil, err
 19539  	}
 19540  	return ret, nil
 19541  }
 19542  
 19543  type ProjectsAgentImportCall struct {
 19544  	s                                         *Service
 19545  	parent                                    string
 19546  	googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest
 19547  	urlParams_                                gensupport.URLParams
 19548  	ctx_                                      context.Context
 19549  	header_                                   http.Header
 19550  }
 19551  
 19552  // Import: Imports the specified agent from a ZIP file. Uploads new intents and
 19553  // entity types without deleting the existing ones. Intents and entity types
 19554  // with the same name are replaced with the new versions from
 19555  // ImportAgentRequest. After the import, the imported draft agent will be
 19556  // trained automatically (unless disabled in agent settings). However, once the
 19557  // import is done, training may not be completed yet. Please call TrainAgent
 19558  // and wait for the operation it returns in order to train explicitly. This
 19559  // method is a long-running operation
 19560  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19561  // The returned `Operation` type has the following method-specific fields: -
 19562  // `metadata`: An empty Struct message
 19563  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19564  // - `response`: An Empty message
 19565  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 19566  // The operation only tracks when importing is complete, not when it is done
 19567  // training. Note: You should always train an agent prior to sending it
 19568  // queries. See the training documentation
 19569  // (https://cloud.google.com/dialogflow/es/docs/training).
 19570  //
 19571  //   - parent: The project that the agent to import is associated with. Format:
 19572  //     `projects/`.
 19573  func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest) *ProjectsAgentImportCall {
 19574  	c := &ProjectsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19575  	c.parent = parent
 19576  	c.googleclouddialogflowv2importagentrequest = googleclouddialogflowv2importagentrequest
 19577  	return c
 19578  }
 19579  
 19580  // Fields allows partial responses to be retrieved. See
 19581  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19582  // details.
 19583  func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall {
 19584  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19585  	return c
 19586  }
 19587  
 19588  // Context sets the context to be used in this call's Do method.
 19589  func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall {
 19590  	c.ctx_ = ctx
 19591  	return c
 19592  }
 19593  
 19594  // Header returns a http.Header that can be modified by the caller to add
 19595  // headers to the request.
 19596  func (c *ProjectsAgentImportCall) Header() http.Header {
 19597  	if c.header_ == nil {
 19598  		c.header_ = make(http.Header)
 19599  	}
 19600  	return c.header_
 19601  }
 19602  
 19603  func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) {
 19604  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19605  	var body io.Reader = nil
 19606  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importagentrequest)
 19607  	if err != nil {
 19608  		return nil, err
 19609  	}
 19610  	c.urlParams_.Set("alt", alt)
 19611  	c.urlParams_.Set("prettyPrint", "false")
 19612  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:import")
 19613  	urls += "?" + c.urlParams_.Encode()
 19614  	req, err := http.NewRequest("POST", urls, body)
 19615  	if err != nil {
 19616  		return nil, err
 19617  	}
 19618  	req.Header = reqHeaders
 19619  	googleapi.Expand(req.URL, map[string]string{
 19620  		"parent": c.parent,
 19621  	})
 19622  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19623  }
 19624  
 19625  // Do executes the "dialogflow.projects.agent.import" call.
 19626  // Any non-2xx status code is an error. Response headers are in either
 19627  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19628  // returned at all) in error.(*googleapi.Error).Header. Use
 19629  // googleapi.IsNotModified to check whether the returned error was because
 19630  // http.StatusNotModified was returned.
 19631  func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19632  	gensupport.SetOptions(c.urlParams_, opts...)
 19633  	res, err := c.doRequest("json")
 19634  	if res != nil && res.StatusCode == http.StatusNotModified {
 19635  		if res.Body != nil {
 19636  			res.Body.Close()
 19637  		}
 19638  		return nil, gensupport.WrapError(&googleapi.Error{
 19639  			Code:   res.StatusCode,
 19640  			Header: res.Header,
 19641  		})
 19642  	}
 19643  	if err != nil {
 19644  		return nil, err
 19645  	}
 19646  	defer googleapi.CloseBody(res)
 19647  	if err := googleapi.CheckResponse(res); err != nil {
 19648  		return nil, gensupport.WrapError(err)
 19649  	}
 19650  	ret := &GoogleLongrunningOperation{
 19651  		ServerResponse: googleapi.ServerResponse{
 19652  			Header:         res.Header,
 19653  			HTTPStatusCode: res.StatusCode,
 19654  		},
 19655  	}
 19656  	target := &ret
 19657  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19658  		return nil, err
 19659  	}
 19660  	return ret, nil
 19661  }
 19662  
 19663  type ProjectsAgentRestoreCall struct {
 19664  	s                                          *Service
 19665  	parent                                     string
 19666  	googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest
 19667  	urlParams_                                 gensupport.URLParams
 19668  	ctx_                                       context.Context
 19669  	header_                                    http.Header
 19670  }
 19671  
 19672  // Restore: Restores the specified agent from a ZIP file. Replaces the current
 19673  // agent version with a new one. All the intents and entity types in the older
 19674  // version are deleted. After the restore, the restored draft agent will be
 19675  // trained automatically (unless disabled in agent settings). However, once the
 19676  // restore is done, training may not be completed yet. Please call TrainAgent
 19677  // and wait for the operation it returns in order to train explicitly. This
 19678  // method is a long-running operation
 19679  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19680  // The returned `Operation` type has the following method-specific fields: -
 19681  // `metadata`: An empty Struct message
 19682  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19683  // - `response`: An Empty message
 19684  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 19685  // The operation only tracks when restoring is complete, not when it is done
 19686  // training. Note: You should always train an agent prior to sending it
 19687  // queries. See the training documentation
 19688  // (https://cloud.google.com/dialogflow/es/docs/training).
 19689  //
 19690  //   - parent: The project that the agent to restore is associated with. Format:
 19691  //     `projects/`.
 19692  func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest) *ProjectsAgentRestoreCall {
 19693  	c := &ProjectsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19694  	c.parent = parent
 19695  	c.googleclouddialogflowv2restoreagentrequest = googleclouddialogflowv2restoreagentrequest
 19696  	return c
 19697  }
 19698  
 19699  // Fields allows partial responses to be retrieved. See
 19700  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19701  // details.
 19702  func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall {
 19703  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19704  	return c
 19705  }
 19706  
 19707  // Context sets the context to be used in this call's Do method.
 19708  func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall {
 19709  	c.ctx_ = ctx
 19710  	return c
 19711  }
 19712  
 19713  // Header returns a http.Header that can be modified by the caller to add
 19714  // headers to the request.
 19715  func (c *ProjectsAgentRestoreCall) Header() http.Header {
 19716  	if c.header_ == nil {
 19717  		c.header_ = make(http.Header)
 19718  	}
 19719  	return c.header_
 19720  }
 19721  
 19722  func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
 19723  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19724  	var body io.Reader = nil
 19725  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2restoreagentrequest)
 19726  	if err != nil {
 19727  		return nil, err
 19728  	}
 19729  	c.urlParams_.Set("alt", alt)
 19730  	c.urlParams_.Set("prettyPrint", "false")
 19731  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:restore")
 19732  	urls += "?" + c.urlParams_.Encode()
 19733  	req, err := http.NewRequest("POST", urls, body)
 19734  	if err != nil {
 19735  		return nil, err
 19736  	}
 19737  	req.Header = reqHeaders
 19738  	googleapi.Expand(req.URL, map[string]string{
 19739  		"parent": c.parent,
 19740  	})
 19741  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19742  }
 19743  
 19744  // Do executes the "dialogflow.projects.agent.restore" call.
 19745  // Any non-2xx status code is an error. Response headers are in either
 19746  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19747  // returned at all) in error.(*googleapi.Error).Header. Use
 19748  // googleapi.IsNotModified to check whether the returned error was because
 19749  // http.StatusNotModified was returned.
 19750  func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19751  	gensupport.SetOptions(c.urlParams_, opts...)
 19752  	res, err := c.doRequest("json")
 19753  	if res != nil && res.StatusCode == http.StatusNotModified {
 19754  		if res.Body != nil {
 19755  			res.Body.Close()
 19756  		}
 19757  		return nil, gensupport.WrapError(&googleapi.Error{
 19758  			Code:   res.StatusCode,
 19759  			Header: res.Header,
 19760  		})
 19761  	}
 19762  	if err != nil {
 19763  		return nil, err
 19764  	}
 19765  	defer googleapi.CloseBody(res)
 19766  	if err := googleapi.CheckResponse(res); err != nil {
 19767  		return nil, gensupport.WrapError(err)
 19768  	}
 19769  	ret := &GoogleLongrunningOperation{
 19770  		ServerResponse: googleapi.ServerResponse{
 19771  			Header:         res.Header,
 19772  			HTTPStatusCode: res.StatusCode,
 19773  		},
 19774  	}
 19775  	target := &ret
 19776  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19777  		return nil, err
 19778  	}
 19779  	return ret, nil
 19780  }
 19781  
 19782  type ProjectsAgentSearchCall struct {
 19783  	s            *Service
 19784  	parent       string
 19785  	urlParams_   gensupport.URLParams
 19786  	ifNoneMatch_ string
 19787  	ctx_         context.Context
 19788  	header_      http.Header
 19789  }
 19790  
 19791  // Search: Returns the list of agents. Since there is at most one
 19792  // conversational agent per project, this method is useful primarily for
 19793  // listing all agents across projects the caller has access to. One can achieve
 19794  // that with a wildcard project collection id "-". Refer to List
 19795  // Sub-Collections
 19796  // (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
 19797  //
 19798  // - parent: The project to list agents from. Format: `projects/`.
 19799  func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall {
 19800  	c := &ProjectsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19801  	c.parent = parent
 19802  	return c
 19803  }
 19804  
 19805  // PageSize sets the optional parameter "pageSize": The maximum number of items
 19806  // to return in a single page. By default 100 and at most 1000.
 19807  func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall {
 19808  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19809  	return c
 19810  }
 19811  
 19812  // PageToken sets the optional parameter "pageToken": The next_page_token value
 19813  // returned from a previous list request.
 19814  func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall {
 19815  	c.urlParams_.Set("pageToken", pageToken)
 19816  	return c
 19817  }
 19818  
 19819  // Fields allows partial responses to be retrieved. See
 19820  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19821  // details.
 19822  func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall {
 19823  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19824  	return c
 19825  }
 19826  
 19827  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19828  // object's ETag matches the given value. This is useful for getting updates
 19829  // only after the object has changed since the last request.
 19830  func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall {
 19831  	c.ifNoneMatch_ = entityTag
 19832  	return c
 19833  }
 19834  
 19835  // Context sets the context to be used in this call's Do method.
 19836  func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall {
 19837  	c.ctx_ = ctx
 19838  	return c
 19839  }
 19840  
 19841  // Header returns a http.Header that can be modified by the caller to add
 19842  // headers to the request.
 19843  func (c *ProjectsAgentSearchCall) Header() http.Header {
 19844  	if c.header_ == nil {
 19845  		c.header_ = make(http.Header)
 19846  	}
 19847  	return c.header_
 19848  }
 19849  
 19850  func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
 19851  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19852  	if c.ifNoneMatch_ != "" {
 19853  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19854  	}
 19855  	var body io.Reader = nil
 19856  	c.urlParams_.Set("alt", alt)
 19857  	c.urlParams_.Set("prettyPrint", "false")
 19858  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:search")
 19859  	urls += "?" + c.urlParams_.Encode()
 19860  	req, err := http.NewRequest("GET", urls, body)
 19861  	if err != nil {
 19862  		return nil, err
 19863  	}
 19864  	req.Header = reqHeaders
 19865  	googleapi.Expand(req.URL, map[string]string{
 19866  		"parent": c.parent,
 19867  	})
 19868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19869  }
 19870  
 19871  // Do executes the "dialogflow.projects.agent.search" call.
 19872  // Any non-2xx status code is an error. Response headers are in either
 19873  // *GoogleCloudDialogflowV2SearchAgentsResponse.ServerResponse.Header or (if a
 19874  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19875  // googleapi.IsNotModified to check whether the returned error was because
 19876  // http.StatusNotModified was returned.
 19877  func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchAgentsResponse, error) {
 19878  	gensupport.SetOptions(c.urlParams_, opts...)
 19879  	res, err := c.doRequest("json")
 19880  	if res != nil && res.StatusCode == http.StatusNotModified {
 19881  		if res.Body != nil {
 19882  			res.Body.Close()
 19883  		}
 19884  		return nil, gensupport.WrapError(&googleapi.Error{
 19885  			Code:   res.StatusCode,
 19886  			Header: res.Header,
 19887  		})
 19888  	}
 19889  	if err != nil {
 19890  		return nil, err
 19891  	}
 19892  	defer googleapi.CloseBody(res)
 19893  	if err := googleapi.CheckResponse(res); err != nil {
 19894  		return nil, gensupport.WrapError(err)
 19895  	}
 19896  	ret := &GoogleCloudDialogflowV2SearchAgentsResponse{
 19897  		ServerResponse: googleapi.ServerResponse{
 19898  			Header:         res.Header,
 19899  			HTTPStatusCode: res.StatusCode,
 19900  		},
 19901  	}
 19902  	target := &ret
 19903  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19904  		return nil, err
 19905  	}
 19906  	return ret, nil
 19907  }
 19908  
 19909  // Pages invokes f for each page of results.
 19910  // A non-nil error returned from f will halt the iteration.
 19911  // The provided context supersedes any context provided to the Context method.
 19912  func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2SearchAgentsResponse) error) error {
 19913  	c.ctx_ = ctx
 19914  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19915  	for {
 19916  		x, err := c.Do()
 19917  		if err != nil {
 19918  			return err
 19919  		}
 19920  		if err := f(x); err != nil {
 19921  			return err
 19922  		}
 19923  		if x.NextPageToken == "" {
 19924  			return nil
 19925  		}
 19926  		c.PageToken(x.NextPageToken)
 19927  	}
 19928  }
 19929  
 19930  type ProjectsAgentTrainCall struct {
 19931  	s                                        *Service
 19932  	parent                                   string
 19933  	googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest
 19934  	urlParams_                               gensupport.URLParams
 19935  	ctx_                                     context.Context
 19936  	header_                                  http.Header
 19937  }
 19938  
 19939  // Train: Trains the specified agent. This method is a long-running operation
 19940  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19941  // The returned `Operation` type has the following method-specific fields: -
 19942  // `metadata`: An empty Struct message
 19943  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19944  // - `response`: An Empty message
 19945  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 19946  // Note: You should always train an agent prior to sending it queries. See the
 19947  // training documentation
 19948  // (https://cloud.google.com/dialogflow/es/docs/training).
 19949  //
 19950  //   - parent: The project that the agent to train is associated with. Format:
 19951  //     `projects/`.
 19952  func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest) *ProjectsAgentTrainCall {
 19953  	c := &ProjectsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19954  	c.parent = parent
 19955  	c.googleclouddialogflowv2trainagentrequest = googleclouddialogflowv2trainagentrequest
 19956  	return c
 19957  }
 19958  
 19959  // Fields allows partial responses to be retrieved. See
 19960  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19961  // details.
 19962  func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall {
 19963  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19964  	return c
 19965  }
 19966  
 19967  // Context sets the context to be used in this call's Do method.
 19968  func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall {
 19969  	c.ctx_ = ctx
 19970  	return c
 19971  }
 19972  
 19973  // Header returns a http.Header that can be modified by the caller to add
 19974  // headers to the request.
 19975  func (c *ProjectsAgentTrainCall) Header() http.Header {
 19976  	if c.header_ == nil {
 19977  		c.header_ = make(http.Header)
 19978  	}
 19979  	return c.header_
 19980  }
 19981  
 19982  func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
 19983  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19984  	var body io.Reader = nil
 19985  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2trainagentrequest)
 19986  	if err != nil {
 19987  		return nil, err
 19988  	}
 19989  	c.urlParams_.Set("alt", alt)
 19990  	c.urlParams_.Set("prettyPrint", "false")
 19991  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:train")
 19992  	urls += "?" + c.urlParams_.Encode()
 19993  	req, err := http.NewRequest("POST", urls, body)
 19994  	if err != nil {
 19995  		return nil, err
 19996  	}
 19997  	req.Header = reqHeaders
 19998  	googleapi.Expand(req.URL, map[string]string{
 19999  		"parent": c.parent,
 20000  	})
 20001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20002  }
 20003  
 20004  // Do executes the "dialogflow.projects.agent.train" call.
 20005  // Any non-2xx status code is an error. Response headers are in either
 20006  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20007  // returned at all) in error.(*googleapi.Error).Header. Use
 20008  // googleapi.IsNotModified to check whether the returned error was because
 20009  // http.StatusNotModified was returned.
 20010  func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20011  	gensupport.SetOptions(c.urlParams_, opts...)
 20012  	res, err := c.doRequest("json")
 20013  	if res != nil && res.StatusCode == http.StatusNotModified {
 20014  		if res.Body != nil {
 20015  			res.Body.Close()
 20016  		}
 20017  		return nil, gensupport.WrapError(&googleapi.Error{
 20018  			Code:   res.StatusCode,
 20019  			Header: res.Header,
 20020  		})
 20021  	}
 20022  	if err != nil {
 20023  		return nil, err
 20024  	}
 20025  	defer googleapi.CloseBody(res)
 20026  	if err := googleapi.CheckResponse(res); err != nil {
 20027  		return nil, gensupport.WrapError(err)
 20028  	}
 20029  	ret := &GoogleLongrunningOperation{
 20030  		ServerResponse: googleapi.ServerResponse{
 20031  			Header:         res.Header,
 20032  			HTTPStatusCode: res.StatusCode,
 20033  		},
 20034  	}
 20035  	target := &ret
 20036  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20037  		return nil, err
 20038  	}
 20039  	return ret, nil
 20040  }
 20041  
 20042  type ProjectsAgentUpdateFulfillmentCall struct {
 20043  	s                                  *Service
 20044  	nameid                             string
 20045  	googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment
 20046  	urlParams_                         gensupport.URLParams
 20047  	ctx_                               context.Context
 20048  	header_                            http.Header
 20049  }
 20050  
 20051  // UpdateFulfillment: Updates the fulfillment.
 20052  //
 20053  //   - name: The unique identifier of the fulfillment. Supported formats: -
 20054  //     `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
 20055  //     This field is not used for Fulfillment in an Environment.
 20056  func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment) *ProjectsAgentUpdateFulfillmentCall {
 20057  	c := &ProjectsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20058  	c.nameid = nameid
 20059  	c.googleclouddialogflowv2fulfillment = googleclouddialogflowv2fulfillment
 20060  	return c
 20061  }
 20062  
 20063  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 20064  // control which fields get updated. If the mask is not present, all fields
 20065  // will be updated.
 20066  func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall {
 20067  	c.urlParams_.Set("updateMask", updateMask)
 20068  	return c
 20069  }
 20070  
 20071  // Fields allows partial responses to be retrieved. See
 20072  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20073  // details.
 20074  func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall {
 20075  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20076  	return c
 20077  }
 20078  
 20079  // Context sets the context to be used in this call's Do method.
 20080  func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall {
 20081  	c.ctx_ = ctx
 20082  	return c
 20083  }
 20084  
 20085  // Header returns a http.Header that can be modified by the caller to add
 20086  // headers to the request.
 20087  func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header {
 20088  	if c.header_ == nil {
 20089  		c.header_ = make(http.Header)
 20090  	}
 20091  	return c.header_
 20092  }
 20093  
 20094  func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 20095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20096  	var body io.Reader = nil
 20097  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2fulfillment)
 20098  	if err != nil {
 20099  		return nil, err
 20100  	}
 20101  	c.urlParams_.Set("alt", alt)
 20102  	c.urlParams_.Set("prettyPrint", "false")
 20103  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20104  	urls += "?" + c.urlParams_.Encode()
 20105  	req, err := http.NewRequest("PATCH", urls, body)
 20106  	if err != nil {
 20107  		return nil, err
 20108  	}
 20109  	req.Header = reqHeaders
 20110  	googleapi.Expand(req.URL, map[string]string{
 20111  		"name": c.nameid,
 20112  	})
 20113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20114  }
 20115  
 20116  // Do executes the "dialogflow.projects.agent.updateFulfillment" call.
 20117  // Any non-2xx status code is an error. Response headers are in either
 20118  // *GoogleCloudDialogflowV2Fulfillment.ServerResponse.Header or (if a response
 20119  // was returned at all) in error.(*googleapi.Error).Header. Use
 20120  // googleapi.IsNotModified to check whether the returned error was because
 20121  // http.StatusNotModified was returned.
 20122  func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
 20123  	gensupport.SetOptions(c.urlParams_, opts...)
 20124  	res, err := c.doRequest("json")
 20125  	if res != nil && res.StatusCode == http.StatusNotModified {
 20126  		if res.Body != nil {
 20127  			res.Body.Close()
 20128  		}
 20129  		return nil, gensupport.WrapError(&googleapi.Error{
 20130  			Code:   res.StatusCode,
 20131  			Header: res.Header,
 20132  		})
 20133  	}
 20134  	if err != nil {
 20135  		return nil, err
 20136  	}
 20137  	defer googleapi.CloseBody(res)
 20138  	if err := googleapi.CheckResponse(res); err != nil {
 20139  		return nil, gensupport.WrapError(err)
 20140  	}
 20141  	ret := &GoogleCloudDialogflowV2Fulfillment{
 20142  		ServerResponse: googleapi.ServerResponse{
 20143  			Header:         res.Header,
 20144  			HTTPStatusCode: res.StatusCode,
 20145  		},
 20146  	}
 20147  	target := &ret
 20148  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20149  		return nil, err
 20150  	}
 20151  	return ret, nil
 20152  }
 20153  
 20154  type ProjectsAgentEntityTypesBatchDeleteCall struct {
 20155  	s                                                    *Service
 20156  	parent                                               string
 20157  	googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
 20158  	urlParams_                                           gensupport.URLParams
 20159  	ctx_                                                 context.Context
 20160  	header_                                              http.Header
 20161  }
 20162  
 20163  // BatchDelete: Deletes entity types in the specified agent. This method is a
 20164  // long-running operation
 20165  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 20166  // The returned `Operation` type has the following method-specific fields: -
 20167  // `metadata`: An empty Struct message
 20168  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 20169  // - `response`: An Empty message
 20170  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 20171  // Note: You should always train an agent prior to sending it queries. See the
 20172  // training documentation
 20173  // (https://cloud.google.com/dialogflow/es/docs/training).
 20174  //
 20175  //   - parent: The name of the agent to delete all entities types for. Format:
 20176  //     `projects//agent`.
 20177  func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall {
 20178  	c := &ProjectsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20179  	c.parent = parent
 20180  	c.googleclouddialogflowv2batchdeleteentitytypesrequest = googleclouddialogflowv2batchdeleteentitytypesrequest
 20181  	return c
 20182  }
 20183  
 20184  // Fields allows partial responses to be retrieved. See
 20185  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20186  // details.
 20187  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall {
 20188  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20189  	return c
 20190  }
 20191  
 20192  // Context sets the context to be used in this call's Do method.
 20193  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall {
 20194  	c.ctx_ = ctx
 20195  	return c
 20196  }
 20197  
 20198  // Header returns a http.Header that can be modified by the caller to add
 20199  // headers to the request.
 20200  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header {
 20201  	if c.header_ == nil {
 20202  		c.header_ = make(http.Header)
 20203  	}
 20204  	return c.header_
 20205  }
 20206  
 20207  func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 20208  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20209  	var body io.Reader = nil
 20210  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitytypesrequest)
 20211  	if err != nil {
 20212  		return nil, err
 20213  	}
 20214  	c.urlParams_.Set("alt", alt)
 20215  	c.urlParams_.Set("prettyPrint", "false")
 20216  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchDelete")
 20217  	urls += "?" + c.urlParams_.Encode()
 20218  	req, err := http.NewRequest("POST", urls, body)
 20219  	if err != nil {
 20220  		return nil, err
 20221  	}
 20222  	req.Header = reqHeaders
 20223  	googleapi.Expand(req.URL, map[string]string{
 20224  		"parent": c.parent,
 20225  	})
 20226  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20227  }
 20228  
 20229  // Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call.
 20230  // Any non-2xx status code is an error. Response headers are in either
 20231  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20232  // returned at all) in error.(*googleapi.Error).Header. Use
 20233  // googleapi.IsNotModified to check whether the returned error was because
 20234  // http.StatusNotModified was returned.
 20235  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20236  	gensupport.SetOptions(c.urlParams_, opts...)
 20237  	res, err := c.doRequest("json")
 20238  	if res != nil && res.StatusCode == http.StatusNotModified {
 20239  		if res.Body != nil {
 20240  			res.Body.Close()
 20241  		}
 20242  		return nil, gensupport.WrapError(&googleapi.Error{
 20243  			Code:   res.StatusCode,
 20244  			Header: res.Header,
 20245  		})
 20246  	}
 20247  	if err != nil {
 20248  		return nil, err
 20249  	}
 20250  	defer googleapi.CloseBody(res)
 20251  	if err := googleapi.CheckResponse(res); err != nil {
 20252  		return nil, gensupport.WrapError(err)
 20253  	}
 20254  	ret := &GoogleLongrunningOperation{
 20255  		ServerResponse: googleapi.ServerResponse{
 20256  			Header:         res.Header,
 20257  			HTTPStatusCode: res.StatusCode,
 20258  		},
 20259  	}
 20260  	target := &ret
 20261  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20262  		return nil, err
 20263  	}
 20264  	return ret, nil
 20265  }
 20266  
 20267  type ProjectsAgentEntityTypesBatchUpdateCall struct {
 20268  	s                                                    *Service
 20269  	parent                                               string
 20270  	googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
 20271  	urlParams_                                           gensupport.URLParams
 20272  	ctx_                                                 context.Context
 20273  	header_                                              http.Header
 20274  }
 20275  
 20276  // BatchUpdate: Updates/Creates multiple entity types in the specified agent.
 20277  // This method is a long-running operation
 20278  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 20279  // The returned `Operation` type has the following method-specific fields: -
 20280  // `metadata`: An empty Struct message
 20281  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 20282  // - `response`: BatchUpdateEntityTypesResponse Note: You should always train
 20283  // an agent prior to sending it queries. See the training documentation
 20284  // (https://cloud.google.com/dialogflow/es/docs/training).
 20285  //
 20286  //   - parent: The name of the agent to update or create entity types in. Format:
 20287  //     `projects//agent`.
 20288  func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall {
 20289  	c := &ProjectsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20290  	c.parent = parent
 20291  	c.googleclouddialogflowv2batchupdateentitytypesrequest = googleclouddialogflowv2batchupdateentitytypesrequest
 20292  	return c
 20293  }
 20294  
 20295  // Fields allows partial responses to be retrieved. See
 20296  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20297  // details.
 20298  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall {
 20299  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20300  	return c
 20301  }
 20302  
 20303  // Context sets the context to be used in this call's Do method.
 20304  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall {
 20305  	c.ctx_ = ctx
 20306  	return c
 20307  }
 20308  
 20309  // Header returns a http.Header that can be modified by the caller to add
 20310  // headers to the request.
 20311  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header {
 20312  	if c.header_ == nil {
 20313  		c.header_ = make(http.Header)
 20314  	}
 20315  	return c.header_
 20316  }
 20317  
 20318  func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 20319  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20320  	var body io.Reader = nil
 20321  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitytypesrequest)
 20322  	if err != nil {
 20323  		return nil, err
 20324  	}
 20325  	c.urlParams_.Set("alt", alt)
 20326  	c.urlParams_.Set("prettyPrint", "false")
 20327  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchUpdate")
 20328  	urls += "?" + c.urlParams_.Encode()
 20329  	req, err := http.NewRequest("POST", urls, body)
 20330  	if err != nil {
 20331  		return nil, err
 20332  	}
 20333  	req.Header = reqHeaders
 20334  	googleapi.Expand(req.URL, map[string]string{
 20335  		"parent": c.parent,
 20336  	})
 20337  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20338  }
 20339  
 20340  // Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call.
 20341  // Any non-2xx status code is an error. Response headers are in either
 20342  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20343  // returned at all) in error.(*googleapi.Error).Header. Use
 20344  // googleapi.IsNotModified to check whether the returned error was because
 20345  // http.StatusNotModified was returned.
 20346  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20347  	gensupport.SetOptions(c.urlParams_, opts...)
 20348  	res, err := c.doRequest("json")
 20349  	if res != nil && res.StatusCode == http.StatusNotModified {
 20350  		if res.Body != nil {
 20351  			res.Body.Close()
 20352  		}
 20353  		return nil, gensupport.WrapError(&googleapi.Error{
 20354  			Code:   res.StatusCode,
 20355  			Header: res.Header,
 20356  		})
 20357  	}
 20358  	if err != nil {
 20359  		return nil, err
 20360  	}
 20361  	defer googleapi.CloseBody(res)
 20362  	if err := googleapi.CheckResponse(res); err != nil {
 20363  		return nil, gensupport.WrapError(err)
 20364  	}
 20365  	ret := &GoogleLongrunningOperation{
 20366  		ServerResponse: googleapi.ServerResponse{
 20367  			Header:         res.Header,
 20368  			HTTPStatusCode: res.StatusCode,
 20369  		},
 20370  	}
 20371  	target := &ret
 20372  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20373  		return nil, err
 20374  	}
 20375  	return ret, nil
 20376  }
 20377  
 20378  type ProjectsAgentEntityTypesCreateCall struct {
 20379  	s                                 *Service
 20380  	parent                            string
 20381  	googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
 20382  	urlParams_                        gensupport.URLParams
 20383  	ctx_                              context.Context
 20384  	header_                           http.Header
 20385  }
 20386  
 20387  // Create: Creates an entity type in the specified agent. Note: You should
 20388  // always train an agent prior to sending it queries. See the training
 20389  // documentation (https://cloud.google.com/dialogflow/es/docs/training).
 20390  //
 20391  // - parent: The agent to create a entity type for. Format: `projects//agent`.
 20392  func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsAgentEntityTypesCreateCall {
 20393  	c := &ProjectsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20394  	c.parent = parent
 20395  	c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
 20396  	return c
 20397  }
 20398  
 20399  // LanguageCode sets the optional parameter "languageCode": The language used
 20400  // to access language-specific data. If not specified, the agent's default
 20401  // language is used. For more information, see Multilingual intent and entity
 20402  // data
 20403  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20404  func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall {
 20405  	c.urlParams_.Set("languageCode", languageCode)
 20406  	return c
 20407  }
 20408  
 20409  // Fields allows partial responses to be retrieved. See
 20410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20411  // details.
 20412  func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall {
 20413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20414  	return c
 20415  }
 20416  
 20417  // Context sets the context to be used in this call's Do method.
 20418  func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall {
 20419  	c.ctx_ = ctx
 20420  	return c
 20421  }
 20422  
 20423  // Header returns a http.Header that can be modified by the caller to add
 20424  // headers to the request.
 20425  func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header {
 20426  	if c.header_ == nil {
 20427  		c.header_ = make(http.Header)
 20428  	}
 20429  	return c.header_
 20430  }
 20431  
 20432  func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 20433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20434  	var body io.Reader = nil
 20435  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
 20436  	if err != nil {
 20437  		return nil, err
 20438  	}
 20439  	c.urlParams_.Set("alt", alt)
 20440  	c.urlParams_.Set("prettyPrint", "false")
 20441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 20442  	urls += "?" + c.urlParams_.Encode()
 20443  	req, err := http.NewRequest("POST", urls, body)
 20444  	if err != nil {
 20445  		return nil, err
 20446  	}
 20447  	req.Header = reqHeaders
 20448  	googleapi.Expand(req.URL, map[string]string{
 20449  		"parent": c.parent,
 20450  	})
 20451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20452  }
 20453  
 20454  // Do executes the "dialogflow.projects.agent.entityTypes.create" call.
 20455  // Any non-2xx status code is an error. Response headers are in either
 20456  // *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response
 20457  // was returned at all) in error.(*googleapi.Error).Header. Use
 20458  // googleapi.IsNotModified to check whether the returned error was because
 20459  // http.StatusNotModified was returned.
 20460  func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
 20461  	gensupport.SetOptions(c.urlParams_, opts...)
 20462  	res, err := c.doRequest("json")
 20463  	if res != nil && res.StatusCode == http.StatusNotModified {
 20464  		if res.Body != nil {
 20465  			res.Body.Close()
 20466  		}
 20467  		return nil, gensupport.WrapError(&googleapi.Error{
 20468  			Code:   res.StatusCode,
 20469  			Header: res.Header,
 20470  		})
 20471  	}
 20472  	if err != nil {
 20473  		return nil, err
 20474  	}
 20475  	defer googleapi.CloseBody(res)
 20476  	if err := googleapi.CheckResponse(res); err != nil {
 20477  		return nil, gensupport.WrapError(err)
 20478  	}
 20479  	ret := &GoogleCloudDialogflowV2EntityType{
 20480  		ServerResponse: googleapi.ServerResponse{
 20481  			Header:         res.Header,
 20482  			HTTPStatusCode: res.StatusCode,
 20483  		},
 20484  	}
 20485  	target := &ret
 20486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20487  		return nil, err
 20488  	}
 20489  	return ret, nil
 20490  }
 20491  
 20492  type ProjectsAgentEntityTypesDeleteCall struct {
 20493  	s          *Service
 20494  	name       string
 20495  	urlParams_ gensupport.URLParams
 20496  	ctx_       context.Context
 20497  	header_    http.Header
 20498  }
 20499  
 20500  // Delete: Deletes the specified entity type. Note: You should always train an
 20501  // agent prior to sending it queries. See the training documentation
 20502  // (https://cloud.google.com/dialogflow/es/docs/training).
 20503  //
 20504  //   - name: The name of the entity type to delete. Format:
 20505  //     `projects//agent/entityTypes/`.
 20506  func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall {
 20507  	c := &ProjectsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20508  	c.name = name
 20509  	return c
 20510  }
 20511  
 20512  // Fields allows partial responses to be retrieved. See
 20513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20514  // details.
 20515  func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall {
 20516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20517  	return c
 20518  }
 20519  
 20520  // Context sets the context to be used in this call's Do method.
 20521  func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall {
 20522  	c.ctx_ = ctx
 20523  	return c
 20524  }
 20525  
 20526  // Header returns a http.Header that can be modified by the caller to add
 20527  // headers to the request.
 20528  func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header {
 20529  	if c.header_ == nil {
 20530  		c.header_ = make(http.Header)
 20531  	}
 20532  	return c.header_
 20533  }
 20534  
 20535  func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 20536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20537  	var body io.Reader = nil
 20538  	c.urlParams_.Set("alt", alt)
 20539  	c.urlParams_.Set("prettyPrint", "false")
 20540  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20541  	urls += "?" + c.urlParams_.Encode()
 20542  	req, err := http.NewRequest("DELETE", urls, body)
 20543  	if err != nil {
 20544  		return nil, err
 20545  	}
 20546  	req.Header = reqHeaders
 20547  	googleapi.Expand(req.URL, map[string]string{
 20548  		"name": c.name,
 20549  	})
 20550  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20551  }
 20552  
 20553  // Do executes the "dialogflow.projects.agent.entityTypes.delete" call.
 20554  // Any non-2xx status code is an error. Response headers are in either
 20555  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20556  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20557  // check whether the returned error was because http.StatusNotModified was
 20558  // returned.
 20559  func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20560  	gensupport.SetOptions(c.urlParams_, opts...)
 20561  	res, err := c.doRequest("json")
 20562  	if res != nil && res.StatusCode == http.StatusNotModified {
 20563  		if res.Body != nil {
 20564  			res.Body.Close()
 20565  		}
 20566  		return nil, gensupport.WrapError(&googleapi.Error{
 20567  			Code:   res.StatusCode,
 20568  			Header: res.Header,
 20569  		})
 20570  	}
 20571  	if err != nil {
 20572  		return nil, err
 20573  	}
 20574  	defer googleapi.CloseBody(res)
 20575  	if err := googleapi.CheckResponse(res); err != nil {
 20576  		return nil, gensupport.WrapError(err)
 20577  	}
 20578  	ret := &GoogleProtobufEmpty{
 20579  		ServerResponse: googleapi.ServerResponse{
 20580  			Header:         res.Header,
 20581  			HTTPStatusCode: res.StatusCode,
 20582  		},
 20583  	}
 20584  	target := &ret
 20585  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20586  		return nil, err
 20587  	}
 20588  	return ret, nil
 20589  }
 20590  
 20591  type ProjectsAgentEntityTypesGetCall struct {
 20592  	s            *Service
 20593  	name         string
 20594  	urlParams_   gensupport.URLParams
 20595  	ifNoneMatch_ string
 20596  	ctx_         context.Context
 20597  	header_      http.Header
 20598  }
 20599  
 20600  // Get: Retrieves the specified entity type.
 20601  //
 20602  // - name: The name of the entity type. Format: `projects//agent/entityTypes/`.
 20603  func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall {
 20604  	c := &ProjectsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20605  	c.name = name
 20606  	return c
 20607  }
 20608  
 20609  // LanguageCode sets the optional parameter "languageCode": The language used
 20610  // to access language-specific data. If not specified, the agent's default
 20611  // language is used. For more information, see Multilingual intent and entity
 20612  // data
 20613  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20614  func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall {
 20615  	c.urlParams_.Set("languageCode", languageCode)
 20616  	return c
 20617  }
 20618  
 20619  // Fields allows partial responses to be retrieved. See
 20620  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20621  // details.
 20622  func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall {
 20623  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20624  	return c
 20625  }
 20626  
 20627  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20628  // object's ETag matches the given value. This is useful for getting updates
 20629  // only after the object has changed since the last request.
 20630  func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall {
 20631  	c.ifNoneMatch_ = entityTag
 20632  	return c
 20633  }
 20634  
 20635  // Context sets the context to be used in this call's Do method.
 20636  func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall {
 20637  	c.ctx_ = ctx
 20638  	return c
 20639  }
 20640  
 20641  // Header returns a http.Header that can be modified by the caller to add
 20642  // headers to the request.
 20643  func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header {
 20644  	if c.header_ == nil {
 20645  		c.header_ = make(http.Header)
 20646  	}
 20647  	return c.header_
 20648  }
 20649  
 20650  func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 20651  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20652  	if c.ifNoneMatch_ != "" {
 20653  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20654  	}
 20655  	var body io.Reader = nil
 20656  	c.urlParams_.Set("alt", alt)
 20657  	c.urlParams_.Set("prettyPrint", "false")
 20658  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20659  	urls += "?" + c.urlParams_.Encode()
 20660  	req, err := http.NewRequest("GET", urls, body)
 20661  	if err != nil {
 20662  		return nil, err
 20663  	}
 20664  	req.Header = reqHeaders
 20665  	googleapi.Expand(req.URL, map[string]string{
 20666  		"name": c.name,
 20667  	})
 20668  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20669  }
 20670  
 20671  // Do executes the "dialogflow.projects.agent.entityTypes.get" call.
 20672  // Any non-2xx status code is an error. Response headers are in either
 20673  // *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response
 20674  // was returned at all) in error.(*googleapi.Error).Header. Use
 20675  // googleapi.IsNotModified to check whether the returned error was because
 20676  // http.StatusNotModified was returned.
 20677  func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
 20678  	gensupport.SetOptions(c.urlParams_, opts...)
 20679  	res, err := c.doRequest("json")
 20680  	if res != nil && res.StatusCode == http.StatusNotModified {
 20681  		if res.Body != nil {
 20682  			res.Body.Close()
 20683  		}
 20684  		return nil, gensupport.WrapError(&googleapi.Error{
 20685  			Code:   res.StatusCode,
 20686  			Header: res.Header,
 20687  		})
 20688  	}
 20689  	if err != nil {
 20690  		return nil, err
 20691  	}
 20692  	defer googleapi.CloseBody(res)
 20693  	if err := googleapi.CheckResponse(res); err != nil {
 20694  		return nil, gensupport.WrapError(err)
 20695  	}
 20696  	ret := &GoogleCloudDialogflowV2EntityType{
 20697  		ServerResponse: googleapi.ServerResponse{
 20698  			Header:         res.Header,
 20699  			HTTPStatusCode: res.StatusCode,
 20700  		},
 20701  	}
 20702  	target := &ret
 20703  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20704  		return nil, err
 20705  	}
 20706  	return ret, nil
 20707  }
 20708  
 20709  type ProjectsAgentEntityTypesListCall struct {
 20710  	s            *Service
 20711  	parent       string
 20712  	urlParams_   gensupport.URLParams
 20713  	ifNoneMatch_ string
 20714  	ctx_         context.Context
 20715  	header_      http.Header
 20716  }
 20717  
 20718  // List: Returns the list of all entity types in the specified agent.
 20719  //
 20720  //   - parent: The agent to list all entity types from. Format:
 20721  //     `projects//agent`.
 20722  func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall {
 20723  	c := &ProjectsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20724  	c.parent = parent
 20725  	return c
 20726  }
 20727  
 20728  // LanguageCode sets the optional parameter "languageCode": The language used
 20729  // to access language-specific data. If not specified, the agent's default
 20730  // language is used. For more information, see Multilingual intent and entity
 20731  // data
 20732  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20733  func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall {
 20734  	c.urlParams_.Set("languageCode", languageCode)
 20735  	return c
 20736  }
 20737  
 20738  // PageSize sets the optional parameter "pageSize": The maximum number of items
 20739  // to return in a single page. By default 100 and at most 1000.
 20740  func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall {
 20741  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20742  	return c
 20743  }
 20744  
 20745  // PageToken sets the optional parameter "pageToken": The next_page_token value
 20746  // returned from a previous list request.
 20747  func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall {
 20748  	c.urlParams_.Set("pageToken", pageToken)
 20749  	return c
 20750  }
 20751  
 20752  // Fields allows partial responses to be retrieved. See
 20753  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20754  // details.
 20755  func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall {
 20756  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20757  	return c
 20758  }
 20759  
 20760  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20761  // object's ETag matches the given value. This is useful for getting updates
 20762  // only after the object has changed since the last request.
 20763  func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall {
 20764  	c.ifNoneMatch_ = entityTag
 20765  	return c
 20766  }
 20767  
 20768  // Context sets the context to be used in this call's Do method.
 20769  func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall {
 20770  	c.ctx_ = ctx
 20771  	return c
 20772  }
 20773  
 20774  // Header returns a http.Header that can be modified by the caller to add
 20775  // headers to the request.
 20776  func (c *ProjectsAgentEntityTypesListCall) Header() http.Header {
 20777  	if c.header_ == nil {
 20778  		c.header_ = make(http.Header)
 20779  	}
 20780  	return c.header_
 20781  }
 20782  
 20783  func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 20784  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20785  	if c.ifNoneMatch_ != "" {
 20786  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20787  	}
 20788  	var body io.Reader = nil
 20789  	c.urlParams_.Set("alt", alt)
 20790  	c.urlParams_.Set("prettyPrint", "false")
 20791  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 20792  	urls += "?" + c.urlParams_.Encode()
 20793  	req, err := http.NewRequest("GET", urls, body)
 20794  	if err != nil {
 20795  		return nil, err
 20796  	}
 20797  	req.Header = reqHeaders
 20798  	googleapi.Expand(req.URL, map[string]string{
 20799  		"parent": c.parent,
 20800  	})
 20801  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20802  }
 20803  
 20804  // Do executes the "dialogflow.projects.agent.entityTypes.list" call.
 20805  // Any non-2xx status code is an error. Response headers are in either
 20806  // *GoogleCloudDialogflowV2ListEntityTypesResponse.ServerResponse.Header or (if
 20807  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 20808  // googleapi.IsNotModified to check whether the returned error was because
 20809  // http.StatusNotModified was returned.
 20810  func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEntityTypesResponse, error) {
 20811  	gensupport.SetOptions(c.urlParams_, opts...)
 20812  	res, err := c.doRequest("json")
 20813  	if res != nil && res.StatusCode == http.StatusNotModified {
 20814  		if res.Body != nil {
 20815  			res.Body.Close()
 20816  		}
 20817  		return nil, gensupport.WrapError(&googleapi.Error{
 20818  			Code:   res.StatusCode,
 20819  			Header: res.Header,
 20820  		})
 20821  	}
 20822  	if err != nil {
 20823  		return nil, err
 20824  	}
 20825  	defer googleapi.CloseBody(res)
 20826  	if err := googleapi.CheckResponse(res); err != nil {
 20827  		return nil, gensupport.WrapError(err)
 20828  	}
 20829  	ret := &GoogleCloudDialogflowV2ListEntityTypesResponse{
 20830  		ServerResponse: googleapi.ServerResponse{
 20831  			Header:         res.Header,
 20832  			HTTPStatusCode: res.StatusCode,
 20833  		},
 20834  	}
 20835  	target := &ret
 20836  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20837  		return nil, err
 20838  	}
 20839  	return ret, nil
 20840  }
 20841  
 20842  // Pages invokes f for each page of results.
 20843  // A non-nil error returned from f will halt the iteration.
 20844  // The provided context supersedes any context provided to the Context method.
 20845  func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEntityTypesResponse) error) error {
 20846  	c.ctx_ = ctx
 20847  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20848  	for {
 20849  		x, err := c.Do()
 20850  		if err != nil {
 20851  			return err
 20852  		}
 20853  		if err := f(x); err != nil {
 20854  			return err
 20855  		}
 20856  		if x.NextPageToken == "" {
 20857  			return nil
 20858  		}
 20859  		c.PageToken(x.NextPageToken)
 20860  	}
 20861  }
 20862  
 20863  type ProjectsAgentEntityTypesPatchCall struct {
 20864  	s                                 *Service
 20865  	nameid                            string
 20866  	googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
 20867  	urlParams_                        gensupport.URLParams
 20868  	ctx_                              context.Context
 20869  	header_                           http.Header
 20870  }
 20871  
 20872  // Patch: Updates the specified entity type. Note: You should always train an
 20873  // agent prior to sending it queries. See the training documentation
 20874  // (https://cloud.google.com/dialogflow/es/docs/training).
 20875  //
 20876  //   - name: The unique identifier of the entity type. Required for
 20877  //     EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
 20878  //     methods. Format: `projects//agent/entityTypes/`.
 20879  func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsAgentEntityTypesPatchCall {
 20880  	c := &ProjectsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20881  	c.nameid = nameid
 20882  	c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
 20883  	return c
 20884  }
 20885  
 20886  // LanguageCode sets the optional parameter "languageCode": The language used
 20887  // to access language-specific data. If not specified, the agent's default
 20888  // language is used. For more information, see Multilingual intent and entity
 20889  // data
 20890  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20891  func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall {
 20892  	c.urlParams_.Set("languageCode", languageCode)
 20893  	return c
 20894  }
 20895  
 20896  // UpdateMask sets the optional parameter "updateMask": The mask to control
 20897  // which fields get updated.
 20898  func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall {
 20899  	c.urlParams_.Set("updateMask", updateMask)
 20900  	return c
 20901  }
 20902  
 20903  // Fields allows partial responses to be retrieved. See
 20904  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20905  // details.
 20906  func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall {
 20907  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20908  	return c
 20909  }
 20910  
 20911  // Context sets the context to be used in this call's Do method.
 20912  func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall {
 20913  	c.ctx_ = ctx
 20914  	return c
 20915  }
 20916  
 20917  // Header returns a http.Header that can be modified by the caller to add
 20918  // headers to the request.
 20919  func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header {
 20920  	if c.header_ == nil {
 20921  		c.header_ = make(http.Header)
 20922  	}
 20923  	return c.header_
 20924  }
 20925  
 20926  func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 20927  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20928  	var body io.Reader = nil
 20929  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
 20930  	if err != nil {
 20931  		return nil, err
 20932  	}
 20933  	c.urlParams_.Set("alt", alt)
 20934  	c.urlParams_.Set("prettyPrint", "false")
 20935  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20936  	urls += "?" + c.urlParams_.Encode()
 20937  	req, err := http.NewRequest("PATCH", urls, body)
 20938  	if err != nil {
 20939  		return nil, err
 20940  	}
 20941  	req.Header = reqHeaders
 20942  	googleapi.Expand(req.URL, map[string]string{
 20943  		"name": c.nameid,
 20944  	})
 20945  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20946  }
 20947  
 20948  // Do executes the "dialogflow.projects.agent.entityTypes.patch" call.
 20949  // Any non-2xx status code is an error. Response headers are in either
 20950  // *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response
 20951  // was returned at all) in error.(*googleapi.Error).Header. Use
 20952  // googleapi.IsNotModified to check whether the returned error was because
 20953  // http.StatusNotModified was returned.
 20954  func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
 20955  	gensupport.SetOptions(c.urlParams_, opts...)
 20956  	res, err := c.doRequest("json")
 20957  	if res != nil && res.StatusCode == http.StatusNotModified {
 20958  		if res.Body != nil {
 20959  			res.Body.Close()
 20960  		}
 20961  		return nil, gensupport.WrapError(&googleapi.Error{
 20962  			Code:   res.StatusCode,
 20963  			Header: res.Header,
 20964  		})
 20965  	}
 20966  	if err != nil {
 20967  		return nil, err
 20968  	}
 20969  	defer googleapi.CloseBody(res)
 20970  	if err := googleapi.CheckResponse(res); err != nil {
 20971  		return nil, gensupport.WrapError(err)
 20972  	}
 20973  	ret := &GoogleCloudDialogflowV2EntityType{
 20974  		ServerResponse: googleapi.ServerResponse{
 20975  			Header:         res.Header,
 20976  			HTTPStatusCode: res.StatusCode,
 20977  		},
 20978  	}
 20979  	target := &ret
 20980  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20981  		return nil, err
 20982  	}
 20983  	return ret, nil
 20984  }
 20985  
 20986  type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
 20987  	s                                                 *Service
 20988  	parent                                            string
 20989  	googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest
 20990  	urlParams_                                        gensupport.URLParams
 20991  	ctx_                                              context.Context
 20992  	header_                                           http.Header
 20993  }
 20994  
 20995  // BatchCreate: Creates multiple new entities in the specified entity type.
 20996  // This method is a long-running operation
 20997  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 20998  // The returned `Operation` type has the following method-specific fields: -
 20999  // `metadata`: An empty Struct message
 21000  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21001  // - `response`: An Empty message
 21002  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 21003  // Note: You should always train an agent prior to sending it queries. See the
 21004  // training documentation
 21005  // (https://cloud.google.com/dialogflow/es/docs/training).
 21006  //
 21007  //   - parent: The name of the entity type to create entities in. Format:
 21008  //     `projects//agent/entityTypes/`.
 21009  func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
 21010  	c := &ProjectsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21011  	c.parent = parent
 21012  	c.googleclouddialogflowv2batchcreateentitiesrequest = googleclouddialogflowv2batchcreateentitiesrequest
 21013  	return c
 21014  }
 21015  
 21016  // Fields allows partial responses to be retrieved. See
 21017  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21018  // details.
 21019  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
 21020  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21021  	return c
 21022  }
 21023  
 21024  // Context sets the context to be used in this call's Do method.
 21025  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
 21026  	c.ctx_ = ctx
 21027  	return c
 21028  }
 21029  
 21030  // Header returns a http.Header that can be modified by the caller to add
 21031  // headers to the request.
 21032  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
 21033  	if c.header_ == nil {
 21034  		c.header_ = make(http.Header)
 21035  	}
 21036  	return c.header_
 21037  }
 21038  
 21039  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 21040  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21041  	var body io.Reader = nil
 21042  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchcreateentitiesrequest)
 21043  	if err != nil {
 21044  		return nil, err
 21045  	}
 21046  	c.urlParams_.Set("alt", alt)
 21047  	c.urlParams_.Set("prettyPrint", "false")
 21048  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchCreate")
 21049  	urls += "?" + c.urlParams_.Encode()
 21050  	req, err := http.NewRequest("POST", urls, body)
 21051  	if err != nil {
 21052  		return nil, err
 21053  	}
 21054  	req.Header = reqHeaders
 21055  	googleapi.Expand(req.URL, map[string]string{
 21056  		"parent": c.parent,
 21057  	})
 21058  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21059  }
 21060  
 21061  // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call.
 21062  // Any non-2xx status code is an error. Response headers are in either
 21063  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21064  // returned at all) in error.(*googleapi.Error).Header. Use
 21065  // googleapi.IsNotModified to check whether the returned error was because
 21066  // http.StatusNotModified was returned.
 21067  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21068  	gensupport.SetOptions(c.urlParams_, opts...)
 21069  	res, err := c.doRequest("json")
 21070  	if res != nil && res.StatusCode == http.StatusNotModified {
 21071  		if res.Body != nil {
 21072  			res.Body.Close()
 21073  		}
 21074  		return nil, gensupport.WrapError(&googleapi.Error{
 21075  			Code:   res.StatusCode,
 21076  			Header: res.Header,
 21077  		})
 21078  	}
 21079  	if err != nil {
 21080  		return nil, err
 21081  	}
 21082  	defer googleapi.CloseBody(res)
 21083  	if err := googleapi.CheckResponse(res); err != nil {
 21084  		return nil, gensupport.WrapError(err)
 21085  	}
 21086  	ret := &GoogleLongrunningOperation{
 21087  		ServerResponse: googleapi.ServerResponse{
 21088  			Header:         res.Header,
 21089  			HTTPStatusCode: res.StatusCode,
 21090  		},
 21091  	}
 21092  	target := &ret
 21093  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21094  		return nil, err
 21095  	}
 21096  	return ret, nil
 21097  }
 21098  
 21099  type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
 21100  	s                                                 *Service
 21101  	parent                                            string
 21102  	googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
 21103  	urlParams_                                        gensupport.URLParams
 21104  	ctx_                                              context.Context
 21105  	header_                                           http.Header
 21106  }
 21107  
 21108  // BatchDelete: Deletes entities in the specified entity type. This method is a
 21109  // long-running operation
 21110  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 21111  // The returned `Operation` type has the following method-specific fields: -
 21112  // `metadata`: An empty Struct message
 21113  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21114  // - `response`: An Empty message
 21115  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 21116  // Note: You should always train an agent prior to sending it queries. See the
 21117  // training documentation
 21118  // (https://cloud.google.com/dialogflow/es/docs/training).
 21119  //
 21120  //   - parent: The name of the entity type to delete entries for. Format:
 21121  //     `projects//agent/entityTypes/`.
 21122  func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
 21123  	c := &ProjectsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21124  	c.parent = parent
 21125  	c.googleclouddialogflowv2batchdeleteentitiesrequest = googleclouddialogflowv2batchdeleteentitiesrequest
 21126  	return c
 21127  }
 21128  
 21129  // Fields allows partial responses to be retrieved. See
 21130  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21131  // details.
 21132  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
 21133  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21134  	return c
 21135  }
 21136  
 21137  // Context sets the context to be used in this call's Do method.
 21138  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
 21139  	c.ctx_ = ctx
 21140  	return c
 21141  }
 21142  
 21143  // Header returns a http.Header that can be modified by the caller to add
 21144  // headers to the request.
 21145  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
 21146  	if c.header_ == nil {
 21147  		c.header_ = make(http.Header)
 21148  	}
 21149  	return c.header_
 21150  }
 21151  
 21152  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 21153  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21154  	var body io.Reader = nil
 21155  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitiesrequest)
 21156  	if err != nil {
 21157  		return nil, err
 21158  	}
 21159  	c.urlParams_.Set("alt", alt)
 21160  	c.urlParams_.Set("prettyPrint", "false")
 21161  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchDelete")
 21162  	urls += "?" + c.urlParams_.Encode()
 21163  	req, err := http.NewRequest("POST", urls, body)
 21164  	if err != nil {
 21165  		return nil, err
 21166  	}
 21167  	req.Header = reqHeaders
 21168  	googleapi.Expand(req.URL, map[string]string{
 21169  		"parent": c.parent,
 21170  	})
 21171  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21172  }
 21173  
 21174  // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call.
 21175  // Any non-2xx status code is an error. Response headers are in either
 21176  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21177  // returned at all) in error.(*googleapi.Error).Header. Use
 21178  // googleapi.IsNotModified to check whether the returned error was because
 21179  // http.StatusNotModified was returned.
 21180  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21181  	gensupport.SetOptions(c.urlParams_, opts...)
 21182  	res, err := c.doRequest("json")
 21183  	if res != nil && res.StatusCode == http.StatusNotModified {
 21184  		if res.Body != nil {
 21185  			res.Body.Close()
 21186  		}
 21187  		return nil, gensupport.WrapError(&googleapi.Error{
 21188  			Code:   res.StatusCode,
 21189  			Header: res.Header,
 21190  		})
 21191  	}
 21192  	if err != nil {
 21193  		return nil, err
 21194  	}
 21195  	defer googleapi.CloseBody(res)
 21196  	if err := googleapi.CheckResponse(res); err != nil {
 21197  		return nil, gensupport.WrapError(err)
 21198  	}
 21199  	ret := &GoogleLongrunningOperation{
 21200  		ServerResponse: googleapi.ServerResponse{
 21201  			Header:         res.Header,
 21202  			HTTPStatusCode: res.StatusCode,
 21203  		},
 21204  	}
 21205  	target := &ret
 21206  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21207  		return nil, err
 21208  	}
 21209  	return ret, nil
 21210  }
 21211  
 21212  type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
 21213  	s                                                 *Service
 21214  	parent                                            string
 21215  	googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
 21216  	urlParams_                                        gensupport.URLParams
 21217  	ctx_                                              context.Context
 21218  	header_                                           http.Header
 21219  }
 21220  
 21221  // BatchUpdate: Updates or creates multiple entities in the specified entity
 21222  // type. This method does not affect entities in the entity type that aren't
 21223  // explicitly specified in the request. This method is a long-running operation
 21224  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 21225  // The returned `Operation` type has the following method-specific fields: -
 21226  // `metadata`: An empty Struct message
 21227  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21228  // - `response`: An Empty message
 21229  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 21230  // Note: You should always train an agent prior to sending it queries. See the
 21231  // training documentation
 21232  // (https://cloud.google.com/dialogflow/es/docs/training).
 21233  //
 21234  //   - parent: The name of the entity type to update or create entities in.
 21235  //     Format: `projects//agent/entityTypes/`.
 21236  func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
 21237  	c := &ProjectsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21238  	c.parent = parent
 21239  	c.googleclouddialogflowv2batchupdateentitiesrequest = googleclouddialogflowv2batchupdateentitiesrequest
 21240  	return c
 21241  }
 21242  
 21243  // Fields allows partial responses to be retrieved. See
 21244  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21245  // details.
 21246  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
 21247  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21248  	return c
 21249  }
 21250  
 21251  // Context sets the context to be used in this call's Do method.
 21252  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
 21253  	c.ctx_ = ctx
 21254  	return c
 21255  }
 21256  
 21257  // Header returns a http.Header that can be modified by the caller to add
 21258  // headers to the request.
 21259  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
 21260  	if c.header_ == nil {
 21261  		c.header_ = make(http.Header)
 21262  	}
 21263  	return c.header_
 21264  }
 21265  
 21266  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 21267  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21268  	var body io.Reader = nil
 21269  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitiesrequest)
 21270  	if err != nil {
 21271  		return nil, err
 21272  	}
 21273  	c.urlParams_.Set("alt", alt)
 21274  	c.urlParams_.Set("prettyPrint", "false")
 21275  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchUpdate")
 21276  	urls += "?" + c.urlParams_.Encode()
 21277  	req, err := http.NewRequest("POST", urls, body)
 21278  	if err != nil {
 21279  		return nil, err
 21280  	}
 21281  	req.Header = reqHeaders
 21282  	googleapi.Expand(req.URL, map[string]string{
 21283  		"parent": c.parent,
 21284  	})
 21285  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21286  }
 21287  
 21288  // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call.
 21289  // Any non-2xx status code is an error. Response headers are in either
 21290  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21291  // returned at all) in error.(*googleapi.Error).Header. Use
 21292  // googleapi.IsNotModified to check whether the returned error was because
 21293  // http.StatusNotModified was returned.
 21294  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21295  	gensupport.SetOptions(c.urlParams_, opts...)
 21296  	res, err := c.doRequest("json")
 21297  	if res != nil && res.StatusCode == http.StatusNotModified {
 21298  		if res.Body != nil {
 21299  			res.Body.Close()
 21300  		}
 21301  		return nil, gensupport.WrapError(&googleapi.Error{
 21302  			Code:   res.StatusCode,
 21303  			Header: res.Header,
 21304  		})
 21305  	}
 21306  	if err != nil {
 21307  		return nil, err
 21308  	}
 21309  	defer googleapi.CloseBody(res)
 21310  	if err := googleapi.CheckResponse(res); err != nil {
 21311  		return nil, gensupport.WrapError(err)
 21312  	}
 21313  	ret := &GoogleLongrunningOperation{
 21314  		ServerResponse: googleapi.ServerResponse{
 21315  			Header:         res.Header,
 21316  			HTTPStatusCode: res.StatusCode,
 21317  		},
 21318  	}
 21319  	target := &ret
 21320  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21321  		return nil, err
 21322  	}
 21323  	return ret, nil
 21324  }
 21325  
 21326  type ProjectsAgentEnvironmentsCreateCall struct {
 21327  	s                                  *Service
 21328  	parent                             string
 21329  	googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
 21330  	urlParams_                         gensupport.URLParams
 21331  	ctx_                               context.Context
 21332  	header_                            http.Header
 21333  }
 21334  
 21335  // Create: Creates an agent environment.
 21336  //
 21337  //   - parent: The agent to create an environment for. Supported formats: -
 21338  //     `projects//agent` - `projects//locations//agent`.
 21339  func (r *ProjectsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsAgentEnvironmentsCreateCall {
 21340  	c := &ProjectsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21341  	c.parent = parent
 21342  	c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
 21343  	return c
 21344  }
 21345  
 21346  // EnvironmentId sets the optional parameter "environmentId": Required. The
 21347  // unique id of the new environment.
 21348  func (c *ProjectsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsAgentEnvironmentsCreateCall {
 21349  	c.urlParams_.Set("environmentId", environmentId)
 21350  	return c
 21351  }
 21352  
 21353  // Fields allows partial responses to be retrieved. See
 21354  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21355  // details.
 21356  func (c *ProjectsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsCreateCall {
 21357  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21358  	return c
 21359  }
 21360  
 21361  // Context sets the context to be used in this call's Do method.
 21362  func (c *ProjectsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsCreateCall {
 21363  	c.ctx_ = ctx
 21364  	return c
 21365  }
 21366  
 21367  // Header returns a http.Header that can be modified by the caller to add
 21368  // headers to the request.
 21369  func (c *ProjectsAgentEnvironmentsCreateCall) Header() http.Header {
 21370  	if c.header_ == nil {
 21371  		c.header_ = make(http.Header)
 21372  	}
 21373  	return c.header_
 21374  }
 21375  
 21376  func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 21377  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21378  	var body io.Reader = nil
 21379  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
 21380  	if err != nil {
 21381  		return nil, err
 21382  	}
 21383  	c.urlParams_.Set("alt", alt)
 21384  	c.urlParams_.Set("prettyPrint", "false")
 21385  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
 21386  	urls += "?" + c.urlParams_.Encode()
 21387  	req, err := http.NewRequest("POST", urls, body)
 21388  	if err != nil {
 21389  		return nil, err
 21390  	}
 21391  	req.Header = reqHeaders
 21392  	googleapi.Expand(req.URL, map[string]string{
 21393  		"parent": c.parent,
 21394  	})
 21395  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21396  }
 21397  
 21398  // Do executes the "dialogflow.projects.agent.environments.create" call.
 21399  // Any non-2xx status code is an error. Response headers are in either
 21400  // *GoogleCloudDialogflowV2Environment.ServerResponse.Header or (if a response
 21401  // was returned at all) in error.(*googleapi.Error).Header. Use
 21402  // googleapi.IsNotModified to check whether the returned error was because
 21403  // http.StatusNotModified was returned.
 21404  func (c *ProjectsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
 21405  	gensupport.SetOptions(c.urlParams_, opts...)
 21406  	res, err := c.doRequest("json")
 21407  	if res != nil && res.StatusCode == http.StatusNotModified {
 21408  		if res.Body != nil {
 21409  			res.Body.Close()
 21410  		}
 21411  		return nil, gensupport.WrapError(&googleapi.Error{
 21412  			Code:   res.StatusCode,
 21413  			Header: res.Header,
 21414  		})
 21415  	}
 21416  	if err != nil {
 21417  		return nil, err
 21418  	}
 21419  	defer googleapi.CloseBody(res)
 21420  	if err := googleapi.CheckResponse(res); err != nil {
 21421  		return nil, gensupport.WrapError(err)
 21422  	}
 21423  	ret := &GoogleCloudDialogflowV2Environment{
 21424  		ServerResponse: googleapi.ServerResponse{
 21425  			Header:         res.Header,
 21426  			HTTPStatusCode: res.StatusCode,
 21427  		},
 21428  	}
 21429  	target := &ret
 21430  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21431  		return nil, err
 21432  	}
 21433  	return ret, nil
 21434  }
 21435  
 21436  type ProjectsAgentEnvironmentsDeleteCall struct {
 21437  	s          *Service
 21438  	name       string
 21439  	urlParams_ gensupport.URLParams
 21440  	ctx_       context.Context
 21441  	header_    http.Header
 21442  }
 21443  
 21444  // Delete: Deletes the specified agent environment.
 21445  //
 21446  //   - name: The name of the environment to delete. / Format: -
 21447  //     `projects//agent/environments/` -
 21448  //     `projects//locations//agent/environments/` The environment ID for the
 21449  //     default environment is `-`.
 21450  func (r *ProjectsAgentEnvironmentsService) Delete(name string) *ProjectsAgentEnvironmentsDeleteCall {
 21451  	c := &ProjectsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21452  	c.name = name
 21453  	return c
 21454  }
 21455  
 21456  // Fields allows partial responses to be retrieved. See
 21457  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21458  // details.
 21459  func (c *ProjectsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsDeleteCall {
 21460  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21461  	return c
 21462  }
 21463  
 21464  // Context sets the context to be used in this call's Do method.
 21465  func (c *ProjectsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsDeleteCall {
 21466  	c.ctx_ = ctx
 21467  	return c
 21468  }
 21469  
 21470  // Header returns a http.Header that can be modified by the caller to add
 21471  // headers to the request.
 21472  func (c *ProjectsAgentEnvironmentsDeleteCall) Header() http.Header {
 21473  	if c.header_ == nil {
 21474  		c.header_ = make(http.Header)
 21475  	}
 21476  	return c.header_
 21477  }
 21478  
 21479  func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21480  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21481  	var body io.Reader = nil
 21482  	c.urlParams_.Set("alt", alt)
 21483  	c.urlParams_.Set("prettyPrint", "false")
 21484  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 21485  	urls += "?" + c.urlParams_.Encode()
 21486  	req, err := http.NewRequest("DELETE", urls, body)
 21487  	if err != nil {
 21488  		return nil, err
 21489  	}
 21490  	req.Header = reqHeaders
 21491  	googleapi.Expand(req.URL, map[string]string{
 21492  		"name": c.name,
 21493  	})
 21494  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21495  }
 21496  
 21497  // Do executes the "dialogflow.projects.agent.environments.delete" call.
 21498  // Any non-2xx status code is an error. Response headers are in either
 21499  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21500  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21501  // check whether the returned error was because http.StatusNotModified was
 21502  // returned.
 21503  func (c *ProjectsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21504  	gensupport.SetOptions(c.urlParams_, opts...)
 21505  	res, err := c.doRequest("json")
 21506  	if res != nil && res.StatusCode == http.StatusNotModified {
 21507  		if res.Body != nil {
 21508  			res.Body.Close()
 21509  		}
 21510  		return nil, gensupport.WrapError(&googleapi.Error{
 21511  			Code:   res.StatusCode,
 21512  			Header: res.Header,
 21513  		})
 21514  	}
 21515  	if err != nil {
 21516  		return nil, err
 21517  	}
 21518  	defer googleapi.CloseBody(res)
 21519  	if err := googleapi.CheckResponse(res); err != nil {
 21520  		return nil, gensupport.WrapError(err)
 21521  	}
 21522  	ret := &GoogleProtobufEmpty{
 21523  		ServerResponse: googleapi.ServerResponse{
 21524  			Header:         res.Header,
 21525  			HTTPStatusCode: res.StatusCode,
 21526  		},
 21527  	}
 21528  	target := &ret
 21529  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21530  		return nil, err
 21531  	}
 21532  	return ret, nil
 21533  }
 21534  
 21535  type ProjectsAgentEnvironmentsGetCall struct {
 21536  	s            *Service
 21537  	name         string
 21538  	urlParams_   gensupport.URLParams
 21539  	ifNoneMatch_ string
 21540  	ctx_         context.Context
 21541  	header_      http.Header
 21542  }
 21543  
 21544  // Get: Retrieves the specified agent environment.
 21545  //
 21546  //   - name: The name of the environment. Supported formats: -
 21547  //     `projects//agent/environments/` -
 21548  //     `projects//locations//agent/environments/` The environment ID for the
 21549  //     default environment is `-`.
 21550  func (r *ProjectsAgentEnvironmentsService) Get(name string) *ProjectsAgentEnvironmentsGetCall {
 21551  	c := &ProjectsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21552  	c.name = name
 21553  	return c
 21554  }
 21555  
 21556  // Fields allows partial responses to be retrieved. See
 21557  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21558  // details.
 21559  func (c *ProjectsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetCall {
 21560  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21561  	return c
 21562  }
 21563  
 21564  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21565  // object's ETag matches the given value. This is useful for getting updates
 21566  // only after the object has changed since the last request.
 21567  func (c *ProjectsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetCall {
 21568  	c.ifNoneMatch_ = entityTag
 21569  	return c
 21570  }
 21571  
 21572  // Context sets the context to be used in this call's Do method.
 21573  func (c *ProjectsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetCall {
 21574  	c.ctx_ = ctx
 21575  	return c
 21576  }
 21577  
 21578  // Header returns a http.Header that can be modified by the caller to add
 21579  // headers to the request.
 21580  func (c *ProjectsAgentEnvironmentsGetCall) Header() http.Header {
 21581  	if c.header_ == nil {
 21582  		c.header_ = make(http.Header)
 21583  	}
 21584  	return c.header_
 21585  }
 21586  
 21587  func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 21588  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21589  	if c.ifNoneMatch_ != "" {
 21590  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21591  	}
 21592  	var body io.Reader = nil
 21593  	c.urlParams_.Set("alt", alt)
 21594  	c.urlParams_.Set("prettyPrint", "false")
 21595  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 21596  	urls += "?" + c.urlParams_.Encode()
 21597  	req, err := http.NewRequest("GET", urls, body)
 21598  	if err != nil {
 21599  		return nil, err
 21600  	}
 21601  	req.Header = reqHeaders
 21602  	googleapi.Expand(req.URL, map[string]string{
 21603  		"name": c.name,
 21604  	})
 21605  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21606  }
 21607  
 21608  // Do executes the "dialogflow.projects.agent.environments.get" call.
 21609  // Any non-2xx status code is an error. Response headers are in either
 21610  // *GoogleCloudDialogflowV2Environment.ServerResponse.Header or (if a response
 21611  // was returned at all) in error.(*googleapi.Error).Header. Use
 21612  // googleapi.IsNotModified to check whether the returned error was because
 21613  // http.StatusNotModified was returned.
 21614  func (c *ProjectsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
 21615  	gensupport.SetOptions(c.urlParams_, opts...)
 21616  	res, err := c.doRequest("json")
 21617  	if res != nil && res.StatusCode == http.StatusNotModified {
 21618  		if res.Body != nil {
 21619  			res.Body.Close()
 21620  		}
 21621  		return nil, gensupport.WrapError(&googleapi.Error{
 21622  			Code:   res.StatusCode,
 21623  			Header: res.Header,
 21624  		})
 21625  	}
 21626  	if err != nil {
 21627  		return nil, err
 21628  	}
 21629  	defer googleapi.CloseBody(res)
 21630  	if err := googleapi.CheckResponse(res); err != nil {
 21631  		return nil, gensupport.WrapError(err)
 21632  	}
 21633  	ret := &GoogleCloudDialogflowV2Environment{
 21634  		ServerResponse: googleapi.ServerResponse{
 21635  			Header:         res.Header,
 21636  			HTTPStatusCode: res.StatusCode,
 21637  		},
 21638  	}
 21639  	target := &ret
 21640  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21641  		return nil, err
 21642  	}
 21643  	return ret, nil
 21644  }
 21645  
 21646  type ProjectsAgentEnvironmentsGetHistoryCall struct {
 21647  	s            *Service
 21648  	parent       string
 21649  	urlParams_   gensupport.URLParams
 21650  	ifNoneMatch_ string
 21651  	ctx_         context.Context
 21652  	header_      http.Header
 21653  }
 21654  
 21655  // GetHistory: Gets the history of the specified environment.
 21656  //
 21657  //   - parent: The name of the environment to retrieve history for. Supported
 21658  //     formats: - `projects//agent/environments/` -
 21659  //     `projects//locations//agent/environments/` The environment ID for the
 21660  //     default environment is `-`.
 21661  func (r *ProjectsAgentEnvironmentsService) GetHistory(parent string) *ProjectsAgentEnvironmentsGetHistoryCall {
 21662  	c := &ProjectsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21663  	c.parent = parent
 21664  	return c
 21665  }
 21666  
 21667  // PageSize sets the optional parameter "pageSize": The maximum number of items
 21668  // to return in a single page. By default 100 and at most 1000.
 21669  func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsGetHistoryCall {
 21670  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21671  	return c
 21672  }
 21673  
 21674  // PageToken sets the optional parameter "pageToken": The next_page_token value
 21675  // returned from a previous list request.
 21676  func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsGetHistoryCall {
 21677  	c.urlParams_.Set("pageToken", pageToken)
 21678  	return c
 21679  }
 21680  
 21681  // Fields allows partial responses to be retrieved. See
 21682  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21683  // details.
 21684  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetHistoryCall {
 21685  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21686  	return c
 21687  }
 21688  
 21689  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21690  // object's ETag matches the given value. This is useful for getting updates
 21691  // only after the object has changed since the last request.
 21692  func (c *ProjectsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetHistoryCall {
 21693  	c.ifNoneMatch_ = entityTag
 21694  	return c
 21695  }
 21696  
 21697  // Context sets the context to be used in this call's Do method.
 21698  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetHistoryCall {
 21699  	c.ctx_ = ctx
 21700  	return c
 21701  }
 21702  
 21703  // Header returns a http.Header that can be modified by the caller to add
 21704  // headers to the request.
 21705  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Header() http.Header {
 21706  	if c.header_ == nil {
 21707  		c.header_ = make(http.Header)
 21708  	}
 21709  	return c.header_
 21710  }
 21711  
 21712  func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
 21713  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21714  	if c.ifNoneMatch_ != "" {
 21715  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21716  	}
 21717  	var body io.Reader = nil
 21718  	c.urlParams_.Set("alt", alt)
 21719  	c.urlParams_.Set("prettyPrint", "false")
 21720  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/history")
 21721  	urls += "?" + c.urlParams_.Encode()
 21722  	req, err := http.NewRequest("GET", urls, body)
 21723  	if err != nil {
 21724  		return nil, err
 21725  	}
 21726  	req.Header = reqHeaders
 21727  	googleapi.Expand(req.URL, map[string]string{
 21728  		"parent": c.parent,
 21729  	})
 21730  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21731  }
 21732  
 21733  // Do executes the "dialogflow.projects.agent.environments.getHistory" call.
 21734  // Any non-2xx status code is an error. Response headers are in either
 21735  // *GoogleCloudDialogflowV2EnvironmentHistory.ServerResponse.Header or (if a
 21736  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21737  // googleapi.IsNotModified to check whether the returned error was because
 21738  // http.StatusNotModified was returned.
 21739  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EnvironmentHistory, error) {
 21740  	gensupport.SetOptions(c.urlParams_, opts...)
 21741  	res, err := c.doRequest("json")
 21742  	if res != nil && res.StatusCode == http.StatusNotModified {
 21743  		if res.Body != nil {
 21744  			res.Body.Close()
 21745  		}
 21746  		return nil, gensupport.WrapError(&googleapi.Error{
 21747  			Code:   res.StatusCode,
 21748  			Header: res.Header,
 21749  		})
 21750  	}
 21751  	if err != nil {
 21752  		return nil, err
 21753  	}
 21754  	defer googleapi.CloseBody(res)
 21755  	if err := googleapi.CheckResponse(res); err != nil {
 21756  		return nil, gensupport.WrapError(err)
 21757  	}
 21758  	ret := &GoogleCloudDialogflowV2EnvironmentHistory{
 21759  		ServerResponse: googleapi.ServerResponse{
 21760  			Header:         res.Header,
 21761  			HTTPStatusCode: res.StatusCode,
 21762  		},
 21763  	}
 21764  	target := &ret
 21765  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21766  		return nil, err
 21767  	}
 21768  	return ret, nil
 21769  }
 21770  
 21771  // Pages invokes f for each page of results.
 21772  // A non-nil error returned from f will halt the iteration.
 21773  // The provided context supersedes any context provided to the Context method.
 21774  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2EnvironmentHistory) error) error {
 21775  	c.ctx_ = ctx
 21776  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21777  	for {
 21778  		x, err := c.Do()
 21779  		if err != nil {
 21780  			return err
 21781  		}
 21782  		if err := f(x); err != nil {
 21783  			return err
 21784  		}
 21785  		if x.NextPageToken == "" {
 21786  			return nil
 21787  		}
 21788  		c.PageToken(x.NextPageToken)
 21789  	}
 21790  }
 21791  
 21792  type ProjectsAgentEnvironmentsListCall struct {
 21793  	s            *Service
 21794  	parent       string
 21795  	urlParams_   gensupport.URLParams
 21796  	ifNoneMatch_ string
 21797  	ctx_         context.Context
 21798  	header_      http.Header
 21799  }
 21800  
 21801  // List: Returns the list of all non-default environments of the specified
 21802  // agent.
 21803  //
 21804  //   - parent: The agent to list all environments from. Format: -
 21805  //     `projects//agent` - `projects//locations//agent`.
 21806  func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall {
 21807  	c := &ProjectsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21808  	c.parent = parent
 21809  	return c
 21810  }
 21811  
 21812  // PageSize sets the optional parameter "pageSize": The maximum number of items
 21813  // to return in a single page. By default 100 and at most 1000.
 21814  func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall {
 21815  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21816  	return c
 21817  }
 21818  
 21819  // PageToken sets the optional parameter "pageToken": The next_page_token value
 21820  // returned from a previous list request.
 21821  func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall {
 21822  	c.urlParams_.Set("pageToken", pageToken)
 21823  	return c
 21824  }
 21825  
 21826  // Fields allows partial responses to be retrieved. See
 21827  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21828  // details.
 21829  func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall {
 21830  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21831  	return c
 21832  }
 21833  
 21834  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21835  // object's ETag matches the given value. This is useful for getting updates
 21836  // only after the object has changed since the last request.
 21837  func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall {
 21838  	c.ifNoneMatch_ = entityTag
 21839  	return c
 21840  }
 21841  
 21842  // Context sets the context to be used in this call's Do method.
 21843  func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall {
 21844  	c.ctx_ = ctx
 21845  	return c
 21846  }
 21847  
 21848  // Header returns a http.Header that can be modified by the caller to add
 21849  // headers to the request.
 21850  func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header {
 21851  	if c.header_ == nil {
 21852  		c.header_ = make(http.Header)
 21853  	}
 21854  	return c.header_
 21855  }
 21856  
 21857  func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
 21858  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21859  	if c.ifNoneMatch_ != "" {
 21860  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21861  	}
 21862  	var body io.Reader = nil
 21863  	c.urlParams_.Set("alt", alt)
 21864  	c.urlParams_.Set("prettyPrint", "false")
 21865  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
 21866  	urls += "?" + c.urlParams_.Encode()
 21867  	req, err := http.NewRequest("GET", urls, body)
 21868  	if err != nil {
 21869  		return nil, err
 21870  	}
 21871  	req.Header = reqHeaders
 21872  	googleapi.Expand(req.URL, map[string]string{
 21873  		"parent": c.parent,
 21874  	})
 21875  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21876  }
 21877  
 21878  // Do executes the "dialogflow.projects.agent.environments.list" call.
 21879  // Any non-2xx status code is an error. Response headers are in either
 21880  // *GoogleCloudDialogflowV2ListEnvironmentsResponse.ServerResponse.Header or
 21881  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 21882  // googleapi.IsNotModified to check whether the returned error was because
 21883  // http.StatusNotModified was returned.
 21884  func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEnvironmentsResponse, error) {
 21885  	gensupport.SetOptions(c.urlParams_, opts...)
 21886  	res, err := c.doRequest("json")
 21887  	if res != nil && res.StatusCode == http.StatusNotModified {
 21888  		if res.Body != nil {
 21889  			res.Body.Close()
 21890  		}
 21891  		return nil, gensupport.WrapError(&googleapi.Error{
 21892  			Code:   res.StatusCode,
 21893  			Header: res.Header,
 21894  		})
 21895  	}
 21896  	if err != nil {
 21897  		return nil, err
 21898  	}
 21899  	defer googleapi.CloseBody(res)
 21900  	if err := googleapi.CheckResponse(res); err != nil {
 21901  		return nil, gensupport.WrapError(err)
 21902  	}
 21903  	ret := &GoogleCloudDialogflowV2ListEnvironmentsResponse{
 21904  		ServerResponse: googleapi.ServerResponse{
 21905  			Header:         res.Header,
 21906  			HTTPStatusCode: res.StatusCode,
 21907  		},
 21908  	}
 21909  	target := &ret
 21910  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21911  		return nil, err
 21912  	}
 21913  	return ret, nil
 21914  }
 21915  
 21916  // Pages invokes f for each page of results.
 21917  // A non-nil error returned from f will halt the iteration.
 21918  // The provided context supersedes any context provided to the Context method.
 21919  func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEnvironmentsResponse) error) error {
 21920  	c.ctx_ = ctx
 21921  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21922  	for {
 21923  		x, err := c.Do()
 21924  		if err != nil {
 21925  			return err
 21926  		}
 21927  		if err := f(x); err != nil {
 21928  			return err
 21929  		}
 21930  		if x.NextPageToken == "" {
 21931  			return nil
 21932  		}
 21933  		c.PageToken(x.NextPageToken)
 21934  	}
 21935  }
 21936  
 21937  type ProjectsAgentEnvironmentsPatchCall struct {
 21938  	s                                  *Service
 21939  	nameid                             string
 21940  	googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
 21941  	urlParams_                         gensupport.URLParams
 21942  	ctx_                               context.Context
 21943  	header_                            http.Header
 21944  }
 21945  
 21946  // Patch: Updates the specified agent environment. This method allows you to
 21947  // deploy new agent versions into the environment. When an environment is
 21948  // pointed to a new agent version by setting `environment.agent_version`, the
 21949  // environment is temporarily set to the `LOADING` state. During that time, the
 21950  // environment continues serving the previous version of the agent. After the
 21951  // new agent version is done loading, the environment is set back to the
 21952  // `RUNNING` state. You can use "-" as Environment ID in environment name to
 21953  // update an agent version in the default environment. WARNING: this will
 21954  // negate all recent changes to the draft agent and can't be undone. You may
 21955  // want to save the draft agent to a version before calling this method.
 21956  //
 21957  //   - name: Output only. The unique identifier of this agent environment.
 21958  //     Supported formats: - `projects//agent/environments/` -
 21959  //     `projects//locations//agent/environments/` The environment ID for the
 21960  //     default environment is `-`.
 21961  func (r *ProjectsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsAgentEnvironmentsPatchCall {
 21962  	c := &ProjectsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21963  	c.nameid = nameid
 21964  	c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
 21965  	return c
 21966  }
 21967  
 21968  // AllowLoadToDraftAndDiscardChanges sets the optional parameter
 21969  // "allowLoadToDraftAndDiscardChanges": This field is used to prevent
 21970  // accidental overwrite of the default environment, which is an operation that
 21971  // cannot be undone. To confirm that the caller desires this overwrite, this
 21972  // field must be explicitly set to true when updating the default environment
 21973  // (environment ID = `-`).
 21974  func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsAgentEnvironmentsPatchCall {
 21975  	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
 21976  	return c
 21977  }
 21978  
 21979  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 21980  // control which fields get updated.
 21981  func (c *ProjectsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsPatchCall {
 21982  	c.urlParams_.Set("updateMask", updateMask)
 21983  	return c
 21984  }
 21985  
 21986  // Fields allows partial responses to be retrieved. See
 21987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21988  // details.
 21989  func (c *ProjectsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsPatchCall {
 21990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21991  	return c
 21992  }
 21993  
 21994  // Context sets the context to be used in this call's Do method.
 21995  func (c *ProjectsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsPatchCall {
 21996  	c.ctx_ = ctx
 21997  	return c
 21998  }
 21999  
 22000  // Header returns a http.Header that can be modified by the caller to add
 22001  // headers to the request.
 22002  func (c *ProjectsAgentEnvironmentsPatchCall) Header() http.Header {
 22003  	if c.header_ == nil {
 22004  		c.header_ = make(http.Header)
 22005  	}
 22006  	return c.header_
 22007  }
 22008  
 22009  func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
 22010  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22011  	var body io.Reader = nil
 22012  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
 22013  	if err != nil {
 22014  		return nil, err
 22015  	}
 22016  	c.urlParams_.Set("alt", alt)
 22017  	c.urlParams_.Set("prettyPrint", "false")
 22018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22019  	urls += "?" + c.urlParams_.Encode()
 22020  	req, err := http.NewRequest("PATCH", urls, body)
 22021  	if err != nil {
 22022  		return nil, err
 22023  	}
 22024  	req.Header = reqHeaders
 22025  	googleapi.Expand(req.URL, map[string]string{
 22026  		"name": c.nameid,
 22027  	})
 22028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22029  }
 22030  
 22031  // Do executes the "dialogflow.projects.agent.environments.patch" call.
 22032  // Any non-2xx status code is an error. Response headers are in either
 22033  // *GoogleCloudDialogflowV2Environment.ServerResponse.Header or (if a response
 22034  // was returned at all) in error.(*googleapi.Error).Header. Use
 22035  // googleapi.IsNotModified to check whether the returned error was because
 22036  // http.StatusNotModified was returned.
 22037  func (c *ProjectsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
 22038  	gensupport.SetOptions(c.urlParams_, opts...)
 22039  	res, err := c.doRequest("json")
 22040  	if res != nil && res.StatusCode == http.StatusNotModified {
 22041  		if res.Body != nil {
 22042  			res.Body.Close()
 22043  		}
 22044  		return nil, gensupport.WrapError(&googleapi.Error{
 22045  			Code:   res.StatusCode,
 22046  			Header: res.Header,
 22047  		})
 22048  	}
 22049  	if err != nil {
 22050  		return nil, err
 22051  	}
 22052  	defer googleapi.CloseBody(res)
 22053  	if err := googleapi.CheckResponse(res); err != nil {
 22054  		return nil, gensupport.WrapError(err)
 22055  	}
 22056  	ret := &GoogleCloudDialogflowV2Environment{
 22057  		ServerResponse: googleapi.ServerResponse{
 22058  			Header:         res.Header,
 22059  			HTTPStatusCode: res.StatusCode,
 22060  		},
 22061  	}
 22062  	target := &ret
 22063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22064  		return nil, err
 22065  	}
 22066  	return ret, nil
 22067  }
 22068  
 22069  type ProjectsAgentEnvironmentsIntentsListCall struct {
 22070  	s            *Service
 22071  	parent       string
 22072  	urlParams_   gensupport.URLParams
 22073  	ifNoneMatch_ string
 22074  	ctx_         context.Context
 22075  	header_      http.Header
 22076  }
 22077  
 22078  // List: Returns the list of all intents in the specified agent.
 22079  //
 22080  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 22081  //     `projects//locations//agent`. Alternatively, you can specify the
 22082  //     environment to list intents for. Format: `projects//agent/environments/`
 22083  //     or `projects//locations//agent/environments/`. Note: training phrases of
 22084  //     the intents will not be returned for non-draft environment.
 22085  func (r *ProjectsAgentEnvironmentsIntentsService) List(parent string) *ProjectsAgentEnvironmentsIntentsListCall {
 22086  	c := &ProjectsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22087  	c.parent = parent
 22088  	return c
 22089  }
 22090  
 22091  // IntentView sets the optional parameter "intentView": The resource view to
 22092  // apply to the returned intent.
 22093  //
 22094  // Possible values:
 22095  //
 22096  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 22097  //
 22098  // response.
 22099  //
 22100  //	"INTENT_VIEW_FULL" - All fields are populated.
 22101  func (c *ProjectsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsAgentEnvironmentsIntentsListCall {
 22102  	c.urlParams_.Set("intentView", intentView)
 22103  	return c
 22104  }
 22105  
 22106  // LanguageCode sets the optional parameter "languageCode": The language used
 22107  // to access language-specific data. If not specified, the agent's default
 22108  // language is used. For more information, see Multilingual intent and entity
 22109  // data
 22110  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 22111  func (c *ProjectsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentEnvironmentsIntentsListCall {
 22112  	c.urlParams_.Set("languageCode", languageCode)
 22113  	return c
 22114  }
 22115  
 22116  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22117  // to return in a single page. By default 100 and at most 1000.
 22118  func (c *ProjectsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsIntentsListCall {
 22119  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22120  	return c
 22121  }
 22122  
 22123  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22124  // returned from a previous list request.
 22125  func (c *ProjectsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsIntentsListCall {
 22126  	c.urlParams_.Set("pageToken", pageToken)
 22127  	return c
 22128  }
 22129  
 22130  // Fields allows partial responses to be retrieved. See
 22131  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22132  // details.
 22133  func (c *ProjectsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsIntentsListCall {
 22134  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22135  	return c
 22136  }
 22137  
 22138  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22139  // object's ETag matches the given value. This is useful for getting updates
 22140  // only after the object has changed since the last request.
 22141  func (c *ProjectsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsIntentsListCall {
 22142  	c.ifNoneMatch_ = entityTag
 22143  	return c
 22144  }
 22145  
 22146  // Context sets the context to be used in this call's Do method.
 22147  func (c *ProjectsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsIntentsListCall {
 22148  	c.ctx_ = ctx
 22149  	return c
 22150  }
 22151  
 22152  // Header returns a http.Header that can be modified by the caller to add
 22153  // headers to the request.
 22154  func (c *ProjectsAgentEnvironmentsIntentsListCall) Header() http.Header {
 22155  	if c.header_ == nil {
 22156  		c.header_ = make(http.Header)
 22157  	}
 22158  	return c.header_
 22159  }
 22160  
 22161  func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
 22162  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22163  	if c.ifNoneMatch_ != "" {
 22164  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22165  	}
 22166  	var body io.Reader = nil
 22167  	c.urlParams_.Set("alt", alt)
 22168  	c.urlParams_.Set("prettyPrint", "false")
 22169  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
 22170  	urls += "?" + c.urlParams_.Encode()
 22171  	req, err := http.NewRequest("GET", urls, body)
 22172  	if err != nil {
 22173  		return nil, err
 22174  	}
 22175  	req.Header = reqHeaders
 22176  	googleapi.Expand(req.URL, map[string]string{
 22177  		"parent": c.parent,
 22178  	})
 22179  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22180  }
 22181  
 22182  // Do executes the "dialogflow.projects.agent.environments.intents.list" call.
 22183  // Any non-2xx status code is an error. Response headers are in either
 22184  // *GoogleCloudDialogflowV2ListIntentsResponse.ServerResponse.Header or (if a
 22185  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22186  // googleapi.IsNotModified to check whether the returned error was because
 22187  // http.StatusNotModified was returned.
 22188  func (c *ProjectsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
 22189  	gensupport.SetOptions(c.urlParams_, opts...)
 22190  	res, err := c.doRequest("json")
 22191  	if res != nil && res.StatusCode == http.StatusNotModified {
 22192  		if res.Body != nil {
 22193  			res.Body.Close()
 22194  		}
 22195  		return nil, gensupport.WrapError(&googleapi.Error{
 22196  			Code:   res.StatusCode,
 22197  			Header: res.Header,
 22198  		})
 22199  	}
 22200  	if err != nil {
 22201  		return nil, err
 22202  	}
 22203  	defer googleapi.CloseBody(res)
 22204  	if err := googleapi.CheckResponse(res); err != nil {
 22205  		return nil, gensupport.WrapError(err)
 22206  	}
 22207  	ret := &GoogleCloudDialogflowV2ListIntentsResponse{
 22208  		ServerResponse: googleapi.ServerResponse{
 22209  			Header:         res.Header,
 22210  			HTTPStatusCode: res.StatusCode,
 22211  		},
 22212  	}
 22213  	target := &ret
 22214  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22215  		return nil, err
 22216  	}
 22217  	return ret, nil
 22218  }
 22219  
 22220  // Pages invokes f for each page of results.
 22221  // A non-nil error returned from f will halt the iteration.
 22222  // The provided context supersedes any context provided to the Context method.
 22223  func (c *ProjectsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
 22224  	c.ctx_ = ctx
 22225  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22226  	for {
 22227  		x, err := c.Do()
 22228  		if err != nil {
 22229  			return err
 22230  		}
 22231  		if err := f(x); err != nil {
 22232  			return err
 22233  		}
 22234  		if x.NextPageToken == "" {
 22235  			return nil
 22236  		}
 22237  		c.PageToken(x.NextPageToken)
 22238  	}
 22239  }
 22240  
 22241  type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
 22242  	s          *Service
 22243  	parent     string
 22244  	urlParams_ gensupport.URLParams
 22245  	ctx_       context.Context
 22246  	header_    http.Header
 22247  }
 22248  
 22249  // DeleteContexts: Deletes all active contexts in the specified session.
 22250  //
 22251  //   - parent: The name of the session to delete all contexts from. Format:
 22252  //     `projects//agent/sessions/` or
 22253  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 22254  //     not specified we assume default 'draft' environment. If `User ID` is not
 22255  //     specified, we assume default '-' user.
 22256  func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 22257  	c := &ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22258  	c.parent = parent
 22259  	return c
 22260  }
 22261  
 22262  // Fields allows partial responses to be retrieved. See
 22263  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22264  // details.
 22265  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 22266  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22267  	return c
 22268  }
 22269  
 22270  // Context sets the context to be used in this call's Do method.
 22271  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 22272  	c.ctx_ = ctx
 22273  	return c
 22274  }
 22275  
 22276  // Header returns a http.Header that can be modified by the caller to add
 22277  // headers to the request.
 22278  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
 22279  	if c.header_ == nil {
 22280  		c.header_ = make(http.Header)
 22281  	}
 22282  	return c.header_
 22283  }
 22284  
 22285  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 22286  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22287  	var body io.Reader = nil
 22288  	c.urlParams_.Set("alt", alt)
 22289  	c.urlParams_.Set("prettyPrint", "false")
 22290  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 22291  	urls += "?" + c.urlParams_.Encode()
 22292  	req, err := http.NewRequest("DELETE", urls, body)
 22293  	if err != nil {
 22294  		return nil, err
 22295  	}
 22296  	req.Header = reqHeaders
 22297  	googleapi.Expand(req.URL, map[string]string{
 22298  		"parent": c.parent,
 22299  	})
 22300  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22301  }
 22302  
 22303  // Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call.
 22304  // Any non-2xx status code is an error. Response headers are in either
 22305  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22306  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22307  // check whether the returned error was because http.StatusNotModified was
 22308  // returned.
 22309  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22310  	gensupport.SetOptions(c.urlParams_, opts...)
 22311  	res, err := c.doRequest("json")
 22312  	if res != nil && res.StatusCode == http.StatusNotModified {
 22313  		if res.Body != nil {
 22314  			res.Body.Close()
 22315  		}
 22316  		return nil, gensupport.WrapError(&googleapi.Error{
 22317  			Code:   res.StatusCode,
 22318  			Header: res.Header,
 22319  		})
 22320  	}
 22321  	if err != nil {
 22322  		return nil, err
 22323  	}
 22324  	defer googleapi.CloseBody(res)
 22325  	if err := googleapi.CheckResponse(res); err != nil {
 22326  		return nil, gensupport.WrapError(err)
 22327  	}
 22328  	ret := &GoogleProtobufEmpty{
 22329  		ServerResponse: googleapi.ServerResponse{
 22330  			Header:         res.Header,
 22331  			HTTPStatusCode: res.StatusCode,
 22332  		},
 22333  	}
 22334  	target := &ret
 22335  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22336  		return nil, err
 22337  	}
 22338  	return ret, nil
 22339  }
 22340  
 22341  type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
 22342  	s                                          *Service
 22343  	sessionid                                  string
 22344  	googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
 22345  	urlParams_                                 gensupport.URLParams
 22346  	ctx_                                       context.Context
 22347  	header_                                    http.Header
 22348  }
 22349  
 22350  // DetectIntent: Processes a natural language query and returns structured,
 22351  // actionable data as a result. This method is not idempotent, because it may
 22352  // cause contexts and session entity types to be updated, which in turn might
 22353  // affect results of future queries. If you might use Agent Assist
 22354  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 22355  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 22356  // `AnalyzeContent` has additional functionality for Agent Assist and other
 22357  // CCAI products. Note: Always use agent versions for production traffic. See
 22358  // Versions and environments
 22359  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 22360  //
 22361  //   - session: The name of the session this query is sent to. Format:
 22362  //     `projects//agent/sessions/`, or
 22363  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 22364  //     not specified, we assume default 'draft' environment (`Environment ID`
 22365  //     might be referred to as environment name at some places). If `User ID` is
 22366  //     not specified, we are using "-". It's up to the API caller to choose an
 22367  //     appropriate `Session ID` and `User Id`. They can be a random number or
 22368  //     some type of user and session identifiers (preferably hashed). The length
 22369  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 22370  //     information, see the API interactions guide
 22371  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 22372  //     agent versions for production traffic. See Versions and environments
 22373  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 22374  func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
 22375  	c := &ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22376  	c.sessionid = sessionid
 22377  	c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
 22378  	return c
 22379  }
 22380  
 22381  // Fields allows partial responses to be retrieved. See
 22382  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22383  // details.
 22384  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
 22385  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22386  	return c
 22387  }
 22388  
 22389  // Context sets the context to be used in this call's Do method.
 22390  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
 22391  	c.ctx_ = ctx
 22392  	return c
 22393  }
 22394  
 22395  // Header returns a http.Header that can be modified by the caller to add
 22396  // headers to the request.
 22397  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
 22398  	if c.header_ == nil {
 22399  		c.header_ = make(http.Header)
 22400  	}
 22401  	return c.header_
 22402  }
 22403  
 22404  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 22405  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22406  	var body io.Reader = nil
 22407  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
 22408  	if err != nil {
 22409  		return nil, err
 22410  	}
 22411  	c.urlParams_.Set("alt", alt)
 22412  	c.urlParams_.Set("prettyPrint", "false")
 22413  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
 22414  	urls += "?" + c.urlParams_.Encode()
 22415  	req, err := http.NewRequest("POST", urls, body)
 22416  	if err != nil {
 22417  		return nil, err
 22418  	}
 22419  	req.Header = reqHeaders
 22420  	googleapi.Expand(req.URL, map[string]string{
 22421  		"session": c.sessionid,
 22422  	})
 22423  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22424  }
 22425  
 22426  // Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call.
 22427  // Any non-2xx status code is an error. Response headers are in either
 22428  // *GoogleCloudDialogflowV2DetectIntentResponse.ServerResponse.Header or (if a
 22429  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22430  // googleapi.IsNotModified to check whether the returned error was because
 22431  // http.StatusNotModified was returned.
 22432  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
 22433  	gensupport.SetOptions(c.urlParams_, opts...)
 22434  	res, err := c.doRequest("json")
 22435  	if res != nil && res.StatusCode == http.StatusNotModified {
 22436  		if res.Body != nil {
 22437  			res.Body.Close()
 22438  		}
 22439  		return nil, gensupport.WrapError(&googleapi.Error{
 22440  			Code:   res.StatusCode,
 22441  			Header: res.Header,
 22442  		})
 22443  	}
 22444  	if err != nil {
 22445  		return nil, err
 22446  	}
 22447  	defer googleapi.CloseBody(res)
 22448  	if err := googleapi.CheckResponse(res); err != nil {
 22449  		return nil, gensupport.WrapError(err)
 22450  	}
 22451  	ret := &GoogleCloudDialogflowV2DetectIntentResponse{
 22452  		ServerResponse: googleapi.ServerResponse{
 22453  			Header:         res.Header,
 22454  			HTTPStatusCode: res.StatusCode,
 22455  		},
 22456  	}
 22457  	target := &ret
 22458  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22459  		return nil, err
 22460  	}
 22461  	return ret, nil
 22462  }
 22463  
 22464  type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
 22465  	s                              *Service
 22466  	parent                         string
 22467  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 22468  	urlParams_                     gensupport.URLParams
 22469  	ctx_                           context.Context
 22470  	header_                        http.Header
 22471  }
 22472  
 22473  // Create: Creates a context. If the specified context already exists,
 22474  // overrides the context.
 22475  //
 22476  //   - parent: The session to create a context for. Format:
 22477  //     `projects//agent/sessions/` or
 22478  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 22479  //     not specified, we assume default 'draft' environment. If `User ID` is not
 22480  //     specified, we assume default '-' user.
 22481  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
 22482  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22483  	c.parent = parent
 22484  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 22485  	return c
 22486  }
 22487  
 22488  // Fields allows partial responses to be retrieved. See
 22489  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22490  // details.
 22491  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
 22492  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22493  	return c
 22494  }
 22495  
 22496  // Context sets the context to be used in this call's Do method.
 22497  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
 22498  	c.ctx_ = ctx
 22499  	return c
 22500  }
 22501  
 22502  // Header returns a http.Header that can be modified by the caller to add
 22503  // headers to the request.
 22504  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
 22505  	if c.header_ == nil {
 22506  		c.header_ = make(http.Header)
 22507  	}
 22508  	return c.header_
 22509  }
 22510  
 22511  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 22512  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22513  	var body io.Reader = nil
 22514  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 22515  	if err != nil {
 22516  		return nil, err
 22517  	}
 22518  	c.urlParams_.Set("alt", alt)
 22519  	c.urlParams_.Set("prettyPrint", "false")
 22520  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 22521  	urls += "?" + c.urlParams_.Encode()
 22522  	req, err := http.NewRequest("POST", urls, body)
 22523  	if err != nil {
 22524  		return nil, err
 22525  	}
 22526  	req.Header = reqHeaders
 22527  	googleapi.Expand(req.URL, map[string]string{
 22528  		"parent": c.parent,
 22529  	})
 22530  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22531  }
 22532  
 22533  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call.
 22534  // Any non-2xx status code is an error. Response headers are in either
 22535  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 22536  // returned at all) in error.(*googleapi.Error).Header. Use
 22537  // googleapi.IsNotModified to check whether the returned error was because
 22538  // http.StatusNotModified was returned.
 22539  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 22540  	gensupport.SetOptions(c.urlParams_, opts...)
 22541  	res, err := c.doRequest("json")
 22542  	if res != nil && res.StatusCode == http.StatusNotModified {
 22543  		if res.Body != nil {
 22544  			res.Body.Close()
 22545  		}
 22546  		return nil, gensupport.WrapError(&googleapi.Error{
 22547  			Code:   res.StatusCode,
 22548  			Header: res.Header,
 22549  		})
 22550  	}
 22551  	if err != nil {
 22552  		return nil, err
 22553  	}
 22554  	defer googleapi.CloseBody(res)
 22555  	if err := googleapi.CheckResponse(res); err != nil {
 22556  		return nil, gensupport.WrapError(err)
 22557  	}
 22558  	ret := &GoogleCloudDialogflowV2Context{
 22559  		ServerResponse: googleapi.ServerResponse{
 22560  			Header:         res.Header,
 22561  			HTTPStatusCode: res.StatusCode,
 22562  		},
 22563  	}
 22564  	target := &ret
 22565  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22566  		return nil, err
 22567  	}
 22568  	return ret, nil
 22569  }
 22570  
 22571  type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
 22572  	s          *Service
 22573  	name       string
 22574  	urlParams_ gensupport.URLParams
 22575  	ctx_       context.Context
 22576  	header_    http.Header
 22577  }
 22578  
 22579  // Delete: Deletes the specified context.
 22580  //
 22581  //   - name: The name of the context to delete. Format:
 22582  //     `projects//agent/sessions//contexts/` or
 22583  //     `projects//agent/environments//users//sessions//contexts/`. If
 22584  //     `Environment ID` is not specified, we assume default 'draft' environment.
 22585  //     If `User ID` is not specified, we assume default '-' user.
 22586  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 22587  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22588  	c.name = name
 22589  	return c
 22590  }
 22591  
 22592  // Fields allows partial responses to be retrieved. See
 22593  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22594  // details.
 22595  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 22596  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22597  	return c
 22598  }
 22599  
 22600  // Context sets the context to be used in this call's Do method.
 22601  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 22602  	c.ctx_ = ctx
 22603  	return c
 22604  }
 22605  
 22606  // Header returns a http.Header that can be modified by the caller to add
 22607  // headers to the request.
 22608  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
 22609  	if c.header_ == nil {
 22610  		c.header_ = make(http.Header)
 22611  	}
 22612  	return c.header_
 22613  }
 22614  
 22615  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 22616  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22617  	var body io.Reader = nil
 22618  	c.urlParams_.Set("alt", alt)
 22619  	c.urlParams_.Set("prettyPrint", "false")
 22620  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22621  	urls += "?" + c.urlParams_.Encode()
 22622  	req, err := http.NewRequest("DELETE", urls, body)
 22623  	if err != nil {
 22624  		return nil, err
 22625  	}
 22626  	req.Header = reqHeaders
 22627  	googleapi.Expand(req.URL, map[string]string{
 22628  		"name": c.name,
 22629  	})
 22630  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22631  }
 22632  
 22633  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call.
 22634  // Any non-2xx status code is an error. Response headers are in either
 22635  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22636  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22637  // check whether the returned error was because http.StatusNotModified was
 22638  // returned.
 22639  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22640  	gensupport.SetOptions(c.urlParams_, opts...)
 22641  	res, err := c.doRequest("json")
 22642  	if res != nil && res.StatusCode == http.StatusNotModified {
 22643  		if res.Body != nil {
 22644  			res.Body.Close()
 22645  		}
 22646  		return nil, gensupport.WrapError(&googleapi.Error{
 22647  			Code:   res.StatusCode,
 22648  			Header: res.Header,
 22649  		})
 22650  	}
 22651  	if err != nil {
 22652  		return nil, err
 22653  	}
 22654  	defer googleapi.CloseBody(res)
 22655  	if err := googleapi.CheckResponse(res); err != nil {
 22656  		return nil, gensupport.WrapError(err)
 22657  	}
 22658  	ret := &GoogleProtobufEmpty{
 22659  		ServerResponse: googleapi.ServerResponse{
 22660  			Header:         res.Header,
 22661  			HTTPStatusCode: res.StatusCode,
 22662  		},
 22663  	}
 22664  	target := &ret
 22665  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22666  		return nil, err
 22667  	}
 22668  	return ret, nil
 22669  }
 22670  
 22671  type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
 22672  	s            *Service
 22673  	name         string
 22674  	urlParams_   gensupport.URLParams
 22675  	ifNoneMatch_ string
 22676  	ctx_         context.Context
 22677  	header_      http.Header
 22678  }
 22679  
 22680  // Get: Retrieves the specified context.
 22681  //
 22682  //   - name: The name of the context. Format:
 22683  //     `projects//agent/sessions//contexts/` or
 22684  //     `projects//agent/environments//users//sessions//contexts/`. If
 22685  //     `Environment ID` is not specified, we assume default 'draft' environment.
 22686  //     If `User ID` is not specified, we assume default '-' user.
 22687  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22688  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22689  	c.name = name
 22690  	return c
 22691  }
 22692  
 22693  // Fields allows partial responses to be retrieved. See
 22694  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22695  // details.
 22696  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22697  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22698  	return c
 22699  }
 22700  
 22701  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22702  // object's ETag matches the given value. This is useful for getting updates
 22703  // only after the object has changed since the last request.
 22704  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22705  	c.ifNoneMatch_ = entityTag
 22706  	return c
 22707  }
 22708  
 22709  // Context sets the context to be used in this call's Do method.
 22710  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22711  	c.ctx_ = ctx
 22712  	return c
 22713  }
 22714  
 22715  // Header returns a http.Header that can be modified by the caller to add
 22716  // headers to the request.
 22717  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
 22718  	if c.header_ == nil {
 22719  		c.header_ = make(http.Header)
 22720  	}
 22721  	return c.header_
 22722  }
 22723  
 22724  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 22725  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22726  	if c.ifNoneMatch_ != "" {
 22727  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22728  	}
 22729  	var body io.Reader = nil
 22730  	c.urlParams_.Set("alt", alt)
 22731  	c.urlParams_.Set("prettyPrint", "false")
 22732  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22733  	urls += "?" + c.urlParams_.Encode()
 22734  	req, err := http.NewRequest("GET", urls, body)
 22735  	if err != nil {
 22736  		return nil, err
 22737  	}
 22738  	req.Header = reqHeaders
 22739  	googleapi.Expand(req.URL, map[string]string{
 22740  		"name": c.name,
 22741  	})
 22742  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22743  }
 22744  
 22745  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call.
 22746  // Any non-2xx status code is an error. Response headers are in either
 22747  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 22748  // returned at all) in error.(*googleapi.Error).Header. Use
 22749  // googleapi.IsNotModified to check whether the returned error was because
 22750  // http.StatusNotModified was returned.
 22751  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 22752  	gensupport.SetOptions(c.urlParams_, opts...)
 22753  	res, err := c.doRequest("json")
 22754  	if res != nil && res.StatusCode == http.StatusNotModified {
 22755  		if res.Body != nil {
 22756  			res.Body.Close()
 22757  		}
 22758  		return nil, gensupport.WrapError(&googleapi.Error{
 22759  			Code:   res.StatusCode,
 22760  			Header: res.Header,
 22761  		})
 22762  	}
 22763  	if err != nil {
 22764  		return nil, err
 22765  	}
 22766  	defer googleapi.CloseBody(res)
 22767  	if err := googleapi.CheckResponse(res); err != nil {
 22768  		return nil, gensupport.WrapError(err)
 22769  	}
 22770  	ret := &GoogleCloudDialogflowV2Context{
 22771  		ServerResponse: googleapi.ServerResponse{
 22772  			Header:         res.Header,
 22773  			HTTPStatusCode: res.StatusCode,
 22774  		},
 22775  	}
 22776  	target := &ret
 22777  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22778  		return nil, err
 22779  	}
 22780  	return ret, nil
 22781  }
 22782  
 22783  type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
 22784  	s            *Service
 22785  	parent       string
 22786  	urlParams_   gensupport.URLParams
 22787  	ifNoneMatch_ string
 22788  	ctx_         context.Context
 22789  	header_      http.Header
 22790  }
 22791  
 22792  // List: Returns the list of all contexts in the specified session.
 22793  //
 22794  //   - parent: The session to list all contexts from. Format:
 22795  //     `projects//agent/sessions/` or
 22796  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 22797  //     not specified, we assume default 'draft' environment. If `User ID` is not
 22798  //     specified, we assume default '-' user.
 22799  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22800  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22801  	c.parent = parent
 22802  	return c
 22803  }
 22804  
 22805  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22806  // to return in a single page. By default 100 and at most 1000.
 22807  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22808  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22809  	return c
 22810  }
 22811  
 22812  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22813  // returned from a previous list request.
 22814  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22815  	c.urlParams_.Set("pageToken", pageToken)
 22816  	return c
 22817  }
 22818  
 22819  // Fields allows partial responses to be retrieved. See
 22820  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22821  // details.
 22822  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22823  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22824  	return c
 22825  }
 22826  
 22827  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22828  // object's ETag matches the given value. This is useful for getting updates
 22829  // only after the object has changed since the last request.
 22830  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22831  	c.ifNoneMatch_ = entityTag
 22832  	return c
 22833  }
 22834  
 22835  // Context sets the context to be used in this call's Do method.
 22836  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22837  	c.ctx_ = ctx
 22838  	return c
 22839  }
 22840  
 22841  // Header returns a http.Header that can be modified by the caller to add
 22842  // headers to the request.
 22843  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
 22844  	if c.header_ == nil {
 22845  		c.header_ = make(http.Header)
 22846  	}
 22847  	return c.header_
 22848  }
 22849  
 22850  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 22851  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22852  	if c.ifNoneMatch_ != "" {
 22853  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22854  	}
 22855  	var body io.Reader = nil
 22856  	c.urlParams_.Set("alt", alt)
 22857  	c.urlParams_.Set("prettyPrint", "false")
 22858  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 22859  	urls += "?" + c.urlParams_.Encode()
 22860  	req, err := http.NewRequest("GET", urls, body)
 22861  	if err != nil {
 22862  		return nil, err
 22863  	}
 22864  	req.Header = reqHeaders
 22865  	googleapi.Expand(req.URL, map[string]string{
 22866  		"parent": c.parent,
 22867  	})
 22868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22869  }
 22870  
 22871  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call.
 22872  // Any non-2xx status code is an error. Response headers are in either
 22873  // *GoogleCloudDialogflowV2ListContextsResponse.ServerResponse.Header or (if a
 22874  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22875  // googleapi.IsNotModified to check whether the returned error was because
 22876  // http.StatusNotModified was returned.
 22877  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
 22878  	gensupport.SetOptions(c.urlParams_, opts...)
 22879  	res, err := c.doRequest("json")
 22880  	if res != nil && res.StatusCode == http.StatusNotModified {
 22881  		if res.Body != nil {
 22882  			res.Body.Close()
 22883  		}
 22884  		return nil, gensupport.WrapError(&googleapi.Error{
 22885  			Code:   res.StatusCode,
 22886  			Header: res.Header,
 22887  		})
 22888  	}
 22889  	if err != nil {
 22890  		return nil, err
 22891  	}
 22892  	defer googleapi.CloseBody(res)
 22893  	if err := googleapi.CheckResponse(res); err != nil {
 22894  		return nil, gensupport.WrapError(err)
 22895  	}
 22896  	ret := &GoogleCloudDialogflowV2ListContextsResponse{
 22897  		ServerResponse: googleapi.ServerResponse{
 22898  			Header:         res.Header,
 22899  			HTTPStatusCode: res.StatusCode,
 22900  		},
 22901  	}
 22902  	target := &ret
 22903  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22904  		return nil, err
 22905  	}
 22906  	return ret, nil
 22907  }
 22908  
 22909  // Pages invokes f for each page of results.
 22910  // A non-nil error returned from f will halt the iteration.
 22911  // The provided context supersedes any context provided to the Context method.
 22912  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
 22913  	c.ctx_ = ctx
 22914  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22915  	for {
 22916  		x, err := c.Do()
 22917  		if err != nil {
 22918  			return err
 22919  		}
 22920  		if err := f(x); err != nil {
 22921  			return err
 22922  		}
 22923  		if x.NextPageToken == "" {
 22924  			return nil
 22925  		}
 22926  		c.PageToken(x.NextPageToken)
 22927  	}
 22928  }
 22929  
 22930  type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
 22931  	s                              *Service
 22932  	nameid                         string
 22933  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 22934  	urlParams_                     gensupport.URLParams
 22935  	ctx_                           context.Context
 22936  	header_                        http.Header
 22937  }
 22938  
 22939  // Patch: Updates the specified context.
 22940  //
 22941  //   - name: The unique identifier of the context. Format:
 22942  //     `projects//agent/sessions//contexts/`, or
 22943  //     `projects//agent/environments//users//sessions//contexts/`. The `Context
 22944  //     ID` is always converted to lowercase, may only contain characters in
 22945  //     `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 22946  //     not specified, we assume default 'draft' environment. If `User ID` is not
 22947  //     specified, we assume default '-' user. The following context names are
 22948  //     reserved for internal use by Dialogflow. You should not use these contexts
 22949  //     or create contexts with these names: * `__system_counters__` *
 22950  //     `*_id_dialog_context` * `*_dialog_params_size`.
 22951  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 22952  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22953  	c.nameid = nameid
 22954  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 22955  	return c
 22956  }
 22957  
 22958  // UpdateMask sets the optional parameter "updateMask": The mask to control
 22959  // which fields get updated.
 22960  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 22961  	c.urlParams_.Set("updateMask", updateMask)
 22962  	return c
 22963  }
 22964  
 22965  // Fields allows partial responses to be retrieved. See
 22966  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22967  // details.
 22968  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 22969  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22970  	return c
 22971  }
 22972  
 22973  // Context sets the context to be used in this call's Do method.
 22974  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 22975  	c.ctx_ = ctx
 22976  	return c
 22977  }
 22978  
 22979  // Header returns a http.Header that can be modified by the caller to add
 22980  // headers to the request.
 22981  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
 22982  	if c.header_ == nil {
 22983  		c.header_ = make(http.Header)
 22984  	}
 22985  	return c.header_
 22986  }
 22987  
 22988  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 22989  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22990  	var body io.Reader = nil
 22991  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 22992  	if err != nil {
 22993  		return nil, err
 22994  	}
 22995  	c.urlParams_.Set("alt", alt)
 22996  	c.urlParams_.Set("prettyPrint", "false")
 22997  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22998  	urls += "?" + c.urlParams_.Encode()
 22999  	req, err := http.NewRequest("PATCH", urls, body)
 23000  	if err != nil {
 23001  		return nil, err
 23002  	}
 23003  	req.Header = reqHeaders
 23004  	googleapi.Expand(req.URL, map[string]string{
 23005  		"name": c.nameid,
 23006  	})
 23007  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23008  }
 23009  
 23010  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call.
 23011  // Any non-2xx status code is an error. Response headers are in either
 23012  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 23013  // returned at all) in error.(*googleapi.Error).Header. Use
 23014  // googleapi.IsNotModified to check whether the returned error was because
 23015  // http.StatusNotModified was returned.
 23016  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 23017  	gensupport.SetOptions(c.urlParams_, opts...)
 23018  	res, err := c.doRequest("json")
 23019  	if res != nil && res.StatusCode == http.StatusNotModified {
 23020  		if res.Body != nil {
 23021  			res.Body.Close()
 23022  		}
 23023  		return nil, gensupport.WrapError(&googleapi.Error{
 23024  			Code:   res.StatusCode,
 23025  			Header: res.Header,
 23026  		})
 23027  	}
 23028  	if err != nil {
 23029  		return nil, err
 23030  	}
 23031  	defer googleapi.CloseBody(res)
 23032  	if err := googleapi.CheckResponse(res); err != nil {
 23033  		return nil, gensupport.WrapError(err)
 23034  	}
 23035  	ret := &GoogleCloudDialogflowV2Context{
 23036  		ServerResponse: googleapi.ServerResponse{
 23037  			Header:         res.Header,
 23038  			HTTPStatusCode: res.StatusCode,
 23039  		},
 23040  	}
 23041  	target := &ret
 23042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23043  		return nil, err
 23044  	}
 23045  	return ret, nil
 23046  }
 23047  
 23048  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
 23049  	s                                        *Service
 23050  	parent                                   string
 23051  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 23052  	urlParams_                               gensupport.URLParams
 23053  	ctx_                                     context.Context
 23054  	header_                                  http.Header
 23055  }
 23056  
 23057  // Create: Creates a session entity type. If the specified session entity type
 23058  // already exists, overrides the session entity type. This method doesn't work
 23059  // with Google Assistant integration. Contact Dialogflow support if you need to
 23060  // use session entities with Google Assistant integration.
 23061  //
 23062  //   - parent: The session to create a session entity type for. Format:
 23063  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 23064  //     sessions/`. If `Environment ID` is not specified, we assume default
 23065  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 23066  //     user.
 23067  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 23068  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23069  	c.parent = parent
 23070  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 23071  	return c
 23072  }
 23073  
 23074  // Fields allows partial responses to be retrieved. See
 23075  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23076  // details.
 23077  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 23078  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23079  	return c
 23080  }
 23081  
 23082  // Context sets the context to be used in this call's Do method.
 23083  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 23084  	c.ctx_ = ctx
 23085  	return c
 23086  }
 23087  
 23088  // Header returns a http.Header that can be modified by the caller to add
 23089  // headers to the request.
 23090  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
 23091  	if c.header_ == nil {
 23092  		c.header_ = make(http.Header)
 23093  	}
 23094  	return c.header_
 23095  }
 23096  
 23097  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 23098  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23099  	var body io.Reader = nil
 23100  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 23101  	if err != nil {
 23102  		return nil, err
 23103  	}
 23104  	c.urlParams_.Set("alt", alt)
 23105  	c.urlParams_.Set("prettyPrint", "false")
 23106  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 23107  	urls += "?" + c.urlParams_.Encode()
 23108  	req, err := http.NewRequest("POST", urls, body)
 23109  	if err != nil {
 23110  		return nil, err
 23111  	}
 23112  	req.Header = reqHeaders
 23113  	googleapi.Expand(req.URL, map[string]string{
 23114  		"parent": c.parent,
 23115  	})
 23116  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23117  }
 23118  
 23119  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call.
 23120  // Any non-2xx status code is an error. Response headers are in either
 23121  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 23122  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23123  // googleapi.IsNotModified to check whether the returned error was because
 23124  // http.StatusNotModified was returned.
 23125  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 23126  	gensupport.SetOptions(c.urlParams_, opts...)
 23127  	res, err := c.doRequest("json")
 23128  	if res != nil && res.StatusCode == http.StatusNotModified {
 23129  		if res.Body != nil {
 23130  			res.Body.Close()
 23131  		}
 23132  		return nil, gensupport.WrapError(&googleapi.Error{
 23133  			Code:   res.StatusCode,
 23134  			Header: res.Header,
 23135  		})
 23136  	}
 23137  	if err != nil {
 23138  		return nil, err
 23139  	}
 23140  	defer googleapi.CloseBody(res)
 23141  	if err := googleapi.CheckResponse(res); err != nil {
 23142  		return nil, gensupport.WrapError(err)
 23143  	}
 23144  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 23145  		ServerResponse: googleapi.ServerResponse{
 23146  			Header:         res.Header,
 23147  			HTTPStatusCode: res.StatusCode,
 23148  		},
 23149  	}
 23150  	target := &ret
 23151  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23152  		return nil, err
 23153  	}
 23154  	return ret, nil
 23155  }
 23156  
 23157  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
 23158  	s          *Service
 23159  	name       string
 23160  	urlParams_ gensupport.URLParams
 23161  	ctx_       context.Context
 23162  	header_    http.Header
 23163  }
 23164  
 23165  // Delete: Deletes the specified session entity type. This method doesn't work
 23166  // with Google Assistant integration. Contact Dialogflow support if you need to
 23167  // use session entities with Google Assistant integration.
 23168  //
 23169  //   - name: The name of the entity type to delete. Format:
 23170  //     `projects//agent/sessions//entityTypes/` or
 23171  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 23172  //     `Environment ID` is not specified, we assume default 'draft' environment.
 23173  //     If `User ID` is not specified, we assume default '-' user.
 23174  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 23175  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23176  	c.name = name
 23177  	return c
 23178  }
 23179  
 23180  // Fields allows partial responses to be retrieved. See
 23181  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23182  // details.
 23183  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 23184  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23185  	return c
 23186  }
 23187  
 23188  // Context sets the context to be used in this call's Do method.
 23189  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 23190  	c.ctx_ = ctx
 23191  	return c
 23192  }
 23193  
 23194  // Header returns a http.Header that can be modified by the caller to add
 23195  // headers to the request.
 23196  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
 23197  	if c.header_ == nil {
 23198  		c.header_ = make(http.Header)
 23199  	}
 23200  	return c.header_
 23201  }
 23202  
 23203  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 23204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23205  	var body io.Reader = nil
 23206  	c.urlParams_.Set("alt", alt)
 23207  	c.urlParams_.Set("prettyPrint", "false")
 23208  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23209  	urls += "?" + c.urlParams_.Encode()
 23210  	req, err := http.NewRequest("DELETE", urls, body)
 23211  	if err != nil {
 23212  		return nil, err
 23213  	}
 23214  	req.Header = reqHeaders
 23215  	googleapi.Expand(req.URL, map[string]string{
 23216  		"name": c.name,
 23217  	})
 23218  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23219  }
 23220  
 23221  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call.
 23222  // Any non-2xx status code is an error. Response headers are in either
 23223  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23224  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23225  // check whether the returned error was because http.StatusNotModified was
 23226  // returned.
 23227  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23228  	gensupport.SetOptions(c.urlParams_, opts...)
 23229  	res, err := c.doRequest("json")
 23230  	if res != nil && res.StatusCode == http.StatusNotModified {
 23231  		if res.Body != nil {
 23232  			res.Body.Close()
 23233  		}
 23234  		return nil, gensupport.WrapError(&googleapi.Error{
 23235  			Code:   res.StatusCode,
 23236  			Header: res.Header,
 23237  		})
 23238  	}
 23239  	if err != nil {
 23240  		return nil, err
 23241  	}
 23242  	defer googleapi.CloseBody(res)
 23243  	if err := googleapi.CheckResponse(res); err != nil {
 23244  		return nil, gensupport.WrapError(err)
 23245  	}
 23246  	ret := &GoogleProtobufEmpty{
 23247  		ServerResponse: googleapi.ServerResponse{
 23248  			Header:         res.Header,
 23249  			HTTPStatusCode: res.StatusCode,
 23250  		},
 23251  	}
 23252  	target := &ret
 23253  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23254  		return nil, err
 23255  	}
 23256  	return ret, nil
 23257  }
 23258  
 23259  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
 23260  	s            *Service
 23261  	name         string
 23262  	urlParams_   gensupport.URLParams
 23263  	ifNoneMatch_ string
 23264  	ctx_         context.Context
 23265  	header_      http.Header
 23266  }
 23267  
 23268  // Get: Retrieves the specified session entity type. This method doesn't work
 23269  // with Google Assistant integration. Contact Dialogflow support if you need to
 23270  // use session entities with Google Assistant integration.
 23271  //
 23272  //   - name: The name of the session entity type. Format:
 23273  //     `projects//agent/sessions//entityTypes/` or
 23274  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 23275  //     `Environment ID` is not specified, we assume default 'draft' environment.
 23276  //     If `User ID` is not specified, we assume default '-' user.
 23277  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23278  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23279  	c.name = name
 23280  	return c
 23281  }
 23282  
 23283  // Fields allows partial responses to be retrieved. See
 23284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23285  // details.
 23286  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23288  	return c
 23289  }
 23290  
 23291  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23292  // object's ETag matches the given value. This is useful for getting updates
 23293  // only after the object has changed since the last request.
 23294  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23295  	c.ifNoneMatch_ = entityTag
 23296  	return c
 23297  }
 23298  
 23299  // Context sets the context to be used in this call's Do method.
 23300  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23301  	c.ctx_ = ctx
 23302  	return c
 23303  }
 23304  
 23305  // Header returns a http.Header that can be modified by the caller to add
 23306  // headers to the request.
 23307  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
 23308  	if c.header_ == nil {
 23309  		c.header_ = make(http.Header)
 23310  	}
 23311  	return c.header_
 23312  }
 23313  
 23314  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 23315  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23316  	if c.ifNoneMatch_ != "" {
 23317  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23318  	}
 23319  	var body io.Reader = nil
 23320  	c.urlParams_.Set("alt", alt)
 23321  	c.urlParams_.Set("prettyPrint", "false")
 23322  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23323  	urls += "?" + c.urlParams_.Encode()
 23324  	req, err := http.NewRequest("GET", urls, body)
 23325  	if err != nil {
 23326  		return nil, err
 23327  	}
 23328  	req.Header = reqHeaders
 23329  	googleapi.Expand(req.URL, map[string]string{
 23330  		"name": c.name,
 23331  	})
 23332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23333  }
 23334  
 23335  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call.
 23336  // Any non-2xx status code is an error. Response headers are in either
 23337  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 23338  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23339  // googleapi.IsNotModified to check whether the returned error was because
 23340  // http.StatusNotModified was returned.
 23341  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 23342  	gensupport.SetOptions(c.urlParams_, opts...)
 23343  	res, err := c.doRequest("json")
 23344  	if res != nil && res.StatusCode == http.StatusNotModified {
 23345  		if res.Body != nil {
 23346  			res.Body.Close()
 23347  		}
 23348  		return nil, gensupport.WrapError(&googleapi.Error{
 23349  			Code:   res.StatusCode,
 23350  			Header: res.Header,
 23351  		})
 23352  	}
 23353  	if err != nil {
 23354  		return nil, err
 23355  	}
 23356  	defer googleapi.CloseBody(res)
 23357  	if err := googleapi.CheckResponse(res); err != nil {
 23358  		return nil, gensupport.WrapError(err)
 23359  	}
 23360  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 23361  		ServerResponse: googleapi.ServerResponse{
 23362  			Header:         res.Header,
 23363  			HTTPStatusCode: res.StatusCode,
 23364  		},
 23365  	}
 23366  	target := &ret
 23367  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23368  		return nil, err
 23369  	}
 23370  	return ret, nil
 23371  }
 23372  
 23373  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
 23374  	s            *Service
 23375  	parent       string
 23376  	urlParams_   gensupport.URLParams
 23377  	ifNoneMatch_ string
 23378  	ctx_         context.Context
 23379  	header_      http.Header
 23380  }
 23381  
 23382  // List: Returns the list of all session entity types in the specified session.
 23383  // This method doesn't work with Google Assistant integration. Contact
 23384  // Dialogflow support if you need to use session entities with Google Assistant
 23385  // integration.
 23386  //
 23387  //   - parent: The session to list all session entity types from. Format:
 23388  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 23389  //     sessions/`. If `Environment ID` is not specified, we assume default
 23390  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 23391  //     user.
 23392  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23393  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23394  	c.parent = parent
 23395  	return c
 23396  }
 23397  
 23398  // PageSize sets the optional parameter "pageSize": The maximum number of items
 23399  // to return in a single page. By default 100 and at most 1000.
 23400  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23401  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23402  	return c
 23403  }
 23404  
 23405  // PageToken sets the optional parameter "pageToken": The next_page_token value
 23406  // returned from a previous list request.
 23407  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23408  	c.urlParams_.Set("pageToken", pageToken)
 23409  	return c
 23410  }
 23411  
 23412  // Fields allows partial responses to be retrieved. See
 23413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23414  // details.
 23415  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23417  	return c
 23418  }
 23419  
 23420  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23421  // object's ETag matches the given value. This is useful for getting updates
 23422  // only after the object has changed since the last request.
 23423  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23424  	c.ifNoneMatch_ = entityTag
 23425  	return c
 23426  }
 23427  
 23428  // Context sets the context to be used in this call's Do method.
 23429  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23430  	c.ctx_ = ctx
 23431  	return c
 23432  }
 23433  
 23434  // Header returns a http.Header that can be modified by the caller to add
 23435  // headers to the request.
 23436  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
 23437  	if c.header_ == nil {
 23438  		c.header_ = make(http.Header)
 23439  	}
 23440  	return c.header_
 23441  }
 23442  
 23443  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 23444  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23445  	if c.ifNoneMatch_ != "" {
 23446  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23447  	}
 23448  	var body io.Reader = nil
 23449  	c.urlParams_.Set("alt", alt)
 23450  	c.urlParams_.Set("prettyPrint", "false")
 23451  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 23452  	urls += "?" + c.urlParams_.Encode()
 23453  	req, err := http.NewRequest("GET", urls, body)
 23454  	if err != nil {
 23455  		return nil, err
 23456  	}
 23457  	req.Header = reqHeaders
 23458  	googleapi.Expand(req.URL, map[string]string{
 23459  		"parent": c.parent,
 23460  	})
 23461  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23462  }
 23463  
 23464  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call.
 23465  // Any non-2xx status code is an error. Response headers are in either
 23466  // *GoogleCloudDialogflowV2ListSessionEntityTypesResponse.ServerResponse.Header
 23467  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 23468  // Use googleapi.IsNotModified to check whether the returned error was because
 23469  // http.StatusNotModified was returned.
 23470  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
 23471  	gensupport.SetOptions(c.urlParams_, opts...)
 23472  	res, err := c.doRequest("json")
 23473  	if res != nil && res.StatusCode == http.StatusNotModified {
 23474  		if res.Body != nil {
 23475  			res.Body.Close()
 23476  		}
 23477  		return nil, gensupport.WrapError(&googleapi.Error{
 23478  			Code:   res.StatusCode,
 23479  			Header: res.Header,
 23480  		})
 23481  	}
 23482  	if err != nil {
 23483  		return nil, err
 23484  	}
 23485  	defer googleapi.CloseBody(res)
 23486  	if err := googleapi.CheckResponse(res); err != nil {
 23487  		return nil, gensupport.WrapError(err)
 23488  	}
 23489  	ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
 23490  		ServerResponse: googleapi.ServerResponse{
 23491  			Header:         res.Header,
 23492  			HTTPStatusCode: res.StatusCode,
 23493  		},
 23494  	}
 23495  	target := &ret
 23496  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23497  		return nil, err
 23498  	}
 23499  	return ret, nil
 23500  }
 23501  
 23502  // Pages invokes f for each page of results.
 23503  // A non-nil error returned from f will halt the iteration.
 23504  // The provided context supersedes any context provided to the Context method.
 23505  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
 23506  	c.ctx_ = ctx
 23507  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23508  	for {
 23509  		x, err := c.Do()
 23510  		if err != nil {
 23511  			return err
 23512  		}
 23513  		if err := f(x); err != nil {
 23514  			return err
 23515  		}
 23516  		if x.NextPageToken == "" {
 23517  			return nil
 23518  		}
 23519  		c.PageToken(x.NextPageToken)
 23520  	}
 23521  }
 23522  
 23523  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
 23524  	s                                        *Service
 23525  	nameid                                   string
 23526  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 23527  	urlParams_                               gensupport.URLParams
 23528  	ctx_                                     context.Context
 23529  	header_                                  http.Header
 23530  }
 23531  
 23532  // Patch: Updates the specified session entity type. This method doesn't work
 23533  // with Google Assistant integration. Contact Dialogflow support if you need to
 23534  // use session entities with Google Assistant integration.
 23535  //
 23536  //   - name: The unique identifier of this session entity type. Format:
 23537  //     `projects//agent/sessions//entityTypes/`, or
 23538  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 23539  //     `Environment ID` is not specified, we assume default 'draft' environment.
 23540  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 23541  //     display name of an existing entity type in the same agent that will be
 23542  //     overridden or supplemented.
 23543  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23544  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23545  	c.nameid = nameid
 23546  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 23547  	return c
 23548  }
 23549  
 23550  // UpdateMask sets the optional parameter "updateMask": The mask to control
 23551  // which fields get updated.
 23552  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23553  	c.urlParams_.Set("updateMask", updateMask)
 23554  	return c
 23555  }
 23556  
 23557  // Fields allows partial responses to be retrieved. See
 23558  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23559  // details.
 23560  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23561  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23562  	return c
 23563  }
 23564  
 23565  // Context sets the context to be used in this call's Do method.
 23566  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23567  	c.ctx_ = ctx
 23568  	return c
 23569  }
 23570  
 23571  // Header returns a http.Header that can be modified by the caller to add
 23572  // headers to the request.
 23573  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
 23574  	if c.header_ == nil {
 23575  		c.header_ = make(http.Header)
 23576  	}
 23577  	return c.header_
 23578  }
 23579  
 23580  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 23581  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23582  	var body io.Reader = nil
 23583  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 23584  	if err != nil {
 23585  		return nil, err
 23586  	}
 23587  	c.urlParams_.Set("alt", alt)
 23588  	c.urlParams_.Set("prettyPrint", "false")
 23589  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23590  	urls += "?" + c.urlParams_.Encode()
 23591  	req, err := http.NewRequest("PATCH", urls, body)
 23592  	if err != nil {
 23593  		return nil, err
 23594  	}
 23595  	req.Header = reqHeaders
 23596  	googleapi.Expand(req.URL, map[string]string{
 23597  		"name": c.nameid,
 23598  	})
 23599  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23600  }
 23601  
 23602  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call.
 23603  // Any non-2xx status code is an error. Response headers are in either
 23604  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 23605  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23606  // googleapi.IsNotModified to check whether the returned error was because
 23607  // http.StatusNotModified was returned.
 23608  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 23609  	gensupport.SetOptions(c.urlParams_, opts...)
 23610  	res, err := c.doRequest("json")
 23611  	if res != nil && res.StatusCode == http.StatusNotModified {
 23612  		if res.Body != nil {
 23613  			res.Body.Close()
 23614  		}
 23615  		return nil, gensupport.WrapError(&googleapi.Error{
 23616  			Code:   res.StatusCode,
 23617  			Header: res.Header,
 23618  		})
 23619  	}
 23620  	if err != nil {
 23621  		return nil, err
 23622  	}
 23623  	defer googleapi.CloseBody(res)
 23624  	if err := googleapi.CheckResponse(res); err != nil {
 23625  		return nil, gensupport.WrapError(err)
 23626  	}
 23627  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 23628  		ServerResponse: googleapi.ServerResponse{
 23629  			Header:         res.Header,
 23630  			HTTPStatusCode: res.StatusCode,
 23631  		},
 23632  	}
 23633  	target := &ret
 23634  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23635  		return nil, err
 23636  	}
 23637  	return ret, nil
 23638  }
 23639  
 23640  type ProjectsAgentIntentsBatchDeleteCall struct {
 23641  	s                                                *Service
 23642  	parent                                           string
 23643  	googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest
 23644  	urlParams_                                       gensupport.URLParams
 23645  	ctx_                                             context.Context
 23646  	header_                                          http.Header
 23647  }
 23648  
 23649  // BatchDelete: Deletes intents in the specified agent. This method is a
 23650  // long-running operation
 23651  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 23652  // The returned `Operation` type has the following method-specific fields: -
 23653  // `metadata`: An empty Struct message
 23654  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 23655  // - `response`: An Empty message
 23656  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 23657  // Note: You should always train an agent prior to sending it queries. See the
 23658  // training documentation
 23659  // (https://cloud.google.com/dialogflow/es/docs/training).
 23660  //
 23661  //   - parent: The name of the agent to delete all entities types for. Format:
 23662  //     `projects//agent`.
 23663  func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall {
 23664  	c := &ProjectsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23665  	c.parent = parent
 23666  	c.googleclouddialogflowv2batchdeleteintentsrequest = googleclouddialogflowv2batchdeleteintentsrequest
 23667  	return c
 23668  }
 23669  
 23670  // Fields allows partial responses to be retrieved. See
 23671  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23672  // details.
 23673  func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall {
 23674  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23675  	return c
 23676  }
 23677  
 23678  // Context sets the context to be used in this call's Do method.
 23679  func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall {
 23680  	c.ctx_ = ctx
 23681  	return c
 23682  }
 23683  
 23684  // Header returns a http.Header that can be modified by the caller to add
 23685  // headers to the request.
 23686  func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header {
 23687  	if c.header_ == nil {
 23688  		c.header_ = make(http.Header)
 23689  	}
 23690  	return c.header_
 23691  }
 23692  
 23693  func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 23694  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23695  	var body io.Reader = nil
 23696  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteintentsrequest)
 23697  	if err != nil {
 23698  		return nil, err
 23699  	}
 23700  	c.urlParams_.Set("alt", alt)
 23701  	c.urlParams_.Set("prettyPrint", "false")
 23702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchDelete")
 23703  	urls += "?" + c.urlParams_.Encode()
 23704  	req, err := http.NewRequest("POST", urls, body)
 23705  	if err != nil {
 23706  		return nil, err
 23707  	}
 23708  	req.Header = reqHeaders
 23709  	googleapi.Expand(req.URL, map[string]string{
 23710  		"parent": c.parent,
 23711  	})
 23712  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23713  }
 23714  
 23715  // Do executes the "dialogflow.projects.agent.intents.batchDelete" call.
 23716  // Any non-2xx status code is an error. Response headers are in either
 23717  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23718  // returned at all) in error.(*googleapi.Error).Header. Use
 23719  // googleapi.IsNotModified to check whether the returned error was because
 23720  // http.StatusNotModified was returned.
 23721  func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23722  	gensupport.SetOptions(c.urlParams_, opts...)
 23723  	res, err := c.doRequest("json")
 23724  	if res != nil && res.StatusCode == http.StatusNotModified {
 23725  		if res.Body != nil {
 23726  			res.Body.Close()
 23727  		}
 23728  		return nil, gensupport.WrapError(&googleapi.Error{
 23729  			Code:   res.StatusCode,
 23730  			Header: res.Header,
 23731  		})
 23732  	}
 23733  	if err != nil {
 23734  		return nil, err
 23735  	}
 23736  	defer googleapi.CloseBody(res)
 23737  	if err := googleapi.CheckResponse(res); err != nil {
 23738  		return nil, gensupport.WrapError(err)
 23739  	}
 23740  	ret := &GoogleLongrunningOperation{
 23741  		ServerResponse: googleapi.ServerResponse{
 23742  			Header:         res.Header,
 23743  			HTTPStatusCode: res.StatusCode,
 23744  		},
 23745  	}
 23746  	target := &ret
 23747  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23748  		return nil, err
 23749  	}
 23750  	return ret, nil
 23751  }
 23752  
 23753  type ProjectsAgentIntentsBatchUpdateCall struct {
 23754  	s                                                *Service
 23755  	parent                                           string
 23756  	googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest
 23757  	urlParams_                                       gensupport.URLParams
 23758  	ctx_                                             context.Context
 23759  	header_                                          http.Header
 23760  }
 23761  
 23762  // BatchUpdate: Updates/Creates multiple intents in the specified agent. This
 23763  // method is a long-running operation
 23764  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 23765  // The returned `Operation` type has the following method-specific fields: -
 23766  // `metadata`: An empty Struct message
 23767  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 23768  // - `response`: BatchUpdateIntentsResponse Note: You should always train an
 23769  // agent prior to sending it queries. See the training documentation
 23770  // (https://cloud.google.com/dialogflow/es/docs/training).
 23771  //
 23772  //   - parent: The name of the agent to update or create intents in. Format:
 23773  //     `projects//agent`.
 23774  func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall {
 23775  	c := &ProjectsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23776  	c.parent = parent
 23777  	c.googleclouddialogflowv2batchupdateintentsrequest = googleclouddialogflowv2batchupdateintentsrequest
 23778  	return c
 23779  }
 23780  
 23781  // Fields allows partial responses to be retrieved. See
 23782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23783  // details.
 23784  func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall {
 23785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23786  	return c
 23787  }
 23788  
 23789  // Context sets the context to be used in this call's Do method.
 23790  func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall {
 23791  	c.ctx_ = ctx
 23792  	return c
 23793  }
 23794  
 23795  // Header returns a http.Header that can be modified by the caller to add
 23796  // headers to the request.
 23797  func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header {
 23798  	if c.header_ == nil {
 23799  		c.header_ = make(http.Header)
 23800  	}
 23801  	return c.header_
 23802  }
 23803  
 23804  func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 23805  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23806  	var body io.Reader = nil
 23807  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateintentsrequest)
 23808  	if err != nil {
 23809  		return nil, err
 23810  	}
 23811  	c.urlParams_.Set("alt", alt)
 23812  	c.urlParams_.Set("prettyPrint", "false")
 23813  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchUpdate")
 23814  	urls += "?" + c.urlParams_.Encode()
 23815  	req, err := http.NewRequest("POST", urls, body)
 23816  	if err != nil {
 23817  		return nil, err
 23818  	}
 23819  	req.Header = reqHeaders
 23820  	googleapi.Expand(req.URL, map[string]string{
 23821  		"parent": c.parent,
 23822  	})
 23823  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23824  }
 23825  
 23826  // Do executes the "dialogflow.projects.agent.intents.batchUpdate" call.
 23827  // Any non-2xx status code is an error. Response headers are in either
 23828  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23829  // returned at all) in error.(*googleapi.Error).Header. Use
 23830  // googleapi.IsNotModified to check whether the returned error was because
 23831  // http.StatusNotModified was returned.
 23832  func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23833  	gensupport.SetOptions(c.urlParams_, opts...)
 23834  	res, err := c.doRequest("json")
 23835  	if res != nil && res.StatusCode == http.StatusNotModified {
 23836  		if res.Body != nil {
 23837  			res.Body.Close()
 23838  		}
 23839  		return nil, gensupport.WrapError(&googleapi.Error{
 23840  			Code:   res.StatusCode,
 23841  			Header: res.Header,
 23842  		})
 23843  	}
 23844  	if err != nil {
 23845  		return nil, err
 23846  	}
 23847  	defer googleapi.CloseBody(res)
 23848  	if err := googleapi.CheckResponse(res); err != nil {
 23849  		return nil, gensupport.WrapError(err)
 23850  	}
 23851  	ret := &GoogleLongrunningOperation{
 23852  		ServerResponse: googleapi.ServerResponse{
 23853  			Header:         res.Header,
 23854  			HTTPStatusCode: res.StatusCode,
 23855  		},
 23856  	}
 23857  	target := &ret
 23858  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23859  		return nil, err
 23860  	}
 23861  	return ret, nil
 23862  }
 23863  
 23864  type ProjectsAgentIntentsCreateCall struct {
 23865  	s                             *Service
 23866  	parent                        string
 23867  	googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
 23868  	urlParams_                    gensupport.URLParams
 23869  	ctx_                          context.Context
 23870  	header_                       http.Header
 23871  }
 23872  
 23873  // Create: Creates an intent in the specified agent. Note: You should always
 23874  // train an agent prior to sending it queries. See the training documentation
 23875  // (https://cloud.google.com/dialogflow/es/docs/training).
 23876  //
 23877  // - parent: The agent to create a intent for. Format: `projects//agent`.
 23878  func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsCreateCall {
 23879  	c := &ProjectsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23880  	c.parent = parent
 23881  	c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
 23882  	return c
 23883  }
 23884  
 23885  // IntentView sets the optional parameter "intentView": The resource view to
 23886  // apply to the returned intent.
 23887  //
 23888  // Possible values:
 23889  //
 23890  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 23891  //
 23892  // response.
 23893  //
 23894  //	"INTENT_VIEW_FULL" - All fields are populated.
 23895  func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall {
 23896  	c.urlParams_.Set("intentView", intentView)
 23897  	return c
 23898  }
 23899  
 23900  // LanguageCode sets the optional parameter "languageCode": The language used
 23901  // to access language-specific data. If not specified, the agent's default
 23902  // language is used. For more information, see Multilingual intent and entity
 23903  // data
 23904  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 23905  func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall {
 23906  	c.urlParams_.Set("languageCode", languageCode)
 23907  	return c
 23908  }
 23909  
 23910  // Fields allows partial responses to be retrieved. See
 23911  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23912  // details.
 23913  func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall {
 23914  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23915  	return c
 23916  }
 23917  
 23918  // Context sets the context to be used in this call's Do method.
 23919  func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall {
 23920  	c.ctx_ = ctx
 23921  	return c
 23922  }
 23923  
 23924  // Header returns a http.Header that can be modified by the caller to add
 23925  // headers to the request.
 23926  func (c *ProjectsAgentIntentsCreateCall) Header() http.Header {
 23927  	if c.header_ == nil {
 23928  		c.header_ = make(http.Header)
 23929  	}
 23930  	return c.header_
 23931  }
 23932  
 23933  func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
 23934  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23935  	var body io.Reader = nil
 23936  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
 23937  	if err != nil {
 23938  		return nil, err
 23939  	}
 23940  	c.urlParams_.Set("alt", alt)
 23941  	c.urlParams_.Set("prettyPrint", "false")
 23942  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
 23943  	urls += "?" + c.urlParams_.Encode()
 23944  	req, err := http.NewRequest("POST", urls, body)
 23945  	if err != nil {
 23946  		return nil, err
 23947  	}
 23948  	req.Header = reqHeaders
 23949  	googleapi.Expand(req.URL, map[string]string{
 23950  		"parent": c.parent,
 23951  	})
 23952  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23953  }
 23954  
 23955  // Do executes the "dialogflow.projects.agent.intents.create" call.
 23956  // Any non-2xx status code is an error. Response headers are in either
 23957  // *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was
 23958  // returned at all) in error.(*googleapi.Error).Header. Use
 23959  // googleapi.IsNotModified to check whether the returned error was because
 23960  // http.StatusNotModified was returned.
 23961  func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
 23962  	gensupport.SetOptions(c.urlParams_, opts...)
 23963  	res, err := c.doRequest("json")
 23964  	if res != nil && res.StatusCode == http.StatusNotModified {
 23965  		if res.Body != nil {
 23966  			res.Body.Close()
 23967  		}
 23968  		return nil, gensupport.WrapError(&googleapi.Error{
 23969  			Code:   res.StatusCode,
 23970  			Header: res.Header,
 23971  		})
 23972  	}
 23973  	if err != nil {
 23974  		return nil, err
 23975  	}
 23976  	defer googleapi.CloseBody(res)
 23977  	if err := googleapi.CheckResponse(res); err != nil {
 23978  		return nil, gensupport.WrapError(err)
 23979  	}
 23980  	ret := &GoogleCloudDialogflowV2Intent{
 23981  		ServerResponse: googleapi.ServerResponse{
 23982  			Header:         res.Header,
 23983  			HTTPStatusCode: res.StatusCode,
 23984  		},
 23985  	}
 23986  	target := &ret
 23987  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23988  		return nil, err
 23989  	}
 23990  	return ret, nil
 23991  }
 23992  
 23993  type ProjectsAgentIntentsDeleteCall struct {
 23994  	s          *Service
 23995  	name       string
 23996  	urlParams_ gensupport.URLParams
 23997  	ctx_       context.Context
 23998  	header_    http.Header
 23999  }
 24000  
 24001  // Delete: Deletes the specified intent and its direct or indirect followup
 24002  // intents. Note: You should always train an agent prior to sending it queries.
 24003  // See the training documentation
 24004  // (https://cloud.google.com/dialogflow/es/docs/training).
 24005  //
 24006  //   - name: The name of the intent to delete. If this intent has direct or
 24007  //     indirect followup intents, we also delete them. Format:
 24008  //     `projects//agent/intents/`.
 24009  func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall {
 24010  	c := &ProjectsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24011  	c.name = name
 24012  	return c
 24013  }
 24014  
 24015  // Fields allows partial responses to be retrieved. See
 24016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24017  // details.
 24018  func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall {
 24019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24020  	return c
 24021  }
 24022  
 24023  // Context sets the context to be used in this call's Do method.
 24024  func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall {
 24025  	c.ctx_ = ctx
 24026  	return c
 24027  }
 24028  
 24029  // Header returns a http.Header that can be modified by the caller to add
 24030  // headers to the request.
 24031  func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header {
 24032  	if c.header_ == nil {
 24033  		c.header_ = make(http.Header)
 24034  	}
 24035  	return c.header_
 24036  }
 24037  
 24038  func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 24039  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24040  	var body io.Reader = nil
 24041  	c.urlParams_.Set("alt", alt)
 24042  	c.urlParams_.Set("prettyPrint", "false")
 24043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24044  	urls += "?" + c.urlParams_.Encode()
 24045  	req, err := http.NewRequest("DELETE", urls, body)
 24046  	if err != nil {
 24047  		return nil, err
 24048  	}
 24049  	req.Header = reqHeaders
 24050  	googleapi.Expand(req.URL, map[string]string{
 24051  		"name": c.name,
 24052  	})
 24053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24054  }
 24055  
 24056  // Do executes the "dialogflow.projects.agent.intents.delete" call.
 24057  // Any non-2xx status code is an error. Response headers are in either
 24058  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24059  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24060  // check whether the returned error was because http.StatusNotModified was
 24061  // returned.
 24062  func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24063  	gensupport.SetOptions(c.urlParams_, opts...)
 24064  	res, err := c.doRequest("json")
 24065  	if res != nil && res.StatusCode == http.StatusNotModified {
 24066  		if res.Body != nil {
 24067  			res.Body.Close()
 24068  		}
 24069  		return nil, gensupport.WrapError(&googleapi.Error{
 24070  			Code:   res.StatusCode,
 24071  			Header: res.Header,
 24072  		})
 24073  	}
 24074  	if err != nil {
 24075  		return nil, err
 24076  	}
 24077  	defer googleapi.CloseBody(res)
 24078  	if err := googleapi.CheckResponse(res); err != nil {
 24079  		return nil, gensupport.WrapError(err)
 24080  	}
 24081  	ret := &GoogleProtobufEmpty{
 24082  		ServerResponse: googleapi.ServerResponse{
 24083  			Header:         res.Header,
 24084  			HTTPStatusCode: res.StatusCode,
 24085  		},
 24086  	}
 24087  	target := &ret
 24088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24089  		return nil, err
 24090  	}
 24091  	return ret, nil
 24092  }
 24093  
 24094  type ProjectsAgentIntentsGetCall struct {
 24095  	s            *Service
 24096  	name         string
 24097  	urlParams_   gensupport.URLParams
 24098  	ifNoneMatch_ string
 24099  	ctx_         context.Context
 24100  	header_      http.Header
 24101  }
 24102  
 24103  // Get: Retrieves the specified intent.
 24104  //
 24105  // - name: The name of the intent. Format: `projects//agent/intents/`.
 24106  func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall {
 24107  	c := &ProjectsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24108  	c.name = name
 24109  	return c
 24110  }
 24111  
 24112  // IntentView sets the optional parameter "intentView": The resource view to
 24113  // apply to the returned intent.
 24114  //
 24115  // Possible values:
 24116  //
 24117  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24118  //
 24119  // response.
 24120  //
 24121  //	"INTENT_VIEW_FULL" - All fields are populated.
 24122  func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall {
 24123  	c.urlParams_.Set("intentView", intentView)
 24124  	return c
 24125  }
 24126  
 24127  // LanguageCode sets the optional parameter "languageCode": The language used
 24128  // to access language-specific data. If not specified, the agent's default
 24129  // language is used. For more information, see Multilingual intent and entity
 24130  // data
 24131  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24132  func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall {
 24133  	c.urlParams_.Set("languageCode", languageCode)
 24134  	return c
 24135  }
 24136  
 24137  // Fields allows partial responses to be retrieved. See
 24138  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24139  // details.
 24140  func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall {
 24141  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24142  	return c
 24143  }
 24144  
 24145  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24146  // object's ETag matches the given value. This is useful for getting updates
 24147  // only after the object has changed since the last request.
 24148  func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall {
 24149  	c.ifNoneMatch_ = entityTag
 24150  	return c
 24151  }
 24152  
 24153  // Context sets the context to be used in this call's Do method.
 24154  func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall {
 24155  	c.ctx_ = ctx
 24156  	return c
 24157  }
 24158  
 24159  // Header returns a http.Header that can be modified by the caller to add
 24160  // headers to the request.
 24161  func (c *ProjectsAgentIntentsGetCall) Header() http.Header {
 24162  	if c.header_ == nil {
 24163  		c.header_ = make(http.Header)
 24164  	}
 24165  	return c.header_
 24166  }
 24167  
 24168  func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
 24169  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24170  	if c.ifNoneMatch_ != "" {
 24171  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24172  	}
 24173  	var body io.Reader = nil
 24174  	c.urlParams_.Set("alt", alt)
 24175  	c.urlParams_.Set("prettyPrint", "false")
 24176  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24177  	urls += "?" + c.urlParams_.Encode()
 24178  	req, err := http.NewRequest("GET", urls, body)
 24179  	if err != nil {
 24180  		return nil, err
 24181  	}
 24182  	req.Header = reqHeaders
 24183  	googleapi.Expand(req.URL, map[string]string{
 24184  		"name": c.name,
 24185  	})
 24186  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24187  }
 24188  
 24189  // Do executes the "dialogflow.projects.agent.intents.get" call.
 24190  // Any non-2xx status code is an error. Response headers are in either
 24191  // *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was
 24192  // returned at all) in error.(*googleapi.Error).Header. Use
 24193  // googleapi.IsNotModified to check whether the returned error was because
 24194  // http.StatusNotModified was returned.
 24195  func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
 24196  	gensupport.SetOptions(c.urlParams_, opts...)
 24197  	res, err := c.doRequest("json")
 24198  	if res != nil && res.StatusCode == http.StatusNotModified {
 24199  		if res.Body != nil {
 24200  			res.Body.Close()
 24201  		}
 24202  		return nil, gensupport.WrapError(&googleapi.Error{
 24203  			Code:   res.StatusCode,
 24204  			Header: res.Header,
 24205  		})
 24206  	}
 24207  	if err != nil {
 24208  		return nil, err
 24209  	}
 24210  	defer googleapi.CloseBody(res)
 24211  	if err := googleapi.CheckResponse(res); err != nil {
 24212  		return nil, gensupport.WrapError(err)
 24213  	}
 24214  	ret := &GoogleCloudDialogflowV2Intent{
 24215  		ServerResponse: googleapi.ServerResponse{
 24216  			Header:         res.Header,
 24217  			HTTPStatusCode: res.StatusCode,
 24218  		},
 24219  	}
 24220  	target := &ret
 24221  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24222  		return nil, err
 24223  	}
 24224  	return ret, nil
 24225  }
 24226  
 24227  type ProjectsAgentIntentsListCall struct {
 24228  	s            *Service
 24229  	parent       string
 24230  	urlParams_   gensupport.URLParams
 24231  	ifNoneMatch_ string
 24232  	ctx_         context.Context
 24233  	header_      http.Header
 24234  }
 24235  
 24236  // List: Returns the list of all intents in the specified agent.
 24237  //
 24238  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 24239  //     `projects//locations//agent`. Alternatively, you can specify the
 24240  //     environment to list intents for. Format: `projects//agent/environments/`
 24241  //     or `projects//locations//agent/environments/`. Note: training phrases of
 24242  //     the intents will not be returned for non-draft environment.
 24243  func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall {
 24244  	c := &ProjectsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24245  	c.parent = parent
 24246  	return c
 24247  }
 24248  
 24249  // IntentView sets the optional parameter "intentView": The resource view to
 24250  // apply to the returned intent.
 24251  //
 24252  // Possible values:
 24253  //
 24254  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24255  //
 24256  // response.
 24257  //
 24258  //	"INTENT_VIEW_FULL" - All fields are populated.
 24259  func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall {
 24260  	c.urlParams_.Set("intentView", intentView)
 24261  	return c
 24262  }
 24263  
 24264  // LanguageCode sets the optional parameter "languageCode": The language used
 24265  // to access language-specific data. If not specified, the agent's default
 24266  // language is used. For more information, see Multilingual intent and entity
 24267  // data
 24268  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24269  func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall {
 24270  	c.urlParams_.Set("languageCode", languageCode)
 24271  	return c
 24272  }
 24273  
 24274  // PageSize sets the optional parameter "pageSize": The maximum number of items
 24275  // to return in a single page. By default 100 and at most 1000.
 24276  func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall {
 24277  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24278  	return c
 24279  }
 24280  
 24281  // PageToken sets the optional parameter "pageToken": The next_page_token value
 24282  // returned from a previous list request.
 24283  func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall {
 24284  	c.urlParams_.Set("pageToken", pageToken)
 24285  	return c
 24286  }
 24287  
 24288  // Fields allows partial responses to be retrieved. See
 24289  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24290  // details.
 24291  func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall {
 24292  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24293  	return c
 24294  }
 24295  
 24296  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24297  // object's ETag matches the given value. This is useful for getting updates
 24298  // only after the object has changed since the last request.
 24299  func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall {
 24300  	c.ifNoneMatch_ = entityTag
 24301  	return c
 24302  }
 24303  
 24304  // Context sets the context to be used in this call's Do method.
 24305  func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall {
 24306  	c.ctx_ = ctx
 24307  	return c
 24308  }
 24309  
 24310  // Header returns a http.Header that can be modified by the caller to add
 24311  // headers to the request.
 24312  func (c *ProjectsAgentIntentsListCall) Header() http.Header {
 24313  	if c.header_ == nil {
 24314  		c.header_ = make(http.Header)
 24315  	}
 24316  	return c.header_
 24317  }
 24318  
 24319  func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
 24320  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24321  	if c.ifNoneMatch_ != "" {
 24322  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24323  	}
 24324  	var body io.Reader = nil
 24325  	c.urlParams_.Set("alt", alt)
 24326  	c.urlParams_.Set("prettyPrint", "false")
 24327  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
 24328  	urls += "?" + c.urlParams_.Encode()
 24329  	req, err := http.NewRequest("GET", urls, body)
 24330  	if err != nil {
 24331  		return nil, err
 24332  	}
 24333  	req.Header = reqHeaders
 24334  	googleapi.Expand(req.URL, map[string]string{
 24335  		"parent": c.parent,
 24336  	})
 24337  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24338  }
 24339  
 24340  // Do executes the "dialogflow.projects.agent.intents.list" call.
 24341  // Any non-2xx status code is an error. Response headers are in either
 24342  // *GoogleCloudDialogflowV2ListIntentsResponse.ServerResponse.Header or (if a
 24343  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24344  // googleapi.IsNotModified to check whether the returned error was because
 24345  // http.StatusNotModified was returned.
 24346  func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
 24347  	gensupport.SetOptions(c.urlParams_, opts...)
 24348  	res, err := c.doRequest("json")
 24349  	if res != nil && res.StatusCode == http.StatusNotModified {
 24350  		if res.Body != nil {
 24351  			res.Body.Close()
 24352  		}
 24353  		return nil, gensupport.WrapError(&googleapi.Error{
 24354  			Code:   res.StatusCode,
 24355  			Header: res.Header,
 24356  		})
 24357  	}
 24358  	if err != nil {
 24359  		return nil, err
 24360  	}
 24361  	defer googleapi.CloseBody(res)
 24362  	if err := googleapi.CheckResponse(res); err != nil {
 24363  		return nil, gensupport.WrapError(err)
 24364  	}
 24365  	ret := &GoogleCloudDialogflowV2ListIntentsResponse{
 24366  		ServerResponse: googleapi.ServerResponse{
 24367  			Header:         res.Header,
 24368  			HTTPStatusCode: res.StatusCode,
 24369  		},
 24370  	}
 24371  	target := &ret
 24372  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24373  		return nil, err
 24374  	}
 24375  	return ret, nil
 24376  }
 24377  
 24378  // Pages invokes f for each page of results.
 24379  // A non-nil error returned from f will halt the iteration.
 24380  // The provided context supersedes any context provided to the Context method.
 24381  func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
 24382  	c.ctx_ = ctx
 24383  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24384  	for {
 24385  		x, err := c.Do()
 24386  		if err != nil {
 24387  			return err
 24388  		}
 24389  		if err := f(x); err != nil {
 24390  			return err
 24391  		}
 24392  		if x.NextPageToken == "" {
 24393  			return nil
 24394  		}
 24395  		c.PageToken(x.NextPageToken)
 24396  	}
 24397  }
 24398  
 24399  type ProjectsAgentIntentsPatchCall struct {
 24400  	s                             *Service
 24401  	nameid                        string
 24402  	googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
 24403  	urlParams_                    gensupport.URLParams
 24404  	ctx_                          context.Context
 24405  	header_                       http.Header
 24406  }
 24407  
 24408  // Patch: Updates the specified intent. Note: You should always train an agent
 24409  // prior to sending it queries. See the training documentation
 24410  // (https://cloud.google.com/dialogflow/es/docs/training).
 24411  //
 24412  //   - name: Optional. The unique identifier of this intent. Required for
 24413  //     Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
 24414  //     `projects//agent/intents/`.
 24415  func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsPatchCall {
 24416  	c := &ProjectsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24417  	c.nameid = nameid
 24418  	c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
 24419  	return c
 24420  }
 24421  
 24422  // IntentView sets the optional parameter "intentView": The resource view to
 24423  // apply to the returned intent.
 24424  //
 24425  // Possible values:
 24426  //
 24427  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24428  //
 24429  // response.
 24430  //
 24431  //	"INTENT_VIEW_FULL" - All fields are populated.
 24432  func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall {
 24433  	c.urlParams_.Set("intentView", intentView)
 24434  	return c
 24435  }
 24436  
 24437  // LanguageCode sets the optional parameter "languageCode": The language used
 24438  // to access language-specific data. If not specified, the agent's default
 24439  // language is used. For more information, see Multilingual intent and entity
 24440  // data
 24441  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24442  func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall {
 24443  	c.urlParams_.Set("languageCode", languageCode)
 24444  	return c
 24445  }
 24446  
 24447  // UpdateMask sets the optional parameter "updateMask": The mask to control
 24448  // which fields get updated.
 24449  func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall {
 24450  	c.urlParams_.Set("updateMask", updateMask)
 24451  	return c
 24452  }
 24453  
 24454  // Fields allows partial responses to be retrieved. See
 24455  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24456  // details.
 24457  func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall {
 24458  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24459  	return c
 24460  }
 24461  
 24462  // Context sets the context to be used in this call's Do method.
 24463  func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall {
 24464  	c.ctx_ = ctx
 24465  	return c
 24466  }
 24467  
 24468  // Header returns a http.Header that can be modified by the caller to add
 24469  // headers to the request.
 24470  func (c *ProjectsAgentIntentsPatchCall) Header() http.Header {
 24471  	if c.header_ == nil {
 24472  		c.header_ = make(http.Header)
 24473  	}
 24474  	return c.header_
 24475  }
 24476  
 24477  func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
 24478  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24479  	var body io.Reader = nil
 24480  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
 24481  	if err != nil {
 24482  		return nil, err
 24483  	}
 24484  	c.urlParams_.Set("alt", alt)
 24485  	c.urlParams_.Set("prettyPrint", "false")
 24486  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24487  	urls += "?" + c.urlParams_.Encode()
 24488  	req, err := http.NewRequest("PATCH", urls, body)
 24489  	if err != nil {
 24490  		return nil, err
 24491  	}
 24492  	req.Header = reqHeaders
 24493  	googleapi.Expand(req.URL, map[string]string{
 24494  		"name": c.nameid,
 24495  	})
 24496  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24497  }
 24498  
 24499  // Do executes the "dialogflow.projects.agent.intents.patch" call.
 24500  // Any non-2xx status code is an error. Response headers are in either
 24501  // *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was
 24502  // returned at all) in error.(*googleapi.Error).Header. Use
 24503  // googleapi.IsNotModified to check whether the returned error was because
 24504  // http.StatusNotModified was returned.
 24505  func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
 24506  	gensupport.SetOptions(c.urlParams_, opts...)
 24507  	res, err := c.doRequest("json")
 24508  	if res != nil && res.StatusCode == http.StatusNotModified {
 24509  		if res.Body != nil {
 24510  			res.Body.Close()
 24511  		}
 24512  		return nil, gensupport.WrapError(&googleapi.Error{
 24513  			Code:   res.StatusCode,
 24514  			Header: res.Header,
 24515  		})
 24516  	}
 24517  	if err != nil {
 24518  		return nil, err
 24519  	}
 24520  	defer googleapi.CloseBody(res)
 24521  	if err := googleapi.CheckResponse(res); err != nil {
 24522  		return nil, gensupport.WrapError(err)
 24523  	}
 24524  	ret := &GoogleCloudDialogflowV2Intent{
 24525  		ServerResponse: googleapi.ServerResponse{
 24526  			Header:         res.Header,
 24527  			HTTPStatusCode: res.StatusCode,
 24528  		},
 24529  	}
 24530  	target := &ret
 24531  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24532  		return nil, err
 24533  	}
 24534  	return ret, nil
 24535  }
 24536  
 24537  type ProjectsAgentKnowledgeBasesCreateCall struct {
 24538  	s                                    *Service
 24539  	parent                               string
 24540  	googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
 24541  	urlParams_                           gensupport.URLParams
 24542  	ctx_                                 context.Context
 24543  	header_                              http.Header
 24544  }
 24545  
 24546  // Create: Creates a knowledge base.
 24547  //
 24548  //   - parent: The project to create a knowledge base for. Format:
 24549  //     `projects//locations/`.
 24550  func (r *ProjectsAgentKnowledgeBasesService) Create(parent string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsAgentKnowledgeBasesCreateCall {
 24551  	c := &ProjectsAgentKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24552  	c.parent = parent
 24553  	c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
 24554  	return c
 24555  }
 24556  
 24557  // Fields allows partial responses to be retrieved. See
 24558  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24559  // details.
 24560  func (c *ProjectsAgentKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesCreateCall {
 24561  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24562  	return c
 24563  }
 24564  
 24565  // Context sets the context to be used in this call's Do method.
 24566  func (c *ProjectsAgentKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesCreateCall {
 24567  	c.ctx_ = ctx
 24568  	return c
 24569  }
 24570  
 24571  // Header returns a http.Header that can be modified by the caller to add
 24572  // headers to the request.
 24573  func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header {
 24574  	if c.header_ == nil {
 24575  		c.header_ = make(http.Header)
 24576  	}
 24577  	return c.header_
 24578  }
 24579  
 24580  func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
 24581  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24582  	var body io.Reader = nil
 24583  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
 24584  	if err != nil {
 24585  		return nil, err
 24586  	}
 24587  	c.urlParams_.Set("alt", alt)
 24588  	c.urlParams_.Set("prettyPrint", "false")
 24589  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
 24590  	urls += "?" + c.urlParams_.Encode()
 24591  	req, err := http.NewRequest("POST", urls, body)
 24592  	if err != nil {
 24593  		return nil, err
 24594  	}
 24595  	req.Header = reqHeaders
 24596  	googleapi.Expand(req.URL, map[string]string{
 24597  		"parent": c.parent,
 24598  	})
 24599  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24600  }
 24601  
 24602  // Do executes the "dialogflow.projects.agent.knowledgeBases.create" call.
 24603  // Any non-2xx status code is an error. Response headers are in either
 24604  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 24605  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24606  // googleapi.IsNotModified to check whether the returned error was because
 24607  // http.StatusNotModified was returned.
 24608  func (c *ProjectsAgentKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 24609  	gensupport.SetOptions(c.urlParams_, opts...)
 24610  	res, err := c.doRequest("json")
 24611  	if res != nil && res.StatusCode == http.StatusNotModified {
 24612  		if res.Body != nil {
 24613  			res.Body.Close()
 24614  		}
 24615  		return nil, gensupport.WrapError(&googleapi.Error{
 24616  			Code:   res.StatusCode,
 24617  			Header: res.Header,
 24618  		})
 24619  	}
 24620  	if err != nil {
 24621  		return nil, err
 24622  	}
 24623  	defer googleapi.CloseBody(res)
 24624  	if err := googleapi.CheckResponse(res); err != nil {
 24625  		return nil, gensupport.WrapError(err)
 24626  	}
 24627  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 24628  		ServerResponse: googleapi.ServerResponse{
 24629  			Header:         res.Header,
 24630  			HTTPStatusCode: res.StatusCode,
 24631  		},
 24632  	}
 24633  	target := &ret
 24634  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24635  		return nil, err
 24636  	}
 24637  	return ret, nil
 24638  }
 24639  
 24640  type ProjectsAgentKnowledgeBasesDeleteCall struct {
 24641  	s          *Service
 24642  	name       string
 24643  	urlParams_ gensupport.URLParams
 24644  	ctx_       context.Context
 24645  	header_    http.Header
 24646  }
 24647  
 24648  // Delete: Deletes the specified knowledge base.
 24649  //
 24650  //   - name: The name of the knowledge base to delete. Format:
 24651  //     `projects//locations//knowledgeBases/`.
 24652  func (r *ProjectsAgentKnowledgeBasesService) Delete(name string) *ProjectsAgentKnowledgeBasesDeleteCall {
 24653  	c := &ProjectsAgentKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24654  	c.name = name
 24655  	return c
 24656  }
 24657  
 24658  // Force sets the optional parameter "force": Force deletes the knowledge base.
 24659  // When set to true, any documents in the knowledge base are also deleted.
 24660  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Force(force bool) *ProjectsAgentKnowledgeBasesDeleteCall {
 24661  	c.urlParams_.Set("force", fmt.Sprint(force))
 24662  	return c
 24663  }
 24664  
 24665  // Fields allows partial responses to be retrieved. See
 24666  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24667  // details.
 24668  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDeleteCall {
 24669  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24670  	return c
 24671  }
 24672  
 24673  // Context sets the context to be used in this call's Do method.
 24674  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDeleteCall {
 24675  	c.ctx_ = ctx
 24676  	return c
 24677  }
 24678  
 24679  // Header returns a http.Header that can be modified by the caller to add
 24680  // headers to the request.
 24681  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header {
 24682  	if c.header_ == nil {
 24683  		c.header_ = make(http.Header)
 24684  	}
 24685  	return c.header_
 24686  }
 24687  
 24688  func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 24689  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24690  	var body io.Reader = nil
 24691  	c.urlParams_.Set("alt", alt)
 24692  	c.urlParams_.Set("prettyPrint", "false")
 24693  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24694  	urls += "?" + c.urlParams_.Encode()
 24695  	req, err := http.NewRequest("DELETE", urls, body)
 24696  	if err != nil {
 24697  		return nil, err
 24698  	}
 24699  	req.Header = reqHeaders
 24700  	googleapi.Expand(req.URL, map[string]string{
 24701  		"name": c.name,
 24702  	})
 24703  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24704  }
 24705  
 24706  // Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call.
 24707  // Any non-2xx status code is an error. Response headers are in either
 24708  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24709  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24710  // check whether the returned error was because http.StatusNotModified was
 24711  // returned.
 24712  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24713  	gensupport.SetOptions(c.urlParams_, opts...)
 24714  	res, err := c.doRequest("json")
 24715  	if res != nil && res.StatusCode == http.StatusNotModified {
 24716  		if res.Body != nil {
 24717  			res.Body.Close()
 24718  		}
 24719  		return nil, gensupport.WrapError(&googleapi.Error{
 24720  			Code:   res.StatusCode,
 24721  			Header: res.Header,
 24722  		})
 24723  	}
 24724  	if err != nil {
 24725  		return nil, err
 24726  	}
 24727  	defer googleapi.CloseBody(res)
 24728  	if err := googleapi.CheckResponse(res); err != nil {
 24729  		return nil, gensupport.WrapError(err)
 24730  	}
 24731  	ret := &GoogleProtobufEmpty{
 24732  		ServerResponse: googleapi.ServerResponse{
 24733  			Header:         res.Header,
 24734  			HTTPStatusCode: res.StatusCode,
 24735  		},
 24736  	}
 24737  	target := &ret
 24738  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24739  		return nil, err
 24740  	}
 24741  	return ret, nil
 24742  }
 24743  
 24744  type ProjectsAgentKnowledgeBasesGetCall struct {
 24745  	s            *Service
 24746  	name         string
 24747  	urlParams_   gensupport.URLParams
 24748  	ifNoneMatch_ string
 24749  	ctx_         context.Context
 24750  	header_      http.Header
 24751  }
 24752  
 24753  // Get: Retrieves the specified knowledge base.
 24754  //
 24755  //   - name: The name of the knowledge base to retrieve. Format
 24756  //     `projects//locations//knowledgeBases/`.
 24757  func (r *ProjectsAgentKnowledgeBasesService) Get(name string) *ProjectsAgentKnowledgeBasesGetCall {
 24758  	c := &ProjectsAgentKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24759  	c.name = name
 24760  	return c
 24761  }
 24762  
 24763  // Fields allows partial responses to be retrieved. See
 24764  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24765  // details.
 24766  func (c *ProjectsAgentKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesGetCall {
 24767  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24768  	return c
 24769  }
 24770  
 24771  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24772  // object's ETag matches the given value. This is useful for getting updates
 24773  // only after the object has changed since the last request.
 24774  func (c *ProjectsAgentKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesGetCall {
 24775  	c.ifNoneMatch_ = entityTag
 24776  	return c
 24777  }
 24778  
 24779  // Context sets the context to be used in this call's Do method.
 24780  func (c *ProjectsAgentKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesGetCall {
 24781  	c.ctx_ = ctx
 24782  	return c
 24783  }
 24784  
 24785  // Header returns a http.Header that can be modified by the caller to add
 24786  // headers to the request.
 24787  func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header {
 24788  	if c.header_ == nil {
 24789  		c.header_ = make(http.Header)
 24790  	}
 24791  	return c.header_
 24792  }
 24793  
 24794  func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
 24795  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24796  	if c.ifNoneMatch_ != "" {
 24797  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24798  	}
 24799  	var body io.Reader = nil
 24800  	c.urlParams_.Set("alt", alt)
 24801  	c.urlParams_.Set("prettyPrint", "false")
 24802  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24803  	urls += "?" + c.urlParams_.Encode()
 24804  	req, err := http.NewRequest("GET", urls, body)
 24805  	if err != nil {
 24806  		return nil, err
 24807  	}
 24808  	req.Header = reqHeaders
 24809  	googleapi.Expand(req.URL, map[string]string{
 24810  		"name": c.name,
 24811  	})
 24812  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24813  }
 24814  
 24815  // Do executes the "dialogflow.projects.agent.knowledgeBases.get" call.
 24816  // Any non-2xx status code is an error. Response headers are in either
 24817  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 24818  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24819  // googleapi.IsNotModified to check whether the returned error was because
 24820  // http.StatusNotModified was returned.
 24821  func (c *ProjectsAgentKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 24822  	gensupport.SetOptions(c.urlParams_, opts...)
 24823  	res, err := c.doRequest("json")
 24824  	if res != nil && res.StatusCode == http.StatusNotModified {
 24825  		if res.Body != nil {
 24826  			res.Body.Close()
 24827  		}
 24828  		return nil, gensupport.WrapError(&googleapi.Error{
 24829  			Code:   res.StatusCode,
 24830  			Header: res.Header,
 24831  		})
 24832  	}
 24833  	if err != nil {
 24834  		return nil, err
 24835  	}
 24836  	defer googleapi.CloseBody(res)
 24837  	if err := googleapi.CheckResponse(res); err != nil {
 24838  		return nil, gensupport.WrapError(err)
 24839  	}
 24840  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 24841  		ServerResponse: googleapi.ServerResponse{
 24842  			Header:         res.Header,
 24843  			HTTPStatusCode: res.StatusCode,
 24844  		},
 24845  	}
 24846  	target := &ret
 24847  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24848  		return nil, err
 24849  	}
 24850  	return ret, nil
 24851  }
 24852  
 24853  type ProjectsAgentKnowledgeBasesListCall struct {
 24854  	s            *Service
 24855  	parent       string
 24856  	urlParams_   gensupport.URLParams
 24857  	ifNoneMatch_ string
 24858  	ctx_         context.Context
 24859  	header_      http.Header
 24860  }
 24861  
 24862  // List: Returns the list of all knowledge bases of the specified agent.
 24863  //
 24864  //   - parent: The project to list of knowledge bases for. Format:
 24865  //     `projects//locations/`.
 24866  func (r *ProjectsAgentKnowledgeBasesService) List(parent string) *ProjectsAgentKnowledgeBasesListCall {
 24867  	c := &ProjectsAgentKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24868  	c.parent = parent
 24869  	return c
 24870  }
 24871  
 24872  // Filter sets the optional parameter "filter": The filter expression used to
 24873  // filter knowledge bases returned by the list method. The expression has the
 24874  // following syntax: [AND ] ... The following fields and operators are
 24875  // supported: * display_name with has(:) operator * language_code with
 24876  // equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases
 24877  // with en-us language code. * 'display_name:articles' matches knowledge bases
 24878  // whose display name contains "articles". * 'display_name:"Best Articles"'
 24879  // matches knowledge bases whose display name contains "Best Articles". *
 24880  // 'language_code=en-gb AND display_name=articles' matches all knowledge bases
 24881  // whose display name contains "articles" and whose language code is "en-gb".
 24882  // Note: An empty filter string (i.e. "") is a no-op and will result in no
 24883  // filtering. For more information about filtering, see API Filtering
 24884  // (https://aip.dev/160).
 24885  func (c *ProjectsAgentKnowledgeBasesListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesListCall {
 24886  	c.urlParams_.Set("filter", filter)
 24887  	return c
 24888  }
 24889  
 24890  // PageSize sets the optional parameter "pageSize": The maximum number of items
 24891  // to return in a single page. By default 10 and at most 100.
 24892  func (c *ProjectsAgentKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesListCall {
 24893  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24894  	return c
 24895  }
 24896  
 24897  // PageToken sets the optional parameter "pageToken": The next_page_token value
 24898  // returned from a previous list request.
 24899  func (c *ProjectsAgentKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesListCall {
 24900  	c.urlParams_.Set("pageToken", pageToken)
 24901  	return c
 24902  }
 24903  
 24904  // Fields allows partial responses to be retrieved. See
 24905  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24906  // details.
 24907  func (c *ProjectsAgentKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesListCall {
 24908  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24909  	return c
 24910  }
 24911  
 24912  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24913  // object's ETag matches the given value. This is useful for getting updates
 24914  // only after the object has changed since the last request.
 24915  func (c *ProjectsAgentKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesListCall {
 24916  	c.ifNoneMatch_ = entityTag
 24917  	return c
 24918  }
 24919  
 24920  // Context sets the context to be used in this call's Do method.
 24921  func (c *ProjectsAgentKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesListCall {
 24922  	c.ctx_ = ctx
 24923  	return c
 24924  }
 24925  
 24926  // Header returns a http.Header that can be modified by the caller to add
 24927  // headers to the request.
 24928  func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header {
 24929  	if c.header_ == nil {
 24930  		c.header_ = make(http.Header)
 24931  	}
 24932  	return c.header_
 24933  }
 24934  
 24935  func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
 24936  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24937  	if c.ifNoneMatch_ != "" {
 24938  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24939  	}
 24940  	var body io.Reader = nil
 24941  	c.urlParams_.Set("alt", alt)
 24942  	c.urlParams_.Set("prettyPrint", "false")
 24943  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
 24944  	urls += "?" + c.urlParams_.Encode()
 24945  	req, err := http.NewRequest("GET", urls, body)
 24946  	if err != nil {
 24947  		return nil, err
 24948  	}
 24949  	req.Header = reqHeaders
 24950  	googleapi.Expand(req.URL, map[string]string{
 24951  		"parent": c.parent,
 24952  	})
 24953  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24954  }
 24955  
 24956  // Do executes the "dialogflow.projects.agent.knowledgeBases.list" call.
 24957  // Any non-2xx status code is an error. Response headers are in either
 24958  // *GoogleCloudDialogflowV2ListKnowledgeBasesResponse.ServerResponse.Header or
 24959  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24960  // googleapi.IsNotModified to check whether the returned error was because
 24961  // http.StatusNotModified was returned.
 24962  func (c *ProjectsAgentKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListKnowledgeBasesResponse, error) {
 24963  	gensupport.SetOptions(c.urlParams_, opts...)
 24964  	res, err := c.doRequest("json")
 24965  	if res != nil && res.StatusCode == http.StatusNotModified {
 24966  		if res.Body != nil {
 24967  			res.Body.Close()
 24968  		}
 24969  		return nil, gensupport.WrapError(&googleapi.Error{
 24970  			Code:   res.StatusCode,
 24971  			Header: res.Header,
 24972  		})
 24973  	}
 24974  	if err != nil {
 24975  		return nil, err
 24976  	}
 24977  	defer googleapi.CloseBody(res)
 24978  	if err := googleapi.CheckResponse(res); err != nil {
 24979  		return nil, gensupport.WrapError(err)
 24980  	}
 24981  	ret := &GoogleCloudDialogflowV2ListKnowledgeBasesResponse{
 24982  		ServerResponse: googleapi.ServerResponse{
 24983  			Header:         res.Header,
 24984  			HTTPStatusCode: res.StatusCode,
 24985  		},
 24986  	}
 24987  	target := &ret
 24988  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24989  		return nil, err
 24990  	}
 24991  	return ret, nil
 24992  }
 24993  
 24994  // Pages invokes f for each page of results.
 24995  // A non-nil error returned from f will halt the iteration.
 24996  // The provided context supersedes any context provided to the Context method.
 24997  func (c *ProjectsAgentKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListKnowledgeBasesResponse) error) error {
 24998  	c.ctx_ = ctx
 24999  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25000  	for {
 25001  		x, err := c.Do()
 25002  		if err != nil {
 25003  			return err
 25004  		}
 25005  		if err := f(x); err != nil {
 25006  			return err
 25007  		}
 25008  		if x.NextPageToken == "" {
 25009  			return nil
 25010  		}
 25011  		c.PageToken(x.NextPageToken)
 25012  	}
 25013  }
 25014  
 25015  type ProjectsAgentKnowledgeBasesPatchCall struct {
 25016  	s                                    *Service
 25017  	name                                 string
 25018  	googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
 25019  	urlParams_                           gensupport.URLParams
 25020  	ctx_                                 context.Context
 25021  	header_                              http.Header
 25022  }
 25023  
 25024  // Patch: Updates the specified knowledge base.
 25025  //
 25026  //   - name: The knowledge base resource name. The name must be empty when
 25027  //     creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
 25028  func (r *ProjectsAgentKnowledgeBasesService) Patch(name string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsAgentKnowledgeBasesPatchCall {
 25029  	c := &ProjectsAgentKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25030  	c.name = name
 25031  	c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
 25032  	return c
 25033  }
 25034  
 25035  // UpdateMask sets the optional parameter "updateMask": Not specified means
 25036  // `update all`. Currently, only `display_name` can be updated, an
 25037  // InvalidArgument will be returned for attempting to update other fields.
 25038  func (c *ProjectsAgentKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesPatchCall {
 25039  	c.urlParams_.Set("updateMask", updateMask)
 25040  	return c
 25041  }
 25042  
 25043  // Fields allows partial responses to be retrieved. See
 25044  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25045  // details.
 25046  func (c *ProjectsAgentKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesPatchCall {
 25047  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25048  	return c
 25049  }
 25050  
 25051  // Context sets the context to be used in this call's Do method.
 25052  func (c *ProjectsAgentKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesPatchCall {
 25053  	c.ctx_ = ctx
 25054  	return c
 25055  }
 25056  
 25057  // Header returns a http.Header that can be modified by the caller to add
 25058  // headers to the request.
 25059  func (c *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header {
 25060  	if c.header_ == nil {
 25061  		c.header_ = make(http.Header)
 25062  	}
 25063  	return c.header_
 25064  }
 25065  
 25066  func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
 25067  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25068  	var body io.Reader = nil
 25069  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
 25070  	if err != nil {
 25071  		return nil, err
 25072  	}
 25073  	c.urlParams_.Set("alt", alt)
 25074  	c.urlParams_.Set("prettyPrint", "false")
 25075  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25076  	urls += "?" + c.urlParams_.Encode()
 25077  	req, err := http.NewRequest("PATCH", urls, body)
 25078  	if err != nil {
 25079  		return nil, err
 25080  	}
 25081  	req.Header = reqHeaders
 25082  	googleapi.Expand(req.URL, map[string]string{
 25083  		"name": c.name,
 25084  	})
 25085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25086  }
 25087  
 25088  // Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call.
 25089  // Any non-2xx status code is an error. Response headers are in either
 25090  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 25091  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25092  // googleapi.IsNotModified to check whether the returned error was because
 25093  // http.StatusNotModified was returned.
 25094  func (c *ProjectsAgentKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 25095  	gensupport.SetOptions(c.urlParams_, opts...)
 25096  	res, err := c.doRequest("json")
 25097  	if res != nil && res.StatusCode == http.StatusNotModified {
 25098  		if res.Body != nil {
 25099  			res.Body.Close()
 25100  		}
 25101  		return nil, gensupport.WrapError(&googleapi.Error{
 25102  			Code:   res.StatusCode,
 25103  			Header: res.Header,
 25104  		})
 25105  	}
 25106  	if err != nil {
 25107  		return nil, err
 25108  	}
 25109  	defer googleapi.CloseBody(res)
 25110  	if err := googleapi.CheckResponse(res); err != nil {
 25111  		return nil, gensupport.WrapError(err)
 25112  	}
 25113  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 25114  		ServerResponse: googleapi.ServerResponse{
 25115  			Header:         res.Header,
 25116  			HTTPStatusCode: res.StatusCode,
 25117  		},
 25118  	}
 25119  	target := &ret
 25120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25121  		return nil, err
 25122  	}
 25123  	return ret, nil
 25124  }
 25125  
 25126  type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {
 25127  	s                               *Service
 25128  	parent                          string
 25129  	googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
 25130  	urlParams_                      gensupport.URLParams
 25131  	ctx_                            context.Context
 25132  	header_                         http.Header
 25133  }
 25134  
 25135  // Create: Creates a new document. This method is a long-running operation
 25136  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25137  // The returned `Operation` type has the following method-specific fields: -
 25138  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 25139  //
 25140  //   - parent: The knowledge base to create a document for. Format:
 25141  //     `projects//locations//knowledgeBases/`.
 25142  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25143  	c := &ProjectsAgentKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25144  	c.parent = parent
 25145  	c.googleclouddialogflowv2document = googleclouddialogflowv2document
 25146  	return c
 25147  }
 25148  
 25149  // Fields allows partial responses to be retrieved. See
 25150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25151  // details.
 25152  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25154  	return c
 25155  }
 25156  
 25157  // Context sets the context to be used in this call's Do method.
 25158  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25159  	c.ctx_ = ctx
 25160  	return c
 25161  }
 25162  
 25163  // Header returns a http.Header that can be modified by the caller to add
 25164  // headers to the request.
 25165  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header {
 25166  	if c.header_ == nil {
 25167  		c.header_ = make(http.Header)
 25168  	}
 25169  	return c.header_
 25170  }
 25171  
 25172  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 25173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25174  	var body io.Reader = nil
 25175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
 25176  	if err != nil {
 25177  		return nil, err
 25178  	}
 25179  	c.urlParams_.Set("alt", alt)
 25180  	c.urlParams_.Set("prettyPrint", "false")
 25181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
 25182  	urls += "?" + c.urlParams_.Encode()
 25183  	req, err := http.NewRequest("POST", urls, body)
 25184  	if err != nil {
 25185  		return nil, err
 25186  	}
 25187  	req.Header = reqHeaders
 25188  	googleapi.Expand(req.URL, map[string]string{
 25189  		"parent": c.parent,
 25190  	})
 25191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25192  }
 25193  
 25194  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call.
 25195  // Any non-2xx status code is an error. Response headers are in either
 25196  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25197  // returned at all) in error.(*googleapi.Error).Header. Use
 25198  // googleapi.IsNotModified to check whether the returned error was because
 25199  // http.StatusNotModified was returned.
 25200  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25201  	gensupport.SetOptions(c.urlParams_, opts...)
 25202  	res, err := c.doRequest("json")
 25203  	if res != nil && res.StatusCode == http.StatusNotModified {
 25204  		if res.Body != nil {
 25205  			res.Body.Close()
 25206  		}
 25207  		return nil, gensupport.WrapError(&googleapi.Error{
 25208  			Code:   res.StatusCode,
 25209  			Header: res.Header,
 25210  		})
 25211  	}
 25212  	if err != nil {
 25213  		return nil, err
 25214  	}
 25215  	defer googleapi.CloseBody(res)
 25216  	if err := googleapi.CheckResponse(res); err != nil {
 25217  		return nil, gensupport.WrapError(err)
 25218  	}
 25219  	ret := &GoogleLongrunningOperation{
 25220  		ServerResponse: googleapi.ServerResponse{
 25221  			Header:         res.Header,
 25222  			HTTPStatusCode: res.StatusCode,
 25223  		},
 25224  	}
 25225  	target := &ret
 25226  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25227  		return nil, err
 25228  	}
 25229  	return ret, nil
 25230  }
 25231  
 25232  type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {
 25233  	s          *Service
 25234  	name       string
 25235  	urlParams_ gensupport.URLParams
 25236  	ctx_       context.Context
 25237  	header_    http.Header
 25238  }
 25239  
 25240  // Delete: Deletes the specified document. This method is a long-running
 25241  // operation
 25242  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25243  // The returned `Operation` type has the following method-specific fields: -
 25244  // `metadata`: KnowledgeOperationMetadata - `response`: An Empty message
 25245  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 25246  //
 25247  //   - name: The name of the document to delete. Format:
 25248  //     `projects//locations//knowledgeBases//documents/`.
 25249  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Delete(name string) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
 25250  	c := &ProjectsAgentKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25251  	c.name = name
 25252  	return c
 25253  }
 25254  
 25255  // Fields allows partial responses to be retrieved. See
 25256  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25257  // details.
 25258  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
 25259  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25260  	return c
 25261  }
 25262  
 25263  // Context sets the context to be used in this call's Do method.
 25264  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
 25265  	c.ctx_ = ctx
 25266  	return c
 25267  }
 25268  
 25269  // Header returns a http.Header that can be modified by the caller to add
 25270  // headers to the request.
 25271  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
 25272  	if c.header_ == nil {
 25273  		c.header_ = make(http.Header)
 25274  	}
 25275  	return c.header_
 25276  }
 25277  
 25278  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25279  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25280  	var body io.Reader = nil
 25281  	c.urlParams_.Set("alt", alt)
 25282  	c.urlParams_.Set("prettyPrint", "false")
 25283  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25284  	urls += "?" + c.urlParams_.Encode()
 25285  	req, err := http.NewRequest("DELETE", urls, body)
 25286  	if err != nil {
 25287  		return nil, err
 25288  	}
 25289  	req.Header = reqHeaders
 25290  	googleapi.Expand(req.URL, map[string]string{
 25291  		"name": c.name,
 25292  	})
 25293  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25294  }
 25295  
 25296  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call.
 25297  // Any non-2xx status code is an error. Response headers are in either
 25298  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25299  // returned at all) in error.(*googleapi.Error).Header. Use
 25300  // googleapi.IsNotModified to check whether the returned error was because
 25301  // http.StatusNotModified was returned.
 25302  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25303  	gensupport.SetOptions(c.urlParams_, opts...)
 25304  	res, err := c.doRequest("json")
 25305  	if res != nil && res.StatusCode == http.StatusNotModified {
 25306  		if res.Body != nil {
 25307  			res.Body.Close()
 25308  		}
 25309  		return nil, gensupport.WrapError(&googleapi.Error{
 25310  			Code:   res.StatusCode,
 25311  			Header: res.Header,
 25312  		})
 25313  	}
 25314  	if err != nil {
 25315  		return nil, err
 25316  	}
 25317  	defer googleapi.CloseBody(res)
 25318  	if err := googleapi.CheckResponse(res); err != nil {
 25319  		return nil, gensupport.WrapError(err)
 25320  	}
 25321  	ret := &GoogleLongrunningOperation{
 25322  		ServerResponse: googleapi.ServerResponse{
 25323  			Header:         res.Header,
 25324  			HTTPStatusCode: res.StatusCode,
 25325  		},
 25326  	}
 25327  	target := &ret
 25328  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25329  		return nil, err
 25330  	}
 25331  	return ret, nil
 25332  }
 25333  
 25334  type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {
 25335  	s            *Service
 25336  	name         string
 25337  	urlParams_   gensupport.URLParams
 25338  	ifNoneMatch_ string
 25339  	ctx_         context.Context
 25340  	header_      http.Header
 25341  }
 25342  
 25343  // Get: Retrieves the specified document.
 25344  //
 25345  //   - name: The name of the document to retrieve. Format
 25346  //     `projects//locations//knowledgeBases//documents/`.
 25347  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Get(name string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25348  	c := &ProjectsAgentKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25349  	c.name = name
 25350  	return c
 25351  }
 25352  
 25353  // Fields allows partial responses to be retrieved. See
 25354  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25355  // details.
 25356  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25357  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25358  	return c
 25359  }
 25360  
 25361  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25362  // object's ETag matches the given value. This is useful for getting updates
 25363  // only after the object has changed since the last request.
 25364  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25365  	c.ifNoneMatch_ = entityTag
 25366  	return c
 25367  }
 25368  
 25369  // Context sets the context to be used in this call's Do method.
 25370  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25371  	c.ctx_ = ctx
 25372  	return c
 25373  }
 25374  
 25375  // Header returns a http.Header that can be modified by the caller to add
 25376  // headers to the request.
 25377  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header {
 25378  	if c.header_ == nil {
 25379  		c.header_ = make(http.Header)
 25380  	}
 25381  	return c.header_
 25382  }
 25383  
 25384  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 25385  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25386  	if c.ifNoneMatch_ != "" {
 25387  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25388  	}
 25389  	var body io.Reader = nil
 25390  	c.urlParams_.Set("alt", alt)
 25391  	c.urlParams_.Set("prettyPrint", "false")
 25392  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25393  	urls += "?" + c.urlParams_.Encode()
 25394  	req, err := http.NewRequest("GET", urls, body)
 25395  	if err != nil {
 25396  		return nil, err
 25397  	}
 25398  	req.Header = reqHeaders
 25399  	googleapi.Expand(req.URL, map[string]string{
 25400  		"name": c.name,
 25401  	})
 25402  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25403  }
 25404  
 25405  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call.
 25406  // Any non-2xx status code is an error. Response headers are in either
 25407  // *GoogleCloudDialogflowV2Document.ServerResponse.Header or (if a response was
 25408  // returned at all) in error.(*googleapi.Error).Header. Use
 25409  // googleapi.IsNotModified to check whether the returned error was because
 25410  // http.StatusNotModified was returned.
 25411  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Document, error) {
 25412  	gensupport.SetOptions(c.urlParams_, opts...)
 25413  	res, err := c.doRequest("json")
 25414  	if res != nil && res.StatusCode == http.StatusNotModified {
 25415  		if res.Body != nil {
 25416  			res.Body.Close()
 25417  		}
 25418  		return nil, gensupport.WrapError(&googleapi.Error{
 25419  			Code:   res.StatusCode,
 25420  			Header: res.Header,
 25421  		})
 25422  	}
 25423  	if err != nil {
 25424  		return nil, err
 25425  	}
 25426  	defer googleapi.CloseBody(res)
 25427  	if err := googleapi.CheckResponse(res); err != nil {
 25428  		return nil, gensupport.WrapError(err)
 25429  	}
 25430  	ret := &GoogleCloudDialogflowV2Document{
 25431  		ServerResponse: googleapi.ServerResponse{
 25432  			Header:         res.Header,
 25433  			HTTPStatusCode: res.StatusCode,
 25434  		},
 25435  	}
 25436  	target := &ret
 25437  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25438  		return nil, err
 25439  	}
 25440  	return ret, nil
 25441  }
 25442  
 25443  type ProjectsAgentKnowledgeBasesDocumentsListCall struct {
 25444  	s            *Service
 25445  	parent       string
 25446  	urlParams_   gensupport.URLParams
 25447  	ifNoneMatch_ string
 25448  	ctx_         context.Context
 25449  	header_      http.Header
 25450  }
 25451  
 25452  // List: Returns the list of all documents of the knowledge base.
 25453  //
 25454  //   - parent: The knowledge base to list all documents for. Format:
 25455  //     `projects//locations//knowledgeBases/`.
 25456  func (r *ProjectsAgentKnowledgeBasesDocumentsService) List(parent string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25457  	c := &ProjectsAgentKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25458  	c.parent = parent
 25459  	return c
 25460  }
 25461  
 25462  // Filter sets the optional parameter "filter": The filter expression used to
 25463  // filter documents returned by the list method. The expression has the
 25464  // following syntax: [AND ] ... The following fields and operators are
 25465  // supported: * knowledge_types with has(:) operator * display_name with has(:)
 25466  // operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"
 25467  // matches documents with FAQ knowledge type. * "display_name:customer" matches
 25468  // documents whose display name contains "customer". * "state=ACTIVE" matches
 25469  // documents with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"
 25470  // matches all active FAQ documents. For more information about filtering, see
 25471  // API Filtering (https://aip.dev/160).
 25472  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25473  	c.urlParams_.Set("filter", filter)
 25474  	return c
 25475  }
 25476  
 25477  // PageSize sets the optional parameter "pageSize": The maximum number of items
 25478  // to return in a single page. By default 10 and at most 100.
 25479  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25480  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25481  	return c
 25482  }
 25483  
 25484  // PageToken sets the optional parameter "pageToken": The next_page_token value
 25485  // returned from a previous list request.
 25486  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25487  	c.urlParams_.Set("pageToken", pageToken)
 25488  	return c
 25489  }
 25490  
 25491  // Fields allows partial responses to be retrieved. See
 25492  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25493  // details.
 25494  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25495  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25496  	return c
 25497  }
 25498  
 25499  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25500  // object's ETag matches the given value. This is useful for getting updates
 25501  // only after the object has changed since the last request.
 25502  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25503  	c.ifNoneMatch_ = entityTag
 25504  	return c
 25505  }
 25506  
 25507  // Context sets the context to be used in this call's Do method.
 25508  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25509  	c.ctx_ = ctx
 25510  	return c
 25511  }
 25512  
 25513  // Header returns a http.Header that can be modified by the caller to add
 25514  // headers to the request.
 25515  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header {
 25516  	if c.header_ == nil {
 25517  		c.header_ = make(http.Header)
 25518  	}
 25519  	return c.header_
 25520  }
 25521  
 25522  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 25523  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25524  	if c.ifNoneMatch_ != "" {
 25525  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25526  	}
 25527  	var body io.Reader = nil
 25528  	c.urlParams_.Set("alt", alt)
 25529  	c.urlParams_.Set("prettyPrint", "false")
 25530  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
 25531  	urls += "?" + c.urlParams_.Encode()
 25532  	req, err := http.NewRequest("GET", urls, body)
 25533  	if err != nil {
 25534  		return nil, err
 25535  	}
 25536  	req.Header = reqHeaders
 25537  	googleapi.Expand(req.URL, map[string]string{
 25538  		"parent": c.parent,
 25539  	})
 25540  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25541  }
 25542  
 25543  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call.
 25544  // Any non-2xx status code is an error. Response headers are in either
 25545  // *GoogleCloudDialogflowV2ListDocumentsResponse.ServerResponse.Header or (if a
 25546  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25547  // googleapi.IsNotModified to check whether the returned error was because
 25548  // http.StatusNotModified was returned.
 25549  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListDocumentsResponse, error) {
 25550  	gensupport.SetOptions(c.urlParams_, opts...)
 25551  	res, err := c.doRequest("json")
 25552  	if res != nil && res.StatusCode == http.StatusNotModified {
 25553  		if res.Body != nil {
 25554  			res.Body.Close()
 25555  		}
 25556  		return nil, gensupport.WrapError(&googleapi.Error{
 25557  			Code:   res.StatusCode,
 25558  			Header: res.Header,
 25559  		})
 25560  	}
 25561  	if err != nil {
 25562  		return nil, err
 25563  	}
 25564  	defer googleapi.CloseBody(res)
 25565  	if err := googleapi.CheckResponse(res); err != nil {
 25566  		return nil, gensupport.WrapError(err)
 25567  	}
 25568  	ret := &GoogleCloudDialogflowV2ListDocumentsResponse{
 25569  		ServerResponse: googleapi.ServerResponse{
 25570  			Header:         res.Header,
 25571  			HTTPStatusCode: res.StatusCode,
 25572  		},
 25573  	}
 25574  	target := &ret
 25575  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25576  		return nil, err
 25577  	}
 25578  	return ret, nil
 25579  }
 25580  
 25581  // Pages invokes f for each page of results.
 25582  // A non-nil error returned from f will halt the iteration.
 25583  // The provided context supersedes any context provided to the Context method.
 25584  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListDocumentsResponse) error) error {
 25585  	c.ctx_ = ctx
 25586  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25587  	for {
 25588  		x, err := c.Do()
 25589  		if err != nil {
 25590  			return err
 25591  		}
 25592  		if err := f(x); err != nil {
 25593  			return err
 25594  		}
 25595  		if x.NextPageToken == "" {
 25596  			return nil
 25597  		}
 25598  		c.PageToken(x.NextPageToken)
 25599  	}
 25600  }
 25601  
 25602  type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {
 25603  	s                               *Service
 25604  	name                            string
 25605  	googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
 25606  	urlParams_                      gensupport.URLParams
 25607  	ctx_                            context.Context
 25608  	header_                         http.Header
 25609  }
 25610  
 25611  // Patch: Updates the specified document. This method is a long-running
 25612  // operation
 25613  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25614  // The returned `Operation` type has the following method-specific fields: -
 25615  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 25616  //
 25617  //   - name: Optional. The document resource name. The name must be empty when
 25618  //     creating a document. Format:
 25619  //     `projects//locations//knowledgeBases//documents/`.
 25620  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25621  	c := &ProjectsAgentKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25622  	c.name = name
 25623  	c.googleclouddialogflowv2document = googleclouddialogflowv2document
 25624  	return c
 25625  }
 25626  
 25627  // UpdateMask sets the optional parameter "updateMask": Not specified means
 25628  // `update all`. Currently, only `display_name` can be updated, an
 25629  // InvalidArgument will be returned for attempting to update other fields.
 25630  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25631  	c.urlParams_.Set("updateMask", updateMask)
 25632  	return c
 25633  }
 25634  
 25635  // Fields allows partial responses to be retrieved. See
 25636  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25637  // details.
 25638  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25639  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25640  	return c
 25641  }
 25642  
 25643  // Context sets the context to be used in this call's Do method.
 25644  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25645  	c.ctx_ = ctx
 25646  	return c
 25647  }
 25648  
 25649  // Header returns a http.Header that can be modified by the caller to add
 25650  // headers to the request.
 25651  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header {
 25652  	if c.header_ == nil {
 25653  		c.header_ = make(http.Header)
 25654  	}
 25655  	return c.header_
 25656  }
 25657  
 25658  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 25659  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25660  	var body io.Reader = nil
 25661  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
 25662  	if err != nil {
 25663  		return nil, err
 25664  	}
 25665  	c.urlParams_.Set("alt", alt)
 25666  	c.urlParams_.Set("prettyPrint", "false")
 25667  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25668  	urls += "?" + c.urlParams_.Encode()
 25669  	req, err := http.NewRequest("PATCH", urls, body)
 25670  	if err != nil {
 25671  		return nil, err
 25672  	}
 25673  	req.Header = reqHeaders
 25674  	googleapi.Expand(req.URL, map[string]string{
 25675  		"name": c.name,
 25676  	})
 25677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25678  }
 25679  
 25680  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call.
 25681  // Any non-2xx status code is an error. Response headers are in either
 25682  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25683  // returned at all) in error.(*googleapi.Error).Header. Use
 25684  // googleapi.IsNotModified to check whether the returned error was because
 25685  // http.StatusNotModified was returned.
 25686  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25687  	gensupport.SetOptions(c.urlParams_, opts...)
 25688  	res, err := c.doRequest("json")
 25689  	if res != nil && res.StatusCode == http.StatusNotModified {
 25690  		if res.Body != nil {
 25691  			res.Body.Close()
 25692  		}
 25693  		return nil, gensupport.WrapError(&googleapi.Error{
 25694  			Code:   res.StatusCode,
 25695  			Header: res.Header,
 25696  		})
 25697  	}
 25698  	if err != nil {
 25699  		return nil, err
 25700  	}
 25701  	defer googleapi.CloseBody(res)
 25702  	if err := googleapi.CheckResponse(res); err != nil {
 25703  		return nil, gensupport.WrapError(err)
 25704  	}
 25705  	ret := &GoogleLongrunningOperation{
 25706  		ServerResponse: googleapi.ServerResponse{
 25707  			Header:         res.Header,
 25708  			HTTPStatusCode: res.StatusCode,
 25709  		},
 25710  	}
 25711  	target := &ret
 25712  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25713  		return nil, err
 25714  	}
 25715  	return ret, nil
 25716  }
 25717  
 25718  type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {
 25719  	s                                            *Service
 25720  	name                                         string
 25721  	googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest
 25722  	urlParams_                                   gensupport.URLParams
 25723  	ctx_                                         context.Context
 25724  	header_                                      http.Header
 25725  }
 25726  
 25727  // Reload: Reloads the specified document from its specified source,
 25728  // content_uri or content. The previously loaded content of the document will
 25729  // be deleted. Note: Even when the content of the document has not changed,
 25730  // there still may be side effects because of internal implementation changes.
 25731  // This method is a long-running operation
 25732  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25733  // The returned `Operation` type has the following method-specific fields: -
 25734  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 25735  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 25736  // `projects.knowledgeBases.documents`.
 25737  //
 25738  //   - name: The name of the document to reload. Format:
 25739  //     `projects//locations//knowledgeBases//documents/`.
 25740  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
 25741  	c := &ProjectsAgentKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25742  	c.name = name
 25743  	c.googleclouddialogflowv2reloaddocumentrequest = googleclouddialogflowv2reloaddocumentrequest
 25744  	return c
 25745  }
 25746  
 25747  // Fields allows partial responses to be retrieved. See
 25748  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25749  // details.
 25750  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
 25751  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25752  	return c
 25753  }
 25754  
 25755  // Context sets the context to be used in this call's Do method.
 25756  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
 25757  	c.ctx_ = ctx
 25758  	return c
 25759  }
 25760  
 25761  // Header returns a http.Header that can be modified by the caller to add
 25762  // headers to the request.
 25763  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header {
 25764  	if c.header_ == nil {
 25765  		c.header_ = make(http.Header)
 25766  	}
 25767  	return c.header_
 25768  }
 25769  
 25770  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
 25771  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25772  	var body io.Reader = nil
 25773  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2reloaddocumentrequest)
 25774  	if err != nil {
 25775  		return nil, err
 25776  	}
 25777  	c.urlParams_.Set("alt", alt)
 25778  	c.urlParams_.Set("prettyPrint", "false")
 25779  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:reload")
 25780  	urls += "?" + c.urlParams_.Encode()
 25781  	req, err := http.NewRequest("POST", urls, body)
 25782  	if err != nil {
 25783  		return nil, err
 25784  	}
 25785  	req.Header = reqHeaders
 25786  	googleapi.Expand(req.URL, map[string]string{
 25787  		"name": c.name,
 25788  	})
 25789  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25790  }
 25791  
 25792  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call.
 25793  // Any non-2xx status code is an error. Response headers are in either
 25794  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25795  // returned at all) in error.(*googleapi.Error).Header. Use
 25796  // googleapi.IsNotModified to check whether the returned error was because
 25797  // http.StatusNotModified was returned.
 25798  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25799  	gensupport.SetOptions(c.urlParams_, opts...)
 25800  	res, err := c.doRequest("json")
 25801  	if res != nil && res.StatusCode == http.StatusNotModified {
 25802  		if res.Body != nil {
 25803  			res.Body.Close()
 25804  		}
 25805  		return nil, gensupport.WrapError(&googleapi.Error{
 25806  			Code:   res.StatusCode,
 25807  			Header: res.Header,
 25808  		})
 25809  	}
 25810  	if err != nil {
 25811  		return nil, err
 25812  	}
 25813  	defer googleapi.CloseBody(res)
 25814  	if err := googleapi.CheckResponse(res); err != nil {
 25815  		return nil, gensupport.WrapError(err)
 25816  	}
 25817  	ret := &GoogleLongrunningOperation{
 25818  		ServerResponse: googleapi.ServerResponse{
 25819  			Header:         res.Header,
 25820  			HTTPStatusCode: res.StatusCode,
 25821  		},
 25822  	}
 25823  	target := &ret
 25824  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25825  		return nil, err
 25826  	}
 25827  	return ret, nil
 25828  }
 25829  
 25830  type ProjectsAgentSessionsDeleteContextsCall struct {
 25831  	s          *Service
 25832  	parent     string
 25833  	urlParams_ gensupport.URLParams
 25834  	ctx_       context.Context
 25835  	header_    http.Header
 25836  }
 25837  
 25838  // DeleteContexts: Deletes all active contexts in the specified session.
 25839  //
 25840  //   - parent: The name of the session to delete all contexts from. Format:
 25841  //     `projects//agent/sessions/` or
 25842  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 25843  //     not specified we assume default 'draft' environment. If `User ID` is not
 25844  //     specified, we assume default '-' user.
 25845  func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall {
 25846  	c := &ProjectsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25847  	c.parent = parent
 25848  	return c
 25849  }
 25850  
 25851  // Fields allows partial responses to be retrieved. See
 25852  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25853  // details.
 25854  func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall {
 25855  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25856  	return c
 25857  }
 25858  
 25859  // Context sets the context to be used in this call's Do method.
 25860  func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall {
 25861  	c.ctx_ = ctx
 25862  	return c
 25863  }
 25864  
 25865  // Header returns a http.Header that can be modified by the caller to add
 25866  // headers to the request.
 25867  func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header {
 25868  	if c.header_ == nil {
 25869  		c.header_ = make(http.Header)
 25870  	}
 25871  	return c.header_
 25872  }
 25873  
 25874  func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 25875  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25876  	var body io.Reader = nil
 25877  	c.urlParams_.Set("alt", alt)
 25878  	c.urlParams_.Set("prettyPrint", "false")
 25879  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 25880  	urls += "?" + c.urlParams_.Encode()
 25881  	req, err := http.NewRequest("DELETE", urls, body)
 25882  	if err != nil {
 25883  		return nil, err
 25884  	}
 25885  	req.Header = reqHeaders
 25886  	googleapi.Expand(req.URL, map[string]string{
 25887  		"parent": c.parent,
 25888  	})
 25889  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25890  }
 25891  
 25892  // Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call.
 25893  // Any non-2xx status code is an error. Response headers are in either
 25894  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 25895  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25896  // check whether the returned error was because http.StatusNotModified was
 25897  // returned.
 25898  func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 25899  	gensupport.SetOptions(c.urlParams_, opts...)
 25900  	res, err := c.doRequest("json")
 25901  	if res != nil && res.StatusCode == http.StatusNotModified {
 25902  		if res.Body != nil {
 25903  			res.Body.Close()
 25904  		}
 25905  		return nil, gensupport.WrapError(&googleapi.Error{
 25906  			Code:   res.StatusCode,
 25907  			Header: res.Header,
 25908  		})
 25909  	}
 25910  	if err != nil {
 25911  		return nil, err
 25912  	}
 25913  	defer googleapi.CloseBody(res)
 25914  	if err := googleapi.CheckResponse(res); err != nil {
 25915  		return nil, gensupport.WrapError(err)
 25916  	}
 25917  	ret := &GoogleProtobufEmpty{
 25918  		ServerResponse: googleapi.ServerResponse{
 25919  			Header:         res.Header,
 25920  			HTTPStatusCode: res.StatusCode,
 25921  		},
 25922  	}
 25923  	target := &ret
 25924  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25925  		return nil, err
 25926  	}
 25927  	return ret, nil
 25928  }
 25929  
 25930  type ProjectsAgentSessionsDetectIntentCall struct {
 25931  	s                                          *Service
 25932  	sessionid                                  string
 25933  	googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
 25934  	urlParams_                                 gensupport.URLParams
 25935  	ctx_                                       context.Context
 25936  	header_                                    http.Header
 25937  }
 25938  
 25939  // DetectIntent: Processes a natural language query and returns structured,
 25940  // actionable data as a result. This method is not idempotent, because it may
 25941  // cause contexts and session entity types to be updated, which in turn might
 25942  // affect results of future queries. If you might use Agent Assist
 25943  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 25944  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 25945  // `AnalyzeContent` has additional functionality for Agent Assist and other
 25946  // CCAI products. Note: Always use agent versions for production traffic. See
 25947  // Versions and environments
 25948  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 25949  //
 25950  //   - session: The name of the session this query is sent to. Format:
 25951  //     `projects//agent/sessions/`, or
 25952  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 25953  //     not specified, we assume default 'draft' environment (`Environment ID`
 25954  //     might be referred to as environment name at some places). If `User ID` is
 25955  //     not specified, we are using "-". It's up to the API caller to choose an
 25956  //     appropriate `Session ID` and `User Id`. They can be a random number or
 25957  //     some type of user and session identifiers (preferably hashed). The length
 25958  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 25959  //     information, see the API interactions guide
 25960  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 25961  //     agent versions for production traffic. See Versions and environments
 25962  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 25963  func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall {
 25964  	c := &ProjectsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25965  	c.sessionid = sessionid
 25966  	c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
 25967  	return c
 25968  }
 25969  
 25970  // Fields allows partial responses to be retrieved. See
 25971  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25972  // details.
 25973  func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall {
 25974  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25975  	return c
 25976  }
 25977  
 25978  // Context sets the context to be used in this call's Do method.
 25979  func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall {
 25980  	c.ctx_ = ctx
 25981  	return c
 25982  }
 25983  
 25984  // Header returns a http.Header that can be modified by the caller to add
 25985  // headers to the request.
 25986  func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header {
 25987  	if c.header_ == nil {
 25988  		c.header_ = make(http.Header)
 25989  	}
 25990  	return c.header_
 25991  }
 25992  
 25993  func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 25994  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25995  	var body io.Reader = nil
 25996  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
 25997  	if err != nil {
 25998  		return nil, err
 25999  	}
 26000  	c.urlParams_.Set("alt", alt)
 26001  	c.urlParams_.Set("prettyPrint", "false")
 26002  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
 26003  	urls += "?" + c.urlParams_.Encode()
 26004  	req, err := http.NewRequest("POST", urls, body)
 26005  	if err != nil {
 26006  		return nil, err
 26007  	}
 26008  	req.Header = reqHeaders
 26009  	googleapi.Expand(req.URL, map[string]string{
 26010  		"session": c.sessionid,
 26011  	})
 26012  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26013  }
 26014  
 26015  // Do executes the "dialogflow.projects.agent.sessions.detectIntent" call.
 26016  // Any non-2xx status code is an error. Response headers are in either
 26017  // *GoogleCloudDialogflowV2DetectIntentResponse.ServerResponse.Header or (if a
 26018  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26019  // googleapi.IsNotModified to check whether the returned error was because
 26020  // http.StatusNotModified was returned.
 26021  func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
 26022  	gensupport.SetOptions(c.urlParams_, opts...)
 26023  	res, err := c.doRequest("json")
 26024  	if res != nil && res.StatusCode == http.StatusNotModified {
 26025  		if res.Body != nil {
 26026  			res.Body.Close()
 26027  		}
 26028  		return nil, gensupport.WrapError(&googleapi.Error{
 26029  			Code:   res.StatusCode,
 26030  			Header: res.Header,
 26031  		})
 26032  	}
 26033  	if err != nil {
 26034  		return nil, err
 26035  	}
 26036  	defer googleapi.CloseBody(res)
 26037  	if err := googleapi.CheckResponse(res); err != nil {
 26038  		return nil, gensupport.WrapError(err)
 26039  	}
 26040  	ret := &GoogleCloudDialogflowV2DetectIntentResponse{
 26041  		ServerResponse: googleapi.ServerResponse{
 26042  			Header:         res.Header,
 26043  			HTTPStatusCode: res.StatusCode,
 26044  		},
 26045  	}
 26046  	target := &ret
 26047  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26048  		return nil, err
 26049  	}
 26050  	return ret, nil
 26051  }
 26052  
 26053  type ProjectsAgentSessionsContextsCreateCall struct {
 26054  	s                              *Service
 26055  	parent                         string
 26056  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 26057  	urlParams_                     gensupport.URLParams
 26058  	ctx_                           context.Context
 26059  	header_                        http.Header
 26060  }
 26061  
 26062  // Create: Creates a context. If the specified context already exists,
 26063  // overrides the context.
 26064  //
 26065  //   - parent: The session to create a context for. Format:
 26066  //     `projects//agent/sessions/` or
 26067  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 26068  //     not specified, we assume default 'draft' environment. If `User ID` is not
 26069  //     specified, we assume default '-' user.
 26070  func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsCreateCall {
 26071  	c := &ProjectsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26072  	c.parent = parent
 26073  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 26074  	return c
 26075  }
 26076  
 26077  // Fields allows partial responses to be retrieved. See
 26078  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26079  // details.
 26080  func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall {
 26081  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26082  	return c
 26083  }
 26084  
 26085  // Context sets the context to be used in this call's Do method.
 26086  func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall {
 26087  	c.ctx_ = ctx
 26088  	return c
 26089  }
 26090  
 26091  // Header returns a http.Header that can be modified by the caller to add
 26092  // headers to the request.
 26093  func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header {
 26094  	if c.header_ == nil {
 26095  		c.header_ = make(http.Header)
 26096  	}
 26097  	return c.header_
 26098  }
 26099  
 26100  func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 26101  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26102  	var body io.Reader = nil
 26103  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 26104  	if err != nil {
 26105  		return nil, err
 26106  	}
 26107  	c.urlParams_.Set("alt", alt)
 26108  	c.urlParams_.Set("prettyPrint", "false")
 26109  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 26110  	urls += "?" + c.urlParams_.Encode()
 26111  	req, err := http.NewRequest("POST", urls, body)
 26112  	if err != nil {
 26113  		return nil, err
 26114  	}
 26115  	req.Header = reqHeaders
 26116  	googleapi.Expand(req.URL, map[string]string{
 26117  		"parent": c.parent,
 26118  	})
 26119  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26120  }
 26121  
 26122  // Do executes the "dialogflow.projects.agent.sessions.contexts.create" call.
 26123  // Any non-2xx status code is an error. Response headers are in either
 26124  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 26125  // returned at all) in error.(*googleapi.Error).Header. Use
 26126  // googleapi.IsNotModified to check whether the returned error was because
 26127  // http.StatusNotModified was returned.
 26128  func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 26129  	gensupport.SetOptions(c.urlParams_, opts...)
 26130  	res, err := c.doRequest("json")
 26131  	if res != nil && res.StatusCode == http.StatusNotModified {
 26132  		if res.Body != nil {
 26133  			res.Body.Close()
 26134  		}
 26135  		return nil, gensupport.WrapError(&googleapi.Error{
 26136  			Code:   res.StatusCode,
 26137  			Header: res.Header,
 26138  		})
 26139  	}
 26140  	if err != nil {
 26141  		return nil, err
 26142  	}
 26143  	defer googleapi.CloseBody(res)
 26144  	if err := googleapi.CheckResponse(res); err != nil {
 26145  		return nil, gensupport.WrapError(err)
 26146  	}
 26147  	ret := &GoogleCloudDialogflowV2Context{
 26148  		ServerResponse: googleapi.ServerResponse{
 26149  			Header:         res.Header,
 26150  			HTTPStatusCode: res.StatusCode,
 26151  		},
 26152  	}
 26153  	target := &ret
 26154  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26155  		return nil, err
 26156  	}
 26157  	return ret, nil
 26158  }
 26159  
 26160  type ProjectsAgentSessionsContextsDeleteCall struct {
 26161  	s          *Service
 26162  	name       string
 26163  	urlParams_ gensupport.URLParams
 26164  	ctx_       context.Context
 26165  	header_    http.Header
 26166  }
 26167  
 26168  // Delete: Deletes the specified context.
 26169  //
 26170  //   - name: The name of the context to delete. Format:
 26171  //     `projects//agent/sessions//contexts/` or
 26172  //     `projects//agent/environments//users//sessions//contexts/`. If
 26173  //     `Environment ID` is not specified, we assume default 'draft' environment.
 26174  //     If `User ID` is not specified, we assume default '-' user.
 26175  func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall {
 26176  	c := &ProjectsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26177  	c.name = name
 26178  	return c
 26179  }
 26180  
 26181  // Fields allows partial responses to be retrieved. See
 26182  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26183  // details.
 26184  func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall {
 26185  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26186  	return c
 26187  }
 26188  
 26189  // Context sets the context to be used in this call's Do method.
 26190  func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall {
 26191  	c.ctx_ = ctx
 26192  	return c
 26193  }
 26194  
 26195  // Header returns a http.Header that can be modified by the caller to add
 26196  // headers to the request.
 26197  func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header {
 26198  	if c.header_ == nil {
 26199  		c.header_ = make(http.Header)
 26200  	}
 26201  	return c.header_
 26202  }
 26203  
 26204  func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 26205  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26206  	var body io.Reader = nil
 26207  	c.urlParams_.Set("alt", alt)
 26208  	c.urlParams_.Set("prettyPrint", "false")
 26209  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 26210  	urls += "?" + c.urlParams_.Encode()
 26211  	req, err := http.NewRequest("DELETE", urls, body)
 26212  	if err != nil {
 26213  		return nil, err
 26214  	}
 26215  	req.Header = reqHeaders
 26216  	googleapi.Expand(req.URL, map[string]string{
 26217  		"name": c.name,
 26218  	})
 26219  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26220  }
 26221  
 26222  // Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call.
 26223  // Any non-2xx status code is an error. Response headers are in either
 26224  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26225  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26226  // check whether the returned error was because http.StatusNotModified was
 26227  // returned.
 26228  func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26229  	gensupport.SetOptions(c.urlParams_, opts...)
 26230  	res, err := c.doRequest("json")
 26231  	if res != nil && res.StatusCode == http.StatusNotModified {
 26232  		if res.Body != nil {
 26233  			res.Body.Close()
 26234  		}
 26235  		return nil, gensupport.WrapError(&googleapi.Error{
 26236  			Code:   res.StatusCode,
 26237  			Header: res.Header,
 26238  		})
 26239  	}
 26240  	if err != nil {
 26241  		return nil, err
 26242  	}
 26243  	defer googleapi.CloseBody(res)
 26244  	if err := googleapi.CheckResponse(res); err != nil {
 26245  		return nil, gensupport.WrapError(err)
 26246  	}
 26247  	ret := &GoogleProtobufEmpty{
 26248  		ServerResponse: googleapi.ServerResponse{
 26249  			Header:         res.Header,
 26250  			HTTPStatusCode: res.StatusCode,
 26251  		},
 26252  	}
 26253  	target := &ret
 26254  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26255  		return nil, err
 26256  	}
 26257  	return ret, nil
 26258  }
 26259  
 26260  type ProjectsAgentSessionsContextsGetCall struct {
 26261  	s            *Service
 26262  	name         string
 26263  	urlParams_   gensupport.URLParams
 26264  	ifNoneMatch_ string
 26265  	ctx_         context.Context
 26266  	header_      http.Header
 26267  }
 26268  
 26269  // Get: Retrieves the specified context.
 26270  //
 26271  //   - name: The name of the context. Format:
 26272  //     `projects//agent/sessions//contexts/` or
 26273  //     `projects//agent/environments//users//sessions//contexts/`. If
 26274  //     `Environment ID` is not specified, we assume default 'draft' environment.
 26275  //     If `User ID` is not specified, we assume default '-' user.
 26276  func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall {
 26277  	c := &ProjectsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26278  	c.name = name
 26279  	return c
 26280  }
 26281  
 26282  // Fields allows partial responses to be retrieved. See
 26283  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26284  // details.
 26285  func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall {
 26286  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26287  	return c
 26288  }
 26289  
 26290  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26291  // object's ETag matches the given value. This is useful for getting updates
 26292  // only after the object has changed since the last request.
 26293  func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall {
 26294  	c.ifNoneMatch_ = entityTag
 26295  	return c
 26296  }
 26297  
 26298  // Context sets the context to be used in this call's Do method.
 26299  func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall {
 26300  	c.ctx_ = ctx
 26301  	return c
 26302  }
 26303  
 26304  // Header returns a http.Header that can be modified by the caller to add
 26305  // headers to the request.
 26306  func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header {
 26307  	if c.header_ == nil {
 26308  		c.header_ = make(http.Header)
 26309  	}
 26310  	return c.header_
 26311  }
 26312  
 26313  func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 26314  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26315  	if c.ifNoneMatch_ != "" {
 26316  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26317  	}
 26318  	var body io.Reader = nil
 26319  	c.urlParams_.Set("alt", alt)
 26320  	c.urlParams_.Set("prettyPrint", "false")
 26321  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 26322  	urls += "?" + c.urlParams_.Encode()
 26323  	req, err := http.NewRequest("GET", urls, body)
 26324  	if err != nil {
 26325  		return nil, err
 26326  	}
 26327  	req.Header = reqHeaders
 26328  	googleapi.Expand(req.URL, map[string]string{
 26329  		"name": c.name,
 26330  	})
 26331  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26332  }
 26333  
 26334  // Do executes the "dialogflow.projects.agent.sessions.contexts.get" call.
 26335  // Any non-2xx status code is an error. Response headers are in either
 26336  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 26337  // returned at all) in error.(*googleapi.Error).Header. Use
 26338  // googleapi.IsNotModified to check whether the returned error was because
 26339  // http.StatusNotModified was returned.
 26340  func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 26341  	gensupport.SetOptions(c.urlParams_, opts...)
 26342  	res, err := c.doRequest("json")
 26343  	if res != nil && res.StatusCode == http.StatusNotModified {
 26344  		if res.Body != nil {
 26345  			res.Body.Close()
 26346  		}
 26347  		return nil, gensupport.WrapError(&googleapi.Error{
 26348  			Code:   res.StatusCode,
 26349  			Header: res.Header,
 26350  		})
 26351  	}
 26352  	if err != nil {
 26353  		return nil, err
 26354  	}
 26355  	defer googleapi.CloseBody(res)
 26356  	if err := googleapi.CheckResponse(res); err != nil {
 26357  		return nil, gensupport.WrapError(err)
 26358  	}
 26359  	ret := &GoogleCloudDialogflowV2Context{
 26360  		ServerResponse: googleapi.ServerResponse{
 26361  			Header:         res.Header,
 26362  			HTTPStatusCode: res.StatusCode,
 26363  		},
 26364  	}
 26365  	target := &ret
 26366  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26367  		return nil, err
 26368  	}
 26369  	return ret, nil
 26370  }
 26371  
 26372  type ProjectsAgentSessionsContextsListCall struct {
 26373  	s            *Service
 26374  	parent       string
 26375  	urlParams_   gensupport.URLParams
 26376  	ifNoneMatch_ string
 26377  	ctx_         context.Context
 26378  	header_      http.Header
 26379  }
 26380  
 26381  // List: Returns the list of all contexts in the specified session.
 26382  //
 26383  //   - parent: The session to list all contexts from. Format:
 26384  //     `projects//agent/sessions/` or
 26385  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 26386  //     not specified, we assume default 'draft' environment. If `User ID` is not
 26387  //     specified, we assume default '-' user.
 26388  func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall {
 26389  	c := &ProjectsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26390  	c.parent = parent
 26391  	return c
 26392  }
 26393  
 26394  // PageSize sets the optional parameter "pageSize": The maximum number of items
 26395  // to return in a single page. By default 100 and at most 1000.
 26396  func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall {
 26397  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26398  	return c
 26399  }
 26400  
 26401  // PageToken sets the optional parameter "pageToken": The next_page_token value
 26402  // returned from a previous list request.
 26403  func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall {
 26404  	c.urlParams_.Set("pageToken", pageToken)
 26405  	return c
 26406  }
 26407  
 26408  // Fields allows partial responses to be retrieved. See
 26409  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26410  // details.
 26411  func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall {
 26412  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26413  	return c
 26414  }
 26415  
 26416  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26417  // object's ETag matches the given value. This is useful for getting updates
 26418  // only after the object has changed since the last request.
 26419  func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall {
 26420  	c.ifNoneMatch_ = entityTag
 26421  	return c
 26422  }
 26423  
 26424  // Context sets the context to be used in this call's Do method.
 26425  func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall {
 26426  	c.ctx_ = ctx
 26427  	return c
 26428  }
 26429  
 26430  // Header returns a http.Header that can be modified by the caller to add
 26431  // headers to the request.
 26432  func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header {
 26433  	if c.header_ == nil {
 26434  		c.header_ = make(http.Header)
 26435  	}
 26436  	return c.header_
 26437  }
 26438  
 26439  func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 26440  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26441  	if c.ifNoneMatch_ != "" {
 26442  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26443  	}
 26444  	var body io.Reader = nil
 26445  	c.urlParams_.Set("alt", alt)
 26446  	c.urlParams_.Set("prettyPrint", "false")
 26447  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 26448  	urls += "?" + c.urlParams_.Encode()
 26449  	req, err := http.NewRequest("GET", urls, body)
 26450  	if err != nil {
 26451  		return nil, err
 26452  	}
 26453  	req.Header = reqHeaders
 26454  	googleapi.Expand(req.URL, map[string]string{
 26455  		"parent": c.parent,
 26456  	})
 26457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26458  }
 26459  
 26460  // Do executes the "dialogflow.projects.agent.sessions.contexts.list" call.
 26461  // Any non-2xx status code is an error. Response headers are in either
 26462  // *GoogleCloudDialogflowV2ListContextsResponse.ServerResponse.Header or (if a
 26463  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26464  // googleapi.IsNotModified to check whether the returned error was because
 26465  // http.StatusNotModified was returned.
 26466  func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
 26467  	gensupport.SetOptions(c.urlParams_, opts...)
 26468  	res, err := c.doRequest("json")
 26469  	if res != nil && res.StatusCode == http.StatusNotModified {
 26470  		if res.Body != nil {
 26471  			res.Body.Close()
 26472  		}
 26473  		return nil, gensupport.WrapError(&googleapi.Error{
 26474  			Code:   res.StatusCode,
 26475  			Header: res.Header,
 26476  		})
 26477  	}
 26478  	if err != nil {
 26479  		return nil, err
 26480  	}
 26481  	defer googleapi.CloseBody(res)
 26482  	if err := googleapi.CheckResponse(res); err != nil {
 26483  		return nil, gensupport.WrapError(err)
 26484  	}
 26485  	ret := &GoogleCloudDialogflowV2ListContextsResponse{
 26486  		ServerResponse: googleapi.ServerResponse{
 26487  			Header:         res.Header,
 26488  			HTTPStatusCode: res.StatusCode,
 26489  		},
 26490  	}
 26491  	target := &ret
 26492  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26493  		return nil, err
 26494  	}
 26495  	return ret, nil
 26496  }
 26497  
 26498  // Pages invokes f for each page of results.
 26499  // A non-nil error returned from f will halt the iteration.
 26500  // The provided context supersedes any context provided to the Context method.
 26501  func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
 26502  	c.ctx_ = ctx
 26503  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26504  	for {
 26505  		x, err := c.Do()
 26506  		if err != nil {
 26507  			return err
 26508  		}
 26509  		if err := f(x); err != nil {
 26510  			return err
 26511  		}
 26512  		if x.NextPageToken == "" {
 26513  			return nil
 26514  		}
 26515  		c.PageToken(x.NextPageToken)
 26516  	}
 26517  }
 26518  
 26519  type ProjectsAgentSessionsContextsPatchCall struct {
 26520  	s                              *Service
 26521  	nameid                         string
 26522  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 26523  	urlParams_                     gensupport.URLParams
 26524  	ctx_                           context.Context
 26525  	header_                        http.Header
 26526  }
 26527  
 26528  // Patch: Updates the specified context.
 26529  //
 26530  //   - name: The unique identifier of the context. Format:
 26531  //     `projects//agent/sessions//contexts/`, or
 26532  //     `projects//agent/environments//users//sessions//contexts/`. The `Context
 26533  //     ID` is always converted to lowercase, may only contain characters in
 26534  //     `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 26535  //     not specified, we assume default 'draft' environment. If `User ID` is not
 26536  //     specified, we assume default '-' user. The following context names are
 26537  //     reserved for internal use by Dialogflow. You should not use these contexts
 26538  //     or create contexts with these names: * `__system_counters__` *
 26539  //     `*_id_dialog_context` * `*_dialog_params_size`.
 26540  func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsPatchCall {
 26541  	c := &ProjectsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26542  	c.nameid = nameid
 26543  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 26544  	return c
 26545  }
 26546  
 26547  // UpdateMask sets the optional parameter "updateMask": The mask to control
 26548  // which fields get updated.
 26549  func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall {
 26550  	c.urlParams_.Set("updateMask", updateMask)
 26551  	return c
 26552  }
 26553  
 26554  // Fields allows partial responses to be retrieved. See
 26555  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26556  // details.
 26557  func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall {
 26558  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26559  	return c
 26560  }
 26561  
 26562  // Context sets the context to be used in this call's Do method.
 26563  func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall {
 26564  	c.ctx_ = ctx
 26565  	return c
 26566  }
 26567  
 26568  // Header returns a http.Header that can be modified by the caller to add
 26569  // headers to the request.
 26570  func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header {
 26571  	if c.header_ == nil {
 26572  		c.header_ = make(http.Header)
 26573  	}
 26574  	return c.header_
 26575  }
 26576  
 26577  func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 26578  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26579  	var body io.Reader = nil
 26580  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 26581  	if err != nil {
 26582  		return nil, err
 26583  	}
 26584  	c.urlParams_.Set("alt", alt)
 26585  	c.urlParams_.Set("prettyPrint", "false")
 26586  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 26587  	urls += "?" + c.urlParams_.Encode()
 26588  	req, err := http.NewRequest("PATCH", urls, body)
 26589  	if err != nil {
 26590  		return nil, err
 26591  	}
 26592  	req.Header = reqHeaders
 26593  	googleapi.Expand(req.URL, map[string]string{
 26594  		"name": c.nameid,
 26595  	})
 26596  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26597  }
 26598  
 26599  // Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call.
 26600  // Any non-2xx status code is an error. Response headers are in either
 26601  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 26602  // returned at all) in error.(*googleapi.Error).Header. Use
 26603  // googleapi.IsNotModified to check whether the returned error was because
 26604  // http.StatusNotModified was returned.
 26605  func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 26606  	gensupport.SetOptions(c.urlParams_, opts...)
 26607  	res, err := c.doRequest("json")
 26608  	if res != nil && res.StatusCode == http.StatusNotModified {
 26609  		if res.Body != nil {
 26610  			res.Body.Close()
 26611  		}
 26612  		return nil, gensupport.WrapError(&googleapi.Error{
 26613  			Code:   res.StatusCode,
 26614  			Header: res.Header,
 26615  		})
 26616  	}
 26617  	if err != nil {
 26618  		return nil, err
 26619  	}
 26620  	defer googleapi.CloseBody(res)
 26621  	if err := googleapi.CheckResponse(res); err != nil {
 26622  		return nil, gensupport.WrapError(err)
 26623  	}
 26624  	ret := &GoogleCloudDialogflowV2Context{
 26625  		ServerResponse: googleapi.ServerResponse{
 26626  			Header:         res.Header,
 26627  			HTTPStatusCode: res.StatusCode,
 26628  		},
 26629  	}
 26630  	target := &ret
 26631  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26632  		return nil, err
 26633  	}
 26634  	return ret, nil
 26635  }
 26636  
 26637  type ProjectsAgentSessionsEntityTypesCreateCall struct {
 26638  	s                                        *Service
 26639  	parent                                   string
 26640  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 26641  	urlParams_                               gensupport.URLParams
 26642  	ctx_                                     context.Context
 26643  	header_                                  http.Header
 26644  }
 26645  
 26646  // Create: Creates a session entity type. If the specified session entity type
 26647  // already exists, overrides the session entity type. This method doesn't work
 26648  // with Google Assistant integration. Contact Dialogflow support if you need to
 26649  // use session entities with Google Assistant integration.
 26650  //
 26651  //   - parent: The session to create a session entity type for. Format:
 26652  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 26653  //     sessions/`. If `Environment ID` is not specified, we assume default
 26654  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 26655  //     user.
 26656  func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall {
 26657  	c := &ProjectsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26658  	c.parent = parent
 26659  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 26660  	return c
 26661  }
 26662  
 26663  // Fields allows partial responses to be retrieved. See
 26664  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26665  // details.
 26666  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall {
 26667  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26668  	return c
 26669  }
 26670  
 26671  // Context sets the context to be used in this call's Do method.
 26672  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall {
 26673  	c.ctx_ = ctx
 26674  	return c
 26675  }
 26676  
 26677  // Header returns a http.Header that can be modified by the caller to add
 26678  // headers to the request.
 26679  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header {
 26680  	if c.header_ == nil {
 26681  		c.header_ = make(http.Header)
 26682  	}
 26683  	return c.header_
 26684  }
 26685  
 26686  func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 26687  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26688  	var body io.Reader = nil
 26689  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 26690  	if err != nil {
 26691  		return nil, err
 26692  	}
 26693  	c.urlParams_.Set("alt", alt)
 26694  	c.urlParams_.Set("prettyPrint", "false")
 26695  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 26696  	urls += "?" + c.urlParams_.Encode()
 26697  	req, err := http.NewRequest("POST", urls, body)
 26698  	if err != nil {
 26699  		return nil, err
 26700  	}
 26701  	req.Header = reqHeaders
 26702  	googleapi.Expand(req.URL, map[string]string{
 26703  		"parent": c.parent,
 26704  	})
 26705  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26706  }
 26707  
 26708  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call.
 26709  // Any non-2xx status code is an error. Response headers are in either
 26710  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 26711  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26712  // googleapi.IsNotModified to check whether the returned error was because
 26713  // http.StatusNotModified was returned.
 26714  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 26715  	gensupport.SetOptions(c.urlParams_, opts...)
 26716  	res, err := c.doRequest("json")
 26717  	if res != nil && res.StatusCode == http.StatusNotModified {
 26718  		if res.Body != nil {
 26719  			res.Body.Close()
 26720  		}
 26721  		return nil, gensupport.WrapError(&googleapi.Error{
 26722  			Code:   res.StatusCode,
 26723  			Header: res.Header,
 26724  		})
 26725  	}
 26726  	if err != nil {
 26727  		return nil, err
 26728  	}
 26729  	defer googleapi.CloseBody(res)
 26730  	if err := googleapi.CheckResponse(res); err != nil {
 26731  		return nil, gensupport.WrapError(err)
 26732  	}
 26733  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 26734  		ServerResponse: googleapi.ServerResponse{
 26735  			Header:         res.Header,
 26736  			HTTPStatusCode: res.StatusCode,
 26737  		},
 26738  	}
 26739  	target := &ret
 26740  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26741  		return nil, err
 26742  	}
 26743  	return ret, nil
 26744  }
 26745  
 26746  type ProjectsAgentSessionsEntityTypesDeleteCall struct {
 26747  	s          *Service
 26748  	name       string
 26749  	urlParams_ gensupport.URLParams
 26750  	ctx_       context.Context
 26751  	header_    http.Header
 26752  }
 26753  
 26754  // Delete: Deletes the specified session entity type. This method doesn't work
 26755  // with Google Assistant integration. Contact Dialogflow support if you need to
 26756  // use session entities with Google Assistant integration.
 26757  //
 26758  //   - name: The name of the entity type to delete. Format:
 26759  //     `projects//agent/sessions//entityTypes/` or
 26760  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 26761  //     `Environment ID` is not specified, we assume default 'draft' environment.
 26762  //     If `User ID` is not specified, we assume default '-' user.
 26763  func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall {
 26764  	c := &ProjectsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26765  	c.name = name
 26766  	return c
 26767  }
 26768  
 26769  // Fields allows partial responses to be retrieved. See
 26770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26771  // details.
 26772  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall {
 26773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26774  	return c
 26775  }
 26776  
 26777  // Context sets the context to be used in this call's Do method.
 26778  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall {
 26779  	c.ctx_ = ctx
 26780  	return c
 26781  }
 26782  
 26783  // Header returns a http.Header that can be modified by the caller to add
 26784  // headers to the request.
 26785  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
 26786  	if c.header_ == nil {
 26787  		c.header_ = make(http.Header)
 26788  	}
 26789  	return c.header_
 26790  }
 26791  
 26792  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 26793  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26794  	var body io.Reader = nil
 26795  	c.urlParams_.Set("alt", alt)
 26796  	c.urlParams_.Set("prettyPrint", "false")
 26797  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 26798  	urls += "?" + c.urlParams_.Encode()
 26799  	req, err := http.NewRequest("DELETE", urls, body)
 26800  	if err != nil {
 26801  		return nil, err
 26802  	}
 26803  	req.Header = reqHeaders
 26804  	googleapi.Expand(req.URL, map[string]string{
 26805  		"name": c.name,
 26806  	})
 26807  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26808  }
 26809  
 26810  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call.
 26811  // Any non-2xx status code is an error. Response headers are in either
 26812  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26813  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26814  // check whether the returned error was because http.StatusNotModified was
 26815  // returned.
 26816  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26817  	gensupport.SetOptions(c.urlParams_, opts...)
 26818  	res, err := c.doRequest("json")
 26819  	if res != nil && res.StatusCode == http.StatusNotModified {
 26820  		if res.Body != nil {
 26821  			res.Body.Close()
 26822  		}
 26823  		return nil, gensupport.WrapError(&googleapi.Error{
 26824  			Code:   res.StatusCode,
 26825  			Header: res.Header,
 26826  		})
 26827  	}
 26828  	if err != nil {
 26829  		return nil, err
 26830  	}
 26831  	defer googleapi.CloseBody(res)
 26832  	if err := googleapi.CheckResponse(res); err != nil {
 26833  		return nil, gensupport.WrapError(err)
 26834  	}
 26835  	ret := &GoogleProtobufEmpty{
 26836  		ServerResponse: googleapi.ServerResponse{
 26837  			Header:         res.Header,
 26838  			HTTPStatusCode: res.StatusCode,
 26839  		},
 26840  	}
 26841  	target := &ret
 26842  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26843  		return nil, err
 26844  	}
 26845  	return ret, nil
 26846  }
 26847  
 26848  type ProjectsAgentSessionsEntityTypesGetCall struct {
 26849  	s            *Service
 26850  	name         string
 26851  	urlParams_   gensupport.URLParams
 26852  	ifNoneMatch_ string
 26853  	ctx_         context.Context
 26854  	header_      http.Header
 26855  }
 26856  
 26857  // Get: Retrieves the specified session entity type. This method doesn't work
 26858  // with Google Assistant integration. Contact Dialogflow support if you need to
 26859  // use session entities with Google Assistant integration.
 26860  //
 26861  //   - name: The name of the session entity type. Format:
 26862  //     `projects//agent/sessions//entityTypes/` or
 26863  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 26864  //     `Environment ID` is not specified, we assume default 'draft' environment.
 26865  //     If `User ID` is not specified, we assume default '-' user.
 26866  func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall {
 26867  	c := &ProjectsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26868  	c.name = name
 26869  	return c
 26870  }
 26871  
 26872  // Fields allows partial responses to be retrieved. See
 26873  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26874  // details.
 26875  func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall {
 26876  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26877  	return c
 26878  }
 26879  
 26880  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26881  // object's ETag matches the given value. This is useful for getting updates
 26882  // only after the object has changed since the last request.
 26883  func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall {
 26884  	c.ifNoneMatch_ = entityTag
 26885  	return c
 26886  }
 26887  
 26888  // Context sets the context to be used in this call's Do method.
 26889  func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall {
 26890  	c.ctx_ = ctx
 26891  	return c
 26892  }
 26893  
 26894  // Header returns a http.Header that can be modified by the caller to add
 26895  // headers to the request.
 26896  func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header {
 26897  	if c.header_ == nil {
 26898  		c.header_ = make(http.Header)
 26899  	}
 26900  	return c.header_
 26901  }
 26902  
 26903  func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 26904  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26905  	if c.ifNoneMatch_ != "" {
 26906  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26907  	}
 26908  	var body io.Reader = nil
 26909  	c.urlParams_.Set("alt", alt)
 26910  	c.urlParams_.Set("prettyPrint", "false")
 26911  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 26912  	urls += "?" + c.urlParams_.Encode()
 26913  	req, err := http.NewRequest("GET", urls, body)
 26914  	if err != nil {
 26915  		return nil, err
 26916  	}
 26917  	req.Header = reqHeaders
 26918  	googleapi.Expand(req.URL, map[string]string{
 26919  		"name": c.name,
 26920  	})
 26921  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26922  }
 26923  
 26924  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call.
 26925  // Any non-2xx status code is an error. Response headers are in either
 26926  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 26927  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26928  // googleapi.IsNotModified to check whether the returned error was because
 26929  // http.StatusNotModified was returned.
 26930  func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 26931  	gensupport.SetOptions(c.urlParams_, opts...)
 26932  	res, err := c.doRequest("json")
 26933  	if res != nil && res.StatusCode == http.StatusNotModified {
 26934  		if res.Body != nil {
 26935  			res.Body.Close()
 26936  		}
 26937  		return nil, gensupport.WrapError(&googleapi.Error{
 26938  			Code:   res.StatusCode,
 26939  			Header: res.Header,
 26940  		})
 26941  	}
 26942  	if err != nil {
 26943  		return nil, err
 26944  	}
 26945  	defer googleapi.CloseBody(res)
 26946  	if err := googleapi.CheckResponse(res); err != nil {
 26947  		return nil, gensupport.WrapError(err)
 26948  	}
 26949  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 26950  		ServerResponse: googleapi.ServerResponse{
 26951  			Header:         res.Header,
 26952  			HTTPStatusCode: res.StatusCode,
 26953  		},
 26954  	}
 26955  	target := &ret
 26956  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26957  		return nil, err
 26958  	}
 26959  	return ret, nil
 26960  }
 26961  
 26962  type ProjectsAgentSessionsEntityTypesListCall struct {
 26963  	s            *Service
 26964  	parent       string
 26965  	urlParams_   gensupport.URLParams
 26966  	ifNoneMatch_ string
 26967  	ctx_         context.Context
 26968  	header_      http.Header
 26969  }
 26970  
 26971  // List: Returns the list of all session entity types in the specified session.
 26972  // This method doesn't work with Google Assistant integration. Contact
 26973  // Dialogflow support if you need to use session entities with Google Assistant
 26974  // integration.
 26975  //
 26976  //   - parent: The session to list all session entity types from. Format:
 26977  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 26978  //     sessions/`. If `Environment ID` is not specified, we assume default
 26979  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 26980  //     user.
 26981  func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall {
 26982  	c := &ProjectsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26983  	c.parent = parent
 26984  	return c
 26985  }
 26986  
 26987  // PageSize sets the optional parameter "pageSize": The maximum number of items
 26988  // to return in a single page. By default 100 and at most 1000.
 26989  func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall {
 26990  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26991  	return c
 26992  }
 26993  
 26994  // PageToken sets the optional parameter "pageToken": The next_page_token value
 26995  // returned from a previous list request.
 26996  func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall {
 26997  	c.urlParams_.Set("pageToken", pageToken)
 26998  	return c
 26999  }
 27000  
 27001  // Fields allows partial responses to be retrieved. See
 27002  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27003  // details.
 27004  func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall {
 27005  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27006  	return c
 27007  }
 27008  
 27009  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27010  // object's ETag matches the given value. This is useful for getting updates
 27011  // only after the object has changed since the last request.
 27012  func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall {
 27013  	c.ifNoneMatch_ = entityTag
 27014  	return c
 27015  }
 27016  
 27017  // Context sets the context to be used in this call's Do method.
 27018  func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall {
 27019  	c.ctx_ = ctx
 27020  	return c
 27021  }
 27022  
 27023  // Header returns a http.Header that can be modified by the caller to add
 27024  // headers to the request.
 27025  func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header {
 27026  	if c.header_ == nil {
 27027  		c.header_ = make(http.Header)
 27028  	}
 27029  	return c.header_
 27030  }
 27031  
 27032  func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 27033  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27034  	if c.ifNoneMatch_ != "" {
 27035  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27036  	}
 27037  	var body io.Reader = nil
 27038  	c.urlParams_.Set("alt", alt)
 27039  	c.urlParams_.Set("prettyPrint", "false")
 27040  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 27041  	urls += "?" + c.urlParams_.Encode()
 27042  	req, err := http.NewRequest("GET", urls, body)
 27043  	if err != nil {
 27044  		return nil, err
 27045  	}
 27046  	req.Header = reqHeaders
 27047  	googleapi.Expand(req.URL, map[string]string{
 27048  		"parent": c.parent,
 27049  	})
 27050  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27051  }
 27052  
 27053  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call.
 27054  // Any non-2xx status code is an error. Response headers are in either
 27055  // *GoogleCloudDialogflowV2ListSessionEntityTypesResponse.ServerResponse.Header
 27056  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 27057  // Use googleapi.IsNotModified to check whether the returned error was because
 27058  // http.StatusNotModified was returned.
 27059  func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
 27060  	gensupport.SetOptions(c.urlParams_, opts...)
 27061  	res, err := c.doRequest("json")
 27062  	if res != nil && res.StatusCode == http.StatusNotModified {
 27063  		if res.Body != nil {
 27064  			res.Body.Close()
 27065  		}
 27066  		return nil, gensupport.WrapError(&googleapi.Error{
 27067  			Code:   res.StatusCode,
 27068  			Header: res.Header,
 27069  		})
 27070  	}
 27071  	if err != nil {
 27072  		return nil, err
 27073  	}
 27074  	defer googleapi.CloseBody(res)
 27075  	if err := googleapi.CheckResponse(res); err != nil {
 27076  		return nil, gensupport.WrapError(err)
 27077  	}
 27078  	ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
 27079  		ServerResponse: googleapi.ServerResponse{
 27080  			Header:         res.Header,
 27081  			HTTPStatusCode: res.StatusCode,
 27082  		},
 27083  	}
 27084  	target := &ret
 27085  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27086  		return nil, err
 27087  	}
 27088  	return ret, nil
 27089  }
 27090  
 27091  // Pages invokes f for each page of results.
 27092  // A non-nil error returned from f will halt the iteration.
 27093  // The provided context supersedes any context provided to the Context method.
 27094  func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
 27095  	c.ctx_ = ctx
 27096  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27097  	for {
 27098  		x, err := c.Do()
 27099  		if err != nil {
 27100  			return err
 27101  		}
 27102  		if err := f(x); err != nil {
 27103  			return err
 27104  		}
 27105  		if x.NextPageToken == "" {
 27106  			return nil
 27107  		}
 27108  		c.PageToken(x.NextPageToken)
 27109  	}
 27110  }
 27111  
 27112  type ProjectsAgentSessionsEntityTypesPatchCall struct {
 27113  	s                                        *Service
 27114  	nameid                                   string
 27115  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 27116  	urlParams_                               gensupport.URLParams
 27117  	ctx_                                     context.Context
 27118  	header_                                  http.Header
 27119  }
 27120  
 27121  // Patch: Updates the specified session entity type. This method doesn't work
 27122  // with Google Assistant integration. Contact Dialogflow support if you need to
 27123  // use session entities with Google Assistant integration.
 27124  //
 27125  //   - name: The unique identifier of this session entity type. Format:
 27126  //     `projects//agent/sessions//entityTypes/`, or
 27127  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 27128  //     `Environment ID` is not specified, we assume default 'draft' environment.
 27129  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 27130  //     display name of an existing entity type in the same agent that will be
 27131  //     overridden or supplemented.
 27132  func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall {
 27133  	c := &ProjectsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27134  	c.nameid = nameid
 27135  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 27136  	return c
 27137  }
 27138  
 27139  // UpdateMask sets the optional parameter "updateMask": The mask to control
 27140  // which fields get updated.
 27141  func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall {
 27142  	c.urlParams_.Set("updateMask", updateMask)
 27143  	return c
 27144  }
 27145  
 27146  // Fields allows partial responses to be retrieved. See
 27147  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27148  // details.
 27149  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall {
 27150  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27151  	return c
 27152  }
 27153  
 27154  // Context sets the context to be used in this call's Do method.
 27155  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall {
 27156  	c.ctx_ = ctx
 27157  	return c
 27158  }
 27159  
 27160  // Header returns a http.Header that can be modified by the caller to add
 27161  // headers to the request.
 27162  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header {
 27163  	if c.header_ == nil {
 27164  		c.header_ = make(http.Header)
 27165  	}
 27166  	return c.header_
 27167  }
 27168  
 27169  func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 27170  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27171  	var body io.Reader = nil
 27172  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 27173  	if err != nil {
 27174  		return nil, err
 27175  	}
 27176  	c.urlParams_.Set("alt", alt)
 27177  	c.urlParams_.Set("prettyPrint", "false")
 27178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 27179  	urls += "?" + c.urlParams_.Encode()
 27180  	req, err := http.NewRequest("PATCH", urls, body)
 27181  	if err != nil {
 27182  		return nil, err
 27183  	}
 27184  	req.Header = reqHeaders
 27185  	googleapi.Expand(req.URL, map[string]string{
 27186  		"name": c.nameid,
 27187  	})
 27188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27189  }
 27190  
 27191  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call.
 27192  // Any non-2xx status code is an error. Response headers are in either
 27193  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 27194  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27195  // googleapi.IsNotModified to check whether the returned error was because
 27196  // http.StatusNotModified was returned.
 27197  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 27198  	gensupport.SetOptions(c.urlParams_, opts...)
 27199  	res, err := c.doRequest("json")
 27200  	if res != nil && res.StatusCode == http.StatusNotModified {
 27201  		if res.Body != nil {
 27202  			res.Body.Close()
 27203  		}
 27204  		return nil, gensupport.WrapError(&googleapi.Error{
 27205  			Code:   res.StatusCode,
 27206  			Header: res.Header,
 27207  		})
 27208  	}
 27209  	if err != nil {
 27210  		return nil, err
 27211  	}
 27212  	defer googleapi.CloseBody(res)
 27213  	if err := googleapi.CheckResponse(res); err != nil {
 27214  		return nil, gensupport.WrapError(err)
 27215  	}
 27216  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 27217  		ServerResponse: googleapi.ServerResponse{
 27218  			Header:         res.Header,
 27219  			HTTPStatusCode: res.StatusCode,
 27220  		},
 27221  	}
 27222  	target := &ret
 27223  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27224  		return nil, err
 27225  	}
 27226  	return ret, nil
 27227  }
 27228  
 27229  type ProjectsAgentVersionsCreateCall struct {
 27230  	s                              *Service
 27231  	parent                         string
 27232  	googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
 27233  	urlParams_                     gensupport.URLParams
 27234  	ctx_                           context.Context
 27235  	header_                        http.Header
 27236  }
 27237  
 27238  // Create: Creates an agent version. The new version points to the agent
 27239  // instance in the "default" environment.
 27240  //
 27241  //   - parent: The agent to create a version for. Supported formats: -
 27242  //     `projects//agent` - `projects//locations//agent`.
 27243  func (r *ProjectsAgentVersionsService) Create(parent string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsAgentVersionsCreateCall {
 27244  	c := &ProjectsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27245  	c.parent = parent
 27246  	c.googleclouddialogflowv2version = googleclouddialogflowv2version
 27247  	return c
 27248  }
 27249  
 27250  // Fields allows partial responses to be retrieved. See
 27251  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27252  // details.
 27253  func (c *ProjectsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsCreateCall {
 27254  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27255  	return c
 27256  }
 27257  
 27258  // Context sets the context to be used in this call's Do method.
 27259  func (c *ProjectsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsAgentVersionsCreateCall {
 27260  	c.ctx_ = ctx
 27261  	return c
 27262  }
 27263  
 27264  // Header returns a http.Header that can be modified by the caller to add
 27265  // headers to the request.
 27266  func (c *ProjectsAgentVersionsCreateCall) Header() http.Header {
 27267  	if c.header_ == nil {
 27268  		c.header_ = make(http.Header)
 27269  	}
 27270  	return c.header_
 27271  }
 27272  
 27273  func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
 27274  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27275  	var body io.Reader = nil
 27276  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
 27277  	if err != nil {
 27278  		return nil, err
 27279  	}
 27280  	c.urlParams_.Set("alt", alt)
 27281  	c.urlParams_.Set("prettyPrint", "false")
 27282  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
 27283  	urls += "?" + c.urlParams_.Encode()
 27284  	req, err := http.NewRequest("POST", urls, body)
 27285  	if err != nil {
 27286  		return nil, err
 27287  	}
 27288  	req.Header = reqHeaders
 27289  	googleapi.Expand(req.URL, map[string]string{
 27290  		"parent": c.parent,
 27291  	})
 27292  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27293  }
 27294  
 27295  // Do executes the "dialogflow.projects.agent.versions.create" call.
 27296  // Any non-2xx status code is an error. Response headers are in either
 27297  // *GoogleCloudDialogflowV2Version.ServerResponse.Header or (if a response was
 27298  // returned at all) in error.(*googleapi.Error).Header. Use
 27299  // googleapi.IsNotModified to check whether the returned error was because
 27300  // http.StatusNotModified was returned.
 27301  func (c *ProjectsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
 27302  	gensupport.SetOptions(c.urlParams_, opts...)
 27303  	res, err := c.doRequest("json")
 27304  	if res != nil && res.StatusCode == http.StatusNotModified {
 27305  		if res.Body != nil {
 27306  			res.Body.Close()
 27307  		}
 27308  		return nil, gensupport.WrapError(&googleapi.Error{
 27309  			Code:   res.StatusCode,
 27310  			Header: res.Header,
 27311  		})
 27312  	}
 27313  	if err != nil {
 27314  		return nil, err
 27315  	}
 27316  	defer googleapi.CloseBody(res)
 27317  	if err := googleapi.CheckResponse(res); err != nil {
 27318  		return nil, gensupport.WrapError(err)
 27319  	}
 27320  	ret := &GoogleCloudDialogflowV2Version{
 27321  		ServerResponse: googleapi.ServerResponse{
 27322  			Header:         res.Header,
 27323  			HTTPStatusCode: res.StatusCode,
 27324  		},
 27325  	}
 27326  	target := &ret
 27327  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27328  		return nil, err
 27329  	}
 27330  	return ret, nil
 27331  }
 27332  
 27333  type ProjectsAgentVersionsDeleteCall struct {
 27334  	s          *Service
 27335  	name       string
 27336  	urlParams_ gensupport.URLParams
 27337  	ctx_       context.Context
 27338  	header_    http.Header
 27339  }
 27340  
 27341  // Delete: Delete the specified agent version.
 27342  //
 27343  //   - name: The name of the version to delete. Supported formats: -
 27344  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 27345  func (r *ProjectsAgentVersionsService) Delete(name string) *ProjectsAgentVersionsDeleteCall {
 27346  	c := &ProjectsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27347  	c.name = name
 27348  	return c
 27349  }
 27350  
 27351  // Fields allows partial responses to be retrieved. See
 27352  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27353  // details.
 27354  func (c *ProjectsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsDeleteCall {
 27355  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27356  	return c
 27357  }
 27358  
 27359  // Context sets the context to be used in this call's Do method.
 27360  func (c *ProjectsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsAgentVersionsDeleteCall {
 27361  	c.ctx_ = ctx
 27362  	return c
 27363  }
 27364  
 27365  // Header returns a http.Header that can be modified by the caller to add
 27366  // headers to the request.
 27367  func (c *ProjectsAgentVersionsDeleteCall) Header() http.Header {
 27368  	if c.header_ == nil {
 27369  		c.header_ = make(http.Header)
 27370  	}
 27371  	return c.header_
 27372  }
 27373  
 27374  func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 27375  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27376  	var body io.Reader = nil
 27377  	c.urlParams_.Set("alt", alt)
 27378  	c.urlParams_.Set("prettyPrint", "false")
 27379  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 27380  	urls += "?" + c.urlParams_.Encode()
 27381  	req, err := http.NewRequest("DELETE", urls, body)
 27382  	if err != nil {
 27383  		return nil, err
 27384  	}
 27385  	req.Header = reqHeaders
 27386  	googleapi.Expand(req.URL, map[string]string{
 27387  		"name": c.name,
 27388  	})
 27389  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27390  }
 27391  
 27392  // Do executes the "dialogflow.projects.agent.versions.delete" call.
 27393  // Any non-2xx status code is an error. Response headers are in either
 27394  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27395  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27396  // check whether the returned error was because http.StatusNotModified was
 27397  // returned.
 27398  func (c *ProjectsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27399  	gensupport.SetOptions(c.urlParams_, opts...)
 27400  	res, err := c.doRequest("json")
 27401  	if res != nil && res.StatusCode == http.StatusNotModified {
 27402  		if res.Body != nil {
 27403  			res.Body.Close()
 27404  		}
 27405  		return nil, gensupport.WrapError(&googleapi.Error{
 27406  			Code:   res.StatusCode,
 27407  			Header: res.Header,
 27408  		})
 27409  	}
 27410  	if err != nil {
 27411  		return nil, err
 27412  	}
 27413  	defer googleapi.CloseBody(res)
 27414  	if err := googleapi.CheckResponse(res); err != nil {
 27415  		return nil, gensupport.WrapError(err)
 27416  	}
 27417  	ret := &GoogleProtobufEmpty{
 27418  		ServerResponse: googleapi.ServerResponse{
 27419  			Header:         res.Header,
 27420  			HTTPStatusCode: res.StatusCode,
 27421  		},
 27422  	}
 27423  	target := &ret
 27424  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27425  		return nil, err
 27426  	}
 27427  	return ret, nil
 27428  }
 27429  
 27430  type ProjectsAgentVersionsGetCall struct {
 27431  	s            *Service
 27432  	name         string
 27433  	urlParams_   gensupport.URLParams
 27434  	ifNoneMatch_ string
 27435  	ctx_         context.Context
 27436  	header_      http.Header
 27437  }
 27438  
 27439  // Get: Retrieves the specified agent version.
 27440  //
 27441  //   - name: The name of the version. Supported formats: -
 27442  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 27443  func (r *ProjectsAgentVersionsService) Get(name string) *ProjectsAgentVersionsGetCall {
 27444  	c := &ProjectsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27445  	c.name = name
 27446  	return c
 27447  }
 27448  
 27449  // Fields allows partial responses to be retrieved. See
 27450  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27451  // details.
 27452  func (c *ProjectsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsGetCall {
 27453  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27454  	return c
 27455  }
 27456  
 27457  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27458  // object's ETag matches the given value. This is useful for getting updates
 27459  // only after the object has changed since the last request.
 27460  func (c *ProjectsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsGetCall {
 27461  	c.ifNoneMatch_ = entityTag
 27462  	return c
 27463  }
 27464  
 27465  // Context sets the context to be used in this call's Do method.
 27466  func (c *ProjectsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsAgentVersionsGetCall {
 27467  	c.ctx_ = ctx
 27468  	return c
 27469  }
 27470  
 27471  // Header returns a http.Header that can be modified by the caller to add
 27472  // headers to the request.
 27473  func (c *ProjectsAgentVersionsGetCall) Header() http.Header {
 27474  	if c.header_ == nil {
 27475  		c.header_ = make(http.Header)
 27476  	}
 27477  	return c.header_
 27478  }
 27479  
 27480  func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 27481  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27482  	if c.ifNoneMatch_ != "" {
 27483  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27484  	}
 27485  	var body io.Reader = nil
 27486  	c.urlParams_.Set("alt", alt)
 27487  	c.urlParams_.Set("prettyPrint", "false")
 27488  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 27489  	urls += "?" + c.urlParams_.Encode()
 27490  	req, err := http.NewRequest("GET", urls, body)
 27491  	if err != nil {
 27492  		return nil, err
 27493  	}
 27494  	req.Header = reqHeaders
 27495  	googleapi.Expand(req.URL, map[string]string{
 27496  		"name": c.name,
 27497  	})
 27498  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27499  }
 27500  
 27501  // Do executes the "dialogflow.projects.agent.versions.get" call.
 27502  // Any non-2xx status code is an error. Response headers are in either
 27503  // *GoogleCloudDialogflowV2Version.ServerResponse.Header or (if a response was
 27504  // returned at all) in error.(*googleapi.Error).Header. Use
 27505  // googleapi.IsNotModified to check whether the returned error was because
 27506  // http.StatusNotModified was returned.
 27507  func (c *ProjectsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
 27508  	gensupport.SetOptions(c.urlParams_, opts...)
 27509  	res, err := c.doRequest("json")
 27510  	if res != nil && res.StatusCode == http.StatusNotModified {
 27511  		if res.Body != nil {
 27512  			res.Body.Close()
 27513  		}
 27514  		return nil, gensupport.WrapError(&googleapi.Error{
 27515  			Code:   res.StatusCode,
 27516  			Header: res.Header,
 27517  		})
 27518  	}
 27519  	if err != nil {
 27520  		return nil, err
 27521  	}
 27522  	defer googleapi.CloseBody(res)
 27523  	if err := googleapi.CheckResponse(res); err != nil {
 27524  		return nil, gensupport.WrapError(err)
 27525  	}
 27526  	ret := &GoogleCloudDialogflowV2Version{
 27527  		ServerResponse: googleapi.ServerResponse{
 27528  			Header:         res.Header,
 27529  			HTTPStatusCode: res.StatusCode,
 27530  		},
 27531  	}
 27532  	target := &ret
 27533  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27534  		return nil, err
 27535  	}
 27536  	return ret, nil
 27537  }
 27538  
 27539  type ProjectsAgentVersionsListCall struct {
 27540  	s            *Service
 27541  	parent       string
 27542  	urlParams_   gensupport.URLParams
 27543  	ifNoneMatch_ string
 27544  	ctx_         context.Context
 27545  	header_      http.Header
 27546  }
 27547  
 27548  // List: Returns the list of all versions of the specified agent.
 27549  //
 27550  //   - parent: The agent to list all versions from. Supported formats: -
 27551  //     `projects//agent` - `projects//locations//agent`.
 27552  func (r *ProjectsAgentVersionsService) List(parent string) *ProjectsAgentVersionsListCall {
 27553  	c := &ProjectsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27554  	c.parent = parent
 27555  	return c
 27556  }
 27557  
 27558  // PageSize sets the optional parameter "pageSize": The maximum number of items
 27559  // to return in a single page. By default 100 and at most 1000.
 27560  func (c *ProjectsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsAgentVersionsListCall {
 27561  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27562  	return c
 27563  }
 27564  
 27565  // PageToken sets the optional parameter "pageToken": The next_page_token value
 27566  // returned from a previous list request.
 27567  func (c *ProjectsAgentVersionsListCall) PageToken(pageToken string) *ProjectsAgentVersionsListCall {
 27568  	c.urlParams_.Set("pageToken", pageToken)
 27569  	return c
 27570  }
 27571  
 27572  // Fields allows partial responses to be retrieved. See
 27573  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27574  // details.
 27575  func (c *ProjectsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsListCall {
 27576  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27577  	return c
 27578  }
 27579  
 27580  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27581  // object's ETag matches the given value. This is useful for getting updates
 27582  // only after the object has changed since the last request.
 27583  func (c *ProjectsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsListCall {
 27584  	c.ifNoneMatch_ = entityTag
 27585  	return c
 27586  }
 27587  
 27588  // Context sets the context to be used in this call's Do method.
 27589  func (c *ProjectsAgentVersionsListCall) Context(ctx context.Context) *ProjectsAgentVersionsListCall {
 27590  	c.ctx_ = ctx
 27591  	return c
 27592  }
 27593  
 27594  // Header returns a http.Header that can be modified by the caller to add
 27595  // headers to the request.
 27596  func (c *ProjectsAgentVersionsListCall) Header() http.Header {
 27597  	if c.header_ == nil {
 27598  		c.header_ = make(http.Header)
 27599  	}
 27600  	return c.header_
 27601  }
 27602  
 27603  func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
 27604  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27605  	if c.ifNoneMatch_ != "" {
 27606  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27607  	}
 27608  	var body io.Reader = nil
 27609  	c.urlParams_.Set("alt", alt)
 27610  	c.urlParams_.Set("prettyPrint", "false")
 27611  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
 27612  	urls += "?" + c.urlParams_.Encode()
 27613  	req, err := http.NewRequest("GET", urls, body)
 27614  	if err != nil {
 27615  		return nil, err
 27616  	}
 27617  	req.Header = reqHeaders
 27618  	googleapi.Expand(req.URL, map[string]string{
 27619  		"parent": c.parent,
 27620  	})
 27621  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27622  }
 27623  
 27624  // Do executes the "dialogflow.projects.agent.versions.list" call.
 27625  // Any non-2xx status code is an error. Response headers are in either
 27626  // *GoogleCloudDialogflowV2ListVersionsResponse.ServerResponse.Header or (if a
 27627  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27628  // googleapi.IsNotModified to check whether the returned error was because
 27629  // http.StatusNotModified was returned.
 27630  func (c *ProjectsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListVersionsResponse, error) {
 27631  	gensupport.SetOptions(c.urlParams_, opts...)
 27632  	res, err := c.doRequest("json")
 27633  	if res != nil && res.StatusCode == http.StatusNotModified {
 27634  		if res.Body != nil {
 27635  			res.Body.Close()
 27636  		}
 27637  		return nil, gensupport.WrapError(&googleapi.Error{
 27638  			Code:   res.StatusCode,
 27639  			Header: res.Header,
 27640  		})
 27641  	}
 27642  	if err != nil {
 27643  		return nil, err
 27644  	}
 27645  	defer googleapi.CloseBody(res)
 27646  	if err := googleapi.CheckResponse(res); err != nil {
 27647  		return nil, gensupport.WrapError(err)
 27648  	}
 27649  	ret := &GoogleCloudDialogflowV2ListVersionsResponse{
 27650  		ServerResponse: googleapi.ServerResponse{
 27651  			Header:         res.Header,
 27652  			HTTPStatusCode: res.StatusCode,
 27653  		},
 27654  	}
 27655  	target := &ret
 27656  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27657  		return nil, err
 27658  	}
 27659  	return ret, nil
 27660  }
 27661  
 27662  // Pages invokes f for each page of results.
 27663  // A non-nil error returned from f will halt the iteration.
 27664  // The provided context supersedes any context provided to the Context method.
 27665  func (c *ProjectsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListVersionsResponse) error) error {
 27666  	c.ctx_ = ctx
 27667  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27668  	for {
 27669  		x, err := c.Do()
 27670  		if err != nil {
 27671  			return err
 27672  		}
 27673  		if err := f(x); err != nil {
 27674  			return err
 27675  		}
 27676  		if x.NextPageToken == "" {
 27677  			return nil
 27678  		}
 27679  		c.PageToken(x.NextPageToken)
 27680  	}
 27681  }
 27682  
 27683  type ProjectsAgentVersionsPatchCall struct {
 27684  	s                              *Service
 27685  	nameid                         string
 27686  	googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
 27687  	urlParams_                     gensupport.URLParams
 27688  	ctx_                           context.Context
 27689  	header_                        http.Header
 27690  }
 27691  
 27692  // Patch: Updates the specified agent version. Note that this method does not
 27693  // allow you to update the state of the agent the given version points to. It
 27694  // allows you to update only mutable properties of the version resource.
 27695  //
 27696  //   - name: Output only. The unique identifier of this agent version. Supported
 27697  //     formats: - `projects//agent/versions/` -
 27698  //     `projects//locations//agent/versions/`.
 27699  func (r *ProjectsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsAgentVersionsPatchCall {
 27700  	c := &ProjectsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27701  	c.nameid = nameid
 27702  	c.googleclouddialogflowv2version = googleclouddialogflowv2version
 27703  	return c
 27704  }
 27705  
 27706  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 27707  // control which fields get updated.
 27708  func (c *ProjectsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsAgentVersionsPatchCall {
 27709  	c.urlParams_.Set("updateMask", updateMask)
 27710  	return c
 27711  }
 27712  
 27713  // Fields allows partial responses to be retrieved. See
 27714  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27715  // details.
 27716  func (c *ProjectsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsPatchCall {
 27717  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27718  	return c
 27719  }
 27720  
 27721  // Context sets the context to be used in this call's Do method.
 27722  func (c *ProjectsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsAgentVersionsPatchCall {
 27723  	c.ctx_ = ctx
 27724  	return c
 27725  }
 27726  
 27727  // Header returns a http.Header that can be modified by the caller to add
 27728  // headers to the request.
 27729  func (c *ProjectsAgentVersionsPatchCall) Header() http.Header {
 27730  	if c.header_ == nil {
 27731  		c.header_ = make(http.Header)
 27732  	}
 27733  	return c.header_
 27734  }
 27735  
 27736  func (c *ProjectsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
 27737  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27738  	var body io.Reader = nil
 27739  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
 27740  	if err != nil {
 27741  		return nil, err
 27742  	}
 27743  	c.urlParams_.Set("alt", alt)
 27744  	c.urlParams_.Set("prettyPrint", "false")
 27745  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 27746  	urls += "?" + c.urlParams_.Encode()
 27747  	req, err := http.NewRequest("PATCH", urls, body)
 27748  	if err != nil {
 27749  		return nil, err
 27750  	}
 27751  	req.Header = reqHeaders
 27752  	googleapi.Expand(req.URL, map[string]string{
 27753  		"name": c.nameid,
 27754  	})
 27755  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27756  }
 27757  
 27758  // Do executes the "dialogflow.projects.agent.versions.patch" call.
 27759  // Any non-2xx status code is an error. Response headers are in either
 27760  // *GoogleCloudDialogflowV2Version.ServerResponse.Header or (if a response was
 27761  // returned at all) in error.(*googleapi.Error).Header. Use
 27762  // googleapi.IsNotModified to check whether the returned error was because
 27763  // http.StatusNotModified was returned.
 27764  func (c *ProjectsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
 27765  	gensupport.SetOptions(c.urlParams_, opts...)
 27766  	res, err := c.doRequest("json")
 27767  	if res != nil && res.StatusCode == http.StatusNotModified {
 27768  		if res.Body != nil {
 27769  			res.Body.Close()
 27770  		}
 27771  		return nil, gensupport.WrapError(&googleapi.Error{
 27772  			Code:   res.StatusCode,
 27773  			Header: res.Header,
 27774  		})
 27775  	}
 27776  	if err != nil {
 27777  		return nil, err
 27778  	}
 27779  	defer googleapi.CloseBody(res)
 27780  	if err := googleapi.CheckResponse(res); err != nil {
 27781  		return nil, gensupport.WrapError(err)
 27782  	}
 27783  	ret := &GoogleCloudDialogflowV2Version{
 27784  		ServerResponse: googleapi.ServerResponse{
 27785  			Header:         res.Header,
 27786  			HTTPStatusCode: res.StatusCode,
 27787  		},
 27788  	}
 27789  	target := &ret
 27790  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27791  		return nil, err
 27792  	}
 27793  	return ret, nil
 27794  }
 27795  
 27796  type ProjectsAnswerRecordsListCall struct {
 27797  	s            *Service
 27798  	parent       string
 27799  	urlParams_   gensupport.URLParams
 27800  	ifNoneMatch_ string
 27801  	ctx_         context.Context
 27802  	header_      http.Header
 27803  }
 27804  
 27805  // List: Returns the list of all answer records in the specified project in
 27806  // reverse chronological order.
 27807  //
 27808  //   - parent: The project to list all answer records for in reverse
 27809  //     chronological order. Format: `projects//locations/`.
 27810  func (r *ProjectsAnswerRecordsService) List(parent string) *ProjectsAnswerRecordsListCall {
 27811  	c := &ProjectsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27812  	c.parent = parent
 27813  	return c
 27814  }
 27815  
 27816  // Filter sets the optional parameter "filter": Filters to restrict results to
 27817  // specific answer records. Marked deprecated as it hasn't been, and isn't
 27818  // currently, supported. For more information about filtering, see API
 27819  // Filtering (https://aip.dev/160).
 27820  func (c *ProjectsAnswerRecordsListCall) Filter(filter string) *ProjectsAnswerRecordsListCall {
 27821  	c.urlParams_.Set("filter", filter)
 27822  	return c
 27823  }
 27824  
 27825  // PageSize sets the optional parameter "pageSize": The maximum number of
 27826  // records to return in a single page. The server may return fewer records than
 27827  // this. If unspecified, we use 10. The maximum is 100.
 27828  func (c *ProjectsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsAnswerRecordsListCall {
 27829  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27830  	return c
 27831  }
 27832  
 27833  // PageToken sets the optional parameter "pageToken": The
 27834  // ListAnswerRecordsResponse.next_page_token value returned from a previous
 27835  // list request used to continue listing on the next page.
 27836  func (c *ProjectsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsAnswerRecordsListCall {
 27837  	c.urlParams_.Set("pageToken", pageToken)
 27838  	return c
 27839  }
 27840  
 27841  // Fields allows partial responses to be retrieved. See
 27842  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27843  // details.
 27844  func (c *ProjectsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsListCall {
 27845  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27846  	return c
 27847  }
 27848  
 27849  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27850  // object's ETag matches the given value. This is useful for getting updates
 27851  // only after the object has changed since the last request.
 27852  func (c *ProjectsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsListCall {
 27853  	c.ifNoneMatch_ = entityTag
 27854  	return c
 27855  }
 27856  
 27857  // Context sets the context to be used in this call's Do method.
 27858  func (c *ProjectsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsAnswerRecordsListCall {
 27859  	c.ctx_ = ctx
 27860  	return c
 27861  }
 27862  
 27863  // Header returns a http.Header that can be modified by the caller to add
 27864  // headers to the request.
 27865  func (c *ProjectsAnswerRecordsListCall) Header() http.Header {
 27866  	if c.header_ == nil {
 27867  		c.header_ = make(http.Header)
 27868  	}
 27869  	return c.header_
 27870  }
 27871  
 27872  func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
 27873  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27874  	if c.ifNoneMatch_ != "" {
 27875  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27876  	}
 27877  	var body io.Reader = nil
 27878  	c.urlParams_.Set("alt", alt)
 27879  	c.urlParams_.Set("prettyPrint", "false")
 27880  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/answerRecords")
 27881  	urls += "?" + c.urlParams_.Encode()
 27882  	req, err := http.NewRequest("GET", urls, body)
 27883  	if err != nil {
 27884  		return nil, err
 27885  	}
 27886  	req.Header = reqHeaders
 27887  	googleapi.Expand(req.URL, map[string]string{
 27888  		"parent": c.parent,
 27889  	})
 27890  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27891  }
 27892  
 27893  // Do executes the "dialogflow.projects.answerRecords.list" call.
 27894  // Any non-2xx status code is an error. Response headers are in either
 27895  // *GoogleCloudDialogflowV2ListAnswerRecordsResponse.ServerResponse.Header or
 27896  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 27897  // googleapi.IsNotModified to check whether the returned error was because
 27898  // http.StatusNotModified was returned.
 27899  func (c *ProjectsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListAnswerRecordsResponse, error) {
 27900  	gensupport.SetOptions(c.urlParams_, opts...)
 27901  	res, err := c.doRequest("json")
 27902  	if res != nil && res.StatusCode == http.StatusNotModified {
 27903  		if res.Body != nil {
 27904  			res.Body.Close()
 27905  		}
 27906  		return nil, gensupport.WrapError(&googleapi.Error{
 27907  			Code:   res.StatusCode,
 27908  			Header: res.Header,
 27909  		})
 27910  	}
 27911  	if err != nil {
 27912  		return nil, err
 27913  	}
 27914  	defer googleapi.CloseBody(res)
 27915  	if err := googleapi.CheckResponse(res); err != nil {
 27916  		return nil, gensupport.WrapError(err)
 27917  	}
 27918  	ret := &GoogleCloudDialogflowV2ListAnswerRecordsResponse{
 27919  		ServerResponse: googleapi.ServerResponse{
 27920  			Header:         res.Header,
 27921  			HTTPStatusCode: res.StatusCode,
 27922  		},
 27923  	}
 27924  	target := &ret
 27925  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27926  		return nil, err
 27927  	}
 27928  	return ret, nil
 27929  }
 27930  
 27931  // Pages invokes f for each page of results.
 27932  // A non-nil error returned from f will halt the iteration.
 27933  // The provided context supersedes any context provided to the Context method.
 27934  func (c *ProjectsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListAnswerRecordsResponse) error) error {
 27935  	c.ctx_ = ctx
 27936  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27937  	for {
 27938  		x, err := c.Do()
 27939  		if err != nil {
 27940  			return err
 27941  		}
 27942  		if err := f(x); err != nil {
 27943  			return err
 27944  		}
 27945  		if x.NextPageToken == "" {
 27946  			return nil
 27947  		}
 27948  		c.PageToken(x.NextPageToken)
 27949  	}
 27950  }
 27951  
 27952  type ProjectsAnswerRecordsPatchCall struct {
 27953  	s                                   *Service
 27954  	nameid                              string
 27955  	googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord
 27956  	urlParams_                          gensupport.URLParams
 27957  	ctx_                                context.Context
 27958  	header_                             http.Header
 27959  }
 27960  
 27961  // Patch: Updates the specified answer record.
 27962  //
 27963  //   - name: The unique identifier of this answer record. Format:
 27964  //     `projects//locations//answerRecords/`.
 27965  func (r *ProjectsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord) *ProjectsAnswerRecordsPatchCall {
 27966  	c := &ProjectsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27967  	c.nameid = nameid
 27968  	c.googleclouddialogflowv2answerrecord = googleclouddialogflowv2answerrecord
 27969  	return c
 27970  }
 27971  
 27972  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 27973  // control which fields get updated.
 27974  func (c *ProjectsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsAnswerRecordsPatchCall {
 27975  	c.urlParams_.Set("updateMask", updateMask)
 27976  	return c
 27977  }
 27978  
 27979  // Fields allows partial responses to be retrieved. See
 27980  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27981  // details.
 27982  func (c *ProjectsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsPatchCall {
 27983  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27984  	return c
 27985  }
 27986  
 27987  // Context sets the context to be used in this call's Do method.
 27988  func (c *ProjectsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsAnswerRecordsPatchCall {
 27989  	c.ctx_ = ctx
 27990  	return c
 27991  }
 27992  
 27993  // Header returns a http.Header that can be modified by the caller to add
 27994  // headers to the request.
 27995  func (c *ProjectsAnswerRecordsPatchCall) Header() http.Header {
 27996  	if c.header_ == nil {
 27997  		c.header_ = make(http.Header)
 27998  	}
 27999  	return c.header_
 28000  }
 28001  
 28002  func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
 28003  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28004  	var body io.Reader = nil
 28005  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2answerrecord)
 28006  	if err != nil {
 28007  		return nil, err
 28008  	}
 28009  	c.urlParams_.Set("alt", alt)
 28010  	c.urlParams_.Set("prettyPrint", "false")
 28011  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 28012  	urls += "?" + c.urlParams_.Encode()
 28013  	req, err := http.NewRequest("PATCH", urls, body)
 28014  	if err != nil {
 28015  		return nil, err
 28016  	}
 28017  	req.Header = reqHeaders
 28018  	googleapi.Expand(req.URL, map[string]string{
 28019  		"name": c.nameid,
 28020  	})
 28021  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28022  }
 28023  
 28024  // Do executes the "dialogflow.projects.answerRecords.patch" call.
 28025  // Any non-2xx status code is an error. Response headers are in either
 28026  // *GoogleCloudDialogflowV2AnswerRecord.ServerResponse.Header or (if a response
 28027  // was returned at all) in error.(*googleapi.Error).Header. Use
 28028  // googleapi.IsNotModified to check whether the returned error was because
 28029  // http.StatusNotModified was returned.
 28030  func (c *ProjectsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnswerRecord, error) {
 28031  	gensupport.SetOptions(c.urlParams_, opts...)
 28032  	res, err := c.doRequest("json")
 28033  	if res != nil && res.StatusCode == http.StatusNotModified {
 28034  		if res.Body != nil {
 28035  			res.Body.Close()
 28036  		}
 28037  		return nil, gensupport.WrapError(&googleapi.Error{
 28038  			Code:   res.StatusCode,
 28039  			Header: res.Header,
 28040  		})
 28041  	}
 28042  	if err != nil {
 28043  		return nil, err
 28044  	}
 28045  	defer googleapi.CloseBody(res)
 28046  	if err := googleapi.CheckResponse(res); err != nil {
 28047  		return nil, gensupport.WrapError(err)
 28048  	}
 28049  	ret := &GoogleCloudDialogflowV2AnswerRecord{
 28050  		ServerResponse: googleapi.ServerResponse{
 28051  			Header:         res.Header,
 28052  			HTTPStatusCode: res.StatusCode,
 28053  		},
 28054  	}
 28055  	target := &ret
 28056  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28057  		return nil, err
 28058  	}
 28059  	return ret, nil
 28060  }
 28061  
 28062  type ProjectsConversationDatasetsGetCall struct {
 28063  	s            *Service
 28064  	name         string
 28065  	urlParams_   gensupport.URLParams
 28066  	ifNoneMatch_ string
 28067  	ctx_         context.Context
 28068  	header_      http.Header
 28069  }
 28070  
 28071  // Get: Retrieves the specified conversation dataset.
 28072  //
 28073  //   - name: The conversation dataset to retrieve. Format:
 28074  //     `projects//locations//conversationDatasets/`.
 28075  func (r *ProjectsConversationDatasetsService) Get(name string) *ProjectsConversationDatasetsGetCall {
 28076  	c := &ProjectsConversationDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28077  	c.name = name
 28078  	return c
 28079  }
 28080  
 28081  // Fields allows partial responses to be retrieved. See
 28082  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28083  // details.
 28084  func (c *ProjectsConversationDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationDatasetsGetCall {
 28085  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28086  	return c
 28087  }
 28088  
 28089  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28090  // object's ETag matches the given value. This is useful for getting updates
 28091  // only after the object has changed since the last request.
 28092  func (c *ProjectsConversationDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationDatasetsGetCall {
 28093  	c.ifNoneMatch_ = entityTag
 28094  	return c
 28095  }
 28096  
 28097  // Context sets the context to be used in this call's Do method.
 28098  func (c *ProjectsConversationDatasetsGetCall) Context(ctx context.Context) *ProjectsConversationDatasetsGetCall {
 28099  	c.ctx_ = ctx
 28100  	return c
 28101  }
 28102  
 28103  // Header returns a http.Header that can be modified by the caller to add
 28104  // headers to the request.
 28105  func (c *ProjectsConversationDatasetsGetCall) Header() http.Header {
 28106  	if c.header_ == nil {
 28107  		c.header_ = make(http.Header)
 28108  	}
 28109  	return c.header_
 28110  }
 28111  
 28112  func (c *ProjectsConversationDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
 28113  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28114  	if c.ifNoneMatch_ != "" {
 28115  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28116  	}
 28117  	var body io.Reader = nil
 28118  	c.urlParams_.Set("alt", alt)
 28119  	c.urlParams_.Set("prettyPrint", "false")
 28120  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 28121  	urls += "?" + c.urlParams_.Encode()
 28122  	req, err := http.NewRequest("GET", urls, body)
 28123  	if err != nil {
 28124  		return nil, err
 28125  	}
 28126  	req.Header = reqHeaders
 28127  	googleapi.Expand(req.URL, map[string]string{
 28128  		"name": c.name,
 28129  	})
 28130  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28131  }
 28132  
 28133  // Do executes the "dialogflow.projects.conversationDatasets.get" call.
 28134  // Any non-2xx status code is an error. Response headers are in either
 28135  // *GoogleCloudDialogflowV2ConversationDataset.ServerResponse.Header or (if a
 28136  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28137  // googleapi.IsNotModified to check whether the returned error was because
 28138  // http.StatusNotModified was returned.
 28139  func (c *ProjectsConversationDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationDataset, error) {
 28140  	gensupport.SetOptions(c.urlParams_, opts...)
 28141  	res, err := c.doRequest("json")
 28142  	if res != nil && res.StatusCode == http.StatusNotModified {
 28143  		if res.Body != nil {
 28144  			res.Body.Close()
 28145  		}
 28146  		return nil, gensupport.WrapError(&googleapi.Error{
 28147  			Code:   res.StatusCode,
 28148  			Header: res.Header,
 28149  		})
 28150  	}
 28151  	if err != nil {
 28152  		return nil, err
 28153  	}
 28154  	defer googleapi.CloseBody(res)
 28155  	if err := googleapi.CheckResponse(res); err != nil {
 28156  		return nil, gensupport.WrapError(err)
 28157  	}
 28158  	ret := &GoogleCloudDialogflowV2ConversationDataset{
 28159  		ServerResponse: googleapi.ServerResponse{
 28160  			Header:         res.Header,
 28161  			HTTPStatusCode: res.StatusCode,
 28162  		},
 28163  	}
 28164  	target := &ret
 28165  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28166  		return nil, err
 28167  	}
 28168  	return ret, nil
 28169  }
 28170  
 28171  type ProjectsConversationDatasetsImportConversationDataCall struct {
 28172  	s                                                    *Service
 28173  	name                                                 string
 28174  	googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest
 28175  	urlParams_                                           gensupport.URLParams
 28176  	ctx_                                                 context.Context
 28177  	header_                                              http.Header
 28178  }
 28179  
 28180  // ImportConversationData: Import data into the specified conversation dataset.
 28181  // Note that it is not allowed to import data to a conversation dataset that
 28182  // already has data in it. This method is a long-running operation
 28183  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 28184  // The returned `Operation` type has the following method-specific fields: -
 28185  // `metadata`: ImportConversationDataOperationMetadata - `response`:
 28186  // ImportConversationDataOperationResponse
 28187  //
 28188  //   - name: Dataset resource name. Format:
 28189  //     `projects//locations//conversationDatasets/`.
 28190  func (r *ProjectsConversationDatasetsService) ImportConversationData(name string, googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest) *ProjectsConversationDatasetsImportConversationDataCall {
 28191  	c := &ProjectsConversationDatasetsImportConversationDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28192  	c.name = name
 28193  	c.googleclouddialogflowv2importconversationdatarequest = googleclouddialogflowv2importconversationdatarequest
 28194  	return c
 28195  }
 28196  
 28197  // Fields allows partial responses to be retrieved. See
 28198  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28199  // details.
 28200  func (c *ProjectsConversationDatasetsImportConversationDataCall) Fields(s ...googleapi.Field) *ProjectsConversationDatasetsImportConversationDataCall {
 28201  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28202  	return c
 28203  }
 28204  
 28205  // Context sets the context to be used in this call's Do method.
 28206  func (c *ProjectsConversationDatasetsImportConversationDataCall) Context(ctx context.Context) *ProjectsConversationDatasetsImportConversationDataCall {
 28207  	c.ctx_ = ctx
 28208  	return c
 28209  }
 28210  
 28211  // Header returns a http.Header that can be modified by the caller to add
 28212  // headers to the request.
 28213  func (c *ProjectsConversationDatasetsImportConversationDataCall) Header() http.Header {
 28214  	if c.header_ == nil {
 28215  		c.header_ = make(http.Header)
 28216  	}
 28217  	return c.header_
 28218  }
 28219  
 28220  func (c *ProjectsConversationDatasetsImportConversationDataCall) doRequest(alt string) (*http.Response, error) {
 28221  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28222  	var body io.Reader = nil
 28223  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importconversationdatarequest)
 28224  	if err != nil {
 28225  		return nil, err
 28226  	}
 28227  	c.urlParams_.Set("alt", alt)
 28228  	c.urlParams_.Set("prettyPrint", "false")
 28229  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:importConversationData")
 28230  	urls += "?" + c.urlParams_.Encode()
 28231  	req, err := http.NewRequest("POST", urls, body)
 28232  	if err != nil {
 28233  		return nil, err
 28234  	}
 28235  	req.Header = reqHeaders
 28236  	googleapi.Expand(req.URL, map[string]string{
 28237  		"name": c.name,
 28238  	})
 28239  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28240  }
 28241  
 28242  // Do executes the "dialogflow.projects.conversationDatasets.importConversationData" call.
 28243  // Any non-2xx status code is an error. Response headers are in either
 28244  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28245  // returned at all) in error.(*googleapi.Error).Header. Use
 28246  // googleapi.IsNotModified to check whether the returned error was because
 28247  // http.StatusNotModified was returned.
 28248  func (c *ProjectsConversationDatasetsImportConversationDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28249  	gensupport.SetOptions(c.urlParams_, opts...)
 28250  	res, err := c.doRequest("json")
 28251  	if res != nil && res.StatusCode == http.StatusNotModified {
 28252  		if res.Body != nil {
 28253  			res.Body.Close()
 28254  		}
 28255  		return nil, gensupport.WrapError(&googleapi.Error{
 28256  			Code:   res.StatusCode,
 28257  			Header: res.Header,
 28258  		})
 28259  	}
 28260  	if err != nil {
 28261  		return nil, err
 28262  	}
 28263  	defer googleapi.CloseBody(res)
 28264  	if err := googleapi.CheckResponse(res); err != nil {
 28265  		return nil, gensupport.WrapError(err)
 28266  	}
 28267  	ret := &GoogleLongrunningOperation{
 28268  		ServerResponse: googleapi.ServerResponse{
 28269  			Header:         res.Header,
 28270  			HTTPStatusCode: res.StatusCode,
 28271  		},
 28272  	}
 28273  	target := &ret
 28274  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28275  		return nil, err
 28276  	}
 28277  	return ret, nil
 28278  }
 28279  
 28280  type ProjectsConversationDatasetsListCall struct {
 28281  	s            *Service
 28282  	parent       string
 28283  	urlParams_   gensupport.URLParams
 28284  	ifNoneMatch_ string
 28285  	ctx_         context.Context
 28286  	header_      http.Header
 28287  }
 28288  
 28289  // List: Returns the list of all conversation datasets in the specified project
 28290  // and location.
 28291  //
 28292  //   - parent: The project and location name to list all conversation datasets
 28293  //     for. Format: `projects//locations/`.
 28294  func (r *ProjectsConversationDatasetsService) List(parent string) *ProjectsConversationDatasetsListCall {
 28295  	c := &ProjectsConversationDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28296  	c.parent = parent
 28297  	return c
 28298  }
 28299  
 28300  // PageSize sets the optional parameter "pageSize": Maximum number of
 28301  // conversation datasets to return in a single page. By default 100 and at most
 28302  // 1000.
 28303  func (c *ProjectsConversationDatasetsListCall) PageSize(pageSize int64) *ProjectsConversationDatasetsListCall {
 28304  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28305  	return c
 28306  }
 28307  
 28308  // PageToken sets the optional parameter "pageToken": The next_page_token value
 28309  // returned from a previous list request.
 28310  func (c *ProjectsConversationDatasetsListCall) PageToken(pageToken string) *ProjectsConversationDatasetsListCall {
 28311  	c.urlParams_.Set("pageToken", pageToken)
 28312  	return c
 28313  }
 28314  
 28315  // Fields allows partial responses to be retrieved. See
 28316  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28317  // details.
 28318  func (c *ProjectsConversationDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsConversationDatasetsListCall {
 28319  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28320  	return c
 28321  }
 28322  
 28323  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28324  // object's ETag matches the given value. This is useful for getting updates
 28325  // only after the object has changed since the last request.
 28326  func (c *ProjectsConversationDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsConversationDatasetsListCall {
 28327  	c.ifNoneMatch_ = entityTag
 28328  	return c
 28329  }
 28330  
 28331  // Context sets the context to be used in this call's Do method.
 28332  func (c *ProjectsConversationDatasetsListCall) Context(ctx context.Context) *ProjectsConversationDatasetsListCall {
 28333  	c.ctx_ = ctx
 28334  	return c
 28335  }
 28336  
 28337  // Header returns a http.Header that can be modified by the caller to add
 28338  // headers to the request.
 28339  func (c *ProjectsConversationDatasetsListCall) Header() http.Header {
 28340  	if c.header_ == nil {
 28341  		c.header_ = make(http.Header)
 28342  	}
 28343  	return c.header_
 28344  }
 28345  
 28346  func (c *ProjectsConversationDatasetsListCall) doRequest(alt string) (*http.Response, error) {
 28347  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28348  	if c.ifNoneMatch_ != "" {
 28349  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28350  	}
 28351  	var body io.Reader = nil
 28352  	c.urlParams_.Set("alt", alt)
 28353  	c.urlParams_.Set("prettyPrint", "false")
 28354  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationDatasets")
 28355  	urls += "?" + c.urlParams_.Encode()
 28356  	req, err := http.NewRequest("GET", urls, body)
 28357  	if err != nil {
 28358  		return nil, err
 28359  	}
 28360  	req.Header = reqHeaders
 28361  	googleapi.Expand(req.URL, map[string]string{
 28362  		"parent": c.parent,
 28363  	})
 28364  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28365  }
 28366  
 28367  // Do executes the "dialogflow.projects.conversationDatasets.list" call.
 28368  // Any non-2xx status code is an error. Response headers are in either
 28369  // *GoogleCloudDialogflowV2ListConversationDatasetsResponse.ServerResponse.Heade
 28370  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 28371  // Use googleapi.IsNotModified to check whether the returned error was because
 28372  // http.StatusNotModified was returned.
 28373  func (c *ProjectsConversationDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationDatasetsResponse, error) {
 28374  	gensupport.SetOptions(c.urlParams_, opts...)
 28375  	res, err := c.doRequest("json")
 28376  	if res != nil && res.StatusCode == http.StatusNotModified {
 28377  		if res.Body != nil {
 28378  			res.Body.Close()
 28379  		}
 28380  		return nil, gensupport.WrapError(&googleapi.Error{
 28381  			Code:   res.StatusCode,
 28382  			Header: res.Header,
 28383  		})
 28384  	}
 28385  	if err != nil {
 28386  		return nil, err
 28387  	}
 28388  	defer googleapi.CloseBody(res)
 28389  	if err := googleapi.CheckResponse(res); err != nil {
 28390  		return nil, gensupport.WrapError(err)
 28391  	}
 28392  	ret := &GoogleCloudDialogflowV2ListConversationDatasetsResponse{
 28393  		ServerResponse: googleapi.ServerResponse{
 28394  			Header:         res.Header,
 28395  			HTTPStatusCode: res.StatusCode,
 28396  		},
 28397  	}
 28398  	target := &ret
 28399  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28400  		return nil, err
 28401  	}
 28402  	return ret, nil
 28403  }
 28404  
 28405  // Pages invokes f for each page of results.
 28406  // A non-nil error returned from f will halt the iteration.
 28407  // The provided context supersedes any context provided to the Context method.
 28408  func (c *ProjectsConversationDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationDatasetsResponse) error) error {
 28409  	c.ctx_ = ctx
 28410  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28411  	for {
 28412  		x, err := c.Do()
 28413  		if err != nil {
 28414  			return err
 28415  		}
 28416  		if err := f(x); err != nil {
 28417  			return err
 28418  		}
 28419  		if x.NextPageToken == "" {
 28420  			return nil
 28421  		}
 28422  		c.PageToken(x.NextPageToken)
 28423  	}
 28424  }
 28425  
 28426  type ProjectsConversationModelsCreateCall struct {
 28427  	s                                        *Service
 28428  	parent                                   string
 28429  	googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel
 28430  	urlParams_                               gensupport.URLParams
 28431  	ctx_                                     context.Context
 28432  	header_                                  http.Header
 28433  }
 28434  
 28435  // Create: Creates a model. This method is a long-running operation
 28436  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 28437  // The returned `Operation` type has the following method-specific fields: -
 28438  // `metadata`: CreateConversationModelOperationMetadata - `response`:
 28439  // ConversationModel
 28440  //
 28441  // - parent: The project to create conversation model for. Format: `projects/`.
 28442  func (r *ProjectsConversationModelsService) Create(parent string, googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel) *ProjectsConversationModelsCreateCall {
 28443  	c := &ProjectsConversationModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28444  	c.parent = parent
 28445  	c.googleclouddialogflowv2conversationmodel = googleclouddialogflowv2conversationmodel
 28446  	return c
 28447  }
 28448  
 28449  // Fields allows partial responses to be retrieved. See
 28450  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28451  // details.
 28452  func (c *ProjectsConversationModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsCreateCall {
 28453  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28454  	return c
 28455  }
 28456  
 28457  // Context sets the context to be used in this call's Do method.
 28458  func (c *ProjectsConversationModelsCreateCall) Context(ctx context.Context) *ProjectsConversationModelsCreateCall {
 28459  	c.ctx_ = ctx
 28460  	return c
 28461  }
 28462  
 28463  // Header returns a http.Header that can be modified by the caller to add
 28464  // headers to the request.
 28465  func (c *ProjectsConversationModelsCreateCall) Header() http.Header {
 28466  	if c.header_ == nil {
 28467  		c.header_ = make(http.Header)
 28468  	}
 28469  	return c.header_
 28470  }
 28471  
 28472  func (c *ProjectsConversationModelsCreateCall) doRequest(alt string) (*http.Response, error) {
 28473  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28474  	var body io.Reader = nil
 28475  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationmodel)
 28476  	if err != nil {
 28477  		return nil, err
 28478  	}
 28479  	c.urlParams_.Set("alt", alt)
 28480  	c.urlParams_.Set("prettyPrint", "false")
 28481  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
 28482  	urls += "?" + c.urlParams_.Encode()
 28483  	req, err := http.NewRequest("POST", urls, body)
 28484  	if err != nil {
 28485  		return nil, err
 28486  	}
 28487  	req.Header = reqHeaders
 28488  	googleapi.Expand(req.URL, map[string]string{
 28489  		"parent": c.parent,
 28490  	})
 28491  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28492  }
 28493  
 28494  // Do executes the "dialogflow.projects.conversationModels.create" call.
 28495  // Any non-2xx status code is an error. Response headers are in either
 28496  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28497  // returned at all) in error.(*googleapi.Error).Header. Use
 28498  // googleapi.IsNotModified to check whether the returned error was because
 28499  // http.StatusNotModified was returned.
 28500  func (c *ProjectsConversationModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28501  	gensupport.SetOptions(c.urlParams_, opts...)
 28502  	res, err := c.doRequest("json")
 28503  	if res != nil && res.StatusCode == http.StatusNotModified {
 28504  		if res.Body != nil {
 28505  			res.Body.Close()
 28506  		}
 28507  		return nil, gensupport.WrapError(&googleapi.Error{
 28508  			Code:   res.StatusCode,
 28509  			Header: res.Header,
 28510  		})
 28511  	}
 28512  	if err != nil {
 28513  		return nil, err
 28514  	}
 28515  	defer googleapi.CloseBody(res)
 28516  	if err := googleapi.CheckResponse(res); err != nil {
 28517  		return nil, gensupport.WrapError(err)
 28518  	}
 28519  	ret := &GoogleLongrunningOperation{
 28520  		ServerResponse: googleapi.ServerResponse{
 28521  			Header:         res.Header,
 28522  			HTTPStatusCode: res.StatusCode,
 28523  		},
 28524  	}
 28525  	target := &ret
 28526  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28527  		return nil, err
 28528  	}
 28529  	return ret, nil
 28530  }
 28531  
 28532  type ProjectsConversationModelsDeleteCall struct {
 28533  	s          *Service
 28534  	name       string
 28535  	urlParams_ gensupport.URLParams
 28536  	ctx_       context.Context
 28537  	header_    http.Header
 28538  }
 28539  
 28540  // Delete: Deletes a model. This method is a long-running operation
 28541  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 28542  // The returned `Operation` type has the following method-specific fields: -
 28543  // `metadata`: DeleteConversationModelOperationMetadata - `response`: An Empty
 28544  // message
 28545  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 28546  //
 28547  //   - name: The conversation model to delete. Format:
 28548  //     `projects//conversationModels/`.
 28549  func (r *ProjectsConversationModelsService) Delete(name string) *ProjectsConversationModelsDeleteCall {
 28550  	c := &ProjectsConversationModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28551  	c.name = name
 28552  	return c
 28553  }
 28554  
 28555  // Fields allows partial responses to be retrieved. See
 28556  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28557  // details.
 28558  func (c *ProjectsConversationModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsDeleteCall {
 28559  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28560  	return c
 28561  }
 28562  
 28563  // Context sets the context to be used in this call's Do method.
 28564  func (c *ProjectsConversationModelsDeleteCall) Context(ctx context.Context) *ProjectsConversationModelsDeleteCall {
 28565  	c.ctx_ = ctx
 28566  	return c
 28567  }
 28568  
 28569  // Header returns a http.Header that can be modified by the caller to add
 28570  // headers to the request.
 28571  func (c *ProjectsConversationModelsDeleteCall) Header() http.Header {
 28572  	if c.header_ == nil {
 28573  		c.header_ = make(http.Header)
 28574  	}
 28575  	return c.header_
 28576  }
 28577  
 28578  func (c *ProjectsConversationModelsDeleteCall) doRequest(alt string) (*http.Response, error) {
 28579  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28580  	var body io.Reader = nil
 28581  	c.urlParams_.Set("alt", alt)
 28582  	c.urlParams_.Set("prettyPrint", "false")
 28583  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 28584  	urls += "?" + c.urlParams_.Encode()
 28585  	req, err := http.NewRequest("DELETE", urls, body)
 28586  	if err != nil {
 28587  		return nil, err
 28588  	}
 28589  	req.Header = reqHeaders
 28590  	googleapi.Expand(req.URL, map[string]string{
 28591  		"name": c.name,
 28592  	})
 28593  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28594  }
 28595  
 28596  // Do executes the "dialogflow.projects.conversationModels.delete" call.
 28597  // Any non-2xx status code is an error. Response headers are in either
 28598  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28599  // returned at all) in error.(*googleapi.Error).Header. Use
 28600  // googleapi.IsNotModified to check whether the returned error was because
 28601  // http.StatusNotModified was returned.
 28602  func (c *ProjectsConversationModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28603  	gensupport.SetOptions(c.urlParams_, opts...)
 28604  	res, err := c.doRequest("json")
 28605  	if res != nil && res.StatusCode == http.StatusNotModified {
 28606  		if res.Body != nil {
 28607  			res.Body.Close()
 28608  		}
 28609  		return nil, gensupport.WrapError(&googleapi.Error{
 28610  			Code:   res.StatusCode,
 28611  			Header: res.Header,
 28612  		})
 28613  	}
 28614  	if err != nil {
 28615  		return nil, err
 28616  	}
 28617  	defer googleapi.CloseBody(res)
 28618  	if err := googleapi.CheckResponse(res); err != nil {
 28619  		return nil, gensupport.WrapError(err)
 28620  	}
 28621  	ret := &GoogleLongrunningOperation{
 28622  		ServerResponse: googleapi.ServerResponse{
 28623  			Header:         res.Header,
 28624  			HTTPStatusCode: res.StatusCode,
 28625  		},
 28626  	}
 28627  	target := &ret
 28628  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28629  		return nil, err
 28630  	}
 28631  	return ret, nil
 28632  }
 28633  
 28634  type ProjectsConversationModelsDeployCall struct {
 28635  	s                                                     *Service
 28636  	name                                                  string
 28637  	googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest
 28638  	urlParams_                                            gensupport.URLParams
 28639  	ctx_                                                  context.Context
 28640  	header_                                               http.Header
 28641  }
 28642  
 28643  // Deploy: Deploys a model. If a model is already deployed, deploying it has no
 28644  // effect. A model can only serve prediction requests after it gets deployed.
 28645  // For article suggestion, custom model will not be used unless it is deployed.
 28646  // This method is a long-running operation
 28647  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 28648  // The returned `Operation` type has the following method-specific fields: -
 28649  // `metadata`: DeployConversationModelOperationMetadata - `response`: An Empty
 28650  // message
 28651  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 28652  //
 28653  //   - name: The conversation model to deploy. Format:
 28654  //     `projects//conversationModels/`.
 28655  func (r *ProjectsConversationModelsService) Deploy(name string, googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest) *ProjectsConversationModelsDeployCall {
 28656  	c := &ProjectsConversationModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28657  	c.name = name
 28658  	c.googleclouddialogflowv2deployconversationmodelrequest = googleclouddialogflowv2deployconversationmodelrequest
 28659  	return c
 28660  }
 28661  
 28662  // Fields allows partial responses to be retrieved. See
 28663  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28664  // details.
 28665  func (c *ProjectsConversationModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsDeployCall {
 28666  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28667  	return c
 28668  }
 28669  
 28670  // Context sets the context to be used in this call's Do method.
 28671  func (c *ProjectsConversationModelsDeployCall) Context(ctx context.Context) *ProjectsConversationModelsDeployCall {
 28672  	c.ctx_ = ctx
 28673  	return c
 28674  }
 28675  
 28676  // Header returns a http.Header that can be modified by the caller to add
 28677  // headers to the request.
 28678  func (c *ProjectsConversationModelsDeployCall) Header() http.Header {
 28679  	if c.header_ == nil {
 28680  		c.header_ = make(http.Header)
 28681  	}
 28682  	return c.header_
 28683  }
 28684  
 28685  func (c *ProjectsConversationModelsDeployCall) doRequest(alt string) (*http.Response, error) {
 28686  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28687  	var body io.Reader = nil
 28688  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2deployconversationmodelrequest)
 28689  	if err != nil {
 28690  		return nil, err
 28691  	}
 28692  	c.urlParams_.Set("alt", alt)
 28693  	c.urlParams_.Set("prettyPrint", "false")
 28694  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:deploy")
 28695  	urls += "?" + c.urlParams_.Encode()
 28696  	req, err := http.NewRequest("POST", urls, body)
 28697  	if err != nil {
 28698  		return nil, err
 28699  	}
 28700  	req.Header = reqHeaders
 28701  	googleapi.Expand(req.URL, map[string]string{
 28702  		"name": c.name,
 28703  	})
 28704  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28705  }
 28706  
 28707  // Do executes the "dialogflow.projects.conversationModels.deploy" call.
 28708  // Any non-2xx status code is an error. Response headers are in either
 28709  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28710  // returned at all) in error.(*googleapi.Error).Header. Use
 28711  // googleapi.IsNotModified to check whether the returned error was because
 28712  // http.StatusNotModified was returned.
 28713  func (c *ProjectsConversationModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28714  	gensupport.SetOptions(c.urlParams_, opts...)
 28715  	res, err := c.doRequest("json")
 28716  	if res != nil && res.StatusCode == http.StatusNotModified {
 28717  		if res.Body != nil {
 28718  			res.Body.Close()
 28719  		}
 28720  		return nil, gensupport.WrapError(&googleapi.Error{
 28721  			Code:   res.StatusCode,
 28722  			Header: res.Header,
 28723  		})
 28724  	}
 28725  	if err != nil {
 28726  		return nil, err
 28727  	}
 28728  	defer googleapi.CloseBody(res)
 28729  	if err := googleapi.CheckResponse(res); err != nil {
 28730  		return nil, gensupport.WrapError(err)
 28731  	}
 28732  	ret := &GoogleLongrunningOperation{
 28733  		ServerResponse: googleapi.ServerResponse{
 28734  			Header:         res.Header,
 28735  			HTTPStatusCode: res.StatusCode,
 28736  		},
 28737  	}
 28738  	target := &ret
 28739  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28740  		return nil, err
 28741  	}
 28742  	return ret, nil
 28743  }
 28744  
 28745  type ProjectsConversationModelsGetCall struct {
 28746  	s            *Service
 28747  	name         string
 28748  	urlParams_   gensupport.URLParams
 28749  	ifNoneMatch_ string
 28750  	ctx_         context.Context
 28751  	header_      http.Header
 28752  }
 28753  
 28754  // Get: Gets conversation model.
 28755  //
 28756  //   - name: The conversation model to retrieve. Format:
 28757  //     `projects//conversationModels/`.
 28758  func (r *ProjectsConversationModelsService) Get(name string) *ProjectsConversationModelsGetCall {
 28759  	c := &ProjectsConversationModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28760  	c.name = name
 28761  	return c
 28762  }
 28763  
 28764  // Fields allows partial responses to be retrieved. See
 28765  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28766  // details.
 28767  func (c *ProjectsConversationModelsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsGetCall {
 28768  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28769  	return c
 28770  }
 28771  
 28772  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28773  // object's ETag matches the given value. This is useful for getting updates
 28774  // only after the object has changed since the last request.
 28775  func (c *ProjectsConversationModelsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsGetCall {
 28776  	c.ifNoneMatch_ = entityTag
 28777  	return c
 28778  }
 28779  
 28780  // Context sets the context to be used in this call's Do method.
 28781  func (c *ProjectsConversationModelsGetCall) Context(ctx context.Context) *ProjectsConversationModelsGetCall {
 28782  	c.ctx_ = ctx
 28783  	return c
 28784  }
 28785  
 28786  // Header returns a http.Header that can be modified by the caller to add
 28787  // headers to the request.
 28788  func (c *ProjectsConversationModelsGetCall) Header() http.Header {
 28789  	if c.header_ == nil {
 28790  		c.header_ = make(http.Header)
 28791  	}
 28792  	return c.header_
 28793  }
 28794  
 28795  func (c *ProjectsConversationModelsGetCall) doRequest(alt string) (*http.Response, error) {
 28796  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28797  	if c.ifNoneMatch_ != "" {
 28798  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28799  	}
 28800  	var body io.Reader = nil
 28801  	c.urlParams_.Set("alt", alt)
 28802  	c.urlParams_.Set("prettyPrint", "false")
 28803  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 28804  	urls += "?" + c.urlParams_.Encode()
 28805  	req, err := http.NewRequest("GET", urls, body)
 28806  	if err != nil {
 28807  		return nil, err
 28808  	}
 28809  	req.Header = reqHeaders
 28810  	googleapi.Expand(req.URL, map[string]string{
 28811  		"name": c.name,
 28812  	})
 28813  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28814  }
 28815  
 28816  // Do executes the "dialogflow.projects.conversationModels.get" call.
 28817  // Any non-2xx status code is an error. Response headers are in either
 28818  // *GoogleCloudDialogflowV2ConversationModel.ServerResponse.Header or (if a
 28819  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28820  // googleapi.IsNotModified to check whether the returned error was because
 28821  // http.StatusNotModified was returned.
 28822  func (c *ProjectsConversationModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModel, error) {
 28823  	gensupport.SetOptions(c.urlParams_, opts...)
 28824  	res, err := c.doRequest("json")
 28825  	if res != nil && res.StatusCode == http.StatusNotModified {
 28826  		if res.Body != nil {
 28827  			res.Body.Close()
 28828  		}
 28829  		return nil, gensupport.WrapError(&googleapi.Error{
 28830  			Code:   res.StatusCode,
 28831  			Header: res.Header,
 28832  		})
 28833  	}
 28834  	if err != nil {
 28835  		return nil, err
 28836  	}
 28837  	defer googleapi.CloseBody(res)
 28838  	if err := googleapi.CheckResponse(res); err != nil {
 28839  		return nil, gensupport.WrapError(err)
 28840  	}
 28841  	ret := &GoogleCloudDialogflowV2ConversationModel{
 28842  		ServerResponse: googleapi.ServerResponse{
 28843  			Header:         res.Header,
 28844  			HTTPStatusCode: res.StatusCode,
 28845  		},
 28846  	}
 28847  	target := &ret
 28848  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28849  		return nil, err
 28850  	}
 28851  	return ret, nil
 28852  }
 28853  
 28854  type ProjectsConversationModelsListCall struct {
 28855  	s            *Service
 28856  	parent       string
 28857  	urlParams_   gensupport.URLParams
 28858  	ifNoneMatch_ string
 28859  	ctx_         context.Context
 28860  	header_      http.Header
 28861  }
 28862  
 28863  // List: Lists conversation models.
 28864  //
 28865  //   - parent: The project to list all conversation models for. Format:
 28866  //     `projects/`.
 28867  func (r *ProjectsConversationModelsService) List(parent string) *ProjectsConversationModelsListCall {
 28868  	c := &ProjectsConversationModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28869  	c.parent = parent
 28870  	return c
 28871  }
 28872  
 28873  // PageSize sets the optional parameter "pageSize": Maximum number of
 28874  // conversation models to return in a single page. By default 100 and at most
 28875  // 1000.
 28876  func (c *ProjectsConversationModelsListCall) PageSize(pageSize int64) *ProjectsConversationModelsListCall {
 28877  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28878  	return c
 28879  }
 28880  
 28881  // PageToken sets the optional parameter "pageToken": The next_page_token value
 28882  // returned from a previous list request.
 28883  func (c *ProjectsConversationModelsListCall) PageToken(pageToken string) *ProjectsConversationModelsListCall {
 28884  	c.urlParams_.Set("pageToken", pageToken)
 28885  	return c
 28886  }
 28887  
 28888  // Fields allows partial responses to be retrieved. See
 28889  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28890  // details.
 28891  func (c *ProjectsConversationModelsListCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsListCall {
 28892  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28893  	return c
 28894  }
 28895  
 28896  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28897  // object's ETag matches the given value. This is useful for getting updates
 28898  // only after the object has changed since the last request.
 28899  func (c *ProjectsConversationModelsListCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsListCall {
 28900  	c.ifNoneMatch_ = entityTag
 28901  	return c
 28902  }
 28903  
 28904  // Context sets the context to be used in this call's Do method.
 28905  func (c *ProjectsConversationModelsListCall) Context(ctx context.Context) *ProjectsConversationModelsListCall {
 28906  	c.ctx_ = ctx
 28907  	return c
 28908  }
 28909  
 28910  // Header returns a http.Header that can be modified by the caller to add
 28911  // headers to the request.
 28912  func (c *ProjectsConversationModelsListCall) Header() http.Header {
 28913  	if c.header_ == nil {
 28914  		c.header_ = make(http.Header)
 28915  	}
 28916  	return c.header_
 28917  }
 28918  
 28919  func (c *ProjectsConversationModelsListCall) doRequest(alt string) (*http.Response, error) {
 28920  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28921  	if c.ifNoneMatch_ != "" {
 28922  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28923  	}
 28924  	var body io.Reader = nil
 28925  	c.urlParams_.Set("alt", alt)
 28926  	c.urlParams_.Set("prettyPrint", "false")
 28927  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
 28928  	urls += "?" + c.urlParams_.Encode()
 28929  	req, err := http.NewRequest("GET", urls, body)
 28930  	if err != nil {
 28931  		return nil, err
 28932  	}
 28933  	req.Header = reqHeaders
 28934  	googleapi.Expand(req.URL, map[string]string{
 28935  		"parent": c.parent,
 28936  	})
 28937  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28938  }
 28939  
 28940  // Do executes the "dialogflow.projects.conversationModels.list" call.
 28941  // Any non-2xx status code is an error. Response headers are in either
 28942  // *GoogleCloudDialogflowV2ListConversationModelsResponse.ServerResponse.Header
 28943  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 28944  // Use googleapi.IsNotModified to check whether the returned error was because
 28945  // http.StatusNotModified was returned.
 28946  func (c *ProjectsConversationModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelsResponse, error) {
 28947  	gensupport.SetOptions(c.urlParams_, opts...)
 28948  	res, err := c.doRequest("json")
 28949  	if res != nil && res.StatusCode == http.StatusNotModified {
 28950  		if res.Body != nil {
 28951  			res.Body.Close()
 28952  		}
 28953  		return nil, gensupport.WrapError(&googleapi.Error{
 28954  			Code:   res.StatusCode,
 28955  			Header: res.Header,
 28956  		})
 28957  	}
 28958  	if err != nil {
 28959  		return nil, err
 28960  	}
 28961  	defer googleapi.CloseBody(res)
 28962  	if err := googleapi.CheckResponse(res); err != nil {
 28963  		return nil, gensupport.WrapError(err)
 28964  	}
 28965  	ret := &GoogleCloudDialogflowV2ListConversationModelsResponse{
 28966  		ServerResponse: googleapi.ServerResponse{
 28967  			Header:         res.Header,
 28968  			HTTPStatusCode: res.StatusCode,
 28969  		},
 28970  	}
 28971  	target := &ret
 28972  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28973  		return nil, err
 28974  	}
 28975  	return ret, nil
 28976  }
 28977  
 28978  // Pages invokes f for each page of results.
 28979  // A non-nil error returned from f will halt the iteration.
 28980  // The provided context supersedes any context provided to the Context method.
 28981  func (c *ProjectsConversationModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelsResponse) error) error {
 28982  	c.ctx_ = ctx
 28983  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28984  	for {
 28985  		x, err := c.Do()
 28986  		if err != nil {
 28987  			return err
 28988  		}
 28989  		if err := f(x); err != nil {
 28990  			return err
 28991  		}
 28992  		if x.NextPageToken == "" {
 28993  			return nil
 28994  		}
 28995  		c.PageToken(x.NextPageToken)
 28996  	}
 28997  }
 28998  
 28999  type ProjectsConversationModelsUndeployCall struct {
 29000  	s                                                       *Service
 29001  	name                                                    string
 29002  	googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest
 29003  	urlParams_                                              gensupport.URLParams
 29004  	ctx_                                                    context.Context
 29005  	header_                                                 http.Header
 29006  }
 29007  
 29008  // Undeploy: Undeploys a model. If the model is not deployed this method has no
 29009  // effect. If the model is currently being used: - For article suggestion,
 29010  // article suggestion will fallback to the default model if model is
 29011  // undeployed. This method is a long-running operation
 29012  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 29013  // The returned `Operation` type has the following method-specific fields: -
 29014  // `metadata`: UndeployConversationModelOperationMetadata - `response`: An
 29015  // Empty message
 29016  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 29017  //
 29018  //   - name: The conversation model to undeploy. Format:
 29019  //     `projects//conversationModels/`.
 29020  func (r *ProjectsConversationModelsService) Undeploy(name string, googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest) *ProjectsConversationModelsUndeployCall {
 29021  	c := &ProjectsConversationModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29022  	c.name = name
 29023  	c.googleclouddialogflowv2undeployconversationmodelrequest = googleclouddialogflowv2undeployconversationmodelrequest
 29024  	return c
 29025  }
 29026  
 29027  // Fields allows partial responses to be retrieved. See
 29028  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29029  // details.
 29030  func (c *ProjectsConversationModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsUndeployCall {
 29031  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29032  	return c
 29033  }
 29034  
 29035  // Context sets the context to be used in this call's Do method.
 29036  func (c *ProjectsConversationModelsUndeployCall) Context(ctx context.Context) *ProjectsConversationModelsUndeployCall {
 29037  	c.ctx_ = ctx
 29038  	return c
 29039  }
 29040  
 29041  // Header returns a http.Header that can be modified by the caller to add
 29042  // headers to the request.
 29043  func (c *ProjectsConversationModelsUndeployCall) Header() http.Header {
 29044  	if c.header_ == nil {
 29045  		c.header_ = make(http.Header)
 29046  	}
 29047  	return c.header_
 29048  }
 29049  
 29050  func (c *ProjectsConversationModelsUndeployCall) doRequest(alt string) (*http.Response, error) {
 29051  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29052  	var body io.Reader = nil
 29053  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2undeployconversationmodelrequest)
 29054  	if err != nil {
 29055  		return nil, err
 29056  	}
 29057  	c.urlParams_.Set("alt", alt)
 29058  	c.urlParams_.Set("prettyPrint", "false")
 29059  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undeploy")
 29060  	urls += "?" + c.urlParams_.Encode()
 29061  	req, err := http.NewRequest("POST", urls, body)
 29062  	if err != nil {
 29063  		return nil, err
 29064  	}
 29065  	req.Header = reqHeaders
 29066  	googleapi.Expand(req.URL, map[string]string{
 29067  		"name": c.name,
 29068  	})
 29069  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29070  }
 29071  
 29072  // Do executes the "dialogflow.projects.conversationModels.undeploy" call.
 29073  // Any non-2xx status code is an error. Response headers are in either
 29074  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29075  // returned at all) in error.(*googleapi.Error).Header. Use
 29076  // googleapi.IsNotModified to check whether the returned error was because
 29077  // http.StatusNotModified was returned.
 29078  func (c *ProjectsConversationModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29079  	gensupport.SetOptions(c.urlParams_, opts...)
 29080  	res, err := c.doRequest("json")
 29081  	if res != nil && res.StatusCode == http.StatusNotModified {
 29082  		if res.Body != nil {
 29083  			res.Body.Close()
 29084  		}
 29085  		return nil, gensupport.WrapError(&googleapi.Error{
 29086  			Code:   res.StatusCode,
 29087  			Header: res.Header,
 29088  		})
 29089  	}
 29090  	if err != nil {
 29091  		return nil, err
 29092  	}
 29093  	defer googleapi.CloseBody(res)
 29094  	if err := googleapi.CheckResponse(res); err != nil {
 29095  		return nil, gensupport.WrapError(err)
 29096  	}
 29097  	ret := &GoogleLongrunningOperation{
 29098  		ServerResponse: googleapi.ServerResponse{
 29099  			Header:         res.Header,
 29100  			HTTPStatusCode: res.StatusCode,
 29101  		},
 29102  	}
 29103  	target := &ret
 29104  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29105  		return nil, err
 29106  	}
 29107  	return ret, nil
 29108  }
 29109  
 29110  type ProjectsConversationModelsEvaluationsGetCall struct {
 29111  	s            *Service
 29112  	name         string
 29113  	urlParams_   gensupport.URLParams
 29114  	ifNoneMatch_ string
 29115  	ctx_         context.Context
 29116  	header_      http.Header
 29117  }
 29118  
 29119  // Get: Gets an evaluation of conversation model.
 29120  //
 29121  //   - name: The conversation model evaluation resource name. Format:
 29122  //     `projects//conversationModels//evaluations/`.
 29123  func (r *ProjectsConversationModelsEvaluationsService) Get(name string) *ProjectsConversationModelsEvaluationsGetCall {
 29124  	c := &ProjectsConversationModelsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29125  	c.name = name
 29126  	return c
 29127  }
 29128  
 29129  // Fields allows partial responses to be retrieved. See
 29130  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29131  // details.
 29132  func (c *ProjectsConversationModelsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsEvaluationsGetCall {
 29133  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29134  	return c
 29135  }
 29136  
 29137  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29138  // object's ETag matches the given value. This is useful for getting updates
 29139  // only after the object has changed since the last request.
 29140  func (c *ProjectsConversationModelsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsEvaluationsGetCall {
 29141  	c.ifNoneMatch_ = entityTag
 29142  	return c
 29143  }
 29144  
 29145  // Context sets the context to be used in this call's Do method.
 29146  func (c *ProjectsConversationModelsEvaluationsGetCall) Context(ctx context.Context) *ProjectsConversationModelsEvaluationsGetCall {
 29147  	c.ctx_ = ctx
 29148  	return c
 29149  }
 29150  
 29151  // Header returns a http.Header that can be modified by the caller to add
 29152  // headers to the request.
 29153  func (c *ProjectsConversationModelsEvaluationsGetCall) Header() http.Header {
 29154  	if c.header_ == nil {
 29155  		c.header_ = make(http.Header)
 29156  	}
 29157  	return c.header_
 29158  }
 29159  
 29160  func (c *ProjectsConversationModelsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
 29161  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29162  	if c.ifNoneMatch_ != "" {
 29163  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29164  	}
 29165  	var body io.Reader = nil
 29166  	c.urlParams_.Set("alt", alt)
 29167  	c.urlParams_.Set("prettyPrint", "false")
 29168  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 29169  	urls += "?" + c.urlParams_.Encode()
 29170  	req, err := http.NewRequest("GET", urls, body)
 29171  	if err != nil {
 29172  		return nil, err
 29173  	}
 29174  	req.Header = reqHeaders
 29175  	googleapi.Expand(req.URL, map[string]string{
 29176  		"name": c.name,
 29177  	})
 29178  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29179  }
 29180  
 29181  // Do executes the "dialogflow.projects.conversationModels.evaluations.get" call.
 29182  // Any non-2xx status code is an error. Response headers are in either
 29183  // *GoogleCloudDialogflowV2ConversationModelEvaluation.ServerResponse.Header or
 29184  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 29185  // googleapi.IsNotModified to check whether the returned error was because
 29186  // http.StatusNotModified was returned.
 29187  func (c *ProjectsConversationModelsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModelEvaluation, error) {
 29188  	gensupport.SetOptions(c.urlParams_, opts...)
 29189  	res, err := c.doRequest("json")
 29190  	if res != nil && res.StatusCode == http.StatusNotModified {
 29191  		if res.Body != nil {
 29192  			res.Body.Close()
 29193  		}
 29194  		return nil, gensupport.WrapError(&googleapi.Error{
 29195  			Code:   res.StatusCode,
 29196  			Header: res.Header,
 29197  		})
 29198  	}
 29199  	if err != nil {
 29200  		return nil, err
 29201  	}
 29202  	defer googleapi.CloseBody(res)
 29203  	if err := googleapi.CheckResponse(res); err != nil {
 29204  		return nil, gensupport.WrapError(err)
 29205  	}
 29206  	ret := &GoogleCloudDialogflowV2ConversationModelEvaluation{
 29207  		ServerResponse: googleapi.ServerResponse{
 29208  			Header:         res.Header,
 29209  			HTTPStatusCode: res.StatusCode,
 29210  		},
 29211  	}
 29212  	target := &ret
 29213  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29214  		return nil, err
 29215  	}
 29216  	return ret, nil
 29217  }
 29218  
 29219  type ProjectsConversationModelsEvaluationsListCall struct {
 29220  	s            *Service
 29221  	parent       string
 29222  	urlParams_   gensupport.URLParams
 29223  	ifNoneMatch_ string
 29224  	ctx_         context.Context
 29225  	header_      http.Header
 29226  }
 29227  
 29228  // List: Lists evaluations of a conversation model.
 29229  //
 29230  //   - parent: The conversation model resource name. Format:
 29231  //     `projects//conversationModels/`.
 29232  func (r *ProjectsConversationModelsEvaluationsService) List(parent string) *ProjectsConversationModelsEvaluationsListCall {
 29233  	c := &ProjectsConversationModelsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29234  	c.parent = parent
 29235  	return c
 29236  }
 29237  
 29238  // PageSize sets the optional parameter "pageSize": Maximum number of
 29239  // evaluations to return in a single page. By default 100 and at most 1000.
 29240  func (c *ProjectsConversationModelsEvaluationsListCall) PageSize(pageSize int64) *ProjectsConversationModelsEvaluationsListCall {
 29241  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29242  	return c
 29243  }
 29244  
 29245  // PageToken sets the optional parameter "pageToken": The next_page_token value
 29246  // returned from a previous list request.
 29247  func (c *ProjectsConversationModelsEvaluationsListCall) PageToken(pageToken string) *ProjectsConversationModelsEvaluationsListCall {
 29248  	c.urlParams_.Set("pageToken", pageToken)
 29249  	return c
 29250  }
 29251  
 29252  // Fields allows partial responses to be retrieved. See
 29253  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29254  // details.
 29255  func (c *ProjectsConversationModelsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsEvaluationsListCall {
 29256  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29257  	return c
 29258  }
 29259  
 29260  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29261  // object's ETag matches the given value. This is useful for getting updates
 29262  // only after the object has changed since the last request.
 29263  func (c *ProjectsConversationModelsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsEvaluationsListCall {
 29264  	c.ifNoneMatch_ = entityTag
 29265  	return c
 29266  }
 29267  
 29268  // Context sets the context to be used in this call's Do method.
 29269  func (c *ProjectsConversationModelsEvaluationsListCall) Context(ctx context.Context) *ProjectsConversationModelsEvaluationsListCall {
 29270  	c.ctx_ = ctx
 29271  	return c
 29272  }
 29273  
 29274  // Header returns a http.Header that can be modified by the caller to add
 29275  // headers to the request.
 29276  func (c *ProjectsConversationModelsEvaluationsListCall) Header() http.Header {
 29277  	if c.header_ == nil {
 29278  		c.header_ = make(http.Header)
 29279  	}
 29280  	return c.header_
 29281  }
 29282  
 29283  func (c *ProjectsConversationModelsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
 29284  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29285  	if c.ifNoneMatch_ != "" {
 29286  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29287  	}
 29288  	var body io.Reader = nil
 29289  	c.urlParams_.Set("alt", alt)
 29290  	c.urlParams_.Set("prettyPrint", "false")
 29291  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/evaluations")
 29292  	urls += "?" + c.urlParams_.Encode()
 29293  	req, err := http.NewRequest("GET", urls, body)
 29294  	if err != nil {
 29295  		return nil, err
 29296  	}
 29297  	req.Header = reqHeaders
 29298  	googleapi.Expand(req.URL, map[string]string{
 29299  		"parent": c.parent,
 29300  	})
 29301  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29302  }
 29303  
 29304  // Do executes the "dialogflow.projects.conversationModels.evaluations.list" call.
 29305  // Any non-2xx status code is an error. Response headers are in either
 29306  // *GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse.ServerRespon
 29307  // se.Header or (if a response was returned at all) in
 29308  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 29309  // whether the returned error was because http.StatusNotModified was returned.
 29310  func (c *ProjectsConversationModelsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse, error) {
 29311  	gensupport.SetOptions(c.urlParams_, opts...)
 29312  	res, err := c.doRequest("json")
 29313  	if res != nil && res.StatusCode == http.StatusNotModified {
 29314  		if res.Body != nil {
 29315  			res.Body.Close()
 29316  		}
 29317  		return nil, gensupport.WrapError(&googleapi.Error{
 29318  			Code:   res.StatusCode,
 29319  			Header: res.Header,
 29320  		})
 29321  	}
 29322  	if err != nil {
 29323  		return nil, err
 29324  	}
 29325  	defer googleapi.CloseBody(res)
 29326  	if err := googleapi.CheckResponse(res); err != nil {
 29327  		return nil, gensupport.WrapError(err)
 29328  	}
 29329  	ret := &GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse{
 29330  		ServerResponse: googleapi.ServerResponse{
 29331  			Header:         res.Header,
 29332  			HTTPStatusCode: res.StatusCode,
 29333  		},
 29334  	}
 29335  	target := &ret
 29336  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29337  		return nil, err
 29338  	}
 29339  	return ret, nil
 29340  }
 29341  
 29342  // Pages invokes f for each page of results.
 29343  // A non-nil error returned from f will halt the iteration.
 29344  // The provided context supersedes any context provided to the Context method.
 29345  func (c *ProjectsConversationModelsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse) error) error {
 29346  	c.ctx_ = ctx
 29347  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29348  	for {
 29349  		x, err := c.Do()
 29350  		if err != nil {
 29351  			return err
 29352  		}
 29353  		if err := f(x); err != nil {
 29354  			return err
 29355  		}
 29356  		if x.NextPageToken == "" {
 29357  			return nil
 29358  		}
 29359  		c.PageToken(x.NextPageToken)
 29360  	}
 29361  }
 29362  
 29363  type ProjectsConversationProfilesClearSuggestionFeatureConfigCall struct {
 29364  	s                                                          *Service
 29365  	conversationProfile                                        string
 29366  	googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
 29367  	urlParams_                                                 gensupport.URLParams
 29368  	ctx_                                                       context.Context
 29369  	header_                                                    http.Header
 29370  }
 29371  
 29372  // ClearSuggestionFeatureConfig: Clears a suggestion feature from a
 29373  // conversation profile for the given participant role. This method is a
 29374  // long-running operation
 29375  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 29376  // The returned `Operation` type has the following method-specific fields: -
 29377  // `metadata`: ClearSuggestionFeatureConfigOperationMetadata - `response`:
 29378  // ConversationProfile
 29379  //
 29380  //   - conversationProfile: The Conversation Profile to add or update the
 29381  //     suggestion feature config. Format:
 29382  //     `projects//locations//conversationProfiles/`.
 29383  func (r *ProjectsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
 29384  	c := &ProjectsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29385  	c.conversationProfile = conversationProfile
 29386  	c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest = googleclouddialogflowv2clearsuggestionfeatureconfigrequest
 29387  	return c
 29388  }
 29389  
 29390  // Fields allows partial responses to be retrieved. See
 29391  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29392  // details.
 29393  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
 29394  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29395  	return c
 29396  }
 29397  
 29398  // Context sets the context to be used in this call's Do method.
 29399  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
 29400  	c.ctx_ = ctx
 29401  	return c
 29402  }
 29403  
 29404  // Header returns a http.Header that can be modified by the caller to add
 29405  // headers to the request.
 29406  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
 29407  	if c.header_ == nil {
 29408  		c.header_ = make(http.Header)
 29409  	}
 29410  	return c.header_
 29411  }
 29412  
 29413  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 29414  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29415  	var body io.Reader = nil
 29416  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest)
 29417  	if err != nil {
 29418  		return nil, err
 29419  	}
 29420  	c.urlParams_.Set("alt", alt)
 29421  	c.urlParams_.Set("prettyPrint", "false")
 29422  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:clearSuggestionFeatureConfig")
 29423  	urls += "?" + c.urlParams_.Encode()
 29424  	req, err := http.NewRequest("POST", urls, body)
 29425  	if err != nil {
 29426  		return nil, err
 29427  	}
 29428  	req.Header = reqHeaders
 29429  	googleapi.Expand(req.URL, map[string]string{
 29430  		"conversationProfile": c.conversationProfile,
 29431  	})
 29432  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29433  }
 29434  
 29435  // Do executes the "dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig" call.
 29436  // Any non-2xx status code is an error. Response headers are in either
 29437  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29438  // returned at all) in error.(*googleapi.Error).Header. Use
 29439  // googleapi.IsNotModified to check whether the returned error was because
 29440  // http.StatusNotModified was returned.
 29441  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29442  	gensupport.SetOptions(c.urlParams_, opts...)
 29443  	res, err := c.doRequest("json")
 29444  	if res != nil && res.StatusCode == http.StatusNotModified {
 29445  		if res.Body != nil {
 29446  			res.Body.Close()
 29447  		}
 29448  		return nil, gensupport.WrapError(&googleapi.Error{
 29449  			Code:   res.StatusCode,
 29450  			Header: res.Header,
 29451  		})
 29452  	}
 29453  	if err != nil {
 29454  		return nil, err
 29455  	}
 29456  	defer googleapi.CloseBody(res)
 29457  	if err := googleapi.CheckResponse(res); err != nil {
 29458  		return nil, gensupport.WrapError(err)
 29459  	}
 29460  	ret := &GoogleLongrunningOperation{
 29461  		ServerResponse: googleapi.ServerResponse{
 29462  			Header:         res.Header,
 29463  			HTTPStatusCode: res.StatusCode,
 29464  		},
 29465  	}
 29466  	target := &ret
 29467  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29468  		return nil, err
 29469  	}
 29470  	return ret, nil
 29471  }
 29472  
 29473  type ProjectsConversationProfilesCreateCall struct {
 29474  	s                                          *Service
 29475  	parent                                     string
 29476  	googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
 29477  	urlParams_                                 gensupport.URLParams
 29478  	ctx_                                       context.Context
 29479  	header_                                    http.Header
 29480  }
 29481  
 29482  // Create: Creates a conversation profile in the specified project.
 29483  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 29484  // populated in the response. You can retrieve them via GetConversationProfile
 29485  // API.
 29486  //
 29487  //   - parent: The project to create a conversation profile for. Format:
 29488  //     `projects//locations/`.
 29489  func (r *ProjectsConversationProfilesService) Create(parent string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsConversationProfilesCreateCall {
 29490  	c := &ProjectsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29491  	c.parent = parent
 29492  	c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
 29493  	return c
 29494  }
 29495  
 29496  // Fields allows partial responses to be retrieved. See
 29497  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29498  // details.
 29499  func (c *ProjectsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesCreateCall {
 29500  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29501  	return c
 29502  }
 29503  
 29504  // Context sets the context to be used in this call's Do method.
 29505  func (c *ProjectsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsConversationProfilesCreateCall {
 29506  	c.ctx_ = ctx
 29507  	return c
 29508  }
 29509  
 29510  // Header returns a http.Header that can be modified by the caller to add
 29511  // headers to the request.
 29512  func (c *ProjectsConversationProfilesCreateCall) Header() http.Header {
 29513  	if c.header_ == nil {
 29514  		c.header_ = make(http.Header)
 29515  	}
 29516  	return c.header_
 29517  }
 29518  
 29519  func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
 29520  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29521  	var body io.Reader = nil
 29522  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
 29523  	if err != nil {
 29524  		return nil, err
 29525  	}
 29526  	c.urlParams_.Set("alt", alt)
 29527  	c.urlParams_.Set("prettyPrint", "false")
 29528  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
 29529  	urls += "?" + c.urlParams_.Encode()
 29530  	req, err := http.NewRequest("POST", urls, body)
 29531  	if err != nil {
 29532  		return nil, err
 29533  	}
 29534  	req.Header = reqHeaders
 29535  	googleapi.Expand(req.URL, map[string]string{
 29536  		"parent": c.parent,
 29537  	})
 29538  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29539  }
 29540  
 29541  // Do executes the "dialogflow.projects.conversationProfiles.create" call.
 29542  // Any non-2xx status code is an error. Response headers are in either
 29543  // *GoogleCloudDialogflowV2ConversationProfile.ServerResponse.Header or (if a
 29544  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29545  // googleapi.IsNotModified to check whether the returned error was because
 29546  // http.StatusNotModified was returned.
 29547  func (c *ProjectsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
 29548  	gensupport.SetOptions(c.urlParams_, opts...)
 29549  	res, err := c.doRequest("json")
 29550  	if res != nil && res.StatusCode == http.StatusNotModified {
 29551  		if res.Body != nil {
 29552  			res.Body.Close()
 29553  		}
 29554  		return nil, gensupport.WrapError(&googleapi.Error{
 29555  			Code:   res.StatusCode,
 29556  			Header: res.Header,
 29557  		})
 29558  	}
 29559  	if err != nil {
 29560  		return nil, err
 29561  	}
 29562  	defer googleapi.CloseBody(res)
 29563  	if err := googleapi.CheckResponse(res); err != nil {
 29564  		return nil, gensupport.WrapError(err)
 29565  	}
 29566  	ret := &GoogleCloudDialogflowV2ConversationProfile{
 29567  		ServerResponse: googleapi.ServerResponse{
 29568  			Header:         res.Header,
 29569  			HTTPStatusCode: res.StatusCode,
 29570  		},
 29571  	}
 29572  	target := &ret
 29573  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29574  		return nil, err
 29575  	}
 29576  	return ret, nil
 29577  }
 29578  
 29579  type ProjectsConversationProfilesDeleteCall struct {
 29580  	s          *Service
 29581  	name       string
 29582  	urlParams_ gensupport.URLParams
 29583  	ctx_       context.Context
 29584  	header_    http.Header
 29585  }
 29586  
 29587  // Delete: Deletes the specified conversation profile.
 29588  //
 29589  //   - name: The name of the conversation profile to delete. Format:
 29590  //     `projects//locations//conversationProfiles/`.
 29591  func (r *ProjectsConversationProfilesService) Delete(name string) *ProjectsConversationProfilesDeleteCall {
 29592  	c := &ProjectsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29593  	c.name = name
 29594  	return c
 29595  }
 29596  
 29597  // Fields allows partial responses to be retrieved. See
 29598  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29599  // details.
 29600  func (c *ProjectsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesDeleteCall {
 29601  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29602  	return c
 29603  }
 29604  
 29605  // Context sets the context to be used in this call's Do method.
 29606  func (c *ProjectsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsConversationProfilesDeleteCall {
 29607  	c.ctx_ = ctx
 29608  	return c
 29609  }
 29610  
 29611  // Header returns a http.Header that can be modified by the caller to add
 29612  // headers to the request.
 29613  func (c *ProjectsConversationProfilesDeleteCall) Header() http.Header {
 29614  	if c.header_ == nil {
 29615  		c.header_ = make(http.Header)
 29616  	}
 29617  	return c.header_
 29618  }
 29619  
 29620  func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 29621  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29622  	var body io.Reader = nil
 29623  	c.urlParams_.Set("alt", alt)
 29624  	c.urlParams_.Set("prettyPrint", "false")
 29625  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 29626  	urls += "?" + c.urlParams_.Encode()
 29627  	req, err := http.NewRequest("DELETE", urls, body)
 29628  	if err != nil {
 29629  		return nil, err
 29630  	}
 29631  	req.Header = reqHeaders
 29632  	googleapi.Expand(req.URL, map[string]string{
 29633  		"name": c.name,
 29634  	})
 29635  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29636  }
 29637  
 29638  // Do executes the "dialogflow.projects.conversationProfiles.delete" call.
 29639  // Any non-2xx status code is an error. Response headers are in either
 29640  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 29641  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 29642  // check whether the returned error was because http.StatusNotModified was
 29643  // returned.
 29644  func (c *ProjectsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 29645  	gensupport.SetOptions(c.urlParams_, opts...)
 29646  	res, err := c.doRequest("json")
 29647  	if res != nil && res.StatusCode == http.StatusNotModified {
 29648  		if res.Body != nil {
 29649  			res.Body.Close()
 29650  		}
 29651  		return nil, gensupport.WrapError(&googleapi.Error{
 29652  			Code:   res.StatusCode,
 29653  			Header: res.Header,
 29654  		})
 29655  	}
 29656  	if err != nil {
 29657  		return nil, err
 29658  	}
 29659  	defer googleapi.CloseBody(res)
 29660  	if err := googleapi.CheckResponse(res); err != nil {
 29661  		return nil, gensupport.WrapError(err)
 29662  	}
 29663  	ret := &GoogleProtobufEmpty{
 29664  		ServerResponse: googleapi.ServerResponse{
 29665  			Header:         res.Header,
 29666  			HTTPStatusCode: res.StatusCode,
 29667  		},
 29668  	}
 29669  	target := &ret
 29670  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29671  		return nil, err
 29672  	}
 29673  	return ret, nil
 29674  }
 29675  
 29676  type ProjectsConversationProfilesGetCall struct {
 29677  	s            *Service
 29678  	name         string
 29679  	urlParams_   gensupport.URLParams
 29680  	ifNoneMatch_ string
 29681  	ctx_         context.Context
 29682  	header_      http.Header
 29683  }
 29684  
 29685  // Get: Retrieves the specified conversation profile.
 29686  //
 29687  //   - name: The resource name of the conversation profile. Format:
 29688  //     `projects//locations//conversationProfiles/`.
 29689  func (r *ProjectsConversationProfilesService) Get(name string) *ProjectsConversationProfilesGetCall {
 29690  	c := &ProjectsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29691  	c.name = name
 29692  	return c
 29693  }
 29694  
 29695  // Fields allows partial responses to be retrieved. See
 29696  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29697  // details.
 29698  func (c *ProjectsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesGetCall {
 29699  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29700  	return c
 29701  }
 29702  
 29703  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29704  // object's ETag matches the given value. This is useful for getting updates
 29705  // only after the object has changed since the last request.
 29706  func (c *ProjectsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesGetCall {
 29707  	c.ifNoneMatch_ = entityTag
 29708  	return c
 29709  }
 29710  
 29711  // Context sets the context to be used in this call's Do method.
 29712  func (c *ProjectsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsConversationProfilesGetCall {
 29713  	c.ctx_ = ctx
 29714  	return c
 29715  }
 29716  
 29717  // Header returns a http.Header that can be modified by the caller to add
 29718  // headers to the request.
 29719  func (c *ProjectsConversationProfilesGetCall) Header() http.Header {
 29720  	if c.header_ == nil {
 29721  		c.header_ = make(http.Header)
 29722  	}
 29723  	return c.header_
 29724  }
 29725  
 29726  func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 29727  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29728  	if c.ifNoneMatch_ != "" {
 29729  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29730  	}
 29731  	var body io.Reader = nil
 29732  	c.urlParams_.Set("alt", alt)
 29733  	c.urlParams_.Set("prettyPrint", "false")
 29734  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 29735  	urls += "?" + c.urlParams_.Encode()
 29736  	req, err := http.NewRequest("GET", urls, body)
 29737  	if err != nil {
 29738  		return nil, err
 29739  	}
 29740  	req.Header = reqHeaders
 29741  	googleapi.Expand(req.URL, map[string]string{
 29742  		"name": c.name,
 29743  	})
 29744  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29745  }
 29746  
 29747  // Do executes the "dialogflow.projects.conversationProfiles.get" call.
 29748  // Any non-2xx status code is an error. Response headers are in either
 29749  // *GoogleCloudDialogflowV2ConversationProfile.ServerResponse.Header or (if a
 29750  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29751  // googleapi.IsNotModified to check whether the returned error was because
 29752  // http.StatusNotModified was returned.
 29753  func (c *ProjectsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
 29754  	gensupport.SetOptions(c.urlParams_, opts...)
 29755  	res, err := c.doRequest("json")
 29756  	if res != nil && res.StatusCode == http.StatusNotModified {
 29757  		if res.Body != nil {
 29758  			res.Body.Close()
 29759  		}
 29760  		return nil, gensupport.WrapError(&googleapi.Error{
 29761  			Code:   res.StatusCode,
 29762  			Header: res.Header,
 29763  		})
 29764  	}
 29765  	if err != nil {
 29766  		return nil, err
 29767  	}
 29768  	defer googleapi.CloseBody(res)
 29769  	if err := googleapi.CheckResponse(res); err != nil {
 29770  		return nil, gensupport.WrapError(err)
 29771  	}
 29772  	ret := &GoogleCloudDialogflowV2ConversationProfile{
 29773  		ServerResponse: googleapi.ServerResponse{
 29774  			Header:         res.Header,
 29775  			HTTPStatusCode: res.StatusCode,
 29776  		},
 29777  	}
 29778  	target := &ret
 29779  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29780  		return nil, err
 29781  	}
 29782  	return ret, nil
 29783  }
 29784  
 29785  type ProjectsConversationProfilesListCall struct {
 29786  	s            *Service
 29787  	parent       string
 29788  	urlParams_   gensupport.URLParams
 29789  	ifNoneMatch_ string
 29790  	ctx_         context.Context
 29791  	header_      http.Header
 29792  }
 29793  
 29794  // List: Returns the list of all conversation profiles in the specified
 29795  // project.
 29796  //
 29797  //   - parent: The project to list all conversation profiles from. Format:
 29798  //     `projects//locations/`.
 29799  func (r *ProjectsConversationProfilesService) List(parent string) *ProjectsConversationProfilesListCall {
 29800  	c := &ProjectsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29801  	c.parent = parent
 29802  	return c
 29803  }
 29804  
 29805  // PageSize sets the optional parameter "pageSize": The maximum number of items
 29806  // to return in a single page. By default 100 and at most 1000.
 29807  func (c *ProjectsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsConversationProfilesListCall {
 29808  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29809  	return c
 29810  }
 29811  
 29812  // PageToken sets the optional parameter "pageToken": The next_page_token value
 29813  // returned from a previous list request.
 29814  func (c *ProjectsConversationProfilesListCall) PageToken(pageToken string) *ProjectsConversationProfilesListCall {
 29815  	c.urlParams_.Set("pageToken", pageToken)
 29816  	return c
 29817  }
 29818  
 29819  // Fields allows partial responses to be retrieved. See
 29820  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29821  // details.
 29822  func (c *ProjectsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesListCall {
 29823  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29824  	return c
 29825  }
 29826  
 29827  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29828  // object's ETag matches the given value. This is useful for getting updates
 29829  // only after the object has changed since the last request.
 29830  func (c *ProjectsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesListCall {
 29831  	c.ifNoneMatch_ = entityTag
 29832  	return c
 29833  }
 29834  
 29835  // Context sets the context to be used in this call's Do method.
 29836  func (c *ProjectsConversationProfilesListCall) Context(ctx context.Context) *ProjectsConversationProfilesListCall {
 29837  	c.ctx_ = ctx
 29838  	return c
 29839  }
 29840  
 29841  // Header returns a http.Header that can be modified by the caller to add
 29842  // headers to the request.
 29843  func (c *ProjectsConversationProfilesListCall) Header() http.Header {
 29844  	if c.header_ == nil {
 29845  		c.header_ = make(http.Header)
 29846  	}
 29847  	return c.header_
 29848  }
 29849  
 29850  func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
 29851  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29852  	if c.ifNoneMatch_ != "" {
 29853  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29854  	}
 29855  	var body io.Reader = nil
 29856  	c.urlParams_.Set("alt", alt)
 29857  	c.urlParams_.Set("prettyPrint", "false")
 29858  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
 29859  	urls += "?" + c.urlParams_.Encode()
 29860  	req, err := http.NewRequest("GET", urls, body)
 29861  	if err != nil {
 29862  		return nil, err
 29863  	}
 29864  	req.Header = reqHeaders
 29865  	googleapi.Expand(req.URL, map[string]string{
 29866  		"parent": c.parent,
 29867  	})
 29868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29869  }
 29870  
 29871  // Do executes the "dialogflow.projects.conversationProfiles.list" call.
 29872  // Any non-2xx status code is an error. Response headers are in either
 29873  // *GoogleCloudDialogflowV2ListConversationProfilesResponse.ServerResponse.Heade
 29874  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 29875  // Use googleapi.IsNotModified to check whether the returned error was because
 29876  // http.StatusNotModified was returned.
 29877  func (c *ProjectsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationProfilesResponse, error) {
 29878  	gensupport.SetOptions(c.urlParams_, opts...)
 29879  	res, err := c.doRequest("json")
 29880  	if res != nil && res.StatusCode == http.StatusNotModified {
 29881  		if res.Body != nil {
 29882  			res.Body.Close()
 29883  		}
 29884  		return nil, gensupport.WrapError(&googleapi.Error{
 29885  			Code:   res.StatusCode,
 29886  			Header: res.Header,
 29887  		})
 29888  	}
 29889  	if err != nil {
 29890  		return nil, err
 29891  	}
 29892  	defer googleapi.CloseBody(res)
 29893  	if err := googleapi.CheckResponse(res); err != nil {
 29894  		return nil, gensupport.WrapError(err)
 29895  	}
 29896  	ret := &GoogleCloudDialogflowV2ListConversationProfilesResponse{
 29897  		ServerResponse: googleapi.ServerResponse{
 29898  			Header:         res.Header,
 29899  			HTTPStatusCode: res.StatusCode,
 29900  		},
 29901  	}
 29902  	target := &ret
 29903  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29904  		return nil, err
 29905  	}
 29906  	return ret, nil
 29907  }
 29908  
 29909  // Pages invokes f for each page of results.
 29910  // A non-nil error returned from f will halt the iteration.
 29911  // The provided context supersedes any context provided to the Context method.
 29912  func (c *ProjectsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationProfilesResponse) error) error {
 29913  	c.ctx_ = ctx
 29914  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29915  	for {
 29916  		x, err := c.Do()
 29917  		if err != nil {
 29918  			return err
 29919  		}
 29920  		if err := f(x); err != nil {
 29921  			return err
 29922  		}
 29923  		if x.NextPageToken == "" {
 29924  			return nil
 29925  		}
 29926  		c.PageToken(x.NextPageToken)
 29927  	}
 29928  }
 29929  
 29930  type ProjectsConversationProfilesPatchCall struct {
 29931  	s                                          *Service
 29932  	nameid                                     string
 29933  	googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
 29934  	urlParams_                                 gensupport.URLParams
 29935  	ctx_                                       context.Context
 29936  	header_                                    http.Header
 29937  }
 29938  
 29939  // Patch: Updates the specified conversation profile.
 29940  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 29941  // populated in the response. You can retrieve them via GetConversationProfile
 29942  // API.
 29943  //
 29944  //   - name: The unique identifier of this conversation profile. Format:
 29945  //     `projects//locations//conversationProfiles/`.
 29946  func (r *ProjectsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsConversationProfilesPatchCall {
 29947  	c := &ProjectsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29948  	c.nameid = nameid
 29949  	c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
 29950  	return c
 29951  }
 29952  
 29953  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 29954  // control which fields to update.
 29955  func (c *ProjectsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsConversationProfilesPatchCall {
 29956  	c.urlParams_.Set("updateMask", updateMask)
 29957  	return c
 29958  }
 29959  
 29960  // Fields allows partial responses to be retrieved. See
 29961  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29962  // details.
 29963  func (c *ProjectsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesPatchCall {
 29964  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29965  	return c
 29966  }
 29967  
 29968  // Context sets the context to be used in this call's Do method.
 29969  func (c *ProjectsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsConversationProfilesPatchCall {
 29970  	c.ctx_ = ctx
 29971  	return c
 29972  }
 29973  
 29974  // Header returns a http.Header that can be modified by the caller to add
 29975  // headers to the request.
 29976  func (c *ProjectsConversationProfilesPatchCall) Header() http.Header {
 29977  	if c.header_ == nil {
 29978  		c.header_ = make(http.Header)
 29979  	}
 29980  	return c.header_
 29981  }
 29982  
 29983  func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
 29984  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29985  	var body io.Reader = nil
 29986  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
 29987  	if err != nil {
 29988  		return nil, err
 29989  	}
 29990  	c.urlParams_.Set("alt", alt)
 29991  	c.urlParams_.Set("prettyPrint", "false")
 29992  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 29993  	urls += "?" + c.urlParams_.Encode()
 29994  	req, err := http.NewRequest("PATCH", urls, body)
 29995  	if err != nil {
 29996  		return nil, err
 29997  	}
 29998  	req.Header = reqHeaders
 29999  	googleapi.Expand(req.URL, map[string]string{
 30000  		"name": c.nameid,
 30001  	})
 30002  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30003  }
 30004  
 30005  // Do executes the "dialogflow.projects.conversationProfiles.patch" call.
 30006  // Any non-2xx status code is an error. Response headers are in either
 30007  // *GoogleCloudDialogflowV2ConversationProfile.ServerResponse.Header or (if a
 30008  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30009  // googleapi.IsNotModified to check whether the returned error was because
 30010  // http.StatusNotModified was returned.
 30011  func (c *ProjectsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
 30012  	gensupport.SetOptions(c.urlParams_, opts...)
 30013  	res, err := c.doRequest("json")
 30014  	if res != nil && res.StatusCode == http.StatusNotModified {
 30015  		if res.Body != nil {
 30016  			res.Body.Close()
 30017  		}
 30018  		return nil, gensupport.WrapError(&googleapi.Error{
 30019  			Code:   res.StatusCode,
 30020  			Header: res.Header,
 30021  		})
 30022  	}
 30023  	if err != nil {
 30024  		return nil, err
 30025  	}
 30026  	defer googleapi.CloseBody(res)
 30027  	if err := googleapi.CheckResponse(res); err != nil {
 30028  		return nil, gensupport.WrapError(err)
 30029  	}
 30030  	ret := &GoogleCloudDialogflowV2ConversationProfile{
 30031  		ServerResponse: googleapi.ServerResponse{
 30032  			Header:         res.Header,
 30033  			HTTPStatusCode: res.StatusCode,
 30034  		},
 30035  	}
 30036  	target := &ret
 30037  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30038  		return nil, err
 30039  	}
 30040  	return ret, nil
 30041  }
 30042  
 30043  type ProjectsConversationProfilesSetSuggestionFeatureConfigCall struct {
 30044  	s                                                        *Service
 30045  	conversationProfile                                      string
 30046  	googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
 30047  	urlParams_                                               gensupport.URLParams
 30048  	ctx_                                                     context.Context
 30049  	header_                                                  http.Header
 30050  }
 30051  
 30052  // SetSuggestionFeatureConfig: Adds or updates a suggestion feature in a
 30053  // conversation profile. If the conversation profile contains the type of
 30054  // suggestion feature for the participant role, it will update it. Otherwise it
 30055  // will insert the suggestion feature. This method is a long-running operation
 30056  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 30057  // The returned `Operation` type has the following method-specific fields: -
 30058  // `metadata`: SetSuggestionFeatureConfigOperationMetadata - `response`:
 30059  // ConversationProfile If a long running operation to add or update suggestion
 30060  // feature config for the same conversation profile, participant role and
 30061  // suggestion feature type exists, please cancel the existing long running
 30062  // operation before sending such request, otherwise the request will be
 30063  // rejected.
 30064  //
 30065  //   - conversationProfile: The Conversation Profile to add or update the
 30066  //     suggestion feature config. Format:
 30067  //     `projects//locations//conversationProfiles/`.
 30068  func (r *ProjectsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
 30069  	c := &ProjectsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30070  	c.conversationProfile = conversationProfile
 30071  	c.googleclouddialogflowv2setsuggestionfeatureconfigrequest = googleclouddialogflowv2setsuggestionfeatureconfigrequest
 30072  	return c
 30073  }
 30074  
 30075  // Fields allows partial responses to be retrieved. See
 30076  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30077  // details.
 30078  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
 30079  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30080  	return c
 30081  }
 30082  
 30083  // Context sets the context to be used in this call's Do method.
 30084  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
 30085  	c.ctx_ = ctx
 30086  	return c
 30087  }
 30088  
 30089  // Header returns a http.Header that can be modified by the caller to add
 30090  // headers to the request.
 30091  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
 30092  	if c.header_ == nil {
 30093  		c.header_ = make(http.Header)
 30094  	}
 30095  	return c.header_
 30096  }
 30097  
 30098  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 30099  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30100  	var body io.Reader = nil
 30101  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2setsuggestionfeatureconfigrequest)
 30102  	if err != nil {
 30103  		return nil, err
 30104  	}
 30105  	c.urlParams_.Set("alt", alt)
 30106  	c.urlParams_.Set("prettyPrint", "false")
 30107  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:setSuggestionFeatureConfig")
 30108  	urls += "?" + c.urlParams_.Encode()
 30109  	req, err := http.NewRequest("POST", urls, body)
 30110  	if err != nil {
 30111  		return nil, err
 30112  	}
 30113  	req.Header = reqHeaders
 30114  	googleapi.Expand(req.URL, map[string]string{
 30115  		"conversationProfile": c.conversationProfile,
 30116  	})
 30117  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30118  }
 30119  
 30120  // Do executes the "dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig" call.
 30121  // Any non-2xx status code is an error. Response headers are in either
 30122  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30123  // returned at all) in error.(*googleapi.Error).Header. Use
 30124  // googleapi.IsNotModified to check whether the returned error was because
 30125  // http.StatusNotModified was returned.
 30126  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30127  	gensupport.SetOptions(c.urlParams_, opts...)
 30128  	res, err := c.doRequest("json")
 30129  	if res != nil && res.StatusCode == http.StatusNotModified {
 30130  		if res.Body != nil {
 30131  			res.Body.Close()
 30132  		}
 30133  		return nil, gensupport.WrapError(&googleapi.Error{
 30134  			Code:   res.StatusCode,
 30135  			Header: res.Header,
 30136  		})
 30137  	}
 30138  	if err != nil {
 30139  		return nil, err
 30140  	}
 30141  	defer googleapi.CloseBody(res)
 30142  	if err := googleapi.CheckResponse(res); err != nil {
 30143  		return nil, gensupport.WrapError(err)
 30144  	}
 30145  	ret := &GoogleLongrunningOperation{
 30146  		ServerResponse: googleapi.ServerResponse{
 30147  			Header:         res.Header,
 30148  			HTTPStatusCode: res.StatusCode,
 30149  		},
 30150  	}
 30151  	target := &ret
 30152  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30153  		return nil, err
 30154  	}
 30155  	return ret, nil
 30156  }
 30157  
 30158  type ProjectsConversationsCompleteCall struct {
 30159  	s                                                  *Service
 30160  	nameid                                             string
 30161  	googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest
 30162  	urlParams_                                         gensupport.URLParams
 30163  	ctx_                                               context.Context
 30164  	header_                                            http.Header
 30165  }
 30166  
 30167  // Complete: Completes the specified conversation. Finished conversations are
 30168  // purged from the database after 30 days.
 30169  //
 30170  //   - name: Resource identifier of the conversation to close. Format:
 30171  //     `projects//locations//conversations/`.
 30172  func (r *ProjectsConversationsService) Complete(nameid string, googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest) *ProjectsConversationsCompleteCall {
 30173  	c := &ProjectsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30174  	c.nameid = nameid
 30175  	c.googleclouddialogflowv2completeconversationrequest = googleclouddialogflowv2completeconversationrequest
 30176  	return c
 30177  }
 30178  
 30179  // Fields allows partial responses to be retrieved. See
 30180  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30181  // details.
 30182  func (c *ProjectsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsConversationsCompleteCall {
 30183  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30184  	return c
 30185  }
 30186  
 30187  // Context sets the context to be used in this call's Do method.
 30188  func (c *ProjectsConversationsCompleteCall) Context(ctx context.Context) *ProjectsConversationsCompleteCall {
 30189  	c.ctx_ = ctx
 30190  	return c
 30191  }
 30192  
 30193  // Header returns a http.Header that can be modified by the caller to add
 30194  // headers to the request.
 30195  func (c *ProjectsConversationsCompleteCall) Header() http.Header {
 30196  	if c.header_ == nil {
 30197  		c.header_ = make(http.Header)
 30198  	}
 30199  	return c.header_
 30200  }
 30201  
 30202  func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
 30203  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30204  	var body io.Reader = nil
 30205  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2completeconversationrequest)
 30206  	if err != nil {
 30207  		return nil, err
 30208  	}
 30209  	c.urlParams_.Set("alt", alt)
 30210  	c.urlParams_.Set("prettyPrint", "false")
 30211  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:complete")
 30212  	urls += "?" + c.urlParams_.Encode()
 30213  	req, err := http.NewRequest("POST", urls, body)
 30214  	if err != nil {
 30215  		return nil, err
 30216  	}
 30217  	req.Header = reqHeaders
 30218  	googleapi.Expand(req.URL, map[string]string{
 30219  		"name": c.nameid,
 30220  	})
 30221  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30222  }
 30223  
 30224  // Do executes the "dialogflow.projects.conversations.complete" call.
 30225  // Any non-2xx status code is an error. Response headers are in either
 30226  // *GoogleCloudDialogflowV2Conversation.ServerResponse.Header or (if a response
 30227  // was returned at all) in error.(*googleapi.Error).Header. Use
 30228  // googleapi.IsNotModified to check whether the returned error was because
 30229  // http.StatusNotModified was returned.
 30230  func (c *ProjectsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
 30231  	gensupport.SetOptions(c.urlParams_, opts...)
 30232  	res, err := c.doRequest("json")
 30233  	if res != nil && res.StatusCode == http.StatusNotModified {
 30234  		if res.Body != nil {
 30235  			res.Body.Close()
 30236  		}
 30237  		return nil, gensupport.WrapError(&googleapi.Error{
 30238  			Code:   res.StatusCode,
 30239  			Header: res.Header,
 30240  		})
 30241  	}
 30242  	if err != nil {
 30243  		return nil, err
 30244  	}
 30245  	defer googleapi.CloseBody(res)
 30246  	if err := googleapi.CheckResponse(res); err != nil {
 30247  		return nil, gensupport.WrapError(err)
 30248  	}
 30249  	ret := &GoogleCloudDialogflowV2Conversation{
 30250  		ServerResponse: googleapi.ServerResponse{
 30251  			Header:         res.Header,
 30252  			HTTPStatusCode: res.StatusCode,
 30253  		},
 30254  	}
 30255  	target := &ret
 30256  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30257  		return nil, err
 30258  	}
 30259  	return ret, nil
 30260  }
 30261  
 30262  type ProjectsConversationsCreateCall struct {
 30263  	s                                   *Service
 30264  	parentid                            string
 30265  	googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation
 30266  	urlParams_                          gensupport.URLParams
 30267  	ctx_                                context.Context
 30268  	header_                             http.Header
 30269  }
 30270  
 30271  // Create: Creates a new conversation. Conversations are auto-completed after
 30272  // 24 hours. Conversation Lifecycle: There are two stages during a
 30273  // conversation: Automated Agent Stage and Assist Stage. For Automated Agent
 30274  // Stage, there will be a dialogflow agent responding to user queries. For
 30275  // Assist Stage, there's no dialogflow agent responding to user queries. But we
 30276  // will provide suggestions which are generated from conversation. If
 30277  // Conversation.conversation_profile is configured for a dialogflow agent,
 30278  // conversation will start from `Automated Agent Stage`, otherwise, it will
 30279  // start from `Assist Stage`. And during `Automated Agent Stage`, once an
 30280  // Intent with Intent.live_agent_handoff is triggered, conversation will
 30281  // transfer to Assist Stage.
 30282  //
 30283  //   - parent: Resource identifier of the project creating the conversation.
 30284  //     Format: `projects//locations/`.
 30285  func (r *ProjectsConversationsService) Create(parentid string, googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation) *ProjectsConversationsCreateCall {
 30286  	c := &ProjectsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30287  	c.parentid = parentid
 30288  	c.googleclouddialogflowv2conversation = googleclouddialogflowv2conversation
 30289  	return c
 30290  }
 30291  
 30292  // ConversationId sets the optional parameter "conversationId": Identifier of
 30293  // the conversation. Generally it's auto generated by Google. Only set it if
 30294  // you cannot wait for the response to return a auto-generated one to you. The
 30295  // conversation ID must be compliant with the regression fomula `a-zA-Z*` with
 30296  // the characters length in range of [3,64]. If the field is provided, the
 30297  // caller is resposible for 1. the uniqueness of the ID, otherwise the request
 30298  // will be rejected. 2. the consistency for whether to use custom ID or not
 30299  // under a project to better ensure uniqueness.
 30300  func (c *ProjectsConversationsCreateCall) ConversationId(conversationId string) *ProjectsConversationsCreateCall {
 30301  	c.urlParams_.Set("conversationId", conversationId)
 30302  	return c
 30303  }
 30304  
 30305  // Fields allows partial responses to be retrieved. See
 30306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30307  // details.
 30308  func (c *ProjectsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsCreateCall {
 30309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30310  	return c
 30311  }
 30312  
 30313  // Context sets the context to be used in this call's Do method.
 30314  func (c *ProjectsConversationsCreateCall) Context(ctx context.Context) *ProjectsConversationsCreateCall {
 30315  	c.ctx_ = ctx
 30316  	return c
 30317  }
 30318  
 30319  // Header returns a http.Header that can be modified by the caller to add
 30320  // headers to the request.
 30321  func (c *ProjectsConversationsCreateCall) Header() http.Header {
 30322  	if c.header_ == nil {
 30323  		c.header_ = make(http.Header)
 30324  	}
 30325  	return c.header_
 30326  }
 30327  
 30328  func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 30329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30330  	var body io.Reader = nil
 30331  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversation)
 30332  	if err != nil {
 30333  		return nil, err
 30334  	}
 30335  	c.urlParams_.Set("alt", alt)
 30336  	c.urlParams_.Set("prettyPrint", "false")
 30337  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
 30338  	urls += "?" + c.urlParams_.Encode()
 30339  	req, err := http.NewRequest("POST", urls, body)
 30340  	if err != nil {
 30341  		return nil, err
 30342  	}
 30343  	req.Header = reqHeaders
 30344  	googleapi.Expand(req.URL, map[string]string{
 30345  		"parent": c.parentid,
 30346  	})
 30347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30348  }
 30349  
 30350  // Do executes the "dialogflow.projects.conversations.create" call.
 30351  // Any non-2xx status code is an error. Response headers are in either
 30352  // *GoogleCloudDialogflowV2Conversation.ServerResponse.Header or (if a response
 30353  // was returned at all) in error.(*googleapi.Error).Header. Use
 30354  // googleapi.IsNotModified to check whether the returned error was because
 30355  // http.StatusNotModified was returned.
 30356  func (c *ProjectsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
 30357  	gensupport.SetOptions(c.urlParams_, opts...)
 30358  	res, err := c.doRequest("json")
 30359  	if res != nil && res.StatusCode == http.StatusNotModified {
 30360  		if res.Body != nil {
 30361  			res.Body.Close()
 30362  		}
 30363  		return nil, gensupport.WrapError(&googleapi.Error{
 30364  			Code:   res.StatusCode,
 30365  			Header: res.Header,
 30366  		})
 30367  	}
 30368  	if err != nil {
 30369  		return nil, err
 30370  	}
 30371  	defer googleapi.CloseBody(res)
 30372  	if err := googleapi.CheckResponse(res); err != nil {
 30373  		return nil, gensupport.WrapError(err)
 30374  	}
 30375  	ret := &GoogleCloudDialogflowV2Conversation{
 30376  		ServerResponse: googleapi.ServerResponse{
 30377  			Header:         res.Header,
 30378  			HTTPStatusCode: res.StatusCode,
 30379  		},
 30380  	}
 30381  	target := &ret
 30382  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30383  		return nil, err
 30384  	}
 30385  	return ret, nil
 30386  }
 30387  
 30388  type ProjectsConversationsGetCall struct {
 30389  	s            *Service
 30390  	name         string
 30391  	urlParams_   gensupport.URLParams
 30392  	ifNoneMatch_ string
 30393  	ctx_         context.Context
 30394  	header_      http.Header
 30395  }
 30396  
 30397  // Get: Retrieves the specific conversation.
 30398  //
 30399  //   - name: The name of the conversation. Format:
 30400  //     `projects//locations//conversations/`.
 30401  func (r *ProjectsConversationsService) Get(name string) *ProjectsConversationsGetCall {
 30402  	c := &ProjectsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30403  	c.name = name
 30404  	return c
 30405  }
 30406  
 30407  // Fields allows partial responses to be retrieved. See
 30408  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30409  // details.
 30410  func (c *ProjectsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsGetCall {
 30411  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30412  	return c
 30413  }
 30414  
 30415  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30416  // object's ETag matches the given value. This is useful for getting updates
 30417  // only after the object has changed since the last request.
 30418  func (c *ProjectsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsGetCall {
 30419  	c.ifNoneMatch_ = entityTag
 30420  	return c
 30421  }
 30422  
 30423  // Context sets the context to be used in this call's Do method.
 30424  func (c *ProjectsConversationsGetCall) Context(ctx context.Context) *ProjectsConversationsGetCall {
 30425  	c.ctx_ = ctx
 30426  	return c
 30427  }
 30428  
 30429  // Header returns a http.Header that can be modified by the caller to add
 30430  // headers to the request.
 30431  func (c *ProjectsConversationsGetCall) Header() http.Header {
 30432  	if c.header_ == nil {
 30433  		c.header_ = make(http.Header)
 30434  	}
 30435  	return c.header_
 30436  }
 30437  
 30438  func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 30439  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30440  	if c.ifNoneMatch_ != "" {
 30441  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30442  	}
 30443  	var body io.Reader = nil
 30444  	c.urlParams_.Set("alt", alt)
 30445  	c.urlParams_.Set("prettyPrint", "false")
 30446  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 30447  	urls += "?" + c.urlParams_.Encode()
 30448  	req, err := http.NewRequest("GET", urls, body)
 30449  	if err != nil {
 30450  		return nil, err
 30451  	}
 30452  	req.Header = reqHeaders
 30453  	googleapi.Expand(req.URL, map[string]string{
 30454  		"name": c.name,
 30455  	})
 30456  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30457  }
 30458  
 30459  // Do executes the "dialogflow.projects.conversations.get" call.
 30460  // Any non-2xx status code is an error. Response headers are in either
 30461  // *GoogleCloudDialogflowV2Conversation.ServerResponse.Header or (if a response
 30462  // was returned at all) in error.(*googleapi.Error).Header. Use
 30463  // googleapi.IsNotModified to check whether the returned error was because
 30464  // http.StatusNotModified was returned.
 30465  func (c *ProjectsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
 30466  	gensupport.SetOptions(c.urlParams_, opts...)
 30467  	res, err := c.doRequest("json")
 30468  	if res != nil && res.StatusCode == http.StatusNotModified {
 30469  		if res.Body != nil {
 30470  			res.Body.Close()
 30471  		}
 30472  		return nil, gensupport.WrapError(&googleapi.Error{
 30473  			Code:   res.StatusCode,
 30474  			Header: res.Header,
 30475  		})
 30476  	}
 30477  	if err != nil {
 30478  		return nil, err
 30479  	}
 30480  	defer googleapi.CloseBody(res)
 30481  	if err := googleapi.CheckResponse(res); err != nil {
 30482  		return nil, gensupport.WrapError(err)
 30483  	}
 30484  	ret := &GoogleCloudDialogflowV2Conversation{
 30485  		ServerResponse: googleapi.ServerResponse{
 30486  			Header:         res.Header,
 30487  			HTTPStatusCode: res.StatusCode,
 30488  		},
 30489  	}
 30490  	target := &ret
 30491  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30492  		return nil, err
 30493  	}
 30494  	return ret, nil
 30495  }
 30496  
 30497  type ProjectsConversationsListCall struct {
 30498  	s            *Service
 30499  	parent       string
 30500  	urlParams_   gensupport.URLParams
 30501  	ifNoneMatch_ string
 30502  	ctx_         context.Context
 30503  	header_      http.Header
 30504  }
 30505  
 30506  // List: Returns the list of all conversations in the specified project.
 30507  //
 30508  //   - parent: The project from which to list all conversation. Format:
 30509  //     `projects//locations/`.
 30510  func (r *ProjectsConversationsService) List(parent string) *ProjectsConversationsListCall {
 30511  	c := &ProjectsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30512  	c.parent = parent
 30513  	return c
 30514  }
 30515  
 30516  // Filter sets the optional parameter "filter": A filter expression that
 30517  // filters conversations listed in the response. In general, the expression
 30518  // must specify the field name, a comparison operator, and the value to use for
 30519  // filtering: - The value must be a string, a number, or a boolean. - The
 30520  // comparison operator must be either `=`,`!=`, `>`, or `<`. - To filter on
 30521  // multiple expressions, separate the expressions with `AND` or `OR` (omitting
 30522  // both implies `AND`). - For clarity, expressions can be enclosed in
 30523  // parentheses. Only `lifecycle_state` can be filtered on in this way. For
 30524  // example, the following expression only returns `COMPLETED` conversations:
 30525  // `lifecycle_state = "COMPLETED" For more information about filtering, see
 30526  // API Filtering (https://aip.dev/160).
 30527  func (c *ProjectsConversationsListCall) Filter(filter string) *ProjectsConversationsListCall {
 30528  	c.urlParams_.Set("filter", filter)
 30529  	return c
 30530  }
 30531  
 30532  // PageSize sets the optional parameter "pageSize": The maximum number of items
 30533  // to return in a single page. By default 100 and at most 1000.
 30534  func (c *ProjectsConversationsListCall) PageSize(pageSize int64) *ProjectsConversationsListCall {
 30535  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30536  	return c
 30537  }
 30538  
 30539  // PageToken sets the optional parameter "pageToken": The next_page_token value
 30540  // returned from a previous list request.
 30541  func (c *ProjectsConversationsListCall) PageToken(pageToken string) *ProjectsConversationsListCall {
 30542  	c.urlParams_.Set("pageToken", pageToken)
 30543  	return c
 30544  }
 30545  
 30546  // Fields allows partial responses to be retrieved. See
 30547  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30548  // details.
 30549  func (c *ProjectsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsListCall {
 30550  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30551  	return c
 30552  }
 30553  
 30554  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30555  // object's ETag matches the given value. This is useful for getting updates
 30556  // only after the object has changed since the last request.
 30557  func (c *ProjectsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsListCall {
 30558  	c.ifNoneMatch_ = entityTag
 30559  	return c
 30560  }
 30561  
 30562  // Context sets the context to be used in this call's Do method.
 30563  func (c *ProjectsConversationsListCall) Context(ctx context.Context) *ProjectsConversationsListCall {
 30564  	c.ctx_ = ctx
 30565  	return c
 30566  }
 30567  
 30568  // Header returns a http.Header that can be modified by the caller to add
 30569  // headers to the request.
 30570  func (c *ProjectsConversationsListCall) Header() http.Header {
 30571  	if c.header_ == nil {
 30572  		c.header_ = make(http.Header)
 30573  	}
 30574  	return c.header_
 30575  }
 30576  
 30577  func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, error) {
 30578  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30579  	if c.ifNoneMatch_ != "" {
 30580  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30581  	}
 30582  	var body io.Reader = nil
 30583  	c.urlParams_.Set("alt", alt)
 30584  	c.urlParams_.Set("prettyPrint", "false")
 30585  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
 30586  	urls += "?" + c.urlParams_.Encode()
 30587  	req, err := http.NewRequest("GET", urls, body)
 30588  	if err != nil {
 30589  		return nil, err
 30590  	}
 30591  	req.Header = reqHeaders
 30592  	googleapi.Expand(req.URL, map[string]string{
 30593  		"parent": c.parent,
 30594  	})
 30595  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30596  }
 30597  
 30598  // Do executes the "dialogflow.projects.conversations.list" call.
 30599  // Any non-2xx status code is an error. Response headers are in either
 30600  // *GoogleCloudDialogflowV2ListConversationsResponse.ServerResponse.Header or
 30601  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30602  // googleapi.IsNotModified to check whether the returned error was because
 30603  // http.StatusNotModified was returned.
 30604  func (c *ProjectsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationsResponse, error) {
 30605  	gensupport.SetOptions(c.urlParams_, opts...)
 30606  	res, err := c.doRequest("json")
 30607  	if res != nil && res.StatusCode == http.StatusNotModified {
 30608  		if res.Body != nil {
 30609  			res.Body.Close()
 30610  		}
 30611  		return nil, gensupport.WrapError(&googleapi.Error{
 30612  			Code:   res.StatusCode,
 30613  			Header: res.Header,
 30614  		})
 30615  	}
 30616  	if err != nil {
 30617  		return nil, err
 30618  	}
 30619  	defer googleapi.CloseBody(res)
 30620  	if err := googleapi.CheckResponse(res); err != nil {
 30621  		return nil, gensupport.WrapError(err)
 30622  	}
 30623  	ret := &GoogleCloudDialogflowV2ListConversationsResponse{
 30624  		ServerResponse: googleapi.ServerResponse{
 30625  			Header:         res.Header,
 30626  			HTTPStatusCode: res.StatusCode,
 30627  		},
 30628  	}
 30629  	target := &ret
 30630  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30631  		return nil, err
 30632  	}
 30633  	return ret, nil
 30634  }
 30635  
 30636  // Pages invokes f for each page of results.
 30637  // A non-nil error returned from f will halt the iteration.
 30638  // The provided context supersedes any context provided to the Context method.
 30639  func (c *ProjectsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationsResponse) error) error {
 30640  	c.ctx_ = ctx
 30641  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30642  	for {
 30643  		x, err := c.Do()
 30644  		if err != nil {
 30645  			return err
 30646  		}
 30647  		if err := f(x); err != nil {
 30648  			return err
 30649  		}
 30650  		if x.NextPageToken == "" {
 30651  			return nil
 30652  		}
 30653  		c.PageToken(x.NextPageToken)
 30654  	}
 30655  }
 30656  
 30657  type ProjectsConversationsMessagesListCall struct {
 30658  	s            *Service
 30659  	parent       string
 30660  	urlParams_   gensupport.URLParams
 30661  	ifNoneMatch_ string
 30662  	ctx_         context.Context
 30663  	header_      http.Header
 30664  }
 30665  
 30666  // List: Lists messages that belong to a given conversation. `messages` are
 30667  // ordered by `create_time` in descending order. To fetch updates without
 30668  // duplication, send request with filter `create_time_epoch_microseconds >
 30669  // [first item's create_time of previous request]` and empty page_token.
 30670  //
 30671  //   - parent: The name of the conversation to list messages for. Format:
 30672  //     `projects//locations//conversations/`.
 30673  func (r *ProjectsConversationsMessagesService) List(parent string) *ProjectsConversationsMessagesListCall {
 30674  	c := &ProjectsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30675  	c.parent = parent
 30676  	return c
 30677  }
 30678  
 30679  // Filter sets the optional parameter "filter": Filter on message fields.
 30680  // Currently predicates on `create_time` and `create_time_epoch_microseconds`
 30681  // are supported. `create_time` only support milliseconds accuracy. E.g.,
 30682  // `create_time_epoch_microseconds > 1551790877964485` or `create_time >
 30683  // 2017-01-15T01:30:15.01Z`. For more information about filtering, see API
 30684  // Filtering (https://aip.dev/160).
 30685  func (c *ProjectsConversationsMessagesListCall) Filter(filter string) *ProjectsConversationsMessagesListCall {
 30686  	c.urlParams_.Set("filter", filter)
 30687  	return c
 30688  }
 30689  
 30690  // PageSize sets the optional parameter "pageSize": The maximum number of items
 30691  // to return in a single page. By default 100 and at most 1000.
 30692  func (c *ProjectsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsConversationsMessagesListCall {
 30693  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30694  	return c
 30695  }
 30696  
 30697  // PageToken sets the optional parameter "pageToken": The next_page_token value
 30698  // returned from a previous list request.
 30699  func (c *ProjectsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsConversationsMessagesListCall {
 30700  	c.urlParams_.Set("pageToken", pageToken)
 30701  	return c
 30702  }
 30703  
 30704  // Fields allows partial responses to be retrieved. See
 30705  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30706  // details.
 30707  func (c *ProjectsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesListCall {
 30708  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30709  	return c
 30710  }
 30711  
 30712  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30713  // object's ETag matches the given value. This is useful for getting updates
 30714  // only after the object has changed since the last request.
 30715  func (c *ProjectsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsConversationsMessagesListCall {
 30716  	c.ifNoneMatch_ = entityTag
 30717  	return c
 30718  }
 30719  
 30720  // Context sets the context to be used in this call's Do method.
 30721  func (c *ProjectsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsConversationsMessagesListCall {
 30722  	c.ctx_ = ctx
 30723  	return c
 30724  }
 30725  
 30726  // Header returns a http.Header that can be modified by the caller to add
 30727  // headers to the request.
 30728  func (c *ProjectsConversationsMessagesListCall) Header() http.Header {
 30729  	if c.header_ == nil {
 30730  		c.header_ = make(http.Header)
 30731  	}
 30732  	return c.header_
 30733  }
 30734  
 30735  func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
 30736  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30737  	if c.ifNoneMatch_ != "" {
 30738  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30739  	}
 30740  	var body io.Reader = nil
 30741  	c.urlParams_.Set("alt", alt)
 30742  	c.urlParams_.Set("prettyPrint", "false")
 30743  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/messages")
 30744  	urls += "?" + c.urlParams_.Encode()
 30745  	req, err := http.NewRequest("GET", urls, body)
 30746  	if err != nil {
 30747  		return nil, err
 30748  	}
 30749  	req.Header = reqHeaders
 30750  	googleapi.Expand(req.URL, map[string]string{
 30751  		"parent": c.parent,
 30752  	})
 30753  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30754  }
 30755  
 30756  // Do executes the "dialogflow.projects.conversations.messages.list" call.
 30757  // Any non-2xx status code is an error. Response headers are in either
 30758  // *GoogleCloudDialogflowV2ListMessagesResponse.ServerResponse.Header or (if a
 30759  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30760  // googleapi.IsNotModified to check whether the returned error was because
 30761  // http.StatusNotModified was returned.
 30762  func (c *ProjectsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListMessagesResponse, error) {
 30763  	gensupport.SetOptions(c.urlParams_, opts...)
 30764  	res, err := c.doRequest("json")
 30765  	if res != nil && res.StatusCode == http.StatusNotModified {
 30766  		if res.Body != nil {
 30767  			res.Body.Close()
 30768  		}
 30769  		return nil, gensupport.WrapError(&googleapi.Error{
 30770  			Code:   res.StatusCode,
 30771  			Header: res.Header,
 30772  		})
 30773  	}
 30774  	if err != nil {
 30775  		return nil, err
 30776  	}
 30777  	defer googleapi.CloseBody(res)
 30778  	if err := googleapi.CheckResponse(res); err != nil {
 30779  		return nil, gensupport.WrapError(err)
 30780  	}
 30781  	ret := &GoogleCloudDialogflowV2ListMessagesResponse{
 30782  		ServerResponse: googleapi.ServerResponse{
 30783  			Header:         res.Header,
 30784  			HTTPStatusCode: res.StatusCode,
 30785  		},
 30786  	}
 30787  	target := &ret
 30788  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30789  		return nil, err
 30790  	}
 30791  	return ret, nil
 30792  }
 30793  
 30794  // Pages invokes f for each page of results.
 30795  // A non-nil error returned from f will halt the iteration.
 30796  // The provided context supersedes any context provided to the Context method.
 30797  func (c *ProjectsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListMessagesResponse) error) error {
 30798  	c.ctx_ = ctx
 30799  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30800  	for {
 30801  		x, err := c.Do()
 30802  		if err != nil {
 30803  			return err
 30804  		}
 30805  		if err := f(x); err != nil {
 30806  			return err
 30807  		}
 30808  		if x.NextPageToken == "" {
 30809  			return nil
 30810  		}
 30811  		c.PageToken(x.NextPageToken)
 30812  	}
 30813  }
 30814  
 30815  type ProjectsConversationsParticipantsAnalyzeContentCall struct {
 30816  	s                                            *Service
 30817  	participant                                  string
 30818  	googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest
 30819  	urlParams_                                   gensupport.URLParams
 30820  	ctx_                                         context.Context
 30821  	header_                                      http.Header
 30822  }
 30823  
 30824  // AnalyzeContent: Adds a text (chat, for example), or audio (phone recording,
 30825  // for example) message from a participant into the conversation. Note: Always
 30826  // use agent versions for production traffic sent to virtual agents. See
 30827  // Versions and environments
 30828  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 30829  //
 30830  //   - participant: The name of the participant this text comes from. Format:
 30831  //     `projects//locations//conversations//participants/`.
 30832  func (r *ProjectsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest) *ProjectsConversationsParticipantsAnalyzeContentCall {
 30833  	c := &ProjectsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30834  	c.participant = participant
 30835  	c.googleclouddialogflowv2analyzecontentrequest = googleclouddialogflowv2analyzecontentrequest
 30836  	return c
 30837  }
 30838  
 30839  // Fields allows partial responses to be retrieved. See
 30840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30841  // details.
 30842  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsAnalyzeContentCall {
 30843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30844  	return c
 30845  }
 30846  
 30847  // Context sets the context to be used in this call's Do method.
 30848  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsConversationsParticipantsAnalyzeContentCall {
 30849  	c.ctx_ = ctx
 30850  	return c
 30851  }
 30852  
 30853  // Header returns a http.Header that can be modified by the caller to add
 30854  // headers to the request.
 30855  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
 30856  	if c.header_ == nil {
 30857  		c.header_ = make(http.Header)
 30858  	}
 30859  	return c.header_
 30860  }
 30861  
 30862  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
 30863  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30864  	var body io.Reader = nil
 30865  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2analyzecontentrequest)
 30866  	if err != nil {
 30867  		return nil, err
 30868  	}
 30869  	c.urlParams_.Set("alt", alt)
 30870  	c.urlParams_.Set("prettyPrint", "false")
 30871  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+participant}:analyzeContent")
 30872  	urls += "?" + c.urlParams_.Encode()
 30873  	req, err := http.NewRequest("POST", urls, body)
 30874  	if err != nil {
 30875  		return nil, err
 30876  	}
 30877  	req.Header = reqHeaders
 30878  	googleapi.Expand(req.URL, map[string]string{
 30879  		"participant": c.participant,
 30880  	})
 30881  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30882  }
 30883  
 30884  // Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call.
 30885  // Any non-2xx status code is an error. Response headers are in either
 30886  // *GoogleCloudDialogflowV2AnalyzeContentResponse.ServerResponse.Header or (if
 30887  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 30888  // googleapi.IsNotModified to check whether the returned error was because
 30889  // http.StatusNotModified was returned.
 30890  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnalyzeContentResponse, error) {
 30891  	gensupport.SetOptions(c.urlParams_, opts...)
 30892  	res, err := c.doRequest("json")
 30893  	if res != nil && res.StatusCode == http.StatusNotModified {
 30894  		if res.Body != nil {
 30895  			res.Body.Close()
 30896  		}
 30897  		return nil, gensupport.WrapError(&googleapi.Error{
 30898  			Code:   res.StatusCode,
 30899  			Header: res.Header,
 30900  		})
 30901  	}
 30902  	if err != nil {
 30903  		return nil, err
 30904  	}
 30905  	defer googleapi.CloseBody(res)
 30906  	if err := googleapi.CheckResponse(res); err != nil {
 30907  		return nil, gensupport.WrapError(err)
 30908  	}
 30909  	ret := &GoogleCloudDialogflowV2AnalyzeContentResponse{
 30910  		ServerResponse: googleapi.ServerResponse{
 30911  			Header:         res.Header,
 30912  			HTTPStatusCode: res.StatusCode,
 30913  		},
 30914  	}
 30915  	target := &ret
 30916  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30917  		return nil, err
 30918  	}
 30919  	return ret, nil
 30920  }
 30921  
 30922  type ProjectsConversationsParticipantsCreateCall struct {
 30923  	s                                  *Service
 30924  	parentid                           string
 30925  	googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
 30926  	urlParams_                         gensupport.URLParams
 30927  	ctx_                               context.Context
 30928  	header_                            http.Header
 30929  }
 30930  
 30931  // Create: Creates a new participant in a conversation.
 30932  //
 30933  //   - parent: Resource identifier of the conversation adding the participant.
 30934  //     Format: `projects//locations//conversations/`.
 30935  func (r *ProjectsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsConversationsParticipantsCreateCall {
 30936  	c := &ProjectsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30937  	c.parentid = parentid
 30938  	c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
 30939  	return c
 30940  }
 30941  
 30942  // Fields allows partial responses to be retrieved. See
 30943  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30944  // details.
 30945  func (c *ProjectsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsCreateCall {
 30946  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30947  	return c
 30948  }
 30949  
 30950  // Context sets the context to be used in this call's Do method.
 30951  func (c *ProjectsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsConversationsParticipantsCreateCall {
 30952  	c.ctx_ = ctx
 30953  	return c
 30954  }
 30955  
 30956  // Header returns a http.Header that can be modified by the caller to add
 30957  // headers to the request.
 30958  func (c *ProjectsConversationsParticipantsCreateCall) Header() http.Header {
 30959  	if c.header_ == nil {
 30960  		c.header_ = make(http.Header)
 30961  	}
 30962  	return c.header_
 30963  }
 30964  
 30965  func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
 30966  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30967  	var body io.Reader = nil
 30968  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
 30969  	if err != nil {
 30970  		return nil, err
 30971  	}
 30972  	c.urlParams_.Set("alt", alt)
 30973  	c.urlParams_.Set("prettyPrint", "false")
 30974  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
 30975  	urls += "?" + c.urlParams_.Encode()
 30976  	req, err := http.NewRequest("POST", urls, body)
 30977  	if err != nil {
 30978  		return nil, err
 30979  	}
 30980  	req.Header = reqHeaders
 30981  	googleapi.Expand(req.URL, map[string]string{
 30982  		"parent": c.parentid,
 30983  	})
 30984  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30985  }
 30986  
 30987  // Do executes the "dialogflow.projects.conversations.participants.create" call.
 30988  // Any non-2xx status code is an error. Response headers are in either
 30989  // *GoogleCloudDialogflowV2Participant.ServerResponse.Header or (if a response
 30990  // was returned at all) in error.(*googleapi.Error).Header. Use
 30991  // googleapi.IsNotModified to check whether the returned error was because
 30992  // http.StatusNotModified was returned.
 30993  func (c *ProjectsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
 30994  	gensupport.SetOptions(c.urlParams_, opts...)
 30995  	res, err := c.doRequest("json")
 30996  	if res != nil && res.StatusCode == http.StatusNotModified {
 30997  		if res.Body != nil {
 30998  			res.Body.Close()
 30999  		}
 31000  		return nil, gensupport.WrapError(&googleapi.Error{
 31001  			Code:   res.StatusCode,
 31002  			Header: res.Header,
 31003  		})
 31004  	}
 31005  	if err != nil {
 31006  		return nil, err
 31007  	}
 31008  	defer googleapi.CloseBody(res)
 31009  	if err := googleapi.CheckResponse(res); err != nil {
 31010  		return nil, gensupport.WrapError(err)
 31011  	}
 31012  	ret := &GoogleCloudDialogflowV2Participant{
 31013  		ServerResponse: googleapi.ServerResponse{
 31014  			Header:         res.Header,
 31015  			HTTPStatusCode: res.StatusCode,
 31016  		},
 31017  	}
 31018  	target := &ret
 31019  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31020  		return nil, err
 31021  	}
 31022  	return ret, nil
 31023  }
 31024  
 31025  type ProjectsConversationsParticipantsGetCall struct {
 31026  	s            *Service
 31027  	name         string
 31028  	urlParams_   gensupport.URLParams
 31029  	ifNoneMatch_ string
 31030  	ctx_         context.Context
 31031  	header_      http.Header
 31032  }
 31033  
 31034  // Get: Retrieves a conversation participant.
 31035  //
 31036  //   - name: The name of the participant. Format:
 31037  //     `projects//locations//conversations//participants/`.
 31038  func (r *ProjectsConversationsParticipantsService) Get(name string) *ProjectsConversationsParticipantsGetCall {
 31039  	c := &ProjectsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31040  	c.name = name
 31041  	return c
 31042  }
 31043  
 31044  // Fields allows partial responses to be retrieved. See
 31045  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31046  // details.
 31047  func (c *ProjectsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsGetCall {
 31048  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31049  	return c
 31050  }
 31051  
 31052  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31053  // object's ETag matches the given value. This is useful for getting updates
 31054  // only after the object has changed since the last request.
 31055  func (c *ProjectsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsGetCall {
 31056  	c.ifNoneMatch_ = entityTag
 31057  	return c
 31058  }
 31059  
 31060  // Context sets the context to be used in this call's Do method.
 31061  func (c *ProjectsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsConversationsParticipantsGetCall {
 31062  	c.ctx_ = ctx
 31063  	return c
 31064  }
 31065  
 31066  // Header returns a http.Header that can be modified by the caller to add
 31067  // headers to the request.
 31068  func (c *ProjectsConversationsParticipantsGetCall) Header() http.Header {
 31069  	if c.header_ == nil {
 31070  		c.header_ = make(http.Header)
 31071  	}
 31072  	return c.header_
 31073  }
 31074  
 31075  func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
 31076  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31077  	if c.ifNoneMatch_ != "" {
 31078  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31079  	}
 31080  	var body io.Reader = nil
 31081  	c.urlParams_.Set("alt", alt)
 31082  	c.urlParams_.Set("prettyPrint", "false")
 31083  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 31084  	urls += "?" + c.urlParams_.Encode()
 31085  	req, err := http.NewRequest("GET", urls, body)
 31086  	if err != nil {
 31087  		return nil, err
 31088  	}
 31089  	req.Header = reqHeaders
 31090  	googleapi.Expand(req.URL, map[string]string{
 31091  		"name": c.name,
 31092  	})
 31093  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31094  }
 31095  
 31096  // Do executes the "dialogflow.projects.conversations.participants.get" call.
 31097  // Any non-2xx status code is an error. Response headers are in either
 31098  // *GoogleCloudDialogflowV2Participant.ServerResponse.Header or (if a response
 31099  // was returned at all) in error.(*googleapi.Error).Header. Use
 31100  // googleapi.IsNotModified to check whether the returned error was because
 31101  // http.StatusNotModified was returned.
 31102  func (c *ProjectsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
 31103  	gensupport.SetOptions(c.urlParams_, opts...)
 31104  	res, err := c.doRequest("json")
 31105  	if res != nil && res.StatusCode == http.StatusNotModified {
 31106  		if res.Body != nil {
 31107  			res.Body.Close()
 31108  		}
 31109  		return nil, gensupport.WrapError(&googleapi.Error{
 31110  			Code:   res.StatusCode,
 31111  			Header: res.Header,
 31112  		})
 31113  	}
 31114  	if err != nil {
 31115  		return nil, err
 31116  	}
 31117  	defer googleapi.CloseBody(res)
 31118  	if err := googleapi.CheckResponse(res); err != nil {
 31119  		return nil, gensupport.WrapError(err)
 31120  	}
 31121  	ret := &GoogleCloudDialogflowV2Participant{
 31122  		ServerResponse: googleapi.ServerResponse{
 31123  			Header:         res.Header,
 31124  			HTTPStatusCode: res.StatusCode,
 31125  		},
 31126  	}
 31127  	target := &ret
 31128  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31129  		return nil, err
 31130  	}
 31131  	return ret, nil
 31132  }
 31133  
 31134  type ProjectsConversationsParticipantsListCall struct {
 31135  	s            *Service
 31136  	parent       string
 31137  	urlParams_   gensupport.URLParams
 31138  	ifNoneMatch_ string
 31139  	ctx_         context.Context
 31140  	header_      http.Header
 31141  }
 31142  
 31143  // List: Returns the list of all participants in the specified conversation.
 31144  //
 31145  //   - parent: The conversation to list all participants from. Format:
 31146  //     `projects//locations//conversations/`.
 31147  func (r *ProjectsConversationsParticipantsService) List(parent string) *ProjectsConversationsParticipantsListCall {
 31148  	c := &ProjectsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31149  	c.parent = parent
 31150  	return c
 31151  }
 31152  
 31153  // PageSize sets the optional parameter "pageSize": The maximum number of items
 31154  // to return in a single page. By default 100 and at most 1000.
 31155  func (c *ProjectsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsListCall {
 31156  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 31157  	return c
 31158  }
 31159  
 31160  // PageToken sets the optional parameter "pageToken": The next_page_token value
 31161  // returned from a previous list request.
 31162  func (c *ProjectsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsListCall {
 31163  	c.urlParams_.Set("pageToken", pageToken)
 31164  	return c
 31165  }
 31166  
 31167  // Fields allows partial responses to be retrieved. See
 31168  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31169  // details.
 31170  func (c *ProjectsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsListCall {
 31171  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31172  	return c
 31173  }
 31174  
 31175  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31176  // object's ETag matches the given value. This is useful for getting updates
 31177  // only after the object has changed since the last request.
 31178  func (c *ProjectsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsListCall {
 31179  	c.ifNoneMatch_ = entityTag
 31180  	return c
 31181  }
 31182  
 31183  // Context sets the context to be used in this call's Do method.
 31184  func (c *ProjectsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsListCall {
 31185  	c.ctx_ = ctx
 31186  	return c
 31187  }
 31188  
 31189  // Header returns a http.Header that can be modified by the caller to add
 31190  // headers to the request.
 31191  func (c *ProjectsConversationsParticipantsListCall) Header() http.Header {
 31192  	if c.header_ == nil {
 31193  		c.header_ = make(http.Header)
 31194  	}
 31195  	return c.header_
 31196  }
 31197  
 31198  func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
 31199  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31200  	if c.ifNoneMatch_ != "" {
 31201  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31202  	}
 31203  	var body io.Reader = nil
 31204  	c.urlParams_.Set("alt", alt)
 31205  	c.urlParams_.Set("prettyPrint", "false")
 31206  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
 31207  	urls += "?" + c.urlParams_.Encode()
 31208  	req, err := http.NewRequest("GET", urls, body)
 31209  	if err != nil {
 31210  		return nil, err
 31211  	}
 31212  	req.Header = reqHeaders
 31213  	googleapi.Expand(req.URL, map[string]string{
 31214  		"parent": c.parent,
 31215  	})
 31216  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31217  }
 31218  
 31219  // Do executes the "dialogflow.projects.conversations.participants.list" call.
 31220  // Any non-2xx status code is an error. Response headers are in either
 31221  // *GoogleCloudDialogflowV2ListParticipantsResponse.ServerResponse.Header or
 31222  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 31223  // googleapi.IsNotModified to check whether the returned error was because
 31224  // http.StatusNotModified was returned.
 31225  func (c *ProjectsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListParticipantsResponse, error) {
 31226  	gensupport.SetOptions(c.urlParams_, opts...)
 31227  	res, err := c.doRequest("json")
 31228  	if res != nil && res.StatusCode == http.StatusNotModified {
 31229  		if res.Body != nil {
 31230  			res.Body.Close()
 31231  		}
 31232  		return nil, gensupport.WrapError(&googleapi.Error{
 31233  			Code:   res.StatusCode,
 31234  			Header: res.Header,
 31235  		})
 31236  	}
 31237  	if err != nil {
 31238  		return nil, err
 31239  	}
 31240  	defer googleapi.CloseBody(res)
 31241  	if err := googleapi.CheckResponse(res); err != nil {
 31242  		return nil, gensupport.WrapError(err)
 31243  	}
 31244  	ret := &GoogleCloudDialogflowV2ListParticipantsResponse{
 31245  		ServerResponse: googleapi.ServerResponse{
 31246  			Header:         res.Header,
 31247  			HTTPStatusCode: res.StatusCode,
 31248  		},
 31249  	}
 31250  	target := &ret
 31251  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31252  		return nil, err
 31253  	}
 31254  	return ret, nil
 31255  }
 31256  
 31257  // Pages invokes f for each page of results.
 31258  // A non-nil error returned from f will halt the iteration.
 31259  // The provided context supersedes any context provided to the Context method.
 31260  func (c *ProjectsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListParticipantsResponse) error) error {
 31261  	c.ctx_ = ctx
 31262  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31263  	for {
 31264  		x, err := c.Do()
 31265  		if err != nil {
 31266  			return err
 31267  		}
 31268  		if err := f(x); err != nil {
 31269  			return err
 31270  		}
 31271  		if x.NextPageToken == "" {
 31272  			return nil
 31273  		}
 31274  		c.PageToken(x.NextPageToken)
 31275  	}
 31276  }
 31277  
 31278  type ProjectsConversationsParticipantsPatchCall struct {
 31279  	s                                  *Service
 31280  	nameid                             string
 31281  	googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
 31282  	urlParams_                         gensupport.URLParams
 31283  	ctx_                               context.Context
 31284  	header_                            http.Header
 31285  }
 31286  
 31287  // Patch: Updates the specified participant.
 31288  //
 31289  //   - name: Optional. The unique identifier of this participant. Format:
 31290  //     `projects//locations//conversations//participants/`.
 31291  func (r *ProjectsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsConversationsParticipantsPatchCall {
 31292  	c := &ProjectsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31293  	c.nameid = nameid
 31294  	c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
 31295  	return c
 31296  }
 31297  
 31298  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 31299  // specify which fields to update.
 31300  func (c *ProjectsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsConversationsParticipantsPatchCall {
 31301  	c.urlParams_.Set("updateMask", updateMask)
 31302  	return c
 31303  }
 31304  
 31305  // Fields allows partial responses to be retrieved. See
 31306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31307  // details.
 31308  func (c *ProjectsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsPatchCall {
 31309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31310  	return c
 31311  }
 31312  
 31313  // Context sets the context to be used in this call's Do method.
 31314  func (c *ProjectsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsConversationsParticipantsPatchCall {
 31315  	c.ctx_ = ctx
 31316  	return c
 31317  }
 31318  
 31319  // Header returns a http.Header that can be modified by the caller to add
 31320  // headers to the request.
 31321  func (c *ProjectsConversationsParticipantsPatchCall) Header() http.Header {
 31322  	if c.header_ == nil {
 31323  		c.header_ = make(http.Header)
 31324  	}
 31325  	return c.header_
 31326  }
 31327  
 31328  func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
 31329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31330  	var body io.Reader = nil
 31331  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
 31332  	if err != nil {
 31333  		return nil, err
 31334  	}
 31335  	c.urlParams_.Set("alt", alt)
 31336  	c.urlParams_.Set("prettyPrint", "false")
 31337  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 31338  	urls += "?" + c.urlParams_.Encode()
 31339  	req, err := http.NewRequest("PATCH", urls, body)
 31340  	if err != nil {
 31341  		return nil, err
 31342  	}
 31343  	req.Header = reqHeaders
 31344  	googleapi.Expand(req.URL, map[string]string{
 31345  		"name": c.nameid,
 31346  	})
 31347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31348  }
 31349  
 31350  // Do executes the "dialogflow.projects.conversations.participants.patch" call.
 31351  // Any non-2xx status code is an error. Response headers are in either
 31352  // *GoogleCloudDialogflowV2Participant.ServerResponse.Header or (if a response
 31353  // was returned at all) in error.(*googleapi.Error).Header. Use
 31354  // googleapi.IsNotModified to check whether the returned error was because
 31355  // http.StatusNotModified was returned.
 31356  func (c *ProjectsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
 31357  	gensupport.SetOptions(c.urlParams_, opts...)
 31358  	res, err := c.doRequest("json")
 31359  	if res != nil && res.StatusCode == http.StatusNotModified {
 31360  		if res.Body != nil {
 31361  			res.Body.Close()
 31362  		}
 31363  		return nil, gensupport.WrapError(&googleapi.Error{
 31364  			Code:   res.StatusCode,
 31365  			Header: res.Header,
 31366  		})
 31367  	}
 31368  	if err != nil {
 31369  		return nil, err
 31370  	}
 31371  	defer googleapi.CloseBody(res)
 31372  	if err := googleapi.CheckResponse(res); err != nil {
 31373  		return nil, gensupport.WrapError(err)
 31374  	}
 31375  	ret := &GoogleCloudDialogflowV2Participant{
 31376  		ServerResponse: googleapi.ServerResponse{
 31377  			Header:         res.Header,
 31378  			HTTPStatusCode: res.StatusCode,
 31379  		},
 31380  	}
 31381  	target := &ret
 31382  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31383  		return nil, err
 31384  	}
 31385  	return ret, nil
 31386  }
 31387  
 31388  type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
 31389  	s                                             *Service
 31390  	parent                                        string
 31391  	googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest
 31392  	urlParams_                                    gensupport.URLParams
 31393  	ctx_                                          context.Context
 31394  	header_                                       http.Header
 31395  }
 31396  
 31397  // SuggestArticles: Gets suggested articles for a participant based on specific
 31398  // historical messages.
 31399  //
 31400  //   - parent: The name of the participant to fetch suggestion for. Format:
 31401  //     `projects//locations//conversations//participants/`.
 31402  func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
 31403  	c := &ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31404  	c.parent = parent
 31405  	c.googleclouddialogflowv2suggestarticlesrequest = googleclouddialogflowv2suggestarticlesrequest
 31406  	return c
 31407  }
 31408  
 31409  // Fields allows partial responses to be retrieved. See
 31410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31411  // details.
 31412  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
 31413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31414  	return c
 31415  }
 31416  
 31417  // Context sets the context to be used in this call's Do method.
 31418  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
 31419  	c.ctx_ = ctx
 31420  	return c
 31421  }
 31422  
 31423  // Header returns a http.Header that can be modified by the caller to add
 31424  // headers to the request.
 31425  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
 31426  	if c.header_ == nil {
 31427  		c.header_ = make(http.Header)
 31428  	}
 31429  	return c.header_
 31430  }
 31431  
 31432  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
 31433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31434  	var body io.Reader = nil
 31435  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestarticlesrequest)
 31436  	if err != nil {
 31437  		return nil, err
 31438  	}
 31439  	c.urlParams_.Set("alt", alt)
 31440  	c.urlParams_.Set("prettyPrint", "false")
 31441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestArticles")
 31442  	urls += "?" + c.urlParams_.Encode()
 31443  	req, err := http.NewRequest("POST", urls, body)
 31444  	if err != nil {
 31445  		return nil, err
 31446  	}
 31447  	req.Header = reqHeaders
 31448  	googleapi.Expand(req.URL, map[string]string{
 31449  		"parent": c.parent,
 31450  	})
 31451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31452  }
 31453  
 31454  // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call.
 31455  // Any non-2xx status code is an error. Response headers are in either
 31456  // *GoogleCloudDialogflowV2SuggestArticlesResponse.ServerResponse.Header or (if
 31457  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 31458  // googleapi.IsNotModified to check whether the returned error was because
 31459  // http.StatusNotModified was returned.
 31460  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestArticlesResponse, error) {
 31461  	gensupport.SetOptions(c.urlParams_, opts...)
 31462  	res, err := c.doRequest("json")
 31463  	if res != nil && res.StatusCode == http.StatusNotModified {
 31464  		if res.Body != nil {
 31465  			res.Body.Close()
 31466  		}
 31467  		return nil, gensupport.WrapError(&googleapi.Error{
 31468  			Code:   res.StatusCode,
 31469  			Header: res.Header,
 31470  		})
 31471  	}
 31472  	if err != nil {
 31473  		return nil, err
 31474  	}
 31475  	defer googleapi.CloseBody(res)
 31476  	if err := googleapi.CheckResponse(res); err != nil {
 31477  		return nil, gensupport.WrapError(err)
 31478  	}
 31479  	ret := &GoogleCloudDialogflowV2SuggestArticlesResponse{
 31480  		ServerResponse: googleapi.ServerResponse{
 31481  			Header:         res.Header,
 31482  			HTTPStatusCode: res.StatusCode,
 31483  		},
 31484  	}
 31485  	target := &ret
 31486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31487  		return nil, err
 31488  	}
 31489  	return ret, nil
 31490  }
 31491  
 31492  type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
 31493  	s                                               *Service
 31494  	parent                                          string
 31495  	googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest
 31496  	urlParams_                                      gensupport.URLParams
 31497  	ctx_                                            context.Context
 31498  	header_                                         http.Header
 31499  }
 31500  
 31501  // SuggestFaqAnswers: Gets suggested faq answers for a participant based on
 31502  // specific historical messages.
 31503  //
 31504  //   - parent: The name of the participant to fetch suggestion for. Format:
 31505  //     `projects//locations//conversations//participants/`.
 31506  func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 31507  	c := &ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31508  	c.parent = parent
 31509  	c.googleclouddialogflowv2suggestfaqanswersrequest = googleclouddialogflowv2suggestfaqanswersrequest
 31510  	return c
 31511  }
 31512  
 31513  // Fields allows partial responses to be retrieved. See
 31514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31515  // details.
 31516  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 31517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31518  	return c
 31519  }
 31520  
 31521  // Context sets the context to be used in this call's Do method.
 31522  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 31523  	c.ctx_ = ctx
 31524  	return c
 31525  }
 31526  
 31527  // Header returns a http.Header that can be modified by the caller to add
 31528  // headers to the request.
 31529  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
 31530  	if c.header_ == nil {
 31531  		c.header_ = make(http.Header)
 31532  	}
 31533  	return c.header_
 31534  }
 31535  
 31536  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
 31537  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31538  	var body io.Reader = nil
 31539  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestfaqanswersrequest)
 31540  	if err != nil {
 31541  		return nil, err
 31542  	}
 31543  	c.urlParams_.Set("alt", alt)
 31544  	c.urlParams_.Set("prettyPrint", "false")
 31545  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestFaqAnswers")
 31546  	urls += "?" + c.urlParams_.Encode()
 31547  	req, err := http.NewRequest("POST", urls, body)
 31548  	if err != nil {
 31549  		return nil, err
 31550  	}
 31551  	req.Header = reqHeaders
 31552  	googleapi.Expand(req.URL, map[string]string{
 31553  		"parent": c.parent,
 31554  	})
 31555  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31556  }
 31557  
 31558  // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call.
 31559  // Any non-2xx status code is an error. Response headers are in either
 31560  // *GoogleCloudDialogflowV2SuggestFaqAnswersResponse.ServerResponse.Header or
 31561  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 31562  // googleapi.IsNotModified to check whether the returned error was because
 31563  // http.StatusNotModified was returned.
 31564  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestFaqAnswersResponse, error) {
 31565  	gensupport.SetOptions(c.urlParams_, opts...)
 31566  	res, err := c.doRequest("json")
 31567  	if res != nil && res.StatusCode == http.StatusNotModified {
 31568  		if res.Body != nil {
 31569  			res.Body.Close()
 31570  		}
 31571  		return nil, gensupport.WrapError(&googleapi.Error{
 31572  			Code:   res.StatusCode,
 31573  			Header: res.Header,
 31574  		})
 31575  	}
 31576  	if err != nil {
 31577  		return nil, err
 31578  	}
 31579  	defer googleapi.CloseBody(res)
 31580  	if err := googleapi.CheckResponse(res); err != nil {
 31581  		return nil, gensupport.WrapError(err)
 31582  	}
 31583  	ret := &GoogleCloudDialogflowV2SuggestFaqAnswersResponse{
 31584  		ServerResponse: googleapi.ServerResponse{
 31585  			Header:         res.Header,
 31586  			HTTPStatusCode: res.StatusCode,
 31587  		},
 31588  	}
 31589  	target := &ret
 31590  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31591  		return nil, err
 31592  	}
 31593  	return ret, nil
 31594  }
 31595  
 31596  type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
 31597  	s                                                 *Service
 31598  	parent                                            string
 31599  	googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest
 31600  	urlParams_                                        gensupport.URLParams
 31601  	ctx_                                              context.Context
 31602  	header_                                           http.Header
 31603  }
 31604  
 31605  // SuggestSmartReplies: Gets smart replies for a participant based on specific
 31606  // historical messages.
 31607  //
 31608  //   - parent: The name of the participant to fetch suggestion for. Format:
 31609  //     `projects//locations//conversations//participants/`.
 31610  func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 31611  	c := &ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31612  	c.parent = parent
 31613  	c.googleclouddialogflowv2suggestsmartrepliesrequest = googleclouddialogflowv2suggestsmartrepliesrequest
 31614  	return c
 31615  }
 31616  
 31617  // Fields allows partial responses to be retrieved. See
 31618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31619  // details.
 31620  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 31621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31622  	return c
 31623  }
 31624  
 31625  // Context sets the context to be used in this call's Do method.
 31626  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 31627  	c.ctx_ = ctx
 31628  	return c
 31629  }
 31630  
 31631  // Header returns a http.Header that can be modified by the caller to add
 31632  // headers to the request.
 31633  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
 31634  	if c.header_ == nil {
 31635  		c.header_ = make(http.Header)
 31636  	}
 31637  	return c.header_
 31638  }
 31639  
 31640  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
 31641  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31642  	var body io.Reader = nil
 31643  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestsmartrepliesrequest)
 31644  	if err != nil {
 31645  		return nil, err
 31646  	}
 31647  	c.urlParams_.Set("alt", alt)
 31648  	c.urlParams_.Set("prettyPrint", "false")
 31649  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestSmartReplies")
 31650  	urls += "?" + c.urlParams_.Encode()
 31651  	req, err := http.NewRequest("POST", urls, body)
 31652  	if err != nil {
 31653  		return nil, err
 31654  	}
 31655  	req.Header = reqHeaders
 31656  	googleapi.Expand(req.URL, map[string]string{
 31657  		"parent": c.parent,
 31658  	})
 31659  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31660  }
 31661  
 31662  // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call.
 31663  // Any non-2xx status code is an error. Response headers are in either
 31664  // *GoogleCloudDialogflowV2SuggestSmartRepliesResponse.ServerResponse.Header or
 31665  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 31666  // googleapi.IsNotModified to check whether the returned error was because
 31667  // http.StatusNotModified was returned.
 31668  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestSmartRepliesResponse, error) {
 31669  	gensupport.SetOptions(c.urlParams_, opts...)
 31670  	res, err := c.doRequest("json")
 31671  	if res != nil && res.StatusCode == http.StatusNotModified {
 31672  		if res.Body != nil {
 31673  			res.Body.Close()
 31674  		}
 31675  		return nil, gensupport.WrapError(&googleapi.Error{
 31676  			Code:   res.StatusCode,
 31677  			Header: res.Header,
 31678  		})
 31679  	}
 31680  	if err != nil {
 31681  		return nil, err
 31682  	}
 31683  	defer googleapi.CloseBody(res)
 31684  	if err := googleapi.CheckResponse(res); err != nil {
 31685  		return nil, gensupport.WrapError(err)
 31686  	}
 31687  	ret := &GoogleCloudDialogflowV2SuggestSmartRepliesResponse{
 31688  		ServerResponse: googleapi.ServerResponse{
 31689  			Header:         res.Header,
 31690  			HTTPStatusCode: res.StatusCode,
 31691  		},
 31692  	}
 31693  	target := &ret
 31694  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31695  		return nil, err
 31696  	}
 31697  	return ret, nil
 31698  }
 31699  
 31700  type ProjectsConversationsSuggestionsSearchKnowledgeCall struct {
 31701  	s                                             *Service
 31702  	conversation                                  string
 31703  	googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
 31704  	urlParams_                                    gensupport.URLParams
 31705  	ctx_                                          context.Context
 31706  	header_                                       http.Header
 31707  }
 31708  
 31709  // SearchKnowledge: Get answers for the given query based on knowledge
 31710  // documents.
 31711  //
 31712  //   - conversation: The conversation (between human agent and end user) where
 31713  //     the search request is triggered. Format:
 31714  //     `projects//locations//conversations/`.
 31715  func (r *ProjectsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
 31716  	c := &ProjectsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31717  	c.conversation = conversation
 31718  	c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
 31719  	return c
 31720  }
 31721  
 31722  // Fields allows partial responses to be retrieved. See
 31723  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31724  // details.
 31725  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
 31726  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31727  	return c
 31728  }
 31729  
 31730  // Context sets the context to be used in this call's Do method.
 31731  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
 31732  	c.ctx_ = ctx
 31733  	return c
 31734  }
 31735  
 31736  // Header returns a http.Header that can be modified by the caller to add
 31737  // headers to the request.
 31738  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
 31739  	if c.header_ == nil {
 31740  		c.header_ = make(http.Header)
 31741  	}
 31742  	return c.header_
 31743  }
 31744  
 31745  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 31746  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31747  	var body io.Reader = nil
 31748  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
 31749  	if err != nil {
 31750  		return nil, err
 31751  	}
 31752  	c.urlParams_.Set("alt", alt)
 31753  	c.urlParams_.Set("prettyPrint", "false")
 31754  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:searchKnowledge")
 31755  	urls += "?" + c.urlParams_.Encode()
 31756  	req, err := http.NewRequest("POST", urls, body)
 31757  	if err != nil {
 31758  		return nil, err
 31759  	}
 31760  	req.Header = reqHeaders
 31761  	googleapi.Expand(req.URL, map[string]string{
 31762  		"conversation": c.conversation,
 31763  	})
 31764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31765  }
 31766  
 31767  // Do executes the "dialogflow.projects.conversations.suggestions.searchKnowledge" call.
 31768  // Any non-2xx status code is an error. Response headers are in either
 31769  // *GoogleCloudDialogflowV2SearchKnowledgeResponse.ServerResponse.Header or (if
 31770  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 31771  // googleapi.IsNotModified to check whether the returned error was because
 31772  // http.StatusNotModified was returned.
 31773  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
 31774  	gensupport.SetOptions(c.urlParams_, opts...)
 31775  	res, err := c.doRequest("json")
 31776  	if res != nil && res.StatusCode == http.StatusNotModified {
 31777  		if res.Body != nil {
 31778  			res.Body.Close()
 31779  		}
 31780  		return nil, gensupport.WrapError(&googleapi.Error{
 31781  			Code:   res.StatusCode,
 31782  			Header: res.Header,
 31783  		})
 31784  	}
 31785  	if err != nil {
 31786  		return nil, err
 31787  	}
 31788  	defer googleapi.CloseBody(res)
 31789  	if err := googleapi.CheckResponse(res); err != nil {
 31790  		return nil, gensupport.WrapError(err)
 31791  	}
 31792  	ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
 31793  		ServerResponse: googleapi.ServerResponse{
 31794  			Header:         res.Header,
 31795  			HTTPStatusCode: res.StatusCode,
 31796  		},
 31797  	}
 31798  	target := &ret
 31799  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31800  		return nil, err
 31801  	}
 31802  	return ret, nil
 31803  }
 31804  
 31805  type ProjectsConversationsSuggestionsSuggestConversationSummaryCall struct {
 31806  	s                                                        *Service
 31807  	conversation                                             string
 31808  	googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest
 31809  	urlParams_                                               gensupport.URLParams
 31810  	ctx_                                                     context.Context
 31811  	header_                                                  http.Header
 31812  }
 31813  
 31814  // SuggestConversationSummary: Suggests summary for a conversation based on
 31815  // specific historical messages. The range of the messages to be used for
 31816  // summary can be specified in the request.
 31817  //
 31818  //   - conversation: The conversation to fetch suggestion for. Format:
 31819  //     `projects//locations//conversations/`.
 31820  func (r *ProjectsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
 31821  	c := &ProjectsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31822  	c.conversation = conversation
 31823  	c.googleclouddialogflowv2suggestconversationsummaryrequest = googleclouddialogflowv2suggestconversationsummaryrequest
 31824  	return c
 31825  }
 31826  
 31827  // Fields allows partial responses to be retrieved. See
 31828  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31829  // details.
 31830  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
 31831  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31832  	return c
 31833  }
 31834  
 31835  // Context sets the context to be used in this call's Do method.
 31836  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
 31837  	c.ctx_ = ctx
 31838  	return c
 31839  }
 31840  
 31841  // Header returns a http.Header that can be modified by the caller to add
 31842  // headers to the request.
 31843  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
 31844  	if c.header_ == nil {
 31845  		c.header_ = make(http.Header)
 31846  	}
 31847  	return c.header_
 31848  }
 31849  
 31850  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
 31851  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31852  	var body io.Reader = nil
 31853  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestconversationsummaryrequest)
 31854  	if err != nil {
 31855  		return nil, err
 31856  	}
 31857  	c.urlParams_.Set("alt", alt)
 31858  	c.urlParams_.Set("prettyPrint", "false")
 31859  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:suggestConversationSummary")
 31860  	urls += "?" + c.urlParams_.Encode()
 31861  	req, err := http.NewRequest("POST", urls, body)
 31862  	if err != nil {
 31863  		return nil, err
 31864  	}
 31865  	req.Header = reqHeaders
 31866  	googleapi.Expand(req.URL, map[string]string{
 31867  		"conversation": c.conversation,
 31868  	})
 31869  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31870  }
 31871  
 31872  // Do executes the "dialogflow.projects.conversations.suggestions.suggestConversationSummary" call.
 31873  // Any non-2xx status code is an error. Response headers are in either
 31874  // *GoogleCloudDialogflowV2SuggestConversationSummaryResponse.ServerResponse.Hea
 31875  // der or (if a response was returned at all) in
 31876  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 31877  // whether the returned error was because http.StatusNotModified was returned.
 31878  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestConversationSummaryResponse, error) {
 31879  	gensupport.SetOptions(c.urlParams_, opts...)
 31880  	res, err := c.doRequest("json")
 31881  	if res != nil && res.StatusCode == http.StatusNotModified {
 31882  		if res.Body != nil {
 31883  			res.Body.Close()
 31884  		}
 31885  		return nil, gensupport.WrapError(&googleapi.Error{
 31886  			Code:   res.StatusCode,
 31887  			Header: res.Header,
 31888  		})
 31889  	}
 31890  	if err != nil {
 31891  		return nil, err
 31892  	}
 31893  	defer googleapi.CloseBody(res)
 31894  	if err := googleapi.CheckResponse(res); err != nil {
 31895  		return nil, gensupport.WrapError(err)
 31896  	}
 31897  	ret := &GoogleCloudDialogflowV2SuggestConversationSummaryResponse{
 31898  		ServerResponse: googleapi.ServerResponse{
 31899  			Header:         res.Header,
 31900  			HTTPStatusCode: res.StatusCode,
 31901  		},
 31902  	}
 31903  	target := &ret
 31904  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31905  		return nil, err
 31906  	}
 31907  	return ret, nil
 31908  }
 31909  
 31910  type ProjectsKnowledgeBasesCreateCall struct {
 31911  	s                                    *Service
 31912  	parent                               string
 31913  	googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
 31914  	urlParams_                           gensupport.URLParams
 31915  	ctx_                                 context.Context
 31916  	header_                              http.Header
 31917  }
 31918  
 31919  // Create: Creates a knowledge base.
 31920  //
 31921  //   - parent: The project to create a knowledge base for. Format:
 31922  //     `projects//locations/`.
 31923  func (r *ProjectsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsKnowledgeBasesCreateCall {
 31924  	c := &ProjectsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31925  	c.parent = parent
 31926  	c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
 31927  	return c
 31928  }
 31929  
 31930  // Fields allows partial responses to be retrieved. See
 31931  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31932  // details.
 31933  func (c *ProjectsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesCreateCall {
 31934  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31935  	return c
 31936  }
 31937  
 31938  // Context sets the context to be used in this call's Do method.
 31939  func (c *ProjectsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesCreateCall {
 31940  	c.ctx_ = ctx
 31941  	return c
 31942  }
 31943  
 31944  // Header returns a http.Header that can be modified by the caller to add
 31945  // headers to the request.
 31946  func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header {
 31947  	if c.header_ == nil {
 31948  		c.header_ = make(http.Header)
 31949  	}
 31950  	return c.header_
 31951  }
 31952  
 31953  func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
 31954  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31955  	var body io.Reader = nil
 31956  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
 31957  	if err != nil {
 31958  		return nil, err
 31959  	}
 31960  	c.urlParams_.Set("alt", alt)
 31961  	c.urlParams_.Set("prettyPrint", "false")
 31962  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
 31963  	urls += "?" + c.urlParams_.Encode()
 31964  	req, err := http.NewRequest("POST", urls, body)
 31965  	if err != nil {
 31966  		return nil, err
 31967  	}
 31968  	req.Header = reqHeaders
 31969  	googleapi.Expand(req.URL, map[string]string{
 31970  		"parent": c.parent,
 31971  	})
 31972  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31973  }
 31974  
 31975  // Do executes the "dialogflow.projects.knowledgeBases.create" call.
 31976  // Any non-2xx status code is an error. Response headers are in either
 31977  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 31978  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31979  // googleapi.IsNotModified to check whether the returned error was because
 31980  // http.StatusNotModified was returned.
 31981  func (c *ProjectsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 31982  	gensupport.SetOptions(c.urlParams_, opts...)
 31983  	res, err := c.doRequest("json")
 31984  	if res != nil && res.StatusCode == http.StatusNotModified {
 31985  		if res.Body != nil {
 31986  			res.Body.Close()
 31987  		}
 31988  		return nil, gensupport.WrapError(&googleapi.Error{
 31989  			Code:   res.StatusCode,
 31990  			Header: res.Header,
 31991  		})
 31992  	}
 31993  	if err != nil {
 31994  		return nil, err
 31995  	}
 31996  	defer googleapi.CloseBody(res)
 31997  	if err := googleapi.CheckResponse(res); err != nil {
 31998  		return nil, gensupport.WrapError(err)
 31999  	}
 32000  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 32001  		ServerResponse: googleapi.ServerResponse{
 32002  			Header:         res.Header,
 32003  			HTTPStatusCode: res.StatusCode,
 32004  		},
 32005  	}
 32006  	target := &ret
 32007  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32008  		return nil, err
 32009  	}
 32010  	return ret, nil
 32011  }
 32012  
 32013  type ProjectsKnowledgeBasesDeleteCall struct {
 32014  	s          *Service
 32015  	name       string
 32016  	urlParams_ gensupport.URLParams
 32017  	ctx_       context.Context
 32018  	header_    http.Header
 32019  }
 32020  
 32021  // Delete: Deletes the specified knowledge base.
 32022  //
 32023  //   - name: The name of the knowledge base to delete. Format:
 32024  //     `projects//locations//knowledgeBases/`.
 32025  func (r *ProjectsKnowledgeBasesService) Delete(name string) *ProjectsKnowledgeBasesDeleteCall {
 32026  	c := &ProjectsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32027  	c.name = name
 32028  	return c
 32029  }
 32030  
 32031  // Force sets the optional parameter "force": Force deletes the knowledge base.
 32032  // When set to true, any documents in the knowledge base are also deleted.
 32033  func (c *ProjectsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsKnowledgeBasesDeleteCall {
 32034  	c.urlParams_.Set("force", fmt.Sprint(force))
 32035  	return c
 32036  }
 32037  
 32038  // Fields allows partial responses to be retrieved. See
 32039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32040  // details.
 32041  func (c *ProjectsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDeleteCall {
 32042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32043  	return c
 32044  }
 32045  
 32046  // Context sets the context to be used in this call's Do method.
 32047  func (c *ProjectsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDeleteCall {
 32048  	c.ctx_ = ctx
 32049  	return c
 32050  }
 32051  
 32052  // Header returns a http.Header that can be modified by the caller to add
 32053  // headers to the request.
 32054  func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header {
 32055  	if c.header_ == nil {
 32056  		c.header_ = make(http.Header)
 32057  	}
 32058  	return c.header_
 32059  }
 32060  
 32061  func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 32062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32063  	var body io.Reader = nil
 32064  	c.urlParams_.Set("alt", alt)
 32065  	c.urlParams_.Set("prettyPrint", "false")
 32066  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 32067  	urls += "?" + c.urlParams_.Encode()
 32068  	req, err := http.NewRequest("DELETE", urls, body)
 32069  	if err != nil {
 32070  		return nil, err
 32071  	}
 32072  	req.Header = reqHeaders
 32073  	googleapi.Expand(req.URL, map[string]string{
 32074  		"name": c.name,
 32075  	})
 32076  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32077  }
 32078  
 32079  // Do executes the "dialogflow.projects.knowledgeBases.delete" call.
 32080  // Any non-2xx status code is an error. Response headers are in either
 32081  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 32082  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 32083  // check whether the returned error was because http.StatusNotModified was
 32084  // returned.
 32085  func (c *ProjectsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 32086  	gensupport.SetOptions(c.urlParams_, opts...)
 32087  	res, err := c.doRequest("json")
 32088  	if res != nil && res.StatusCode == http.StatusNotModified {
 32089  		if res.Body != nil {
 32090  			res.Body.Close()
 32091  		}
 32092  		return nil, gensupport.WrapError(&googleapi.Error{
 32093  			Code:   res.StatusCode,
 32094  			Header: res.Header,
 32095  		})
 32096  	}
 32097  	if err != nil {
 32098  		return nil, err
 32099  	}
 32100  	defer googleapi.CloseBody(res)
 32101  	if err := googleapi.CheckResponse(res); err != nil {
 32102  		return nil, gensupport.WrapError(err)
 32103  	}
 32104  	ret := &GoogleProtobufEmpty{
 32105  		ServerResponse: googleapi.ServerResponse{
 32106  			Header:         res.Header,
 32107  			HTTPStatusCode: res.StatusCode,
 32108  		},
 32109  	}
 32110  	target := &ret
 32111  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32112  		return nil, err
 32113  	}
 32114  	return ret, nil
 32115  }
 32116  
 32117  type ProjectsKnowledgeBasesGetCall struct {
 32118  	s            *Service
 32119  	name         string
 32120  	urlParams_   gensupport.URLParams
 32121  	ifNoneMatch_ string
 32122  	ctx_         context.Context
 32123  	header_      http.Header
 32124  }
 32125  
 32126  // Get: Retrieves the specified knowledge base.
 32127  //
 32128  //   - name: The name of the knowledge base to retrieve. Format
 32129  //     `projects//locations//knowledgeBases/`.
 32130  func (r *ProjectsKnowledgeBasesService) Get(name string) *ProjectsKnowledgeBasesGetCall {
 32131  	c := &ProjectsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32132  	c.name = name
 32133  	return c
 32134  }
 32135  
 32136  // Fields allows partial responses to be retrieved. See
 32137  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32138  // details.
 32139  func (c *ProjectsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesGetCall {
 32140  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32141  	return c
 32142  }
 32143  
 32144  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32145  // object's ETag matches the given value. This is useful for getting updates
 32146  // only after the object has changed since the last request.
 32147  func (c *ProjectsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesGetCall {
 32148  	c.ifNoneMatch_ = entityTag
 32149  	return c
 32150  }
 32151  
 32152  // Context sets the context to be used in this call's Do method.
 32153  func (c *ProjectsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesGetCall {
 32154  	c.ctx_ = ctx
 32155  	return c
 32156  }
 32157  
 32158  // Header returns a http.Header that can be modified by the caller to add
 32159  // headers to the request.
 32160  func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header {
 32161  	if c.header_ == nil {
 32162  		c.header_ = make(http.Header)
 32163  	}
 32164  	return c.header_
 32165  }
 32166  
 32167  func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
 32168  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32169  	if c.ifNoneMatch_ != "" {
 32170  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32171  	}
 32172  	var body io.Reader = nil
 32173  	c.urlParams_.Set("alt", alt)
 32174  	c.urlParams_.Set("prettyPrint", "false")
 32175  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 32176  	urls += "?" + c.urlParams_.Encode()
 32177  	req, err := http.NewRequest("GET", urls, body)
 32178  	if err != nil {
 32179  		return nil, err
 32180  	}
 32181  	req.Header = reqHeaders
 32182  	googleapi.Expand(req.URL, map[string]string{
 32183  		"name": c.name,
 32184  	})
 32185  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32186  }
 32187  
 32188  // Do executes the "dialogflow.projects.knowledgeBases.get" call.
 32189  // Any non-2xx status code is an error. Response headers are in either
 32190  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 32191  // response was returned at all) in error.(*googleapi.Error).Header. Use
 32192  // googleapi.IsNotModified to check whether the returned error was because
 32193  // http.StatusNotModified was returned.
 32194  func (c *ProjectsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 32195  	gensupport.SetOptions(c.urlParams_, opts...)
 32196  	res, err := c.doRequest("json")
 32197  	if res != nil && res.StatusCode == http.StatusNotModified {
 32198  		if res.Body != nil {
 32199  			res.Body.Close()
 32200  		}
 32201  		return nil, gensupport.WrapError(&googleapi.Error{
 32202  			Code:   res.StatusCode,
 32203  			Header: res.Header,
 32204  		})
 32205  	}
 32206  	if err != nil {
 32207  		return nil, err
 32208  	}
 32209  	defer googleapi.CloseBody(res)
 32210  	if err := googleapi.CheckResponse(res); err != nil {
 32211  		return nil, gensupport.WrapError(err)
 32212  	}
 32213  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 32214  		ServerResponse: googleapi.ServerResponse{
 32215  			Header:         res.Header,
 32216  			HTTPStatusCode: res.StatusCode,
 32217  		},
 32218  	}
 32219  	target := &ret
 32220  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32221  		return nil, err
 32222  	}
 32223  	return ret, nil
 32224  }
 32225  
 32226  type ProjectsKnowledgeBasesListCall struct {
 32227  	s            *Service
 32228  	parent       string
 32229  	urlParams_   gensupport.URLParams
 32230  	ifNoneMatch_ string
 32231  	ctx_         context.Context
 32232  	header_      http.Header
 32233  }
 32234  
 32235  // List: Returns the list of all knowledge bases of the specified agent.
 32236  //
 32237  //   - parent: The project to list of knowledge bases for. Format:
 32238  //     `projects//locations/`.
 32239  func (r *ProjectsKnowledgeBasesService) List(parent string) *ProjectsKnowledgeBasesListCall {
 32240  	c := &ProjectsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32241  	c.parent = parent
 32242  	return c
 32243  }
 32244  
 32245  // Filter sets the optional parameter "filter": The filter expression used to
 32246  // filter knowledge bases returned by the list method. The expression has the
 32247  // following syntax: [AND ] ... The following fields and operators are
 32248  // supported: * display_name with has(:) operator * language_code with
 32249  // equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases
 32250  // with en-us language code. * 'display_name:articles' matches knowledge bases
 32251  // whose display name contains "articles". * 'display_name:"Best Articles"'
 32252  // matches knowledge bases whose display name contains "Best Articles". *
 32253  // 'language_code=en-gb AND display_name=articles' matches all knowledge bases
 32254  // whose display name contains "articles" and whose language code is "en-gb".
 32255  // Note: An empty filter string (i.e. "") is a no-op and will result in no
 32256  // filtering. For more information about filtering, see API Filtering
 32257  // (https://aip.dev/160).
 32258  func (c *ProjectsKnowledgeBasesListCall) Filter(filter string) *ProjectsKnowledgeBasesListCall {
 32259  	c.urlParams_.Set("filter", filter)
 32260  	return c
 32261  }
 32262  
 32263  // PageSize sets the optional parameter "pageSize": The maximum number of items
 32264  // to return in a single page. By default 10 and at most 100.
 32265  func (c *ProjectsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesListCall {
 32266  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32267  	return c
 32268  }
 32269  
 32270  // PageToken sets the optional parameter "pageToken": The next_page_token value
 32271  // returned from a previous list request.
 32272  func (c *ProjectsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesListCall {
 32273  	c.urlParams_.Set("pageToken", pageToken)
 32274  	return c
 32275  }
 32276  
 32277  // Fields allows partial responses to be retrieved. See
 32278  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32279  // details.
 32280  func (c *ProjectsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesListCall {
 32281  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32282  	return c
 32283  }
 32284  
 32285  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32286  // object's ETag matches the given value. This is useful for getting updates
 32287  // only after the object has changed since the last request.
 32288  func (c *ProjectsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesListCall {
 32289  	c.ifNoneMatch_ = entityTag
 32290  	return c
 32291  }
 32292  
 32293  // Context sets the context to be used in this call's Do method.
 32294  func (c *ProjectsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesListCall {
 32295  	c.ctx_ = ctx
 32296  	return c
 32297  }
 32298  
 32299  // Header returns a http.Header that can be modified by the caller to add
 32300  // headers to the request.
 32301  func (c *ProjectsKnowledgeBasesListCall) Header() http.Header {
 32302  	if c.header_ == nil {
 32303  		c.header_ = make(http.Header)
 32304  	}
 32305  	return c.header_
 32306  }
 32307  
 32308  func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
 32309  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32310  	if c.ifNoneMatch_ != "" {
 32311  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32312  	}
 32313  	var body io.Reader = nil
 32314  	c.urlParams_.Set("alt", alt)
 32315  	c.urlParams_.Set("prettyPrint", "false")
 32316  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
 32317  	urls += "?" + c.urlParams_.Encode()
 32318  	req, err := http.NewRequest("GET", urls, body)
 32319  	if err != nil {
 32320  		return nil, err
 32321  	}
 32322  	req.Header = reqHeaders
 32323  	googleapi.Expand(req.URL, map[string]string{
 32324  		"parent": c.parent,
 32325  	})
 32326  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32327  }
 32328  
 32329  // Do executes the "dialogflow.projects.knowledgeBases.list" call.
 32330  // Any non-2xx status code is an error. Response headers are in either
 32331  // *GoogleCloudDialogflowV2ListKnowledgeBasesResponse.ServerResponse.Header or
 32332  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 32333  // googleapi.IsNotModified to check whether the returned error was because
 32334  // http.StatusNotModified was returned.
 32335  func (c *ProjectsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListKnowledgeBasesResponse, error) {
 32336  	gensupport.SetOptions(c.urlParams_, opts...)
 32337  	res, err := c.doRequest("json")
 32338  	if res != nil && res.StatusCode == http.StatusNotModified {
 32339  		if res.Body != nil {
 32340  			res.Body.Close()
 32341  		}
 32342  		return nil, gensupport.WrapError(&googleapi.Error{
 32343  			Code:   res.StatusCode,
 32344  			Header: res.Header,
 32345  		})
 32346  	}
 32347  	if err != nil {
 32348  		return nil, err
 32349  	}
 32350  	defer googleapi.CloseBody(res)
 32351  	if err := googleapi.CheckResponse(res); err != nil {
 32352  		return nil, gensupport.WrapError(err)
 32353  	}
 32354  	ret := &GoogleCloudDialogflowV2ListKnowledgeBasesResponse{
 32355  		ServerResponse: googleapi.ServerResponse{
 32356  			Header:         res.Header,
 32357  			HTTPStatusCode: res.StatusCode,
 32358  		},
 32359  	}
 32360  	target := &ret
 32361  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32362  		return nil, err
 32363  	}
 32364  	return ret, nil
 32365  }
 32366  
 32367  // Pages invokes f for each page of results.
 32368  // A non-nil error returned from f will halt the iteration.
 32369  // The provided context supersedes any context provided to the Context method.
 32370  func (c *ProjectsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListKnowledgeBasesResponse) error) error {
 32371  	c.ctx_ = ctx
 32372  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32373  	for {
 32374  		x, err := c.Do()
 32375  		if err != nil {
 32376  			return err
 32377  		}
 32378  		if err := f(x); err != nil {
 32379  			return err
 32380  		}
 32381  		if x.NextPageToken == "" {
 32382  			return nil
 32383  		}
 32384  		c.PageToken(x.NextPageToken)
 32385  	}
 32386  }
 32387  
 32388  type ProjectsKnowledgeBasesPatchCall struct {
 32389  	s                                    *Service
 32390  	name                                 string
 32391  	googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
 32392  	urlParams_                           gensupport.URLParams
 32393  	ctx_                                 context.Context
 32394  	header_                              http.Header
 32395  }
 32396  
 32397  // Patch: Updates the specified knowledge base.
 32398  //
 32399  //   - name: The knowledge base resource name. The name must be empty when
 32400  //     creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
 32401  func (r *ProjectsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsKnowledgeBasesPatchCall {
 32402  	c := &ProjectsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32403  	c.name = name
 32404  	c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
 32405  	return c
 32406  }
 32407  
 32408  // UpdateMask sets the optional parameter "updateMask": Not specified means
 32409  // `update all`. Currently, only `display_name` can be updated, an
 32410  // InvalidArgument will be returned for attempting to update other fields.
 32411  func (c *ProjectsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesPatchCall {
 32412  	c.urlParams_.Set("updateMask", updateMask)
 32413  	return c
 32414  }
 32415  
 32416  // Fields allows partial responses to be retrieved. See
 32417  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32418  // details.
 32419  func (c *ProjectsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesPatchCall {
 32420  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32421  	return c
 32422  }
 32423  
 32424  // Context sets the context to be used in this call's Do method.
 32425  func (c *ProjectsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesPatchCall {
 32426  	c.ctx_ = ctx
 32427  	return c
 32428  }
 32429  
 32430  // Header returns a http.Header that can be modified by the caller to add
 32431  // headers to the request.
 32432  func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header {
 32433  	if c.header_ == nil {
 32434  		c.header_ = make(http.Header)
 32435  	}
 32436  	return c.header_
 32437  }
 32438  
 32439  func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
 32440  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32441  	var body io.Reader = nil
 32442  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
 32443  	if err != nil {
 32444  		return nil, err
 32445  	}
 32446  	c.urlParams_.Set("alt", alt)
 32447  	c.urlParams_.Set("prettyPrint", "false")
 32448  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 32449  	urls += "?" + c.urlParams_.Encode()
 32450  	req, err := http.NewRequest("PATCH", urls, body)
 32451  	if err != nil {
 32452  		return nil, err
 32453  	}
 32454  	req.Header = reqHeaders
 32455  	googleapi.Expand(req.URL, map[string]string{
 32456  		"name": c.name,
 32457  	})
 32458  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32459  }
 32460  
 32461  // Do executes the "dialogflow.projects.knowledgeBases.patch" call.
 32462  // Any non-2xx status code is an error. Response headers are in either
 32463  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 32464  // response was returned at all) in error.(*googleapi.Error).Header. Use
 32465  // googleapi.IsNotModified to check whether the returned error was because
 32466  // http.StatusNotModified was returned.
 32467  func (c *ProjectsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 32468  	gensupport.SetOptions(c.urlParams_, opts...)
 32469  	res, err := c.doRequest("json")
 32470  	if res != nil && res.StatusCode == http.StatusNotModified {
 32471  		if res.Body != nil {
 32472  			res.Body.Close()
 32473  		}
 32474  		return nil, gensupport.WrapError(&googleapi.Error{
 32475  			Code:   res.StatusCode,
 32476  			Header: res.Header,
 32477  		})
 32478  	}
 32479  	if err != nil {
 32480  		return nil, err
 32481  	}
 32482  	defer googleapi.CloseBody(res)
 32483  	if err := googleapi.CheckResponse(res); err != nil {
 32484  		return nil, gensupport.WrapError(err)
 32485  	}
 32486  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 32487  		ServerResponse: googleapi.ServerResponse{
 32488  			Header:         res.Header,
 32489  			HTTPStatusCode: res.StatusCode,
 32490  		},
 32491  	}
 32492  	target := &ret
 32493  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32494  		return nil, err
 32495  	}
 32496  	return ret, nil
 32497  }
 32498  
 32499  type ProjectsKnowledgeBasesDocumentsCreateCall struct {
 32500  	s                               *Service
 32501  	parent                          string
 32502  	googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
 32503  	urlParams_                      gensupport.URLParams
 32504  	ctx_                            context.Context
 32505  	header_                         http.Header
 32506  }
 32507  
 32508  // Create: Creates a new document. This method is a long-running operation
 32509  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32510  // The returned `Operation` type has the following method-specific fields: -
 32511  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 32512  //
 32513  //   - parent: The knowledge base to create a document for. Format:
 32514  //     `projects//locations//knowledgeBases/`.
 32515  func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsKnowledgeBasesDocumentsCreateCall {
 32516  	c := &ProjectsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32517  	c.parent = parent
 32518  	c.googleclouddialogflowv2document = googleclouddialogflowv2document
 32519  	return c
 32520  }
 32521  
 32522  // Fields allows partial responses to be retrieved. See
 32523  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32524  // details.
 32525  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsCreateCall {
 32526  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32527  	return c
 32528  }
 32529  
 32530  // Context sets the context to be used in this call's Do method.
 32531  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsCreateCall {
 32532  	c.ctx_ = ctx
 32533  	return c
 32534  }
 32535  
 32536  // Header returns a http.Header that can be modified by the caller to add
 32537  // headers to the request.
 32538  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
 32539  	if c.header_ == nil {
 32540  		c.header_ = make(http.Header)
 32541  	}
 32542  	return c.header_
 32543  }
 32544  
 32545  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 32546  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32547  	var body io.Reader = nil
 32548  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
 32549  	if err != nil {
 32550  		return nil, err
 32551  	}
 32552  	c.urlParams_.Set("alt", alt)
 32553  	c.urlParams_.Set("prettyPrint", "false")
 32554  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
 32555  	urls += "?" + c.urlParams_.Encode()
 32556  	req, err := http.NewRequest("POST", urls, body)
 32557  	if err != nil {
 32558  		return nil, err
 32559  	}
 32560  	req.Header = reqHeaders
 32561  	googleapi.Expand(req.URL, map[string]string{
 32562  		"parent": c.parent,
 32563  	})
 32564  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32565  }
 32566  
 32567  // Do executes the "dialogflow.projects.knowledgeBases.documents.create" call.
 32568  // Any non-2xx status code is an error. Response headers are in either
 32569  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32570  // returned at all) in error.(*googleapi.Error).Header. Use
 32571  // googleapi.IsNotModified to check whether the returned error was because
 32572  // http.StatusNotModified was returned.
 32573  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32574  	gensupport.SetOptions(c.urlParams_, opts...)
 32575  	res, err := c.doRequest("json")
 32576  	if res != nil && res.StatusCode == http.StatusNotModified {
 32577  		if res.Body != nil {
 32578  			res.Body.Close()
 32579  		}
 32580  		return nil, gensupport.WrapError(&googleapi.Error{
 32581  			Code:   res.StatusCode,
 32582  			Header: res.Header,
 32583  		})
 32584  	}
 32585  	if err != nil {
 32586  		return nil, err
 32587  	}
 32588  	defer googleapi.CloseBody(res)
 32589  	if err := googleapi.CheckResponse(res); err != nil {
 32590  		return nil, gensupport.WrapError(err)
 32591  	}
 32592  	ret := &GoogleLongrunningOperation{
 32593  		ServerResponse: googleapi.ServerResponse{
 32594  			Header:         res.Header,
 32595  			HTTPStatusCode: res.StatusCode,
 32596  		},
 32597  	}
 32598  	target := &ret
 32599  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32600  		return nil, err
 32601  	}
 32602  	return ret, nil
 32603  }
 32604  
 32605  type ProjectsKnowledgeBasesDocumentsDeleteCall struct {
 32606  	s          *Service
 32607  	name       string
 32608  	urlParams_ gensupport.URLParams
 32609  	ctx_       context.Context
 32610  	header_    http.Header
 32611  }
 32612  
 32613  // Delete: Deletes the specified document. This method is a long-running
 32614  // operation
 32615  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32616  // The returned `Operation` type has the following method-specific fields: -
 32617  // `metadata`: KnowledgeOperationMetadata - `response`: An Empty message
 32618  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 32619  //
 32620  //   - name: The name of the document to delete. Format:
 32621  //     `projects//locations//knowledgeBases//documents/`.
 32622  func (r *ProjectsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsKnowledgeBasesDocumentsDeleteCall {
 32623  	c := &ProjectsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32624  	c.name = name
 32625  	return c
 32626  }
 32627  
 32628  // Fields allows partial responses to be retrieved. See
 32629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32630  // details.
 32631  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsDeleteCall {
 32632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32633  	return c
 32634  }
 32635  
 32636  // Context sets the context to be used in this call's Do method.
 32637  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsDeleteCall {
 32638  	c.ctx_ = ctx
 32639  	return c
 32640  }
 32641  
 32642  // Header returns a http.Header that can be modified by the caller to add
 32643  // headers to the request.
 32644  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
 32645  	if c.header_ == nil {
 32646  		c.header_ = make(http.Header)
 32647  	}
 32648  	return c.header_
 32649  }
 32650  
 32651  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 32652  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32653  	var body io.Reader = nil
 32654  	c.urlParams_.Set("alt", alt)
 32655  	c.urlParams_.Set("prettyPrint", "false")
 32656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 32657  	urls += "?" + c.urlParams_.Encode()
 32658  	req, err := http.NewRequest("DELETE", urls, body)
 32659  	if err != nil {
 32660  		return nil, err
 32661  	}
 32662  	req.Header = reqHeaders
 32663  	googleapi.Expand(req.URL, map[string]string{
 32664  		"name": c.name,
 32665  	})
 32666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32667  }
 32668  
 32669  // Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call.
 32670  // Any non-2xx status code is an error. Response headers are in either
 32671  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32672  // returned at all) in error.(*googleapi.Error).Header. Use
 32673  // googleapi.IsNotModified to check whether the returned error was because
 32674  // http.StatusNotModified was returned.
 32675  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32676  	gensupport.SetOptions(c.urlParams_, opts...)
 32677  	res, err := c.doRequest("json")
 32678  	if res != nil && res.StatusCode == http.StatusNotModified {
 32679  		if res.Body != nil {
 32680  			res.Body.Close()
 32681  		}
 32682  		return nil, gensupport.WrapError(&googleapi.Error{
 32683  			Code:   res.StatusCode,
 32684  			Header: res.Header,
 32685  		})
 32686  	}
 32687  	if err != nil {
 32688  		return nil, err
 32689  	}
 32690  	defer googleapi.CloseBody(res)
 32691  	if err := googleapi.CheckResponse(res); err != nil {
 32692  		return nil, gensupport.WrapError(err)
 32693  	}
 32694  	ret := &GoogleLongrunningOperation{
 32695  		ServerResponse: googleapi.ServerResponse{
 32696  			Header:         res.Header,
 32697  			HTTPStatusCode: res.StatusCode,
 32698  		},
 32699  	}
 32700  	target := &ret
 32701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32702  		return nil, err
 32703  	}
 32704  	return ret, nil
 32705  }
 32706  
 32707  type ProjectsKnowledgeBasesDocumentsExportCall struct {
 32708  	s                                            *Service
 32709  	name                                         string
 32710  	googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest
 32711  	urlParams_                                   gensupport.URLParams
 32712  	ctx_                                         context.Context
 32713  	header_                                      http.Header
 32714  }
 32715  
 32716  // Export: Exports a smart messaging candidate document into the specified
 32717  // destination. This method is a long-running operation
 32718  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32719  // The returned `Operation` type has the following method-specific fields: -
 32720  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 32721  //
 32722  //   - name: The name of the document to export. Format:
 32723  //     `projects//locations//knowledgeBases//documents/`.
 32724  func (r *ProjectsKnowledgeBasesDocumentsService) Export(name string, googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest) *ProjectsKnowledgeBasesDocumentsExportCall {
 32725  	c := &ProjectsKnowledgeBasesDocumentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32726  	c.name = name
 32727  	c.googleclouddialogflowv2exportdocumentrequest = googleclouddialogflowv2exportdocumentrequest
 32728  	return c
 32729  }
 32730  
 32731  // Fields allows partial responses to be retrieved. See
 32732  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32733  // details.
 32734  func (c *ProjectsKnowledgeBasesDocumentsExportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsExportCall {
 32735  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32736  	return c
 32737  }
 32738  
 32739  // Context sets the context to be used in this call's Do method.
 32740  func (c *ProjectsKnowledgeBasesDocumentsExportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsExportCall {
 32741  	c.ctx_ = ctx
 32742  	return c
 32743  }
 32744  
 32745  // Header returns a http.Header that can be modified by the caller to add
 32746  // headers to the request.
 32747  func (c *ProjectsKnowledgeBasesDocumentsExportCall) Header() http.Header {
 32748  	if c.header_ == nil {
 32749  		c.header_ = make(http.Header)
 32750  	}
 32751  	return c.header_
 32752  }
 32753  
 32754  func (c *ProjectsKnowledgeBasesDocumentsExportCall) doRequest(alt string) (*http.Response, error) {
 32755  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32756  	var body io.Reader = nil
 32757  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportdocumentrequest)
 32758  	if err != nil {
 32759  		return nil, err
 32760  	}
 32761  	c.urlParams_.Set("alt", alt)
 32762  	c.urlParams_.Set("prettyPrint", "false")
 32763  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:export")
 32764  	urls += "?" + c.urlParams_.Encode()
 32765  	req, err := http.NewRequest("POST", urls, body)
 32766  	if err != nil {
 32767  		return nil, err
 32768  	}
 32769  	req.Header = reqHeaders
 32770  	googleapi.Expand(req.URL, map[string]string{
 32771  		"name": c.name,
 32772  	})
 32773  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32774  }
 32775  
 32776  // Do executes the "dialogflow.projects.knowledgeBases.documents.export" call.
 32777  // Any non-2xx status code is an error. Response headers are in either
 32778  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32779  // returned at all) in error.(*googleapi.Error).Header. Use
 32780  // googleapi.IsNotModified to check whether the returned error was because
 32781  // http.StatusNotModified was returned.
 32782  func (c *ProjectsKnowledgeBasesDocumentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32783  	gensupport.SetOptions(c.urlParams_, opts...)
 32784  	res, err := c.doRequest("json")
 32785  	if res != nil && res.StatusCode == http.StatusNotModified {
 32786  		if res.Body != nil {
 32787  			res.Body.Close()
 32788  		}
 32789  		return nil, gensupport.WrapError(&googleapi.Error{
 32790  			Code:   res.StatusCode,
 32791  			Header: res.Header,
 32792  		})
 32793  	}
 32794  	if err != nil {
 32795  		return nil, err
 32796  	}
 32797  	defer googleapi.CloseBody(res)
 32798  	if err := googleapi.CheckResponse(res); err != nil {
 32799  		return nil, gensupport.WrapError(err)
 32800  	}
 32801  	ret := &GoogleLongrunningOperation{
 32802  		ServerResponse: googleapi.ServerResponse{
 32803  			Header:         res.Header,
 32804  			HTTPStatusCode: res.StatusCode,
 32805  		},
 32806  	}
 32807  	target := &ret
 32808  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32809  		return nil, err
 32810  	}
 32811  	return ret, nil
 32812  }
 32813  
 32814  type ProjectsKnowledgeBasesDocumentsGetCall struct {
 32815  	s            *Service
 32816  	name         string
 32817  	urlParams_   gensupport.URLParams
 32818  	ifNoneMatch_ string
 32819  	ctx_         context.Context
 32820  	header_      http.Header
 32821  }
 32822  
 32823  // Get: Retrieves the specified document.
 32824  //
 32825  //   - name: The name of the document to retrieve. Format
 32826  //     `projects//locations//knowledgeBases//documents/`.
 32827  func (r *ProjectsKnowledgeBasesDocumentsService) Get(name string) *ProjectsKnowledgeBasesDocumentsGetCall {
 32828  	c := &ProjectsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32829  	c.name = name
 32830  	return c
 32831  }
 32832  
 32833  // Fields allows partial responses to be retrieved. See
 32834  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32835  // details.
 32836  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsGetCall {
 32837  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32838  	return c
 32839  }
 32840  
 32841  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32842  // object's ETag matches the given value. This is useful for getting updates
 32843  // only after the object has changed since the last request.
 32844  func (c *ProjectsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsGetCall {
 32845  	c.ifNoneMatch_ = entityTag
 32846  	return c
 32847  }
 32848  
 32849  // Context sets the context to be used in this call's Do method.
 32850  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsGetCall {
 32851  	c.ctx_ = ctx
 32852  	return c
 32853  }
 32854  
 32855  // Header returns a http.Header that can be modified by the caller to add
 32856  // headers to the request.
 32857  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header {
 32858  	if c.header_ == nil {
 32859  		c.header_ = make(http.Header)
 32860  	}
 32861  	return c.header_
 32862  }
 32863  
 32864  func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 32865  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32866  	if c.ifNoneMatch_ != "" {
 32867  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32868  	}
 32869  	var body io.Reader = nil
 32870  	c.urlParams_.Set("alt", alt)
 32871  	c.urlParams_.Set("prettyPrint", "false")
 32872  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 32873  	urls += "?" + c.urlParams_.Encode()
 32874  	req, err := http.NewRequest("GET", urls, body)
 32875  	if err != nil {
 32876  		return nil, err
 32877  	}
 32878  	req.Header = reqHeaders
 32879  	googleapi.Expand(req.URL, map[string]string{
 32880  		"name": c.name,
 32881  	})
 32882  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32883  }
 32884  
 32885  // Do executes the "dialogflow.projects.knowledgeBases.documents.get" call.
 32886  // Any non-2xx status code is an error. Response headers are in either
 32887  // *GoogleCloudDialogflowV2Document.ServerResponse.Header or (if a response was
 32888  // returned at all) in error.(*googleapi.Error).Header. Use
 32889  // googleapi.IsNotModified to check whether the returned error was because
 32890  // http.StatusNotModified was returned.
 32891  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Document, error) {
 32892  	gensupport.SetOptions(c.urlParams_, opts...)
 32893  	res, err := c.doRequest("json")
 32894  	if res != nil && res.StatusCode == http.StatusNotModified {
 32895  		if res.Body != nil {
 32896  			res.Body.Close()
 32897  		}
 32898  		return nil, gensupport.WrapError(&googleapi.Error{
 32899  			Code:   res.StatusCode,
 32900  			Header: res.Header,
 32901  		})
 32902  	}
 32903  	if err != nil {
 32904  		return nil, err
 32905  	}
 32906  	defer googleapi.CloseBody(res)
 32907  	if err := googleapi.CheckResponse(res); err != nil {
 32908  		return nil, gensupport.WrapError(err)
 32909  	}
 32910  	ret := &GoogleCloudDialogflowV2Document{
 32911  		ServerResponse: googleapi.ServerResponse{
 32912  			Header:         res.Header,
 32913  			HTTPStatusCode: res.StatusCode,
 32914  		},
 32915  	}
 32916  	target := &ret
 32917  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32918  		return nil, err
 32919  	}
 32920  	return ret, nil
 32921  }
 32922  
 32923  type ProjectsKnowledgeBasesDocumentsImportCall struct {
 32924  	s                                             *Service
 32925  	parent                                        string
 32926  	googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest
 32927  	urlParams_                                    gensupport.URLParams
 32928  	ctx_                                          context.Context
 32929  	header_                                       http.Header
 32930  }
 32931  
 32932  // Import: Creates documents by importing data from external sources.
 32933  // Dialogflow supports up to 350 documents in each request. If you try to
 32934  // import more, Dialogflow will return an error. This method is a long-running
 32935  // operation
 32936  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32937  // The returned `Operation` type has the following method-specific fields: -
 32938  // `metadata`: KnowledgeOperationMetadata - `response`: ImportDocumentsResponse
 32939  //
 32940  //   - parent: The knowledge base to import documents into. Format:
 32941  //     `projects//locations//knowledgeBases/`.
 32942  func (r *ProjectsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest) *ProjectsKnowledgeBasesDocumentsImportCall {
 32943  	c := &ProjectsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32944  	c.parent = parent
 32945  	c.googleclouddialogflowv2importdocumentsrequest = googleclouddialogflowv2importdocumentsrequest
 32946  	return c
 32947  }
 32948  
 32949  // Fields allows partial responses to be retrieved. See
 32950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32951  // details.
 32952  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsImportCall {
 32953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32954  	return c
 32955  }
 32956  
 32957  // Context sets the context to be used in this call's Do method.
 32958  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsImportCall {
 32959  	c.ctx_ = ctx
 32960  	return c
 32961  }
 32962  
 32963  // Header returns a http.Header that can be modified by the caller to add
 32964  // headers to the request.
 32965  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Header() http.Header {
 32966  	if c.header_ == nil {
 32967  		c.header_ = make(http.Header)
 32968  	}
 32969  	return c.header_
 32970  }
 32971  
 32972  func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 32973  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32974  	var body io.Reader = nil
 32975  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importdocumentsrequest)
 32976  	if err != nil {
 32977  		return nil, err
 32978  	}
 32979  	c.urlParams_.Set("alt", alt)
 32980  	c.urlParams_.Set("prettyPrint", "false")
 32981  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents:import")
 32982  	urls += "?" + c.urlParams_.Encode()
 32983  	req, err := http.NewRequest("POST", urls, body)
 32984  	if err != nil {
 32985  		return nil, err
 32986  	}
 32987  	req.Header = reqHeaders
 32988  	googleapi.Expand(req.URL, map[string]string{
 32989  		"parent": c.parent,
 32990  	})
 32991  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32992  }
 32993  
 32994  // Do executes the "dialogflow.projects.knowledgeBases.documents.import" call.
 32995  // Any non-2xx status code is an error. Response headers are in either
 32996  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32997  // returned at all) in error.(*googleapi.Error).Header. Use
 32998  // googleapi.IsNotModified to check whether the returned error was because
 32999  // http.StatusNotModified was returned.
 33000  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33001  	gensupport.SetOptions(c.urlParams_, opts...)
 33002  	res, err := c.doRequest("json")
 33003  	if res != nil && res.StatusCode == http.StatusNotModified {
 33004  		if res.Body != nil {
 33005  			res.Body.Close()
 33006  		}
 33007  		return nil, gensupport.WrapError(&googleapi.Error{
 33008  			Code:   res.StatusCode,
 33009  			Header: res.Header,
 33010  		})
 33011  	}
 33012  	if err != nil {
 33013  		return nil, err
 33014  	}
 33015  	defer googleapi.CloseBody(res)
 33016  	if err := googleapi.CheckResponse(res); err != nil {
 33017  		return nil, gensupport.WrapError(err)
 33018  	}
 33019  	ret := &GoogleLongrunningOperation{
 33020  		ServerResponse: googleapi.ServerResponse{
 33021  			Header:         res.Header,
 33022  			HTTPStatusCode: res.StatusCode,
 33023  		},
 33024  	}
 33025  	target := &ret
 33026  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33027  		return nil, err
 33028  	}
 33029  	return ret, nil
 33030  }
 33031  
 33032  type ProjectsKnowledgeBasesDocumentsListCall struct {
 33033  	s            *Service
 33034  	parent       string
 33035  	urlParams_   gensupport.URLParams
 33036  	ifNoneMatch_ string
 33037  	ctx_         context.Context
 33038  	header_      http.Header
 33039  }
 33040  
 33041  // List: Returns the list of all documents of the knowledge base.
 33042  //
 33043  //   - parent: The knowledge base to list all documents for. Format:
 33044  //     `projects//locations//knowledgeBases/`.
 33045  func (r *ProjectsKnowledgeBasesDocumentsService) List(parent string) *ProjectsKnowledgeBasesDocumentsListCall {
 33046  	c := &ProjectsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33047  	c.parent = parent
 33048  	return c
 33049  }
 33050  
 33051  // Filter sets the optional parameter "filter": The filter expression used to
 33052  // filter documents returned by the list method. The expression has the
 33053  // following syntax: [AND ] ... The following fields and operators are
 33054  // supported: * knowledge_types with has(:) operator * display_name with has(:)
 33055  // operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"
 33056  // matches documents with FAQ knowledge type. * "display_name:customer" matches
 33057  // documents whose display name contains "customer". * "state=ACTIVE" matches
 33058  // documents with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"
 33059  // matches all active FAQ documents. For more information about filtering, see
 33060  // API Filtering (https://aip.dev/160).
 33061  func (c *ProjectsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsKnowledgeBasesDocumentsListCall {
 33062  	c.urlParams_.Set("filter", filter)
 33063  	return c
 33064  }
 33065  
 33066  // PageSize sets the optional parameter "pageSize": The maximum number of items
 33067  // to return in a single page. By default 10 and at most 100.
 33068  func (c *ProjectsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesDocumentsListCall {
 33069  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33070  	return c
 33071  }
 33072  
 33073  // PageToken sets the optional parameter "pageToken": The next_page_token value
 33074  // returned from a previous list request.
 33075  func (c *ProjectsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesDocumentsListCall {
 33076  	c.urlParams_.Set("pageToken", pageToken)
 33077  	return c
 33078  }
 33079  
 33080  // Fields allows partial responses to be retrieved. See
 33081  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33082  // details.
 33083  func (c *ProjectsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsListCall {
 33084  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33085  	return c
 33086  }
 33087  
 33088  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33089  // object's ETag matches the given value. This is useful for getting updates
 33090  // only after the object has changed since the last request.
 33091  func (c *ProjectsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsListCall {
 33092  	c.ifNoneMatch_ = entityTag
 33093  	return c
 33094  }
 33095  
 33096  // Context sets the context to be used in this call's Do method.
 33097  func (c *ProjectsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsListCall {
 33098  	c.ctx_ = ctx
 33099  	return c
 33100  }
 33101  
 33102  // Header returns a http.Header that can be modified by the caller to add
 33103  // headers to the request.
 33104  func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header {
 33105  	if c.header_ == nil {
 33106  		c.header_ = make(http.Header)
 33107  	}
 33108  	return c.header_
 33109  }
 33110  
 33111  func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 33112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33113  	if c.ifNoneMatch_ != "" {
 33114  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33115  	}
 33116  	var body io.Reader = nil
 33117  	c.urlParams_.Set("alt", alt)
 33118  	c.urlParams_.Set("prettyPrint", "false")
 33119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
 33120  	urls += "?" + c.urlParams_.Encode()
 33121  	req, err := http.NewRequest("GET", urls, body)
 33122  	if err != nil {
 33123  		return nil, err
 33124  	}
 33125  	req.Header = reqHeaders
 33126  	googleapi.Expand(req.URL, map[string]string{
 33127  		"parent": c.parent,
 33128  	})
 33129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33130  }
 33131  
 33132  // Do executes the "dialogflow.projects.knowledgeBases.documents.list" call.
 33133  // Any non-2xx status code is an error. Response headers are in either
 33134  // *GoogleCloudDialogflowV2ListDocumentsResponse.ServerResponse.Header or (if a
 33135  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33136  // googleapi.IsNotModified to check whether the returned error was because
 33137  // http.StatusNotModified was returned.
 33138  func (c *ProjectsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListDocumentsResponse, error) {
 33139  	gensupport.SetOptions(c.urlParams_, opts...)
 33140  	res, err := c.doRequest("json")
 33141  	if res != nil && res.StatusCode == http.StatusNotModified {
 33142  		if res.Body != nil {
 33143  			res.Body.Close()
 33144  		}
 33145  		return nil, gensupport.WrapError(&googleapi.Error{
 33146  			Code:   res.StatusCode,
 33147  			Header: res.Header,
 33148  		})
 33149  	}
 33150  	if err != nil {
 33151  		return nil, err
 33152  	}
 33153  	defer googleapi.CloseBody(res)
 33154  	if err := googleapi.CheckResponse(res); err != nil {
 33155  		return nil, gensupport.WrapError(err)
 33156  	}
 33157  	ret := &GoogleCloudDialogflowV2ListDocumentsResponse{
 33158  		ServerResponse: googleapi.ServerResponse{
 33159  			Header:         res.Header,
 33160  			HTTPStatusCode: res.StatusCode,
 33161  		},
 33162  	}
 33163  	target := &ret
 33164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33165  		return nil, err
 33166  	}
 33167  	return ret, nil
 33168  }
 33169  
 33170  // Pages invokes f for each page of results.
 33171  // A non-nil error returned from f will halt the iteration.
 33172  // The provided context supersedes any context provided to the Context method.
 33173  func (c *ProjectsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListDocumentsResponse) error) error {
 33174  	c.ctx_ = ctx
 33175  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33176  	for {
 33177  		x, err := c.Do()
 33178  		if err != nil {
 33179  			return err
 33180  		}
 33181  		if err := f(x); err != nil {
 33182  			return err
 33183  		}
 33184  		if x.NextPageToken == "" {
 33185  			return nil
 33186  		}
 33187  		c.PageToken(x.NextPageToken)
 33188  	}
 33189  }
 33190  
 33191  type ProjectsKnowledgeBasesDocumentsPatchCall struct {
 33192  	s                               *Service
 33193  	name                            string
 33194  	googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
 33195  	urlParams_                      gensupport.URLParams
 33196  	ctx_                            context.Context
 33197  	header_                         http.Header
 33198  }
 33199  
 33200  // Patch: Updates the specified document. This method is a long-running
 33201  // operation
 33202  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 33203  // The returned `Operation` type has the following method-specific fields: -
 33204  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 33205  //
 33206  //   - name: Optional. The document resource name. The name must be empty when
 33207  //     creating a document. Format:
 33208  //     `projects//locations//knowledgeBases//documents/`.
 33209  func (r *ProjectsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsKnowledgeBasesDocumentsPatchCall {
 33210  	c := &ProjectsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33211  	c.name = name
 33212  	c.googleclouddialogflowv2document = googleclouddialogflowv2document
 33213  	return c
 33214  }
 33215  
 33216  // UpdateMask sets the optional parameter "updateMask": Not specified means
 33217  // `update all`. Currently, only `display_name` can be updated, an
 33218  // InvalidArgument will be returned for attempting to update other fields.
 33219  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesDocumentsPatchCall {
 33220  	c.urlParams_.Set("updateMask", updateMask)
 33221  	return c
 33222  }
 33223  
 33224  // Fields allows partial responses to be retrieved. See
 33225  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33226  // details.
 33227  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsPatchCall {
 33228  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33229  	return c
 33230  }
 33231  
 33232  // Context sets the context to be used in this call's Do method.
 33233  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsPatchCall {
 33234  	c.ctx_ = ctx
 33235  	return c
 33236  }
 33237  
 33238  // Header returns a http.Header that can be modified by the caller to add
 33239  // headers to the request.
 33240  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
 33241  	if c.header_ == nil {
 33242  		c.header_ = make(http.Header)
 33243  	}
 33244  	return c.header_
 33245  }
 33246  
 33247  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 33248  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33249  	var body io.Reader = nil
 33250  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
 33251  	if err != nil {
 33252  		return nil, err
 33253  	}
 33254  	c.urlParams_.Set("alt", alt)
 33255  	c.urlParams_.Set("prettyPrint", "false")
 33256  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 33257  	urls += "?" + c.urlParams_.Encode()
 33258  	req, err := http.NewRequest("PATCH", urls, body)
 33259  	if err != nil {
 33260  		return nil, err
 33261  	}
 33262  	req.Header = reqHeaders
 33263  	googleapi.Expand(req.URL, map[string]string{
 33264  		"name": c.name,
 33265  	})
 33266  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33267  }
 33268  
 33269  // Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call.
 33270  // Any non-2xx status code is an error. Response headers are in either
 33271  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33272  // returned at all) in error.(*googleapi.Error).Header. Use
 33273  // googleapi.IsNotModified to check whether the returned error was because
 33274  // http.StatusNotModified was returned.
 33275  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33276  	gensupport.SetOptions(c.urlParams_, opts...)
 33277  	res, err := c.doRequest("json")
 33278  	if res != nil && res.StatusCode == http.StatusNotModified {
 33279  		if res.Body != nil {
 33280  			res.Body.Close()
 33281  		}
 33282  		return nil, gensupport.WrapError(&googleapi.Error{
 33283  			Code:   res.StatusCode,
 33284  			Header: res.Header,
 33285  		})
 33286  	}
 33287  	if err != nil {
 33288  		return nil, err
 33289  	}
 33290  	defer googleapi.CloseBody(res)
 33291  	if err := googleapi.CheckResponse(res); err != nil {
 33292  		return nil, gensupport.WrapError(err)
 33293  	}
 33294  	ret := &GoogleLongrunningOperation{
 33295  		ServerResponse: googleapi.ServerResponse{
 33296  			Header:         res.Header,
 33297  			HTTPStatusCode: res.StatusCode,
 33298  		},
 33299  	}
 33300  	target := &ret
 33301  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33302  		return nil, err
 33303  	}
 33304  	return ret, nil
 33305  }
 33306  
 33307  type ProjectsKnowledgeBasesDocumentsReloadCall struct {
 33308  	s                                            *Service
 33309  	name                                         string
 33310  	googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest
 33311  	urlParams_                                   gensupport.URLParams
 33312  	ctx_                                         context.Context
 33313  	header_                                      http.Header
 33314  }
 33315  
 33316  // Reload: Reloads the specified document from its specified source,
 33317  // content_uri or content. The previously loaded content of the document will
 33318  // be deleted. Note: Even when the content of the document has not changed,
 33319  // there still may be side effects because of internal implementation changes.
 33320  // This method is a long-running operation
 33321  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 33322  // The returned `Operation` type has the following method-specific fields: -
 33323  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 33324  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 33325  // `projects.knowledgeBases.documents`.
 33326  //
 33327  //   - name: The name of the document to reload. Format:
 33328  //     `projects//locations//knowledgeBases//documents/`.
 33329  func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall {
 33330  	c := &ProjectsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33331  	c.name = name
 33332  	c.googleclouddialogflowv2reloaddocumentrequest = googleclouddialogflowv2reloaddocumentrequest
 33333  	return c
 33334  }
 33335  
 33336  // Fields allows partial responses to be retrieved. See
 33337  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33338  // details.
 33339  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsReloadCall {
 33340  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33341  	return c
 33342  }
 33343  
 33344  // Context sets the context to be used in this call's Do method.
 33345  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsReloadCall {
 33346  	c.ctx_ = ctx
 33347  	return c
 33348  }
 33349  
 33350  // Header returns a http.Header that can be modified by the caller to add
 33351  // headers to the request.
 33352  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
 33353  	if c.header_ == nil {
 33354  		c.header_ = make(http.Header)
 33355  	}
 33356  	return c.header_
 33357  }
 33358  
 33359  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
 33360  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33361  	var body io.Reader = nil
 33362  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2reloaddocumentrequest)
 33363  	if err != nil {
 33364  		return nil, err
 33365  	}
 33366  	c.urlParams_.Set("alt", alt)
 33367  	c.urlParams_.Set("prettyPrint", "false")
 33368  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:reload")
 33369  	urls += "?" + c.urlParams_.Encode()
 33370  	req, err := http.NewRequest("POST", urls, body)
 33371  	if err != nil {
 33372  		return nil, err
 33373  	}
 33374  	req.Header = reqHeaders
 33375  	googleapi.Expand(req.URL, map[string]string{
 33376  		"name": c.name,
 33377  	})
 33378  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33379  }
 33380  
 33381  // Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call.
 33382  // Any non-2xx status code is an error. Response headers are in either
 33383  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33384  // returned at all) in error.(*googleapi.Error).Header. Use
 33385  // googleapi.IsNotModified to check whether the returned error was because
 33386  // http.StatusNotModified was returned.
 33387  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33388  	gensupport.SetOptions(c.urlParams_, opts...)
 33389  	res, err := c.doRequest("json")
 33390  	if res != nil && res.StatusCode == http.StatusNotModified {
 33391  		if res.Body != nil {
 33392  			res.Body.Close()
 33393  		}
 33394  		return nil, gensupport.WrapError(&googleapi.Error{
 33395  			Code:   res.StatusCode,
 33396  			Header: res.Header,
 33397  		})
 33398  	}
 33399  	if err != nil {
 33400  		return nil, err
 33401  	}
 33402  	defer googleapi.CloseBody(res)
 33403  	if err := googleapi.CheckResponse(res); err != nil {
 33404  		return nil, gensupport.WrapError(err)
 33405  	}
 33406  	ret := &GoogleLongrunningOperation{
 33407  		ServerResponse: googleapi.ServerResponse{
 33408  			Header:         res.Header,
 33409  			HTTPStatusCode: res.StatusCode,
 33410  		},
 33411  	}
 33412  	target := &ret
 33413  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33414  		return nil, err
 33415  	}
 33416  	return ret, nil
 33417  }
 33418  
 33419  type ProjectsLocationsDeleteAgentCall struct {
 33420  	s          *Service
 33421  	parent     string
 33422  	urlParams_ gensupport.URLParams
 33423  	ctx_       context.Context
 33424  	header_    http.Header
 33425  }
 33426  
 33427  // DeleteAgent: Deletes the specified agent.
 33428  //
 33429  //   - parent: The project that the agent to delete is associated with. Format:
 33430  //     `projects/`.
 33431  func (r *ProjectsLocationsService) DeleteAgent(parent string) *ProjectsLocationsDeleteAgentCall {
 33432  	c := &ProjectsLocationsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33433  	c.parent = parent
 33434  	return c
 33435  }
 33436  
 33437  // Fields allows partial responses to be retrieved. See
 33438  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33439  // details.
 33440  func (c *ProjectsLocationsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteAgentCall {
 33441  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33442  	return c
 33443  }
 33444  
 33445  // Context sets the context to be used in this call's Do method.
 33446  func (c *ProjectsLocationsDeleteAgentCall) Context(ctx context.Context) *ProjectsLocationsDeleteAgentCall {
 33447  	c.ctx_ = ctx
 33448  	return c
 33449  }
 33450  
 33451  // Header returns a http.Header that can be modified by the caller to add
 33452  // headers to the request.
 33453  func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header {
 33454  	if c.header_ == nil {
 33455  		c.header_ = make(http.Header)
 33456  	}
 33457  	return c.header_
 33458  }
 33459  
 33460  func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
 33461  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33462  	var body io.Reader = nil
 33463  	c.urlParams_.Set("alt", alt)
 33464  	c.urlParams_.Set("prettyPrint", "false")
 33465  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
 33466  	urls += "?" + c.urlParams_.Encode()
 33467  	req, err := http.NewRequest("DELETE", urls, body)
 33468  	if err != nil {
 33469  		return nil, err
 33470  	}
 33471  	req.Header = reqHeaders
 33472  	googleapi.Expand(req.URL, map[string]string{
 33473  		"parent": c.parent,
 33474  	})
 33475  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33476  }
 33477  
 33478  // Do executes the "dialogflow.projects.locations.deleteAgent" call.
 33479  // Any non-2xx status code is an error. Response headers are in either
 33480  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 33481  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 33482  // check whether the returned error was because http.StatusNotModified was
 33483  // returned.
 33484  func (c *ProjectsLocationsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 33485  	gensupport.SetOptions(c.urlParams_, opts...)
 33486  	res, err := c.doRequest("json")
 33487  	if res != nil && res.StatusCode == http.StatusNotModified {
 33488  		if res.Body != nil {
 33489  			res.Body.Close()
 33490  		}
 33491  		return nil, gensupport.WrapError(&googleapi.Error{
 33492  			Code:   res.StatusCode,
 33493  			Header: res.Header,
 33494  		})
 33495  	}
 33496  	if err != nil {
 33497  		return nil, err
 33498  	}
 33499  	defer googleapi.CloseBody(res)
 33500  	if err := googleapi.CheckResponse(res); err != nil {
 33501  		return nil, gensupport.WrapError(err)
 33502  	}
 33503  	ret := &GoogleProtobufEmpty{
 33504  		ServerResponse: googleapi.ServerResponse{
 33505  			Header:         res.Header,
 33506  			HTTPStatusCode: res.StatusCode,
 33507  		},
 33508  	}
 33509  	target := &ret
 33510  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33511  		return nil, err
 33512  	}
 33513  	return ret, nil
 33514  }
 33515  
 33516  type ProjectsLocationsGetCall struct {
 33517  	s            *Service
 33518  	name         string
 33519  	urlParams_   gensupport.URLParams
 33520  	ifNoneMatch_ string
 33521  	ctx_         context.Context
 33522  	header_      http.Header
 33523  }
 33524  
 33525  // Get: Gets information about a location.
 33526  //
 33527  // - name: Resource name for the location.
 33528  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
 33529  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33530  	c.name = name
 33531  	return c
 33532  }
 33533  
 33534  // Fields allows partial responses to be retrieved. See
 33535  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33536  // details.
 33537  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
 33538  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33539  	return c
 33540  }
 33541  
 33542  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33543  // object's ETag matches the given value. This is useful for getting updates
 33544  // only after the object has changed since the last request.
 33545  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
 33546  	c.ifNoneMatch_ = entityTag
 33547  	return c
 33548  }
 33549  
 33550  // Context sets the context to be used in this call's Do method.
 33551  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
 33552  	c.ctx_ = ctx
 33553  	return c
 33554  }
 33555  
 33556  // Header returns a http.Header that can be modified by the caller to add
 33557  // headers to the request.
 33558  func (c *ProjectsLocationsGetCall) Header() http.Header {
 33559  	if c.header_ == nil {
 33560  		c.header_ = make(http.Header)
 33561  	}
 33562  	return c.header_
 33563  }
 33564  
 33565  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
 33566  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33567  	if c.ifNoneMatch_ != "" {
 33568  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33569  	}
 33570  	var body io.Reader = nil
 33571  	c.urlParams_.Set("alt", alt)
 33572  	c.urlParams_.Set("prettyPrint", "false")
 33573  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 33574  	urls += "?" + c.urlParams_.Encode()
 33575  	req, err := http.NewRequest("GET", urls, body)
 33576  	if err != nil {
 33577  		return nil, err
 33578  	}
 33579  	req.Header = reqHeaders
 33580  	googleapi.Expand(req.URL, map[string]string{
 33581  		"name": c.name,
 33582  	})
 33583  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33584  }
 33585  
 33586  // Do executes the "dialogflow.projects.locations.get" call.
 33587  // Any non-2xx status code is an error. Response headers are in either
 33588  // *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was
 33589  // returned at all) in error.(*googleapi.Error).Header. Use
 33590  // googleapi.IsNotModified to check whether the returned error was because
 33591  // http.StatusNotModified was returned.
 33592  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
 33593  	gensupport.SetOptions(c.urlParams_, opts...)
 33594  	res, err := c.doRequest("json")
 33595  	if res != nil && res.StatusCode == http.StatusNotModified {
 33596  		if res.Body != nil {
 33597  			res.Body.Close()
 33598  		}
 33599  		return nil, gensupport.WrapError(&googleapi.Error{
 33600  			Code:   res.StatusCode,
 33601  			Header: res.Header,
 33602  		})
 33603  	}
 33604  	if err != nil {
 33605  		return nil, err
 33606  	}
 33607  	defer googleapi.CloseBody(res)
 33608  	if err := googleapi.CheckResponse(res); err != nil {
 33609  		return nil, gensupport.WrapError(err)
 33610  	}
 33611  	ret := &GoogleCloudLocationLocation{
 33612  		ServerResponse: googleapi.ServerResponse{
 33613  			Header:         res.Header,
 33614  			HTTPStatusCode: res.StatusCode,
 33615  		},
 33616  	}
 33617  	target := &ret
 33618  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33619  		return nil, err
 33620  	}
 33621  	return ret, nil
 33622  }
 33623  
 33624  type ProjectsLocationsGetAgentCall struct {
 33625  	s            *Service
 33626  	parent       string
 33627  	urlParams_   gensupport.URLParams
 33628  	ifNoneMatch_ string
 33629  	ctx_         context.Context
 33630  	header_      http.Header
 33631  }
 33632  
 33633  // GetAgent: Retrieves the specified agent.
 33634  //
 33635  //   - parent: The project that the agent to fetch is associated with. Format:
 33636  //     `projects/`.
 33637  func (r *ProjectsLocationsService) GetAgent(parent string) *ProjectsLocationsGetAgentCall {
 33638  	c := &ProjectsLocationsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33639  	c.parent = parent
 33640  	return c
 33641  }
 33642  
 33643  // Fields allows partial responses to be retrieved. See
 33644  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33645  // details.
 33646  func (c *ProjectsLocationsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAgentCall {
 33647  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33648  	return c
 33649  }
 33650  
 33651  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33652  // object's ETag matches the given value. This is useful for getting updates
 33653  // only after the object has changed since the last request.
 33654  func (c *ProjectsLocationsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAgentCall {
 33655  	c.ifNoneMatch_ = entityTag
 33656  	return c
 33657  }
 33658  
 33659  // Context sets the context to be used in this call's Do method.
 33660  func (c *ProjectsLocationsGetAgentCall) Context(ctx context.Context) *ProjectsLocationsGetAgentCall {
 33661  	c.ctx_ = ctx
 33662  	return c
 33663  }
 33664  
 33665  // Header returns a http.Header that can be modified by the caller to add
 33666  // headers to the request.
 33667  func (c *ProjectsLocationsGetAgentCall) Header() http.Header {
 33668  	if c.header_ == nil {
 33669  		c.header_ = make(http.Header)
 33670  	}
 33671  	return c.header_
 33672  }
 33673  
 33674  func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) {
 33675  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33676  	if c.ifNoneMatch_ != "" {
 33677  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33678  	}
 33679  	var body io.Reader = nil
 33680  	c.urlParams_.Set("alt", alt)
 33681  	c.urlParams_.Set("prettyPrint", "false")
 33682  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
 33683  	urls += "?" + c.urlParams_.Encode()
 33684  	req, err := http.NewRequest("GET", urls, body)
 33685  	if err != nil {
 33686  		return nil, err
 33687  	}
 33688  	req.Header = reqHeaders
 33689  	googleapi.Expand(req.URL, map[string]string{
 33690  		"parent": c.parent,
 33691  	})
 33692  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33693  }
 33694  
 33695  // Do executes the "dialogflow.projects.locations.getAgent" call.
 33696  // Any non-2xx status code is an error. Response headers are in either
 33697  // *GoogleCloudDialogflowV2Agent.ServerResponse.Header or (if a response was
 33698  // returned at all) in error.(*googleapi.Error).Header. Use
 33699  // googleapi.IsNotModified to check whether the returned error was because
 33700  // http.StatusNotModified was returned.
 33701  func (c *ProjectsLocationsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
 33702  	gensupport.SetOptions(c.urlParams_, opts...)
 33703  	res, err := c.doRequest("json")
 33704  	if res != nil && res.StatusCode == http.StatusNotModified {
 33705  		if res.Body != nil {
 33706  			res.Body.Close()
 33707  		}
 33708  		return nil, gensupport.WrapError(&googleapi.Error{
 33709  			Code:   res.StatusCode,
 33710  			Header: res.Header,
 33711  		})
 33712  	}
 33713  	if err != nil {
 33714  		return nil, err
 33715  	}
 33716  	defer googleapi.CloseBody(res)
 33717  	if err := googleapi.CheckResponse(res); err != nil {
 33718  		return nil, gensupport.WrapError(err)
 33719  	}
 33720  	ret := &GoogleCloudDialogflowV2Agent{
 33721  		ServerResponse: googleapi.ServerResponse{
 33722  			Header:         res.Header,
 33723  			HTTPStatusCode: res.StatusCode,
 33724  		},
 33725  	}
 33726  	target := &ret
 33727  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33728  		return nil, err
 33729  	}
 33730  	return ret, nil
 33731  }
 33732  
 33733  type ProjectsLocationsListCall struct {
 33734  	s            *Service
 33735  	name         string
 33736  	urlParams_   gensupport.URLParams
 33737  	ifNoneMatch_ string
 33738  	ctx_         context.Context
 33739  	header_      http.Header
 33740  }
 33741  
 33742  // List: Lists information about the supported locations for this service.
 33743  //
 33744  // - name: The resource that owns the locations collection, if applicable.
 33745  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
 33746  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33747  	c.name = name
 33748  	return c
 33749  }
 33750  
 33751  // Filter sets the optional parameter "filter": A filter to narrow down results
 33752  // to a preferred subset. The filtering language accepts strings like
 33753  // "displayName=tokyo", and is documented in more detail in AIP-160
 33754  // (https://google.aip.dev/160).
 33755  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
 33756  	c.urlParams_.Set("filter", filter)
 33757  	return c
 33758  }
 33759  
 33760  // PageSize sets the optional parameter "pageSize": The maximum number of
 33761  // results to return. If not set, the service selects a default.
 33762  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
 33763  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33764  	return c
 33765  }
 33766  
 33767  // PageToken sets the optional parameter "pageToken": A page token received
 33768  // from the `next_page_token` field in the response. Send that page token to
 33769  // receive the subsequent page.
 33770  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
 33771  	c.urlParams_.Set("pageToken", pageToken)
 33772  	return c
 33773  }
 33774  
 33775  // Fields allows partial responses to be retrieved. See
 33776  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33777  // details.
 33778  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
 33779  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33780  	return c
 33781  }
 33782  
 33783  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33784  // object's ETag matches the given value. This is useful for getting updates
 33785  // only after the object has changed since the last request.
 33786  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
 33787  	c.ifNoneMatch_ = entityTag
 33788  	return c
 33789  }
 33790  
 33791  // Context sets the context to be used in this call's Do method.
 33792  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
 33793  	c.ctx_ = ctx
 33794  	return c
 33795  }
 33796  
 33797  // Header returns a http.Header that can be modified by the caller to add
 33798  // headers to the request.
 33799  func (c *ProjectsLocationsListCall) Header() http.Header {
 33800  	if c.header_ == nil {
 33801  		c.header_ = make(http.Header)
 33802  	}
 33803  	return c.header_
 33804  }
 33805  
 33806  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
 33807  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33808  	if c.ifNoneMatch_ != "" {
 33809  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33810  	}
 33811  	var body io.Reader = nil
 33812  	c.urlParams_.Set("alt", alt)
 33813  	c.urlParams_.Set("prettyPrint", "false")
 33814  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations")
 33815  	urls += "?" + c.urlParams_.Encode()
 33816  	req, err := http.NewRequest("GET", urls, body)
 33817  	if err != nil {
 33818  		return nil, err
 33819  	}
 33820  	req.Header = reqHeaders
 33821  	googleapi.Expand(req.URL, map[string]string{
 33822  		"name": c.name,
 33823  	})
 33824  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33825  }
 33826  
 33827  // Do executes the "dialogflow.projects.locations.list" call.
 33828  // Any non-2xx status code is an error. Response headers are in either
 33829  // *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a
 33830  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33831  // googleapi.IsNotModified to check whether the returned error was because
 33832  // http.StatusNotModified was returned.
 33833  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
 33834  	gensupport.SetOptions(c.urlParams_, opts...)
 33835  	res, err := c.doRequest("json")
 33836  	if res != nil && res.StatusCode == http.StatusNotModified {
 33837  		if res.Body != nil {
 33838  			res.Body.Close()
 33839  		}
 33840  		return nil, gensupport.WrapError(&googleapi.Error{
 33841  			Code:   res.StatusCode,
 33842  			Header: res.Header,
 33843  		})
 33844  	}
 33845  	if err != nil {
 33846  		return nil, err
 33847  	}
 33848  	defer googleapi.CloseBody(res)
 33849  	if err := googleapi.CheckResponse(res); err != nil {
 33850  		return nil, gensupport.WrapError(err)
 33851  	}
 33852  	ret := &GoogleCloudLocationListLocationsResponse{
 33853  		ServerResponse: googleapi.ServerResponse{
 33854  			Header:         res.Header,
 33855  			HTTPStatusCode: res.StatusCode,
 33856  		},
 33857  	}
 33858  	target := &ret
 33859  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33860  		return nil, err
 33861  	}
 33862  	return ret, nil
 33863  }
 33864  
 33865  // Pages invokes f for each page of results.
 33866  // A non-nil error returned from f will halt the iteration.
 33867  // The provided context supersedes any context provided to the Context method.
 33868  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
 33869  	c.ctx_ = ctx
 33870  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33871  	for {
 33872  		x, err := c.Do()
 33873  		if err != nil {
 33874  			return err
 33875  		}
 33876  		if err := f(x); err != nil {
 33877  			return err
 33878  		}
 33879  		if x.NextPageToken == "" {
 33880  			return nil
 33881  		}
 33882  		c.PageToken(x.NextPageToken)
 33883  	}
 33884  }
 33885  
 33886  type ProjectsLocationsSetAgentCall struct {
 33887  	s                            *Service
 33888  	parent                       string
 33889  	googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent
 33890  	urlParams_                   gensupport.URLParams
 33891  	ctx_                         context.Context
 33892  	header_                      http.Header
 33893  }
 33894  
 33895  // SetAgent: Creates/updates the specified agent. Note: You should always train
 33896  // an agent prior to sending it queries. See the training documentation
 33897  // (https://cloud.google.com/dialogflow/es/docs/training).
 33898  //
 33899  // - parent: The project of this agent. Format: `projects/`.
 33900  func (r *ProjectsLocationsService) SetAgent(parent string, googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent) *ProjectsLocationsSetAgentCall {
 33901  	c := &ProjectsLocationsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33902  	c.parent = parent
 33903  	c.googleclouddialogflowv2agent = googleclouddialogflowv2agent
 33904  	return c
 33905  }
 33906  
 33907  // UpdateMask sets the optional parameter "updateMask": The mask to control
 33908  // which fields get updated.
 33909  func (c *ProjectsLocationsSetAgentCall) UpdateMask(updateMask string) *ProjectsLocationsSetAgentCall {
 33910  	c.urlParams_.Set("updateMask", updateMask)
 33911  	return c
 33912  }
 33913  
 33914  // Fields allows partial responses to be retrieved. See
 33915  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33916  // details.
 33917  func (c *ProjectsLocationsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetAgentCall {
 33918  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33919  	return c
 33920  }
 33921  
 33922  // Context sets the context to be used in this call's Do method.
 33923  func (c *ProjectsLocationsSetAgentCall) Context(ctx context.Context) *ProjectsLocationsSetAgentCall {
 33924  	c.ctx_ = ctx
 33925  	return c
 33926  }
 33927  
 33928  // Header returns a http.Header that can be modified by the caller to add
 33929  // headers to the request.
 33930  func (c *ProjectsLocationsSetAgentCall) Header() http.Header {
 33931  	if c.header_ == nil {
 33932  		c.header_ = make(http.Header)
 33933  	}
 33934  	return c.header_
 33935  }
 33936  
 33937  func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) {
 33938  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33939  	var body io.Reader = nil
 33940  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2agent)
 33941  	if err != nil {
 33942  		return nil, err
 33943  	}
 33944  	c.urlParams_.Set("alt", alt)
 33945  	c.urlParams_.Set("prettyPrint", "false")
 33946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
 33947  	urls += "?" + c.urlParams_.Encode()
 33948  	req, err := http.NewRequest("POST", urls, body)
 33949  	if err != nil {
 33950  		return nil, err
 33951  	}
 33952  	req.Header = reqHeaders
 33953  	googleapi.Expand(req.URL, map[string]string{
 33954  		"parent": c.parent,
 33955  	})
 33956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33957  }
 33958  
 33959  // Do executes the "dialogflow.projects.locations.setAgent" call.
 33960  // Any non-2xx status code is an error. Response headers are in either
 33961  // *GoogleCloudDialogflowV2Agent.ServerResponse.Header or (if a response was
 33962  // returned at all) in error.(*googleapi.Error).Header. Use
 33963  // googleapi.IsNotModified to check whether the returned error was because
 33964  // http.StatusNotModified was returned.
 33965  func (c *ProjectsLocationsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
 33966  	gensupport.SetOptions(c.urlParams_, opts...)
 33967  	res, err := c.doRequest("json")
 33968  	if res != nil && res.StatusCode == http.StatusNotModified {
 33969  		if res.Body != nil {
 33970  			res.Body.Close()
 33971  		}
 33972  		return nil, gensupport.WrapError(&googleapi.Error{
 33973  			Code:   res.StatusCode,
 33974  			Header: res.Header,
 33975  		})
 33976  	}
 33977  	if err != nil {
 33978  		return nil, err
 33979  	}
 33980  	defer googleapi.CloseBody(res)
 33981  	if err := googleapi.CheckResponse(res); err != nil {
 33982  		return nil, gensupport.WrapError(err)
 33983  	}
 33984  	ret := &GoogleCloudDialogflowV2Agent{
 33985  		ServerResponse: googleapi.ServerResponse{
 33986  			Header:         res.Header,
 33987  			HTTPStatusCode: res.StatusCode,
 33988  		},
 33989  	}
 33990  	target := &ret
 33991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33992  		return nil, err
 33993  	}
 33994  	return ret, nil
 33995  }
 33996  
 33997  type ProjectsLocationsAgentExportCall struct {
 33998  	s                                         *Service
 33999  	parent                                    string
 34000  	googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest
 34001  	urlParams_                                gensupport.URLParams
 34002  	ctx_                                      context.Context
 34003  	header_                                   http.Header
 34004  }
 34005  
 34006  // Export: Exports the specified agent to a ZIP file. This method is a
 34007  // long-running operation
 34008  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34009  // The returned `Operation` type has the following method-specific fields: -
 34010  // `metadata`: An empty Struct message
 34011  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34012  // - `response`: ExportAgentResponse
 34013  //
 34014  //   - parent: The project that the agent to export is associated with. Format:
 34015  //     `projects/`.
 34016  func (r *ProjectsLocationsAgentService) Export(parent string, googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest) *ProjectsLocationsAgentExportCall {
 34017  	c := &ProjectsLocationsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34018  	c.parent = parent
 34019  	c.googleclouddialogflowv2exportagentrequest = googleclouddialogflowv2exportagentrequest
 34020  	return c
 34021  }
 34022  
 34023  // Fields allows partial responses to be retrieved. See
 34024  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34025  // details.
 34026  func (c *ProjectsLocationsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentExportCall {
 34027  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34028  	return c
 34029  }
 34030  
 34031  // Context sets the context to be used in this call's Do method.
 34032  func (c *ProjectsLocationsAgentExportCall) Context(ctx context.Context) *ProjectsLocationsAgentExportCall {
 34033  	c.ctx_ = ctx
 34034  	return c
 34035  }
 34036  
 34037  // Header returns a http.Header that can be modified by the caller to add
 34038  // headers to the request.
 34039  func (c *ProjectsLocationsAgentExportCall) Header() http.Header {
 34040  	if c.header_ == nil {
 34041  		c.header_ = make(http.Header)
 34042  	}
 34043  	return c.header_
 34044  }
 34045  
 34046  func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) {
 34047  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34048  	var body io.Reader = nil
 34049  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportagentrequest)
 34050  	if err != nil {
 34051  		return nil, err
 34052  	}
 34053  	c.urlParams_.Set("alt", alt)
 34054  	c.urlParams_.Set("prettyPrint", "false")
 34055  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:export")
 34056  	urls += "?" + c.urlParams_.Encode()
 34057  	req, err := http.NewRequest("POST", urls, body)
 34058  	if err != nil {
 34059  		return nil, err
 34060  	}
 34061  	req.Header = reqHeaders
 34062  	googleapi.Expand(req.URL, map[string]string{
 34063  		"parent": c.parent,
 34064  	})
 34065  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34066  }
 34067  
 34068  // Do executes the "dialogflow.projects.locations.agent.export" call.
 34069  // Any non-2xx status code is an error. Response headers are in either
 34070  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34071  // returned at all) in error.(*googleapi.Error).Header. Use
 34072  // googleapi.IsNotModified to check whether the returned error was because
 34073  // http.StatusNotModified was returned.
 34074  func (c *ProjectsLocationsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34075  	gensupport.SetOptions(c.urlParams_, opts...)
 34076  	res, err := c.doRequest("json")
 34077  	if res != nil && res.StatusCode == http.StatusNotModified {
 34078  		if res.Body != nil {
 34079  			res.Body.Close()
 34080  		}
 34081  		return nil, gensupport.WrapError(&googleapi.Error{
 34082  			Code:   res.StatusCode,
 34083  			Header: res.Header,
 34084  		})
 34085  	}
 34086  	if err != nil {
 34087  		return nil, err
 34088  	}
 34089  	defer googleapi.CloseBody(res)
 34090  	if err := googleapi.CheckResponse(res); err != nil {
 34091  		return nil, gensupport.WrapError(err)
 34092  	}
 34093  	ret := &GoogleLongrunningOperation{
 34094  		ServerResponse: googleapi.ServerResponse{
 34095  			Header:         res.Header,
 34096  			HTTPStatusCode: res.StatusCode,
 34097  		},
 34098  	}
 34099  	target := &ret
 34100  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34101  		return nil, err
 34102  	}
 34103  	return ret, nil
 34104  }
 34105  
 34106  type ProjectsLocationsAgentGetFulfillmentCall struct {
 34107  	s            *Service
 34108  	name         string
 34109  	urlParams_   gensupport.URLParams
 34110  	ifNoneMatch_ string
 34111  	ctx_         context.Context
 34112  	header_      http.Header
 34113  }
 34114  
 34115  // GetFulfillment: Retrieves the fulfillment.
 34116  //
 34117  // - name: The name of the fulfillment. Format: `projects//agent/fulfillment`.
 34118  func (r *ProjectsLocationsAgentService) GetFulfillment(name string) *ProjectsLocationsAgentGetFulfillmentCall {
 34119  	c := &ProjectsLocationsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34120  	c.name = name
 34121  	return c
 34122  }
 34123  
 34124  // Fields allows partial responses to be retrieved. See
 34125  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34126  // details.
 34127  func (c *ProjectsLocationsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetFulfillmentCall {
 34128  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34129  	return c
 34130  }
 34131  
 34132  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34133  // object's ETag matches the given value. This is useful for getting updates
 34134  // only after the object has changed since the last request.
 34135  func (c *ProjectsLocationsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetFulfillmentCall {
 34136  	c.ifNoneMatch_ = entityTag
 34137  	return c
 34138  }
 34139  
 34140  // Context sets the context to be used in this call's Do method.
 34141  func (c *ProjectsLocationsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentGetFulfillmentCall {
 34142  	c.ctx_ = ctx
 34143  	return c
 34144  }
 34145  
 34146  // Header returns a http.Header that can be modified by the caller to add
 34147  // headers to the request.
 34148  func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header {
 34149  	if c.header_ == nil {
 34150  		c.header_ = make(http.Header)
 34151  	}
 34152  	return c.header_
 34153  }
 34154  
 34155  func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 34156  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34157  	if c.ifNoneMatch_ != "" {
 34158  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34159  	}
 34160  	var body io.Reader = nil
 34161  	c.urlParams_.Set("alt", alt)
 34162  	c.urlParams_.Set("prettyPrint", "false")
 34163  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 34164  	urls += "?" + c.urlParams_.Encode()
 34165  	req, err := http.NewRequest("GET", urls, body)
 34166  	if err != nil {
 34167  		return nil, err
 34168  	}
 34169  	req.Header = reqHeaders
 34170  	googleapi.Expand(req.URL, map[string]string{
 34171  		"name": c.name,
 34172  	})
 34173  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34174  }
 34175  
 34176  // Do executes the "dialogflow.projects.locations.agent.getFulfillment" call.
 34177  // Any non-2xx status code is an error. Response headers are in either
 34178  // *GoogleCloudDialogflowV2Fulfillment.ServerResponse.Header or (if a response
 34179  // was returned at all) in error.(*googleapi.Error).Header. Use
 34180  // googleapi.IsNotModified to check whether the returned error was because
 34181  // http.StatusNotModified was returned.
 34182  func (c *ProjectsLocationsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
 34183  	gensupport.SetOptions(c.urlParams_, opts...)
 34184  	res, err := c.doRequest("json")
 34185  	if res != nil && res.StatusCode == http.StatusNotModified {
 34186  		if res.Body != nil {
 34187  			res.Body.Close()
 34188  		}
 34189  		return nil, gensupport.WrapError(&googleapi.Error{
 34190  			Code:   res.StatusCode,
 34191  			Header: res.Header,
 34192  		})
 34193  	}
 34194  	if err != nil {
 34195  		return nil, err
 34196  	}
 34197  	defer googleapi.CloseBody(res)
 34198  	if err := googleapi.CheckResponse(res); err != nil {
 34199  		return nil, gensupport.WrapError(err)
 34200  	}
 34201  	ret := &GoogleCloudDialogflowV2Fulfillment{
 34202  		ServerResponse: googleapi.ServerResponse{
 34203  			Header:         res.Header,
 34204  			HTTPStatusCode: res.StatusCode,
 34205  		},
 34206  	}
 34207  	target := &ret
 34208  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34209  		return nil, err
 34210  	}
 34211  	return ret, nil
 34212  }
 34213  
 34214  type ProjectsLocationsAgentGetValidationResultCall struct {
 34215  	s            *Service
 34216  	parent       string
 34217  	urlParams_   gensupport.URLParams
 34218  	ifNoneMatch_ string
 34219  	ctx_         context.Context
 34220  	header_      http.Header
 34221  }
 34222  
 34223  // GetValidationResult: Gets agent validation result. Agent validation is
 34224  // performed during training time and is updated automatically when training is
 34225  // completed.
 34226  //
 34227  //   - parent: The project that the agent is associated with. Format:
 34228  //     `projects/`.
 34229  func (r *ProjectsLocationsAgentService) GetValidationResult(parent string) *ProjectsLocationsAgentGetValidationResultCall {
 34230  	c := &ProjectsLocationsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34231  	c.parent = parent
 34232  	return c
 34233  }
 34234  
 34235  // LanguageCode sets the optional parameter "languageCode": The language for
 34236  // which you want a validation result. If not specified, the agent's default
 34237  // language is used. Many languages
 34238  // (https://cloud.google.com/dialogflow/docs/reference/language) are supported.
 34239  // Note: languages must be enabled in the agent before they can be used.
 34240  func (c *ProjectsLocationsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentGetValidationResultCall {
 34241  	c.urlParams_.Set("languageCode", languageCode)
 34242  	return c
 34243  }
 34244  
 34245  // Fields allows partial responses to be retrieved. See
 34246  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34247  // details.
 34248  func (c *ProjectsLocationsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetValidationResultCall {
 34249  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34250  	return c
 34251  }
 34252  
 34253  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34254  // object's ETag matches the given value. This is useful for getting updates
 34255  // only after the object has changed since the last request.
 34256  func (c *ProjectsLocationsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetValidationResultCall {
 34257  	c.ifNoneMatch_ = entityTag
 34258  	return c
 34259  }
 34260  
 34261  // Context sets the context to be used in this call's Do method.
 34262  func (c *ProjectsLocationsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentGetValidationResultCall {
 34263  	c.ctx_ = ctx
 34264  	return c
 34265  }
 34266  
 34267  // Header returns a http.Header that can be modified by the caller to add
 34268  // headers to the request.
 34269  func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header {
 34270  	if c.header_ == nil {
 34271  		c.header_ = make(http.Header)
 34272  	}
 34273  	return c.header_
 34274  }
 34275  
 34276  func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
 34277  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34278  	if c.ifNoneMatch_ != "" {
 34279  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34280  	}
 34281  	var body io.Reader = nil
 34282  	c.urlParams_.Set("alt", alt)
 34283  	c.urlParams_.Set("prettyPrint", "false")
 34284  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent/validationResult")
 34285  	urls += "?" + c.urlParams_.Encode()
 34286  	req, err := http.NewRequest("GET", urls, body)
 34287  	if err != nil {
 34288  		return nil, err
 34289  	}
 34290  	req.Header = reqHeaders
 34291  	googleapi.Expand(req.URL, map[string]string{
 34292  		"parent": c.parent,
 34293  	})
 34294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34295  }
 34296  
 34297  // Do executes the "dialogflow.projects.locations.agent.getValidationResult" call.
 34298  // Any non-2xx status code is an error. Response headers are in either
 34299  // *GoogleCloudDialogflowV2ValidationResult.ServerResponse.Header or (if a
 34300  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34301  // googleapi.IsNotModified to check whether the returned error was because
 34302  // http.StatusNotModified was returned.
 34303  func (c *ProjectsLocationsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ValidationResult, error) {
 34304  	gensupport.SetOptions(c.urlParams_, opts...)
 34305  	res, err := c.doRequest("json")
 34306  	if res != nil && res.StatusCode == http.StatusNotModified {
 34307  		if res.Body != nil {
 34308  			res.Body.Close()
 34309  		}
 34310  		return nil, gensupport.WrapError(&googleapi.Error{
 34311  			Code:   res.StatusCode,
 34312  			Header: res.Header,
 34313  		})
 34314  	}
 34315  	if err != nil {
 34316  		return nil, err
 34317  	}
 34318  	defer googleapi.CloseBody(res)
 34319  	if err := googleapi.CheckResponse(res); err != nil {
 34320  		return nil, gensupport.WrapError(err)
 34321  	}
 34322  	ret := &GoogleCloudDialogflowV2ValidationResult{
 34323  		ServerResponse: googleapi.ServerResponse{
 34324  			Header:         res.Header,
 34325  			HTTPStatusCode: res.StatusCode,
 34326  		},
 34327  	}
 34328  	target := &ret
 34329  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34330  		return nil, err
 34331  	}
 34332  	return ret, nil
 34333  }
 34334  
 34335  type ProjectsLocationsAgentImportCall struct {
 34336  	s                                         *Service
 34337  	parent                                    string
 34338  	googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest
 34339  	urlParams_                                gensupport.URLParams
 34340  	ctx_                                      context.Context
 34341  	header_                                   http.Header
 34342  }
 34343  
 34344  // Import: Imports the specified agent from a ZIP file. Uploads new intents and
 34345  // entity types without deleting the existing ones. Intents and entity types
 34346  // with the same name are replaced with the new versions from
 34347  // ImportAgentRequest. After the import, the imported draft agent will be
 34348  // trained automatically (unless disabled in agent settings). However, once the
 34349  // import is done, training may not be completed yet. Please call TrainAgent
 34350  // and wait for the operation it returns in order to train explicitly. This
 34351  // method is a long-running operation
 34352  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34353  // The returned `Operation` type has the following method-specific fields: -
 34354  // `metadata`: An empty Struct message
 34355  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34356  // - `response`: An Empty message
 34357  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 34358  // The operation only tracks when importing is complete, not when it is done
 34359  // training. Note: You should always train an agent prior to sending it
 34360  // queries. See the training documentation
 34361  // (https://cloud.google.com/dialogflow/es/docs/training).
 34362  //
 34363  //   - parent: The project that the agent to import is associated with. Format:
 34364  //     `projects/`.
 34365  func (r *ProjectsLocationsAgentService) Import(parent string, googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest) *ProjectsLocationsAgentImportCall {
 34366  	c := &ProjectsLocationsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34367  	c.parent = parent
 34368  	c.googleclouddialogflowv2importagentrequest = googleclouddialogflowv2importagentrequest
 34369  	return c
 34370  }
 34371  
 34372  // Fields allows partial responses to be retrieved. See
 34373  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34374  // details.
 34375  func (c *ProjectsLocationsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentImportCall {
 34376  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34377  	return c
 34378  }
 34379  
 34380  // Context sets the context to be used in this call's Do method.
 34381  func (c *ProjectsLocationsAgentImportCall) Context(ctx context.Context) *ProjectsLocationsAgentImportCall {
 34382  	c.ctx_ = ctx
 34383  	return c
 34384  }
 34385  
 34386  // Header returns a http.Header that can be modified by the caller to add
 34387  // headers to the request.
 34388  func (c *ProjectsLocationsAgentImportCall) Header() http.Header {
 34389  	if c.header_ == nil {
 34390  		c.header_ = make(http.Header)
 34391  	}
 34392  	return c.header_
 34393  }
 34394  
 34395  func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) {
 34396  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34397  	var body io.Reader = nil
 34398  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importagentrequest)
 34399  	if err != nil {
 34400  		return nil, err
 34401  	}
 34402  	c.urlParams_.Set("alt", alt)
 34403  	c.urlParams_.Set("prettyPrint", "false")
 34404  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:import")
 34405  	urls += "?" + c.urlParams_.Encode()
 34406  	req, err := http.NewRequest("POST", urls, body)
 34407  	if err != nil {
 34408  		return nil, err
 34409  	}
 34410  	req.Header = reqHeaders
 34411  	googleapi.Expand(req.URL, map[string]string{
 34412  		"parent": c.parent,
 34413  	})
 34414  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34415  }
 34416  
 34417  // Do executes the "dialogflow.projects.locations.agent.import" call.
 34418  // Any non-2xx status code is an error. Response headers are in either
 34419  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34420  // returned at all) in error.(*googleapi.Error).Header. Use
 34421  // googleapi.IsNotModified to check whether the returned error was because
 34422  // http.StatusNotModified was returned.
 34423  func (c *ProjectsLocationsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34424  	gensupport.SetOptions(c.urlParams_, opts...)
 34425  	res, err := c.doRequest("json")
 34426  	if res != nil && res.StatusCode == http.StatusNotModified {
 34427  		if res.Body != nil {
 34428  			res.Body.Close()
 34429  		}
 34430  		return nil, gensupport.WrapError(&googleapi.Error{
 34431  			Code:   res.StatusCode,
 34432  			Header: res.Header,
 34433  		})
 34434  	}
 34435  	if err != nil {
 34436  		return nil, err
 34437  	}
 34438  	defer googleapi.CloseBody(res)
 34439  	if err := googleapi.CheckResponse(res); err != nil {
 34440  		return nil, gensupport.WrapError(err)
 34441  	}
 34442  	ret := &GoogleLongrunningOperation{
 34443  		ServerResponse: googleapi.ServerResponse{
 34444  			Header:         res.Header,
 34445  			HTTPStatusCode: res.StatusCode,
 34446  		},
 34447  	}
 34448  	target := &ret
 34449  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34450  		return nil, err
 34451  	}
 34452  	return ret, nil
 34453  }
 34454  
 34455  type ProjectsLocationsAgentRestoreCall struct {
 34456  	s                                          *Service
 34457  	parent                                     string
 34458  	googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest
 34459  	urlParams_                                 gensupport.URLParams
 34460  	ctx_                                       context.Context
 34461  	header_                                    http.Header
 34462  }
 34463  
 34464  // Restore: Restores the specified agent from a ZIP file. Replaces the current
 34465  // agent version with a new one. All the intents and entity types in the older
 34466  // version are deleted. After the restore, the restored draft agent will be
 34467  // trained automatically (unless disabled in agent settings). However, once the
 34468  // restore is done, training may not be completed yet. Please call TrainAgent
 34469  // and wait for the operation it returns in order to train explicitly. This
 34470  // method is a long-running operation
 34471  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34472  // The returned `Operation` type has the following method-specific fields: -
 34473  // `metadata`: An empty Struct message
 34474  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34475  // - `response`: An Empty message
 34476  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 34477  // The operation only tracks when restoring is complete, not when it is done
 34478  // training. Note: You should always train an agent prior to sending it
 34479  // queries. See the training documentation
 34480  // (https://cloud.google.com/dialogflow/es/docs/training).
 34481  //
 34482  //   - parent: The project that the agent to restore is associated with. Format:
 34483  //     `projects/`.
 34484  func (r *ProjectsLocationsAgentService) Restore(parent string, googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall {
 34485  	c := &ProjectsLocationsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34486  	c.parent = parent
 34487  	c.googleclouddialogflowv2restoreagentrequest = googleclouddialogflowv2restoreagentrequest
 34488  	return c
 34489  }
 34490  
 34491  // Fields allows partial responses to be retrieved. See
 34492  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34493  // details.
 34494  func (c *ProjectsLocationsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentRestoreCall {
 34495  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34496  	return c
 34497  }
 34498  
 34499  // Context sets the context to be used in this call's Do method.
 34500  func (c *ProjectsLocationsAgentRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentRestoreCall {
 34501  	c.ctx_ = ctx
 34502  	return c
 34503  }
 34504  
 34505  // Header returns a http.Header that can be modified by the caller to add
 34506  // headers to the request.
 34507  func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header {
 34508  	if c.header_ == nil {
 34509  		c.header_ = make(http.Header)
 34510  	}
 34511  	return c.header_
 34512  }
 34513  
 34514  func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
 34515  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34516  	var body io.Reader = nil
 34517  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2restoreagentrequest)
 34518  	if err != nil {
 34519  		return nil, err
 34520  	}
 34521  	c.urlParams_.Set("alt", alt)
 34522  	c.urlParams_.Set("prettyPrint", "false")
 34523  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:restore")
 34524  	urls += "?" + c.urlParams_.Encode()
 34525  	req, err := http.NewRequest("POST", urls, body)
 34526  	if err != nil {
 34527  		return nil, err
 34528  	}
 34529  	req.Header = reqHeaders
 34530  	googleapi.Expand(req.URL, map[string]string{
 34531  		"parent": c.parent,
 34532  	})
 34533  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34534  }
 34535  
 34536  // Do executes the "dialogflow.projects.locations.agent.restore" call.
 34537  // Any non-2xx status code is an error. Response headers are in either
 34538  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34539  // returned at all) in error.(*googleapi.Error).Header. Use
 34540  // googleapi.IsNotModified to check whether the returned error was because
 34541  // http.StatusNotModified was returned.
 34542  func (c *ProjectsLocationsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34543  	gensupport.SetOptions(c.urlParams_, opts...)
 34544  	res, err := c.doRequest("json")
 34545  	if res != nil && res.StatusCode == http.StatusNotModified {
 34546  		if res.Body != nil {
 34547  			res.Body.Close()
 34548  		}
 34549  		return nil, gensupport.WrapError(&googleapi.Error{
 34550  			Code:   res.StatusCode,
 34551  			Header: res.Header,
 34552  		})
 34553  	}
 34554  	if err != nil {
 34555  		return nil, err
 34556  	}
 34557  	defer googleapi.CloseBody(res)
 34558  	if err := googleapi.CheckResponse(res); err != nil {
 34559  		return nil, gensupport.WrapError(err)
 34560  	}
 34561  	ret := &GoogleLongrunningOperation{
 34562  		ServerResponse: googleapi.ServerResponse{
 34563  			Header:         res.Header,
 34564  			HTTPStatusCode: res.StatusCode,
 34565  		},
 34566  	}
 34567  	target := &ret
 34568  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34569  		return nil, err
 34570  	}
 34571  	return ret, nil
 34572  }
 34573  
 34574  type ProjectsLocationsAgentSearchCall struct {
 34575  	s            *Service
 34576  	parent       string
 34577  	urlParams_   gensupport.URLParams
 34578  	ifNoneMatch_ string
 34579  	ctx_         context.Context
 34580  	header_      http.Header
 34581  }
 34582  
 34583  // Search: Returns the list of agents. Since there is at most one
 34584  // conversational agent per project, this method is useful primarily for
 34585  // listing all agents across projects the caller has access to. One can achieve
 34586  // that with a wildcard project collection id "-". Refer to List
 34587  // Sub-Collections
 34588  // (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
 34589  //
 34590  // - parent: The project to list agents from. Format: `projects/`.
 34591  func (r *ProjectsLocationsAgentService) Search(parent string) *ProjectsLocationsAgentSearchCall {
 34592  	c := &ProjectsLocationsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34593  	c.parent = parent
 34594  	return c
 34595  }
 34596  
 34597  // PageSize sets the optional parameter "pageSize": The maximum number of items
 34598  // to return in a single page. By default 100 and at most 1000.
 34599  func (c *ProjectsLocationsAgentSearchCall) PageSize(pageSize int64) *ProjectsLocationsAgentSearchCall {
 34600  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 34601  	return c
 34602  }
 34603  
 34604  // PageToken sets the optional parameter "pageToken": The next_page_token value
 34605  // returned from a previous list request.
 34606  func (c *ProjectsLocationsAgentSearchCall) PageToken(pageToken string) *ProjectsLocationsAgentSearchCall {
 34607  	c.urlParams_.Set("pageToken", pageToken)
 34608  	return c
 34609  }
 34610  
 34611  // Fields allows partial responses to be retrieved. See
 34612  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34613  // details.
 34614  func (c *ProjectsLocationsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSearchCall {
 34615  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34616  	return c
 34617  }
 34618  
 34619  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34620  // object's ETag matches the given value. This is useful for getting updates
 34621  // only after the object has changed since the last request.
 34622  func (c *ProjectsLocationsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSearchCall {
 34623  	c.ifNoneMatch_ = entityTag
 34624  	return c
 34625  }
 34626  
 34627  // Context sets the context to be used in this call's Do method.
 34628  func (c *ProjectsLocationsAgentSearchCall) Context(ctx context.Context) *ProjectsLocationsAgentSearchCall {
 34629  	c.ctx_ = ctx
 34630  	return c
 34631  }
 34632  
 34633  // Header returns a http.Header that can be modified by the caller to add
 34634  // headers to the request.
 34635  func (c *ProjectsLocationsAgentSearchCall) Header() http.Header {
 34636  	if c.header_ == nil {
 34637  		c.header_ = make(http.Header)
 34638  	}
 34639  	return c.header_
 34640  }
 34641  
 34642  func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
 34643  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34644  	if c.ifNoneMatch_ != "" {
 34645  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34646  	}
 34647  	var body io.Reader = nil
 34648  	c.urlParams_.Set("alt", alt)
 34649  	c.urlParams_.Set("prettyPrint", "false")
 34650  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:search")
 34651  	urls += "?" + c.urlParams_.Encode()
 34652  	req, err := http.NewRequest("GET", urls, body)
 34653  	if err != nil {
 34654  		return nil, err
 34655  	}
 34656  	req.Header = reqHeaders
 34657  	googleapi.Expand(req.URL, map[string]string{
 34658  		"parent": c.parent,
 34659  	})
 34660  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34661  }
 34662  
 34663  // Do executes the "dialogflow.projects.locations.agent.search" call.
 34664  // Any non-2xx status code is an error. Response headers are in either
 34665  // *GoogleCloudDialogflowV2SearchAgentsResponse.ServerResponse.Header or (if a
 34666  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34667  // googleapi.IsNotModified to check whether the returned error was because
 34668  // http.StatusNotModified was returned.
 34669  func (c *ProjectsLocationsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchAgentsResponse, error) {
 34670  	gensupport.SetOptions(c.urlParams_, opts...)
 34671  	res, err := c.doRequest("json")
 34672  	if res != nil && res.StatusCode == http.StatusNotModified {
 34673  		if res.Body != nil {
 34674  			res.Body.Close()
 34675  		}
 34676  		return nil, gensupport.WrapError(&googleapi.Error{
 34677  			Code:   res.StatusCode,
 34678  			Header: res.Header,
 34679  		})
 34680  	}
 34681  	if err != nil {
 34682  		return nil, err
 34683  	}
 34684  	defer googleapi.CloseBody(res)
 34685  	if err := googleapi.CheckResponse(res); err != nil {
 34686  		return nil, gensupport.WrapError(err)
 34687  	}
 34688  	ret := &GoogleCloudDialogflowV2SearchAgentsResponse{
 34689  		ServerResponse: googleapi.ServerResponse{
 34690  			Header:         res.Header,
 34691  			HTTPStatusCode: res.StatusCode,
 34692  		},
 34693  	}
 34694  	target := &ret
 34695  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34696  		return nil, err
 34697  	}
 34698  	return ret, nil
 34699  }
 34700  
 34701  // Pages invokes f for each page of results.
 34702  // A non-nil error returned from f will halt the iteration.
 34703  // The provided context supersedes any context provided to the Context method.
 34704  func (c *ProjectsLocationsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2SearchAgentsResponse) error) error {
 34705  	c.ctx_ = ctx
 34706  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 34707  	for {
 34708  		x, err := c.Do()
 34709  		if err != nil {
 34710  			return err
 34711  		}
 34712  		if err := f(x); err != nil {
 34713  			return err
 34714  		}
 34715  		if x.NextPageToken == "" {
 34716  			return nil
 34717  		}
 34718  		c.PageToken(x.NextPageToken)
 34719  	}
 34720  }
 34721  
 34722  type ProjectsLocationsAgentTrainCall struct {
 34723  	s                                        *Service
 34724  	parent                                   string
 34725  	googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest
 34726  	urlParams_                               gensupport.URLParams
 34727  	ctx_                                     context.Context
 34728  	header_                                  http.Header
 34729  }
 34730  
 34731  // Train: Trains the specified agent. This method is a long-running operation
 34732  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34733  // The returned `Operation` type has the following method-specific fields: -
 34734  // `metadata`: An empty Struct message
 34735  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34736  // - `response`: An Empty message
 34737  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 34738  // Note: You should always train an agent prior to sending it queries. See the
 34739  // training documentation
 34740  // (https://cloud.google.com/dialogflow/es/docs/training).
 34741  //
 34742  //   - parent: The project that the agent to train is associated with. Format:
 34743  //     `projects/`.
 34744  func (r *ProjectsLocationsAgentService) Train(parent string, googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest) *ProjectsLocationsAgentTrainCall {
 34745  	c := &ProjectsLocationsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34746  	c.parent = parent
 34747  	c.googleclouddialogflowv2trainagentrequest = googleclouddialogflowv2trainagentrequest
 34748  	return c
 34749  }
 34750  
 34751  // Fields allows partial responses to be retrieved. See
 34752  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34753  // details.
 34754  func (c *ProjectsLocationsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentTrainCall {
 34755  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34756  	return c
 34757  }
 34758  
 34759  // Context sets the context to be used in this call's Do method.
 34760  func (c *ProjectsLocationsAgentTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentTrainCall {
 34761  	c.ctx_ = ctx
 34762  	return c
 34763  }
 34764  
 34765  // Header returns a http.Header that can be modified by the caller to add
 34766  // headers to the request.
 34767  func (c *ProjectsLocationsAgentTrainCall) Header() http.Header {
 34768  	if c.header_ == nil {
 34769  		c.header_ = make(http.Header)
 34770  	}
 34771  	return c.header_
 34772  }
 34773  
 34774  func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
 34775  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34776  	var body io.Reader = nil
 34777  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2trainagentrequest)
 34778  	if err != nil {
 34779  		return nil, err
 34780  	}
 34781  	c.urlParams_.Set("alt", alt)
 34782  	c.urlParams_.Set("prettyPrint", "false")
 34783  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:train")
 34784  	urls += "?" + c.urlParams_.Encode()
 34785  	req, err := http.NewRequest("POST", urls, body)
 34786  	if err != nil {
 34787  		return nil, err
 34788  	}
 34789  	req.Header = reqHeaders
 34790  	googleapi.Expand(req.URL, map[string]string{
 34791  		"parent": c.parent,
 34792  	})
 34793  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34794  }
 34795  
 34796  // Do executes the "dialogflow.projects.locations.agent.train" call.
 34797  // Any non-2xx status code is an error. Response headers are in either
 34798  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34799  // returned at all) in error.(*googleapi.Error).Header. Use
 34800  // googleapi.IsNotModified to check whether the returned error was because
 34801  // http.StatusNotModified was returned.
 34802  func (c *ProjectsLocationsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34803  	gensupport.SetOptions(c.urlParams_, opts...)
 34804  	res, err := c.doRequest("json")
 34805  	if res != nil && res.StatusCode == http.StatusNotModified {
 34806  		if res.Body != nil {
 34807  			res.Body.Close()
 34808  		}
 34809  		return nil, gensupport.WrapError(&googleapi.Error{
 34810  			Code:   res.StatusCode,
 34811  			Header: res.Header,
 34812  		})
 34813  	}
 34814  	if err != nil {
 34815  		return nil, err
 34816  	}
 34817  	defer googleapi.CloseBody(res)
 34818  	if err := googleapi.CheckResponse(res); err != nil {
 34819  		return nil, gensupport.WrapError(err)
 34820  	}
 34821  	ret := &GoogleLongrunningOperation{
 34822  		ServerResponse: googleapi.ServerResponse{
 34823  			Header:         res.Header,
 34824  			HTTPStatusCode: res.StatusCode,
 34825  		},
 34826  	}
 34827  	target := &ret
 34828  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34829  		return nil, err
 34830  	}
 34831  	return ret, nil
 34832  }
 34833  
 34834  type ProjectsLocationsAgentUpdateFulfillmentCall struct {
 34835  	s                                  *Service
 34836  	nameid                             string
 34837  	googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment
 34838  	urlParams_                         gensupport.URLParams
 34839  	ctx_                               context.Context
 34840  	header_                            http.Header
 34841  }
 34842  
 34843  // UpdateFulfillment: Updates the fulfillment.
 34844  //
 34845  //   - name: The unique identifier of the fulfillment. Supported formats: -
 34846  //     `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
 34847  //     This field is not used for Fulfillment in an Environment.
 34848  func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34849  	c := &ProjectsLocationsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34850  	c.nameid = nameid
 34851  	c.googleclouddialogflowv2fulfillment = googleclouddialogflowv2fulfillment
 34852  	return c
 34853  }
 34854  
 34855  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 34856  // control which fields get updated. If the mask is not present, all fields
 34857  // will be updated.
 34858  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34859  	c.urlParams_.Set("updateMask", updateMask)
 34860  	return c
 34861  }
 34862  
 34863  // Fields allows partial responses to be retrieved. See
 34864  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34865  // details.
 34866  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34867  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34868  	return c
 34869  }
 34870  
 34871  // Context sets the context to be used in this call's Do method.
 34872  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34873  	c.ctx_ = ctx
 34874  	return c
 34875  }
 34876  
 34877  // Header returns a http.Header that can be modified by the caller to add
 34878  // headers to the request.
 34879  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header {
 34880  	if c.header_ == nil {
 34881  		c.header_ = make(http.Header)
 34882  	}
 34883  	return c.header_
 34884  }
 34885  
 34886  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 34887  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34888  	var body io.Reader = nil
 34889  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2fulfillment)
 34890  	if err != nil {
 34891  		return nil, err
 34892  	}
 34893  	c.urlParams_.Set("alt", alt)
 34894  	c.urlParams_.Set("prettyPrint", "false")
 34895  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 34896  	urls += "?" + c.urlParams_.Encode()
 34897  	req, err := http.NewRequest("PATCH", urls, body)
 34898  	if err != nil {
 34899  		return nil, err
 34900  	}
 34901  	req.Header = reqHeaders
 34902  	googleapi.Expand(req.URL, map[string]string{
 34903  		"name": c.nameid,
 34904  	})
 34905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34906  }
 34907  
 34908  // Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call.
 34909  // Any non-2xx status code is an error. Response headers are in either
 34910  // *GoogleCloudDialogflowV2Fulfillment.ServerResponse.Header or (if a response
 34911  // was returned at all) in error.(*googleapi.Error).Header. Use
 34912  // googleapi.IsNotModified to check whether the returned error was because
 34913  // http.StatusNotModified was returned.
 34914  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
 34915  	gensupport.SetOptions(c.urlParams_, opts...)
 34916  	res, err := c.doRequest("json")
 34917  	if res != nil && res.StatusCode == http.StatusNotModified {
 34918  		if res.Body != nil {
 34919  			res.Body.Close()
 34920  		}
 34921  		return nil, gensupport.WrapError(&googleapi.Error{
 34922  			Code:   res.StatusCode,
 34923  			Header: res.Header,
 34924  		})
 34925  	}
 34926  	if err != nil {
 34927  		return nil, err
 34928  	}
 34929  	defer googleapi.CloseBody(res)
 34930  	if err := googleapi.CheckResponse(res); err != nil {
 34931  		return nil, gensupport.WrapError(err)
 34932  	}
 34933  	ret := &GoogleCloudDialogflowV2Fulfillment{
 34934  		ServerResponse: googleapi.ServerResponse{
 34935  			Header:         res.Header,
 34936  			HTTPStatusCode: res.StatusCode,
 34937  		},
 34938  	}
 34939  	target := &ret
 34940  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34941  		return nil, err
 34942  	}
 34943  	return ret, nil
 34944  }
 34945  
 34946  type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {
 34947  	s                                                    *Service
 34948  	parent                                               string
 34949  	googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
 34950  	urlParams_                                           gensupport.URLParams
 34951  	ctx_                                                 context.Context
 34952  	header_                                              http.Header
 34953  }
 34954  
 34955  // BatchDelete: Deletes entity types in the specified agent. This method is a
 34956  // long-running operation
 34957  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34958  // The returned `Operation` type has the following method-specific fields: -
 34959  // `metadata`: An empty Struct message
 34960  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34961  // - `response`: An Empty message
 34962  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 34963  // Note: You should always train an agent prior to sending it queries. See the
 34964  // training documentation
 34965  // (https://cloud.google.com/dialogflow/es/docs/training).
 34966  //
 34967  //   - parent: The name of the agent to delete all entities types for. Format:
 34968  //     `projects//agent`.
 34969  func (r *ProjectsLocationsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
 34970  	c := &ProjectsLocationsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34971  	c.parent = parent
 34972  	c.googleclouddialogflowv2batchdeleteentitytypesrequest = googleclouddialogflowv2batchdeleteentitytypesrequest
 34973  	return c
 34974  }
 34975  
 34976  // Fields allows partial responses to be retrieved. See
 34977  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34978  // details.
 34979  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
 34980  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34981  	return c
 34982  }
 34983  
 34984  // Context sets the context to be used in this call's Do method.
 34985  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
 34986  	c.ctx_ = ctx
 34987  	return c
 34988  }
 34989  
 34990  // Header returns a http.Header that can be modified by the caller to add
 34991  // headers to the request.
 34992  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header {
 34993  	if c.header_ == nil {
 34994  		c.header_ = make(http.Header)
 34995  	}
 34996  	return c.header_
 34997  }
 34998  
 34999  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 35000  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35001  	var body io.Reader = nil
 35002  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitytypesrequest)
 35003  	if err != nil {
 35004  		return nil, err
 35005  	}
 35006  	c.urlParams_.Set("alt", alt)
 35007  	c.urlParams_.Set("prettyPrint", "false")
 35008  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchDelete")
 35009  	urls += "?" + c.urlParams_.Encode()
 35010  	req, err := http.NewRequest("POST", urls, body)
 35011  	if err != nil {
 35012  		return nil, err
 35013  	}
 35014  	req.Header = reqHeaders
 35015  	googleapi.Expand(req.URL, map[string]string{
 35016  		"parent": c.parent,
 35017  	})
 35018  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35019  }
 35020  
 35021  // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call.
 35022  // Any non-2xx status code is an error. Response headers are in either
 35023  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35024  // returned at all) in error.(*googleapi.Error).Header. Use
 35025  // googleapi.IsNotModified to check whether the returned error was because
 35026  // http.StatusNotModified was returned.
 35027  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35028  	gensupport.SetOptions(c.urlParams_, opts...)
 35029  	res, err := c.doRequest("json")
 35030  	if res != nil && res.StatusCode == http.StatusNotModified {
 35031  		if res.Body != nil {
 35032  			res.Body.Close()
 35033  		}
 35034  		return nil, gensupport.WrapError(&googleapi.Error{
 35035  			Code:   res.StatusCode,
 35036  			Header: res.Header,
 35037  		})
 35038  	}
 35039  	if err != nil {
 35040  		return nil, err
 35041  	}
 35042  	defer googleapi.CloseBody(res)
 35043  	if err := googleapi.CheckResponse(res); err != nil {
 35044  		return nil, gensupport.WrapError(err)
 35045  	}
 35046  	ret := &GoogleLongrunningOperation{
 35047  		ServerResponse: googleapi.ServerResponse{
 35048  			Header:         res.Header,
 35049  			HTTPStatusCode: res.StatusCode,
 35050  		},
 35051  	}
 35052  	target := &ret
 35053  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35054  		return nil, err
 35055  	}
 35056  	return ret, nil
 35057  }
 35058  
 35059  type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {
 35060  	s                                                    *Service
 35061  	parent                                               string
 35062  	googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
 35063  	urlParams_                                           gensupport.URLParams
 35064  	ctx_                                                 context.Context
 35065  	header_                                              http.Header
 35066  }
 35067  
 35068  // BatchUpdate: Updates/Creates multiple entity types in the specified agent.
 35069  // This method is a long-running operation
 35070  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 35071  // The returned `Operation` type has the following method-specific fields: -
 35072  // `metadata`: An empty Struct message
 35073  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 35074  // - `response`: BatchUpdateEntityTypesResponse Note: You should always train
 35075  // an agent prior to sending it queries. See the training documentation
 35076  // (https://cloud.google.com/dialogflow/es/docs/training).
 35077  //
 35078  //   - parent: The name of the agent to update or create entity types in. Format:
 35079  //     `projects//agent`.
 35080  func (r *ProjectsLocationsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
 35081  	c := &ProjectsLocationsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35082  	c.parent = parent
 35083  	c.googleclouddialogflowv2batchupdateentitytypesrequest = googleclouddialogflowv2batchupdateentitytypesrequest
 35084  	return c
 35085  }
 35086  
 35087  // Fields allows partial responses to be retrieved. See
 35088  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35089  // details.
 35090  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
 35091  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35092  	return c
 35093  }
 35094  
 35095  // Context sets the context to be used in this call's Do method.
 35096  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
 35097  	c.ctx_ = ctx
 35098  	return c
 35099  }
 35100  
 35101  // Header returns a http.Header that can be modified by the caller to add
 35102  // headers to the request.
 35103  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header {
 35104  	if c.header_ == nil {
 35105  		c.header_ = make(http.Header)
 35106  	}
 35107  	return c.header_
 35108  }
 35109  
 35110  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 35111  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35112  	var body io.Reader = nil
 35113  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitytypesrequest)
 35114  	if err != nil {
 35115  		return nil, err
 35116  	}
 35117  	c.urlParams_.Set("alt", alt)
 35118  	c.urlParams_.Set("prettyPrint", "false")
 35119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchUpdate")
 35120  	urls += "?" + c.urlParams_.Encode()
 35121  	req, err := http.NewRequest("POST", urls, body)
 35122  	if err != nil {
 35123  		return nil, err
 35124  	}
 35125  	req.Header = reqHeaders
 35126  	googleapi.Expand(req.URL, map[string]string{
 35127  		"parent": c.parent,
 35128  	})
 35129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35130  }
 35131  
 35132  // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call.
 35133  // Any non-2xx status code is an error. Response headers are in either
 35134  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35135  // returned at all) in error.(*googleapi.Error).Header. Use
 35136  // googleapi.IsNotModified to check whether the returned error was because
 35137  // http.StatusNotModified was returned.
 35138  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35139  	gensupport.SetOptions(c.urlParams_, opts...)
 35140  	res, err := c.doRequest("json")
 35141  	if res != nil && res.StatusCode == http.StatusNotModified {
 35142  		if res.Body != nil {
 35143  			res.Body.Close()
 35144  		}
 35145  		return nil, gensupport.WrapError(&googleapi.Error{
 35146  			Code:   res.StatusCode,
 35147  			Header: res.Header,
 35148  		})
 35149  	}
 35150  	if err != nil {
 35151  		return nil, err
 35152  	}
 35153  	defer googleapi.CloseBody(res)
 35154  	if err := googleapi.CheckResponse(res); err != nil {
 35155  		return nil, gensupport.WrapError(err)
 35156  	}
 35157  	ret := &GoogleLongrunningOperation{
 35158  		ServerResponse: googleapi.ServerResponse{
 35159  			Header:         res.Header,
 35160  			HTTPStatusCode: res.StatusCode,
 35161  		},
 35162  	}
 35163  	target := &ret
 35164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35165  		return nil, err
 35166  	}
 35167  	return ret, nil
 35168  }
 35169  
 35170  type ProjectsLocationsAgentEntityTypesCreateCall struct {
 35171  	s                                 *Service
 35172  	parent                            string
 35173  	googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
 35174  	urlParams_                        gensupport.URLParams
 35175  	ctx_                              context.Context
 35176  	header_                           http.Header
 35177  }
 35178  
 35179  // Create: Creates an entity type in the specified agent. Note: You should
 35180  // always train an agent prior to sending it queries. See the training
 35181  // documentation (https://cloud.google.com/dialogflow/es/docs/training).
 35182  //
 35183  // - parent: The agent to create a entity type for. Format: `projects//agent`.
 35184  func (r *ProjectsLocationsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsLocationsAgentEntityTypesCreateCall {
 35185  	c := &ProjectsLocationsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35186  	c.parent = parent
 35187  	c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
 35188  	return c
 35189  }
 35190  
 35191  // LanguageCode sets the optional parameter "languageCode": The language used
 35192  // to access language-specific data. If not specified, the agent's default
 35193  // language is used. For more information, see Multilingual intent and entity
 35194  // data
 35195  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 35196  func (c *ProjectsLocationsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesCreateCall {
 35197  	c.urlParams_.Set("languageCode", languageCode)
 35198  	return c
 35199  }
 35200  
 35201  // Fields allows partial responses to be retrieved. See
 35202  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35203  // details.
 35204  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesCreateCall {
 35205  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35206  	return c
 35207  }
 35208  
 35209  // Context sets the context to be used in this call's Do method.
 35210  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesCreateCall {
 35211  	c.ctx_ = ctx
 35212  	return c
 35213  }
 35214  
 35215  // Header returns a http.Header that can be modified by the caller to add
 35216  // headers to the request.
 35217  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header {
 35218  	if c.header_ == nil {
 35219  		c.header_ = make(http.Header)
 35220  	}
 35221  	return c.header_
 35222  }
 35223  
 35224  func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 35225  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35226  	var body io.Reader = nil
 35227  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
 35228  	if err != nil {
 35229  		return nil, err
 35230  	}
 35231  	c.urlParams_.Set("alt", alt)
 35232  	c.urlParams_.Set("prettyPrint", "false")
 35233  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 35234  	urls += "?" + c.urlParams_.Encode()
 35235  	req, err := http.NewRequest("POST", urls, body)
 35236  	if err != nil {
 35237  		return nil, err
 35238  	}
 35239  	req.Header = reqHeaders
 35240  	googleapi.Expand(req.URL, map[string]string{
 35241  		"parent": c.parent,
 35242  	})
 35243  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35244  }
 35245  
 35246  // Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call.
 35247  // Any non-2xx status code is an error. Response headers are in either
 35248  // *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response
 35249  // was returned at all) in error.(*googleapi.Error).Header. Use
 35250  // googleapi.IsNotModified to check whether the returned error was because
 35251  // http.StatusNotModified was returned.
 35252  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
 35253  	gensupport.SetOptions(c.urlParams_, opts...)
 35254  	res, err := c.doRequest("json")
 35255  	if res != nil && res.StatusCode == http.StatusNotModified {
 35256  		if res.Body != nil {
 35257  			res.Body.Close()
 35258  		}
 35259  		return nil, gensupport.WrapError(&googleapi.Error{
 35260  			Code:   res.StatusCode,
 35261  			Header: res.Header,
 35262  		})
 35263  	}
 35264  	if err != nil {
 35265  		return nil, err
 35266  	}
 35267  	defer googleapi.CloseBody(res)
 35268  	if err := googleapi.CheckResponse(res); err != nil {
 35269  		return nil, gensupport.WrapError(err)
 35270  	}
 35271  	ret := &GoogleCloudDialogflowV2EntityType{
 35272  		ServerResponse: googleapi.ServerResponse{
 35273  			Header:         res.Header,
 35274  			HTTPStatusCode: res.StatusCode,
 35275  		},
 35276  	}
 35277  	target := &ret
 35278  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35279  		return nil, err
 35280  	}
 35281  	return ret, nil
 35282  }
 35283  
 35284  type ProjectsLocationsAgentEntityTypesDeleteCall struct {
 35285  	s          *Service
 35286  	name       string
 35287  	urlParams_ gensupport.URLParams
 35288  	ctx_       context.Context
 35289  	header_    http.Header
 35290  }
 35291  
 35292  // Delete: Deletes the specified entity type. Note: You should always train an
 35293  // agent prior to sending it queries. See the training documentation
 35294  // (https://cloud.google.com/dialogflow/es/docs/training).
 35295  //
 35296  //   - name: The name of the entity type to delete. Format:
 35297  //     `projects//agent/entityTypes/`.
 35298  func (r *ProjectsLocationsAgentEntityTypesService) Delete(name string) *ProjectsLocationsAgentEntityTypesDeleteCall {
 35299  	c := &ProjectsLocationsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35300  	c.name = name
 35301  	return c
 35302  }
 35303  
 35304  // Fields allows partial responses to be retrieved. See
 35305  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35306  // details.
 35307  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesDeleteCall {
 35308  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35309  	return c
 35310  }
 35311  
 35312  // Context sets the context to be used in this call's Do method.
 35313  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesDeleteCall {
 35314  	c.ctx_ = ctx
 35315  	return c
 35316  }
 35317  
 35318  // Header returns a http.Header that can be modified by the caller to add
 35319  // headers to the request.
 35320  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header {
 35321  	if c.header_ == nil {
 35322  		c.header_ = make(http.Header)
 35323  	}
 35324  	return c.header_
 35325  }
 35326  
 35327  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 35328  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35329  	var body io.Reader = nil
 35330  	c.urlParams_.Set("alt", alt)
 35331  	c.urlParams_.Set("prettyPrint", "false")
 35332  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 35333  	urls += "?" + c.urlParams_.Encode()
 35334  	req, err := http.NewRequest("DELETE", urls, body)
 35335  	if err != nil {
 35336  		return nil, err
 35337  	}
 35338  	req.Header = reqHeaders
 35339  	googleapi.Expand(req.URL, map[string]string{
 35340  		"name": c.name,
 35341  	})
 35342  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35343  }
 35344  
 35345  // Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call.
 35346  // Any non-2xx status code is an error. Response headers are in either
 35347  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 35348  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35349  // check whether the returned error was because http.StatusNotModified was
 35350  // returned.
 35351  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 35352  	gensupport.SetOptions(c.urlParams_, opts...)
 35353  	res, err := c.doRequest("json")
 35354  	if res != nil && res.StatusCode == http.StatusNotModified {
 35355  		if res.Body != nil {
 35356  			res.Body.Close()
 35357  		}
 35358  		return nil, gensupport.WrapError(&googleapi.Error{
 35359  			Code:   res.StatusCode,
 35360  			Header: res.Header,
 35361  		})
 35362  	}
 35363  	if err != nil {
 35364  		return nil, err
 35365  	}
 35366  	defer googleapi.CloseBody(res)
 35367  	if err := googleapi.CheckResponse(res); err != nil {
 35368  		return nil, gensupport.WrapError(err)
 35369  	}
 35370  	ret := &GoogleProtobufEmpty{
 35371  		ServerResponse: googleapi.ServerResponse{
 35372  			Header:         res.Header,
 35373  			HTTPStatusCode: res.StatusCode,
 35374  		},
 35375  	}
 35376  	target := &ret
 35377  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35378  		return nil, err
 35379  	}
 35380  	return ret, nil
 35381  }
 35382  
 35383  type ProjectsLocationsAgentEntityTypesGetCall struct {
 35384  	s            *Service
 35385  	name         string
 35386  	urlParams_   gensupport.URLParams
 35387  	ifNoneMatch_ string
 35388  	ctx_         context.Context
 35389  	header_      http.Header
 35390  }
 35391  
 35392  // Get: Retrieves the specified entity type.
 35393  //
 35394  // - name: The name of the entity type. Format: `projects//agent/entityTypes/`.
 35395  func (r *ProjectsLocationsAgentEntityTypesService) Get(name string) *ProjectsLocationsAgentEntityTypesGetCall {
 35396  	c := &ProjectsLocationsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35397  	c.name = name
 35398  	return c
 35399  }
 35400  
 35401  // LanguageCode sets the optional parameter "languageCode": The language used
 35402  // to access language-specific data. If not specified, the agent's default
 35403  // language is used. For more information, see Multilingual intent and entity
 35404  // data
 35405  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 35406  func (c *ProjectsLocationsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesGetCall {
 35407  	c.urlParams_.Set("languageCode", languageCode)
 35408  	return c
 35409  }
 35410  
 35411  // Fields allows partial responses to be retrieved. See
 35412  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35413  // details.
 35414  func (c *ProjectsLocationsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesGetCall {
 35415  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35416  	return c
 35417  }
 35418  
 35419  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35420  // object's ETag matches the given value. This is useful for getting updates
 35421  // only after the object has changed since the last request.
 35422  func (c *ProjectsLocationsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesGetCall {
 35423  	c.ifNoneMatch_ = entityTag
 35424  	return c
 35425  }
 35426  
 35427  // Context sets the context to be used in this call's Do method.
 35428  func (c *ProjectsLocationsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesGetCall {
 35429  	c.ctx_ = ctx
 35430  	return c
 35431  }
 35432  
 35433  // Header returns a http.Header that can be modified by the caller to add
 35434  // headers to the request.
 35435  func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header {
 35436  	if c.header_ == nil {
 35437  		c.header_ = make(http.Header)
 35438  	}
 35439  	return c.header_
 35440  }
 35441  
 35442  func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 35443  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35444  	if c.ifNoneMatch_ != "" {
 35445  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35446  	}
 35447  	var body io.Reader = nil
 35448  	c.urlParams_.Set("alt", alt)
 35449  	c.urlParams_.Set("prettyPrint", "false")
 35450  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 35451  	urls += "?" + c.urlParams_.Encode()
 35452  	req, err := http.NewRequest("GET", urls, body)
 35453  	if err != nil {
 35454  		return nil, err
 35455  	}
 35456  	req.Header = reqHeaders
 35457  	googleapi.Expand(req.URL, map[string]string{
 35458  		"name": c.name,
 35459  	})
 35460  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35461  }
 35462  
 35463  // Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call.
 35464  // Any non-2xx status code is an error. Response headers are in either
 35465  // *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response
 35466  // was returned at all) in error.(*googleapi.Error).Header. Use
 35467  // googleapi.IsNotModified to check whether the returned error was because
 35468  // http.StatusNotModified was returned.
 35469  func (c *ProjectsLocationsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
 35470  	gensupport.SetOptions(c.urlParams_, opts...)
 35471  	res, err := c.doRequest("json")
 35472  	if res != nil && res.StatusCode == http.StatusNotModified {
 35473  		if res.Body != nil {
 35474  			res.Body.Close()
 35475  		}
 35476  		return nil, gensupport.WrapError(&googleapi.Error{
 35477  			Code:   res.StatusCode,
 35478  			Header: res.Header,
 35479  		})
 35480  	}
 35481  	if err != nil {
 35482  		return nil, err
 35483  	}
 35484  	defer googleapi.CloseBody(res)
 35485  	if err := googleapi.CheckResponse(res); err != nil {
 35486  		return nil, gensupport.WrapError(err)
 35487  	}
 35488  	ret := &GoogleCloudDialogflowV2EntityType{
 35489  		ServerResponse: googleapi.ServerResponse{
 35490  			Header:         res.Header,
 35491  			HTTPStatusCode: res.StatusCode,
 35492  		},
 35493  	}
 35494  	target := &ret
 35495  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35496  		return nil, err
 35497  	}
 35498  	return ret, nil
 35499  }
 35500  
 35501  type ProjectsLocationsAgentEntityTypesListCall struct {
 35502  	s            *Service
 35503  	parent       string
 35504  	urlParams_   gensupport.URLParams
 35505  	ifNoneMatch_ string
 35506  	ctx_         context.Context
 35507  	header_      http.Header
 35508  }
 35509  
 35510  // List: Returns the list of all entity types in the specified agent.
 35511  //
 35512  //   - parent: The agent to list all entity types from. Format:
 35513  //     `projects//agent`.
 35514  func (r *ProjectsLocationsAgentEntityTypesService) List(parent string) *ProjectsLocationsAgentEntityTypesListCall {
 35515  	c := &ProjectsLocationsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35516  	c.parent = parent
 35517  	return c
 35518  }
 35519  
 35520  // LanguageCode sets the optional parameter "languageCode": The language used
 35521  // to access language-specific data. If not specified, the agent's default
 35522  // language is used. For more information, see Multilingual intent and entity
 35523  // data
 35524  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 35525  func (c *ProjectsLocationsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesListCall {
 35526  	c.urlParams_.Set("languageCode", languageCode)
 35527  	return c
 35528  }
 35529  
 35530  // PageSize sets the optional parameter "pageSize": The maximum number of items
 35531  // to return in a single page. By default 100 and at most 1000.
 35532  func (c *ProjectsLocationsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEntityTypesListCall {
 35533  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 35534  	return c
 35535  }
 35536  
 35537  // PageToken sets the optional parameter "pageToken": The next_page_token value
 35538  // returned from a previous list request.
 35539  func (c *ProjectsLocationsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEntityTypesListCall {
 35540  	c.urlParams_.Set("pageToken", pageToken)
 35541  	return c
 35542  }
 35543  
 35544  // Fields allows partial responses to be retrieved. See
 35545  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35546  // details.
 35547  func (c *ProjectsLocationsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesListCall {
 35548  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35549  	return c
 35550  }
 35551  
 35552  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35553  // object's ETag matches the given value. This is useful for getting updates
 35554  // only after the object has changed since the last request.
 35555  func (c *ProjectsLocationsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesListCall {
 35556  	c.ifNoneMatch_ = entityTag
 35557  	return c
 35558  }
 35559  
 35560  // Context sets the context to be used in this call's Do method.
 35561  func (c *ProjectsLocationsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesListCall {
 35562  	c.ctx_ = ctx
 35563  	return c
 35564  }
 35565  
 35566  // Header returns a http.Header that can be modified by the caller to add
 35567  // headers to the request.
 35568  func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header {
 35569  	if c.header_ == nil {
 35570  		c.header_ = make(http.Header)
 35571  	}
 35572  	return c.header_
 35573  }
 35574  
 35575  func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 35576  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35577  	if c.ifNoneMatch_ != "" {
 35578  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35579  	}
 35580  	var body io.Reader = nil
 35581  	c.urlParams_.Set("alt", alt)
 35582  	c.urlParams_.Set("prettyPrint", "false")
 35583  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 35584  	urls += "?" + c.urlParams_.Encode()
 35585  	req, err := http.NewRequest("GET", urls, body)
 35586  	if err != nil {
 35587  		return nil, err
 35588  	}
 35589  	req.Header = reqHeaders
 35590  	googleapi.Expand(req.URL, map[string]string{
 35591  		"parent": c.parent,
 35592  	})
 35593  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35594  }
 35595  
 35596  // Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call.
 35597  // Any non-2xx status code is an error. Response headers are in either
 35598  // *GoogleCloudDialogflowV2ListEntityTypesResponse.ServerResponse.Header or (if
 35599  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 35600  // googleapi.IsNotModified to check whether the returned error was because
 35601  // http.StatusNotModified was returned.
 35602  func (c *ProjectsLocationsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEntityTypesResponse, error) {
 35603  	gensupport.SetOptions(c.urlParams_, opts...)
 35604  	res, err := c.doRequest("json")
 35605  	if res != nil && res.StatusCode == http.StatusNotModified {
 35606  		if res.Body != nil {
 35607  			res.Body.Close()
 35608  		}
 35609  		return nil, gensupport.WrapError(&googleapi.Error{
 35610  			Code:   res.StatusCode,
 35611  			Header: res.Header,
 35612  		})
 35613  	}
 35614  	if err != nil {
 35615  		return nil, err
 35616  	}
 35617  	defer googleapi.CloseBody(res)
 35618  	if err := googleapi.CheckResponse(res); err != nil {
 35619  		return nil, gensupport.WrapError(err)
 35620  	}
 35621  	ret := &GoogleCloudDialogflowV2ListEntityTypesResponse{
 35622  		ServerResponse: googleapi.ServerResponse{
 35623  			Header:         res.Header,
 35624  			HTTPStatusCode: res.StatusCode,
 35625  		},
 35626  	}
 35627  	target := &ret
 35628  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35629  		return nil, err
 35630  	}
 35631  	return ret, nil
 35632  }
 35633  
 35634  // Pages invokes f for each page of results.
 35635  // A non-nil error returned from f will halt the iteration.
 35636  // The provided context supersedes any context provided to the Context method.
 35637  func (c *ProjectsLocationsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEntityTypesResponse) error) error {
 35638  	c.ctx_ = ctx
 35639  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 35640  	for {
 35641  		x, err := c.Do()
 35642  		if err != nil {
 35643  			return err
 35644  		}
 35645  		if err := f(x); err != nil {
 35646  			return err
 35647  		}
 35648  		if x.NextPageToken == "" {
 35649  			return nil
 35650  		}
 35651  		c.PageToken(x.NextPageToken)
 35652  	}
 35653  }
 35654  
 35655  type ProjectsLocationsAgentEntityTypesPatchCall struct {
 35656  	s                                 *Service
 35657  	nameid                            string
 35658  	googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
 35659  	urlParams_                        gensupport.URLParams
 35660  	ctx_                              context.Context
 35661  	header_                           http.Header
 35662  }
 35663  
 35664  // Patch: Updates the specified entity type. Note: You should always train an
 35665  // agent prior to sending it queries. See the training documentation
 35666  // (https://cloud.google.com/dialogflow/es/docs/training).
 35667  //
 35668  //   - name: The unique identifier of the entity type. Required for
 35669  //     EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
 35670  //     methods. Format: `projects//agent/entityTypes/`.
 35671  func (r *ProjectsLocationsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsLocationsAgentEntityTypesPatchCall {
 35672  	c := &ProjectsLocationsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35673  	c.nameid = nameid
 35674  	c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
 35675  	return c
 35676  }
 35677  
 35678  // LanguageCode sets the optional parameter "languageCode": The language used
 35679  // to access language-specific data. If not specified, the agent's default
 35680  // language is used. For more information, see Multilingual intent and entity
 35681  // data
 35682  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 35683  func (c *ProjectsLocationsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesPatchCall {
 35684  	c.urlParams_.Set("languageCode", languageCode)
 35685  	return c
 35686  }
 35687  
 35688  // UpdateMask sets the optional parameter "updateMask": The mask to control
 35689  // which fields get updated.
 35690  func (c *ProjectsLocationsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEntityTypesPatchCall {
 35691  	c.urlParams_.Set("updateMask", updateMask)
 35692  	return c
 35693  }
 35694  
 35695  // Fields allows partial responses to be retrieved. See
 35696  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35697  // details.
 35698  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesPatchCall {
 35699  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35700  	return c
 35701  }
 35702  
 35703  // Context sets the context to be used in this call's Do method.
 35704  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesPatchCall {
 35705  	c.ctx_ = ctx
 35706  	return c
 35707  }
 35708  
 35709  // Header returns a http.Header that can be modified by the caller to add
 35710  // headers to the request.
 35711  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header {
 35712  	if c.header_ == nil {
 35713  		c.header_ = make(http.Header)
 35714  	}
 35715  	return c.header_
 35716  }
 35717  
 35718  func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 35719  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35720  	var body io.Reader = nil
 35721  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
 35722  	if err != nil {
 35723  		return nil, err
 35724  	}
 35725  	c.urlParams_.Set("alt", alt)
 35726  	c.urlParams_.Set("prettyPrint", "false")
 35727  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 35728  	urls += "?" + c.urlParams_.Encode()
 35729  	req, err := http.NewRequest("PATCH", urls, body)
 35730  	if err != nil {
 35731  		return nil, err
 35732  	}
 35733  	req.Header = reqHeaders
 35734  	googleapi.Expand(req.URL, map[string]string{
 35735  		"name": c.nameid,
 35736  	})
 35737  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35738  }
 35739  
 35740  // Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call.
 35741  // Any non-2xx status code is an error. Response headers are in either
 35742  // *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response
 35743  // was returned at all) in error.(*googleapi.Error).Header. Use
 35744  // googleapi.IsNotModified to check whether the returned error was because
 35745  // http.StatusNotModified was returned.
 35746  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
 35747  	gensupport.SetOptions(c.urlParams_, opts...)
 35748  	res, err := c.doRequest("json")
 35749  	if res != nil && res.StatusCode == http.StatusNotModified {
 35750  		if res.Body != nil {
 35751  			res.Body.Close()
 35752  		}
 35753  		return nil, gensupport.WrapError(&googleapi.Error{
 35754  			Code:   res.StatusCode,
 35755  			Header: res.Header,
 35756  		})
 35757  	}
 35758  	if err != nil {
 35759  		return nil, err
 35760  	}
 35761  	defer googleapi.CloseBody(res)
 35762  	if err := googleapi.CheckResponse(res); err != nil {
 35763  		return nil, gensupport.WrapError(err)
 35764  	}
 35765  	ret := &GoogleCloudDialogflowV2EntityType{
 35766  		ServerResponse: googleapi.ServerResponse{
 35767  			Header:         res.Header,
 35768  			HTTPStatusCode: res.StatusCode,
 35769  		},
 35770  	}
 35771  	target := &ret
 35772  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35773  		return nil, err
 35774  	}
 35775  	return ret, nil
 35776  }
 35777  
 35778  type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {
 35779  	s                                                 *Service
 35780  	parent                                            string
 35781  	googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest
 35782  	urlParams_                                        gensupport.URLParams
 35783  	ctx_                                              context.Context
 35784  	header_                                           http.Header
 35785  }
 35786  
 35787  // BatchCreate: Creates multiple new entities in the specified entity type.
 35788  // This method is a long-running operation
 35789  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 35790  // The returned `Operation` type has the following method-specific fields: -
 35791  // `metadata`: An empty Struct message
 35792  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 35793  // - `response`: An Empty message
 35794  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 35795  // Note: You should always train an agent prior to sending it queries. See the
 35796  // training documentation
 35797  // (https://cloud.google.com/dialogflow/es/docs/training).
 35798  //
 35799  //   - parent: The name of the entity type to create entities in. Format:
 35800  //     `projects//agent/entityTypes/`.
 35801  func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
 35802  	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35803  	c.parent = parent
 35804  	c.googleclouddialogflowv2batchcreateentitiesrequest = googleclouddialogflowv2batchcreateentitiesrequest
 35805  	return c
 35806  }
 35807  
 35808  // Fields allows partial responses to be retrieved. See
 35809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35810  // details.
 35811  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
 35812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35813  	return c
 35814  }
 35815  
 35816  // Context sets the context to be used in this call's Do method.
 35817  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
 35818  	c.ctx_ = ctx
 35819  	return c
 35820  }
 35821  
 35822  // Header returns a http.Header that can be modified by the caller to add
 35823  // headers to the request.
 35824  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
 35825  	if c.header_ == nil {
 35826  		c.header_ = make(http.Header)
 35827  	}
 35828  	return c.header_
 35829  }
 35830  
 35831  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 35832  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35833  	var body io.Reader = nil
 35834  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchcreateentitiesrequest)
 35835  	if err != nil {
 35836  		return nil, err
 35837  	}
 35838  	c.urlParams_.Set("alt", alt)
 35839  	c.urlParams_.Set("prettyPrint", "false")
 35840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchCreate")
 35841  	urls += "?" + c.urlParams_.Encode()
 35842  	req, err := http.NewRequest("POST", urls, body)
 35843  	if err != nil {
 35844  		return nil, err
 35845  	}
 35846  	req.Header = reqHeaders
 35847  	googleapi.Expand(req.URL, map[string]string{
 35848  		"parent": c.parent,
 35849  	})
 35850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35851  }
 35852  
 35853  // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call.
 35854  // Any non-2xx status code is an error. Response headers are in either
 35855  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35856  // returned at all) in error.(*googleapi.Error).Header. Use
 35857  // googleapi.IsNotModified to check whether the returned error was because
 35858  // http.StatusNotModified was returned.
 35859  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35860  	gensupport.SetOptions(c.urlParams_, opts...)
 35861  	res, err := c.doRequest("json")
 35862  	if res != nil && res.StatusCode == http.StatusNotModified {
 35863  		if res.Body != nil {
 35864  			res.Body.Close()
 35865  		}
 35866  		return nil, gensupport.WrapError(&googleapi.Error{
 35867  			Code:   res.StatusCode,
 35868  			Header: res.Header,
 35869  		})
 35870  	}
 35871  	if err != nil {
 35872  		return nil, err
 35873  	}
 35874  	defer googleapi.CloseBody(res)
 35875  	if err := googleapi.CheckResponse(res); err != nil {
 35876  		return nil, gensupport.WrapError(err)
 35877  	}
 35878  	ret := &GoogleLongrunningOperation{
 35879  		ServerResponse: googleapi.ServerResponse{
 35880  			Header:         res.Header,
 35881  			HTTPStatusCode: res.StatusCode,
 35882  		},
 35883  	}
 35884  	target := &ret
 35885  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35886  		return nil, err
 35887  	}
 35888  	return ret, nil
 35889  }
 35890  
 35891  type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {
 35892  	s                                                 *Service
 35893  	parent                                            string
 35894  	googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
 35895  	urlParams_                                        gensupport.URLParams
 35896  	ctx_                                              context.Context
 35897  	header_                                           http.Header
 35898  }
 35899  
 35900  // BatchDelete: Deletes entities in the specified entity type. This method is a
 35901  // long-running operation
 35902  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 35903  // The returned `Operation` type has the following method-specific fields: -
 35904  // `metadata`: An empty Struct message
 35905  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 35906  // - `response`: An Empty message
 35907  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 35908  // Note: You should always train an agent prior to sending it queries. See the
 35909  // training documentation
 35910  // (https://cloud.google.com/dialogflow/es/docs/training).
 35911  //
 35912  //   - parent: The name of the entity type to delete entries for. Format:
 35913  //     `projects//agent/entityTypes/`.
 35914  func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
 35915  	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35916  	c.parent = parent
 35917  	c.googleclouddialogflowv2batchdeleteentitiesrequest = googleclouddialogflowv2batchdeleteentitiesrequest
 35918  	return c
 35919  }
 35920  
 35921  // Fields allows partial responses to be retrieved. See
 35922  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35923  // details.
 35924  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
 35925  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35926  	return c
 35927  }
 35928  
 35929  // Context sets the context to be used in this call's Do method.
 35930  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
 35931  	c.ctx_ = ctx
 35932  	return c
 35933  }
 35934  
 35935  // Header returns a http.Header that can be modified by the caller to add
 35936  // headers to the request.
 35937  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
 35938  	if c.header_ == nil {
 35939  		c.header_ = make(http.Header)
 35940  	}
 35941  	return c.header_
 35942  }
 35943  
 35944  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 35945  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35946  	var body io.Reader = nil
 35947  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitiesrequest)
 35948  	if err != nil {
 35949  		return nil, err
 35950  	}
 35951  	c.urlParams_.Set("alt", alt)
 35952  	c.urlParams_.Set("prettyPrint", "false")
 35953  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchDelete")
 35954  	urls += "?" + c.urlParams_.Encode()
 35955  	req, err := http.NewRequest("POST", urls, body)
 35956  	if err != nil {
 35957  		return nil, err
 35958  	}
 35959  	req.Header = reqHeaders
 35960  	googleapi.Expand(req.URL, map[string]string{
 35961  		"parent": c.parent,
 35962  	})
 35963  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35964  }
 35965  
 35966  // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call.
 35967  // Any non-2xx status code is an error. Response headers are in either
 35968  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35969  // returned at all) in error.(*googleapi.Error).Header. Use
 35970  // googleapi.IsNotModified to check whether the returned error was because
 35971  // http.StatusNotModified was returned.
 35972  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35973  	gensupport.SetOptions(c.urlParams_, opts...)
 35974  	res, err := c.doRequest("json")
 35975  	if res != nil && res.StatusCode == http.StatusNotModified {
 35976  		if res.Body != nil {
 35977  			res.Body.Close()
 35978  		}
 35979  		return nil, gensupport.WrapError(&googleapi.Error{
 35980  			Code:   res.StatusCode,
 35981  			Header: res.Header,
 35982  		})
 35983  	}
 35984  	if err != nil {
 35985  		return nil, err
 35986  	}
 35987  	defer googleapi.CloseBody(res)
 35988  	if err := googleapi.CheckResponse(res); err != nil {
 35989  		return nil, gensupport.WrapError(err)
 35990  	}
 35991  	ret := &GoogleLongrunningOperation{
 35992  		ServerResponse: googleapi.ServerResponse{
 35993  			Header:         res.Header,
 35994  			HTTPStatusCode: res.StatusCode,
 35995  		},
 35996  	}
 35997  	target := &ret
 35998  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35999  		return nil, err
 36000  	}
 36001  	return ret, nil
 36002  }
 36003  
 36004  type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {
 36005  	s                                                 *Service
 36006  	parent                                            string
 36007  	googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
 36008  	urlParams_                                        gensupport.URLParams
 36009  	ctx_                                              context.Context
 36010  	header_                                           http.Header
 36011  }
 36012  
 36013  // BatchUpdate: Updates or creates multiple entities in the specified entity
 36014  // type. This method does not affect entities in the entity type that aren't
 36015  // explicitly specified in the request. This method is a long-running operation
 36016  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 36017  // The returned `Operation` type has the following method-specific fields: -
 36018  // `metadata`: An empty Struct message
 36019  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 36020  // - `response`: An Empty message
 36021  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 36022  // Note: You should always train an agent prior to sending it queries. See the
 36023  // training documentation
 36024  // (https://cloud.google.com/dialogflow/es/docs/training).
 36025  //
 36026  //   - parent: The name of the entity type to update or create entities in.
 36027  //     Format: `projects//agent/entityTypes/`.
 36028  func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
 36029  	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36030  	c.parent = parent
 36031  	c.googleclouddialogflowv2batchupdateentitiesrequest = googleclouddialogflowv2batchupdateentitiesrequest
 36032  	return c
 36033  }
 36034  
 36035  // Fields allows partial responses to be retrieved. See
 36036  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36037  // details.
 36038  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
 36039  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36040  	return c
 36041  }
 36042  
 36043  // Context sets the context to be used in this call's Do method.
 36044  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
 36045  	c.ctx_ = ctx
 36046  	return c
 36047  }
 36048  
 36049  // Header returns a http.Header that can be modified by the caller to add
 36050  // headers to the request.
 36051  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
 36052  	if c.header_ == nil {
 36053  		c.header_ = make(http.Header)
 36054  	}
 36055  	return c.header_
 36056  }
 36057  
 36058  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 36059  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36060  	var body io.Reader = nil
 36061  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitiesrequest)
 36062  	if err != nil {
 36063  		return nil, err
 36064  	}
 36065  	c.urlParams_.Set("alt", alt)
 36066  	c.urlParams_.Set("prettyPrint", "false")
 36067  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchUpdate")
 36068  	urls += "?" + c.urlParams_.Encode()
 36069  	req, err := http.NewRequest("POST", urls, body)
 36070  	if err != nil {
 36071  		return nil, err
 36072  	}
 36073  	req.Header = reqHeaders
 36074  	googleapi.Expand(req.URL, map[string]string{
 36075  		"parent": c.parent,
 36076  	})
 36077  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36078  }
 36079  
 36080  // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call.
 36081  // Any non-2xx status code is an error. Response headers are in either
 36082  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 36083  // returned at all) in error.(*googleapi.Error).Header. Use
 36084  // googleapi.IsNotModified to check whether the returned error was because
 36085  // http.StatusNotModified was returned.
 36086  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 36087  	gensupport.SetOptions(c.urlParams_, opts...)
 36088  	res, err := c.doRequest("json")
 36089  	if res != nil && res.StatusCode == http.StatusNotModified {
 36090  		if res.Body != nil {
 36091  			res.Body.Close()
 36092  		}
 36093  		return nil, gensupport.WrapError(&googleapi.Error{
 36094  			Code:   res.StatusCode,
 36095  			Header: res.Header,
 36096  		})
 36097  	}
 36098  	if err != nil {
 36099  		return nil, err
 36100  	}
 36101  	defer googleapi.CloseBody(res)
 36102  	if err := googleapi.CheckResponse(res); err != nil {
 36103  		return nil, gensupport.WrapError(err)
 36104  	}
 36105  	ret := &GoogleLongrunningOperation{
 36106  		ServerResponse: googleapi.ServerResponse{
 36107  			Header:         res.Header,
 36108  			HTTPStatusCode: res.StatusCode,
 36109  		},
 36110  	}
 36111  	target := &ret
 36112  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36113  		return nil, err
 36114  	}
 36115  	return ret, nil
 36116  }
 36117  
 36118  type ProjectsLocationsAgentEnvironmentsCreateCall struct {
 36119  	s                                  *Service
 36120  	parent                             string
 36121  	googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
 36122  	urlParams_                         gensupport.URLParams
 36123  	ctx_                               context.Context
 36124  	header_                            http.Header
 36125  }
 36126  
 36127  // Create: Creates an agent environment.
 36128  //
 36129  //   - parent: The agent to create an environment for. Supported formats: -
 36130  //     `projects//agent` - `projects//locations//agent`.
 36131  func (r *ProjectsLocationsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsLocationsAgentEnvironmentsCreateCall {
 36132  	c := &ProjectsLocationsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36133  	c.parent = parent
 36134  	c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
 36135  	return c
 36136  }
 36137  
 36138  // EnvironmentId sets the optional parameter "environmentId": Required. The
 36139  // unique id of the new environment.
 36140  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsAgentEnvironmentsCreateCall {
 36141  	c.urlParams_.Set("environmentId", environmentId)
 36142  	return c
 36143  }
 36144  
 36145  // Fields allows partial responses to be retrieved. See
 36146  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36147  // details.
 36148  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsCreateCall {
 36149  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36150  	return c
 36151  }
 36152  
 36153  // Context sets the context to be used in this call's Do method.
 36154  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsCreateCall {
 36155  	c.ctx_ = ctx
 36156  	return c
 36157  }
 36158  
 36159  // Header returns a http.Header that can be modified by the caller to add
 36160  // headers to the request.
 36161  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Header() http.Header {
 36162  	if c.header_ == nil {
 36163  		c.header_ = make(http.Header)
 36164  	}
 36165  	return c.header_
 36166  }
 36167  
 36168  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 36169  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36170  	var body io.Reader = nil
 36171  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
 36172  	if err != nil {
 36173  		return nil, err
 36174  	}
 36175  	c.urlParams_.Set("alt", alt)
 36176  	c.urlParams_.Set("prettyPrint", "false")
 36177  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
 36178  	urls += "?" + c.urlParams_.Encode()
 36179  	req, err := http.NewRequest("POST", urls, body)
 36180  	if err != nil {
 36181  		return nil, err
 36182  	}
 36183  	req.Header = reqHeaders
 36184  	googleapi.Expand(req.URL, map[string]string{
 36185  		"parent": c.parent,
 36186  	})
 36187  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36188  }
 36189  
 36190  // Do executes the "dialogflow.projects.locations.agent.environments.create" call.
 36191  // Any non-2xx status code is an error. Response headers are in either
 36192  // *GoogleCloudDialogflowV2Environment.ServerResponse.Header or (if a response
 36193  // was returned at all) in error.(*googleapi.Error).Header. Use
 36194  // googleapi.IsNotModified to check whether the returned error was because
 36195  // http.StatusNotModified was returned.
 36196  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
 36197  	gensupport.SetOptions(c.urlParams_, opts...)
 36198  	res, err := c.doRequest("json")
 36199  	if res != nil && res.StatusCode == http.StatusNotModified {
 36200  		if res.Body != nil {
 36201  			res.Body.Close()
 36202  		}
 36203  		return nil, gensupport.WrapError(&googleapi.Error{
 36204  			Code:   res.StatusCode,
 36205  			Header: res.Header,
 36206  		})
 36207  	}
 36208  	if err != nil {
 36209  		return nil, err
 36210  	}
 36211  	defer googleapi.CloseBody(res)
 36212  	if err := googleapi.CheckResponse(res); err != nil {
 36213  		return nil, gensupport.WrapError(err)
 36214  	}
 36215  	ret := &GoogleCloudDialogflowV2Environment{
 36216  		ServerResponse: googleapi.ServerResponse{
 36217  			Header:         res.Header,
 36218  			HTTPStatusCode: res.StatusCode,
 36219  		},
 36220  	}
 36221  	target := &ret
 36222  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36223  		return nil, err
 36224  	}
 36225  	return ret, nil
 36226  }
 36227  
 36228  type ProjectsLocationsAgentEnvironmentsDeleteCall struct {
 36229  	s          *Service
 36230  	name       string
 36231  	urlParams_ gensupport.URLParams
 36232  	ctx_       context.Context
 36233  	header_    http.Header
 36234  }
 36235  
 36236  // Delete: Deletes the specified agent environment.
 36237  //
 36238  //   - name: The name of the environment to delete. / Format: -
 36239  //     `projects//agent/environments/` -
 36240  //     `projects//locations//agent/environments/` The environment ID for the
 36241  //     default environment is `-`.
 36242  func (r *ProjectsLocationsAgentEnvironmentsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsDeleteCall {
 36243  	c := &ProjectsLocationsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36244  	c.name = name
 36245  	return c
 36246  }
 36247  
 36248  // Fields allows partial responses to be retrieved. See
 36249  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36250  // details.
 36251  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsDeleteCall {
 36252  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36253  	return c
 36254  }
 36255  
 36256  // Context sets the context to be used in this call's Do method.
 36257  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsDeleteCall {
 36258  	c.ctx_ = ctx
 36259  	return c
 36260  }
 36261  
 36262  // Header returns a http.Header that can be modified by the caller to add
 36263  // headers to the request.
 36264  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Header() http.Header {
 36265  	if c.header_ == nil {
 36266  		c.header_ = make(http.Header)
 36267  	}
 36268  	return c.header_
 36269  }
 36270  
 36271  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 36272  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36273  	var body io.Reader = nil
 36274  	c.urlParams_.Set("alt", alt)
 36275  	c.urlParams_.Set("prettyPrint", "false")
 36276  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 36277  	urls += "?" + c.urlParams_.Encode()
 36278  	req, err := http.NewRequest("DELETE", urls, body)
 36279  	if err != nil {
 36280  		return nil, err
 36281  	}
 36282  	req.Header = reqHeaders
 36283  	googleapi.Expand(req.URL, map[string]string{
 36284  		"name": c.name,
 36285  	})
 36286  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36287  }
 36288  
 36289  // Do executes the "dialogflow.projects.locations.agent.environments.delete" call.
 36290  // Any non-2xx status code is an error. Response headers are in either
 36291  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 36292  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 36293  // check whether the returned error was because http.StatusNotModified was
 36294  // returned.
 36295  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 36296  	gensupport.SetOptions(c.urlParams_, opts...)
 36297  	res, err := c.doRequest("json")
 36298  	if res != nil && res.StatusCode == http.StatusNotModified {
 36299  		if res.Body != nil {
 36300  			res.Body.Close()
 36301  		}
 36302  		return nil, gensupport.WrapError(&googleapi.Error{
 36303  			Code:   res.StatusCode,
 36304  			Header: res.Header,
 36305  		})
 36306  	}
 36307  	if err != nil {
 36308  		return nil, err
 36309  	}
 36310  	defer googleapi.CloseBody(res)
 36311  	if err := googleapi.CheckResponse(res); err != nil {
 36312  		return nil, gensupport.WrapError(err)
 36313  	}
 36314  	ret := &GoogleProtobufEmpty{
 36315  		ServerResponse: googleapi.ServerResponse{
 36316  			Header:         res.Header,
 36317  			HTTPStatusCode: res.StatusCode,
 36318  		},
 36319  	}
 36320  	target := &ret
 36321  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36322  		return nil, err
 36323  	}
 36324  	return ret, nil
 36325  }
 36326  
 36327  type ProjectsLocationsAgentEnvironmentsGetCall struct {
 36328  	s            *Service
 36329  	name         string
 36330  	urlParams_   gensupport.URLParams
 36331  	ifNoneMatch_ string
 36332  	ctx_         context.Context
 36333  	header_      http.Header
 36334  }
 36335  
 36336  // Get: Retrieves the specified agent environment.
 36337  //
 36338  //   - name: The name of the environment. Supported formats: -
 36339  //     `projects//agent/environments/` -
 36340  //     `projects//locations//agent/environments/` The environment ID for the
 36341  //     default environment is `-`.
 36342  func (r *ProjectsLocationsAgentEnvironmentsService) Get(name string) *ProjectsLocationsAgentEnvironmentsGetCall {
 36343  	c := &ProjectsLocationsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36344  	c.name = name
 36345  	return c
 36346  }
 36347  
 36348  // Fields allows partial responses to be retrieved. See
 36349  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36350  // details.
 36351  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetCall {
 36352  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36353  	return c
 36354  }
 36355  
 36356  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36357  // object's ETag matches the given value. This is useful for getting updates
 36358  // only after the object has changed since the last request.
 36359  func (c *ProjectsLocationsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetCall {
 36360  	c.ifNoneMatch_ = entityTag
 36361  	return c
 36362  }
 36363  
 36364  // Context sets the context to be used in this call's Do method.
 36365  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetCall {
 36366  	c.ctx_ = ctx
 36367  	return c
 36368  }
 36369  
 36370  // Header returns a http.Header that can be modified by the caller to add
 36371  // headers to the request.
 36372  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Header() http.Header {
 36373  	if c.header_ == nil {
 36374  		c.header_ = make(http.Header)
 36375  	}
 36376  	return c.header_
 36377  }
 36378  
 36379  func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 36380  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36381  	if c.ifNoneMatch_ != "" {
 36382  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36383  	}
 36384  	var body io.Reader = nil
 36385  	c.urlParams_.Set("alt", alt)
 36386  	c.urlParams_.Set("prettyPrint", "false")
 36387  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 36388  	urls += "?" + c.urlParams_.Encode()
 36389  	req, err := http.NewRequest("GET", urls, body)
 36390  	if err != nil {
 36391  		return nil, err
 36392  	}
 36393  	req.Header = reqHeaders
 36394  	googleapi.Expand(req.URL, map[string]string{
 36395  		"name": c.name,
 36396  	})
 36397  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36398  }
 36399  
 36400  // Do executes the "dialogflow.projects.locations.agent.environments.get" call.
 36401  // Any non-2xx status code is an error. Response headers are in either
 36402  // *GoogleCloudDialogflowV2Environment.ServerResponse.Header or (if a response
 36403  // was returned at all) in error.(*googleapi.Error).Header. Use
 36404  // googleapi.IsNotModified to check whether the returned error was because
 36405  // http.StatusNotModified was returned.
 36406  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
 36407  	gensupport.SetOptions(c.urlParams_, opts...)
 36408  	res, err := c.doRequest("json")
 36409  	if res != nil && res.StatusCode == http.StatusNotModified {
 36410  		if res.Body != nil {
 36411  			res.Body.Close()
 36412  		}
 36413  		return nil, gensupport.WrapError(&googleapi.Error{
 36414  			Code:   res.StatusCode,
 36415  			Header: res.Header,
 36416  		})
 36417  	}
 36418  	if err != nil {
 36419  		return nil, err
 36420  	}
 36421  	defer googleapi.CloseBody(res)
 36422  	if err := googleapi.CheckResponse(res); err != nil {
 36423  		return nil, gensupport.WrapError(err)
 36424  	}
 36425  	ret := &GoogleCloudDialogflowV2Environment{
 36426  		ServerResponse: googleapi.ServerResponse{
 36427  			Header:         res.Header,
 36428  			HTTPStatusCode: res.StatusCode,
 36429  		},
 36430  	}
 36431  	target := &ret
 36432  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36433  		return nil, err
 36434  	}
 36435  	return ret, nil
 36436  }
 36437  
 36438  type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {
 36439  	s            *Service
 36440  	parent       string
 36441  	urlParams_   gensupport.URLParams
 36442  	ifNoneMatch_ string
 36443  	ctx_         context.Context
 36444  	header_      http.Header
 36445  }
 36446  
 36447  // GetHistory: Gets the history of the specified environment.
 36448  //
 36449  //   - parent: The name of the environment to retrieve history for. Supported
 36450  //     formats: - `projects//agent/environments/` -
 36451  //     `projects//locations//agent/environments/` The environment ID for the
 36452  //     default environment is `-`.
 36453  func (r *ProjectsLocationsAgentEnvironmentsService) GetHistory(parent string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 36454  	c := &ProjectsLocationsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36455  	c.parent = parent
 36456  	return c
 36457  }
 36458  
 36459  // PageSize sets the optional parameter "pageSize": The maximum number of items
 36460  // to return in a single page. By default 100 and at most 1000.
 36461  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 36462  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 36463  	return c
 36464  }
 36465  
 36466  // PageToken sets the optional parameter "pageToken": The next_page_token value
 36467  // returned from a previous list request.
 36468  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 36469  	c.urlParams_.Set("pageToken", pageToken)
 36470  	return c
 36471  }
 36472  
 36473  // Fields allows partial responses to be retrieved. See
 36474  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36475  // details.
 36476  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 36477  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36478  	return c
 36479  }
 36480  
 36481  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36482  // object's ETag matches the given value. This is useful for getting updates
 36483  // only after the object has changed since the last request.
 36484  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 36485  	c.ifNoneMatch_ = entityTag
 36486  	return c
 36487  }
 36488  
 36489  // Context sets the context to be used in this call's Do method.
 36490  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 36491  	c.ctx_ = ctx
 36492  	return c
 36493  }
 36494  
 36495  // Header returns a http.Header that can be modified by the caller to add
 36496  // headers to the request.
 36497  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Header() http.Header {
 36498  	if c.header_ == nil {
 36499  		c.header_ = make(http.Header)
 36500  	}
 36501  	return c.header_
 36502  }
 36503  
 36504  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
 36505  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36506  	if c.ifNoneMatch_ != "" {
 36507  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36508  	}
 36509  	var body io.Reader = nil
 36510  	c.urlParams_.Set("alt", alt)
 36511  	c.urlParams_.Set("prettyPrint", "false")
 36512  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/history")
 36513  	urls += "?" + c.urlParams_.Encode()
 36514  	req, err := http.NewRequest("GET", urls, body)
 36515  	if err != nil {
 36516  		return nil, err
 36517  	}
 36518  	req.Header = reqHeaders
 36519  	googleapi.Expand(req.URL, map[string]string{
 36520  		"parent": c.parent,
 36521  	})
 36522  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36523  }
 36524  
 36525  // Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call.
 36526  // Any non-2xx status code is an error. Response headers are in either
 36527  // *GoogleCloudDialogflowV2EnvironmentHistory.ServerResponse.Header or (if a
 36528  // response was returned at all) in error.(*googleapi.Error).Header. Use
 36529  // googleapi.IsNotModified to check whether the returned error was because
 36530  // http.StatusNotModified was returned.
 36531  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EnvironmentHistory, error) {
 36532  	gensupport.SetOptions(c.urlParams_, opts...)
 36533  	res, err := c.doRequest("json")
 36534  	if res != nil && res.StatusCode == http.StatusNotModified {
 36535  		if res.Body != nil {
 36536  			res.Body.Close()
 36537  		}
 36538  		return nil, gensupport.WrapError(&googleapi.Error{
 36539  			Code:   res.StatusCode,
 36540  			Header: res.Header,
 36541  		})
 36542  	}
 36543  	if err != nil {
 36544  		return nil, err
 36545  	}
 36546  	defer googleapi.CloseBody(res)
 36547  	if err := googleapi.CheckResponse(res); err != nil {
 36548  		return nil, gensupport.WrapError(err)
 36549  	}
 36550  	ret := &GoogleCloudDialogflowV2EnvironmentHistory{
 36551  		ServerResponse: googleapi.ServerResponse{
 36552  			Header:         res.Header,
 36553  			HTTPStatusCode: res.StatusCode,
 36554  		},
 36555  	}
 36556  	target := &ret
 36557  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36558  		return nil, err
 36559  	}
 36560  	return ret, nil
 36561  }
 36562  
 36563  // Pages invokes f for each page of results.
 36564  // A non-nil error returned from f will halt the iteration.
 36565  // The provided context supersedes any context provided to the Context method.
 36566  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2EnvironmentHistory) error) error {
 36567  	c.ctx_ = ctx
 36568  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 36569  	for {
 36570  		x, err := c.Do()
 36571  		if err != nil {
 36572  			return err
 36573  		}
 36574  		if err := f(x); err != nil {
 36575  			return err
 36576  		}
 36577  		if x.NextPageToken == "" {
 36578  			return nil
 36579  		}
 36580  		c.PageToken(x.NextPageToken)
 36581  	}
 36582  }
 36583  
 36584  type ProjectsLocationsAgentEnvironmentsListCall struct {
 36585  	s            *Service
 36586  	parent       string
 36587  	urlParams_   gensupport.URLParams
 36588  	ifNoneMatch_ string
 36589  	ctx_         context.Context
 36590  	header_      http.Header
 36591  }
 36592  
 36593  // List: Returns the list of all non-default environments of the specified
 36594  // agent.
 36595  //
 36596  //   - parent: The agent to list all environments from. Format: -
 36597  //     `projects//agent` - `projects//locations//agent`.
 36598  func (r *ProjectsLocationsAgentEnvironmentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsListCall {
 36599  	c := &ProjectsLocationsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36600  	c.parent = parent
 36601  	return c
 36602  }
 36603  
 36604  // PageSize sets the optional parameter "pageSize": The maximum number of items
 36605  // to return in a single page. By default 100 and at most 1000.
 36606  func (c *ProjectsLocationsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsListCall {
 36607  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 36608  	return c
 36609  }
 36610  
 36611  // PageToken sets the optional parameter "pageToken": The next_page_token value
 36612  // returned from a previous list request.
 36613  func (c *ProjectsLocationsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsListCall {
 36614  	c.urlParams_.Set("pageToken", pageToken)
 36615  	return c
 36616  }
 36617  
 36618  // Fields allows partial responses to be retrieved. See
 36619  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36620  // details.
 36621  func (c *ProjectsLocationsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsListCall {
 36622  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36623  	return c
 36624  }
 36625  
 36626  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36627  // object's ETag matches the given value. This is useful for getting updates
 36628  // only after the object has changed since the last request.
 36629  func (c *ProjectsLocationsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsListCall {
 36630  	c.ifNoneMatch_ = entityTag
 36631  	return c
 36632  }
 36633  
 36634  // Context sets the context to be used in this call's Do method.
 36635  func (c *ProjectsLocationsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsListCall {
 36636  	c.ctx_ = ctx
 36637  	return c
 36638  }
 36639  
 36640  // Header returns a http.Header that can be modified by the caller to add
 36641  // headers to the request.
 36642  func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header {
 36643  	if c.header_ == nil {
 36644  		c.header_ = make(http.Header)
 36645  	}
 36646  	return c.header_
 36647  }
 36648  
 36649  func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
 36650  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36651  	if c.ifNoneMatch_ != "" {
 36652  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36653  	}
 36654  	var body io.Reader = nil
 36655  	c.urlParams_.Set("alt", alt)
 36656  	c.urlParams_.Set("prettyPrint", "false")
 36657  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
 36658  	urls += "?" + c.urlParams_.Encode()
 36659  	req, err := http.NewRequest("GET", urls, body)
 36660  	if err != nil {
 36661  		return nil, err
 36662  	}
 36663  	req.Header = reqHeaders
 36664  	googleapi.Expand(req.URL, map[string]string{
 36665  		"parent": c.parent,
 36666  	})
 36667  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36668  }
 36669  
 36670  // Do executes the "dialogflow.projects.locations.agent.environments.list" call.
 36671  // Any non-2xx status code is an error. Response headers are in either
 36672  // *GoogleCloudDialogflowV2ListEnvironmentsResponse.ServerResponse.Header or
 36673  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 36674  // googleapi.IsNotModified to check whether the returned error was because
 36675  // http.StatusNotModified was returned.
 36676  func (c *ProjectsLocationsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEnvironmentsResponse, error) {
 36677  	gensupport.SetOptions(c.urlParams_, opts...)
 36678  	res, err := c.doRequest("json")
 36679  	if res != nil && res.StatusCode == http.StatusNotModified {
 36680  		if res.Body != nil {
 36681  			res.Body.Close()
 36682  		}
 36683  		return nil, gensupport.WrapError(&googleapi.Error{
 36684  			Code:   res.StatusCode,
 36685  			Header: res.Header,
 36686  		})
 36687  	}
 36688  	if err != nil {
 36689  		return nil, err
 36690  	}
 36691  	defer googleapi.CloseBody(res)
 36692  	if err := googleapi.CheckResponse(res); err != nil {
 36693  		return nil, gensupport.WrapError(err)
 36694  	}
 36695  	ret := &GoogleCloudDialogflowV2ListEnvironmentsResponse{
 36696  		ServerResponse: googleapi.ServerResponse{
 36697  			Header:         res.Header,
 36698  			HTTPStatusCode: res.StatusCode,
 36699  		},
 36700  	}
 36701  	target := &ret
 36702  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36703  		return nil, err
 36704  	}
 36705  	return ret, nil
 36706  }
 36707  
 36708  // Pages invokes f for each page of results.
 36709  // A non-nil error returned from f will halt the iteration.
 36710  // The provided context supersedes any context provided to the Context method.
 36711  func (c *ProjectsLocationsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEnvironmentsResponse) error) error {
 36712  	c.ctx_ = ctx
 36713  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 36714  	for {
 36715  		x, err := c.Do()
 36716  		if err != nil {
 36717  			return err
 36718  		}
 36719  		if err := f(x); err != nil {
 36720  			return err
 36721  		}
 36722  		if x.NextPageToken == "" {
 36723  			return nil
 36724  		}
 36725  		c.PageToken(x.NextPageToken)
 36726  	}
 36727  }
 36728  
 36729  type ProjectsLocationsAgentEnvironmentsPatchCall struct {
 36730  	s                                  *Service
 36731  	nameid                             string
 36732  	googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
 36733  	urlParams_                         gensupport.URLParams
 36734  	ctx_                               context.Context
 36735  	header_                            http.Header
 36736  }
 36737  
 36738  // Patch: Updates the specified agent environment. This method allows you to
 36739  // deploy new agent versions into the environment. When an environment is
 36740  // pointed to a new agent version by setting `environment.agent_version`, the
 36741  // environment is temporarily set to the `LOADING` state. During that time, the
 36742  // environment continues serving the previous version of the agent. After the
 36743  // new agent version is done loading, the environment is set back to the
 36744  // `RUNNING` state. You can use "-" as Environment ID in environment name to
 36745  // update an agent version in the default environment. WARNING: this will
 36746  // negate all recent changes to the draft agent and can't be undone. You may
 36747  // want to save the draft agent to a version before calling this method.
 36748  //
 36749  //   - name: Output only. The unique identifier of this agent environment.
 36750  //     Supported formats: - `projects//agent/environments/` -
 36751  //     `projects//locations//agent/environments/` The environment ID for the
 36752  //     default environment is `-`.
 36753  func (r *ProjectsLocationsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36754  	c := &ProjectsLocationsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36755  	c.nameid = nameid
 36756  	c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
 36757  	return c
 36758  }
 36759  
 36760  // AllowLoadToDraftAndDiscardChanges sets the optional parameter
 36761  // "allowLoadToDraftAndDiscardChanges": This field is used to prevent
 36762  // accidental overwrite of the default environment, which is an operation that
 36763  // cannot be undone. To confirm that the caller desires this overwrite, this
 36764  // field must be explicitly set to true when updating the default environment
 36765  // (environment ID = `-`).
 36766  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36767  	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
 36768  	return c
 36769  }
 36770  
 36771  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 36772  // control which fields get updated.
 36773  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36774  	c.urlParams_.Set("updateMask", updateMask)
 36775  	return c
 36776  }
 36777  
 36778  // Fields allows partial responses to be retrieved. See
 36779  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36780  // details.
 36781  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36782  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36783  	return c
 36784  }
 36785  
 36786  // Context sets the context to be used in this call's Do method.
 36787  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36788  	c.ctx_ = ctx
 36789  	return c
 36790  }
 36791  
 36792  // Header returns a http.Header that can be modified by the caller to add
 36793  // headers to the request.
 36794  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Header() http.Header {
 36795  	if c.header_ == nil {
 36796  		c.header_ = make(http.Header)
 36797  	}
 36798  	return c.header_
 36799  }
 36800  
 36801  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
 36802  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36803  	var body io.Reader = nil
 36804  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
 36805  	if err != nil {
 36806  		return nil, err
 36807  	}
 36808  	c.urlParams_.Set("alt", alt)
 36809  	c.urlParams_.Set("prettyPrint", "false")
 36810  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 36811  	urls += "?" + c.urlParams_.Encode()
 36812  	req, err := http.NewRequest("PATCH", urls, body)
 36813  	if err != nil {
 36814  		return nil, err
 36815  	}
 36816  	req.Header = reqHeaders
 36817  	googleapi.Expand(req.URL, map[string]string{
 36818  		"name": c.nameid,
 36819  	})
 36820  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36821  }
 36822  
 36823  // Do executes the "dialogflow.projects.locations.agent.environments.patch" call.
 36824  // Any non-2xx status code is an error. Response headers are in either
 36825  // *GoogleCloudDialogflowV2Environment.ServerResponse.Header or (if a response
 36826  // was returned at all) in error.(*googleapi.Error).Header. Use
 36827  // googleapi.IsNotModified to check whether the returned error was because
 36828  // http.StatusNotModified was returned.
 36829  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
 36830  	gensupport.SetOptions(c.urlParams_, opts...)
 36831  	res, err := c.doRequest("json")
 36832  	if res != nil && res.StatusCode == http.StatusNotModified {
 36833  		if res.Body != nil {
 36834  			res.Body.Close()
 36835  		}
 36836  		return nil, gensupport.WrapError(&googleapi.Error{
 36837  			Code:   res.StatusCode,
 36838  			Header: res.Header,
 36839  		})
 36840  	}
 36841  	if err != nil {
 36842  		return nil, err
 36843  	}
 36844  	defer googleapi.CloseBody(res)
 36845  	if err := googleapi.CheckResponse(res); err != nil {
 36846  		return nil, gensupport.WrapError(err)
 36847  	}
 36848  	ret := &GoogleCloudDialogflowV2Environment{
 36849  		ServerResponse: googleapi.ServerResponse{
 36850  			Header:         res.Header,
 36851  			HTTPStatusCode: res.StatusCode,
 36852  		},
 36853  	}
 36854  	target := &ret
 36855  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36856  		return nil, err
 36857  	}
 36858  	return ret, nil
 36859  }
 36860  
 36861  type ProjectsLocationsAgentEnvironmentsIntentsListCall struct {
 36862  	s            *Service
 36863  	parent       string
 36864  	urlParams_   gensupport.URLParams
 36865  	ifNoneMatch_ string
 36866  	ctx_         context.Context
 36867  	header_      http.Header
 36868  }
 36869  
 36870  // List: Returns the list of all intents in the specified agent.
 36871  //
 36872  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 36873  //     `projects//locations//agent`. Alternatively, you can specify the
 36874  //     environment to list intents for. Format: `projects//agent/environments/`
 36875  //     or `projects//locations//agent/environments/`. Note: training phrases of
 36876  //     the intents will not be returned for non-draft environment.
 36877  func (r *ProjectsLocationsAgentEnvironmentsIntentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36878  	c := &ProjectsLocationsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36879  	c.parent = parent
 36880  	return c
 36881  }
 36882  
 36883  // IntentView sets the optional parameter "intentView": The resource view to
 36884  // apply to the returned intent.
 36885  //
 36886  // Possible values:
 36887  //
 36888  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 36889  //
 36890  // response.
 36891  //
 36892  //	"INTENT_VIEW_FULL" - All fields are populated.
 36893  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36894  	c.urlParams_.Set("intentView", intentView)
 36895  	return c
 36896  }
 36897  
 36898  // LanguageCode sets the optional parameter "languageCode": The language used
 36899  // to access language-specific data. If not specified, the agent's default
 36900  // language is used. For more information, see Multilingual intent and entity
 36901  // data
 36902  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 36903  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36904  	c.urlParams_.Set("languageCode", languageCode)
 36905  	return c
 36906  }
 36907  
 36908  // PageSize sets the optional parameter "pageSize": The maximum number of items
 36909  // to return in a single page. By default 100 and at most 1000.
 36910  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36911  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 36912  	return c
 36913  }
 36914  
 36915  // PageToken sets the optional parameter "pageToken": The next_page_token value
 36916  // returned from a previous list request.
 36917  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36918  	c.urlParams_.Set("pageToken", pageToken)
 36919  	return c
 36920  }
 36921  
 36922  // Fields allows partial responses to be retrieved. See
 36923  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36924  // details.
 36925  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36926  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36927  	return c
 36928  }
 36929  
 36930  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36931  // object's ETag matches the given value. This is useful for getting updates
 36932  // only after the object has changed since the last request.
 36933  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36934  	c.ifNoneMatch_ = entityTag
 36935  	return c
 36936  }
 36937  
 36938  // Context sets the context to be used in this call's Do method.
 36939  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36940  	c.ctx_ = ctx
 36941  	return c
 36942  }
 36943  
 36944  // Header returns a http.Header that can be modified by the caller to add
 36945  // headers to the request.
 36946  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Header() http.Header {
 36947  	if c.header_ == nil {
 36948  		c.header_ = make(http.Header)
 36949  	}
 36950  	return c.header_
 36951  }
 36952  
 36953  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
 36954  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36955  	if c.ifNoneMatch_ != "" {
 36956  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36957  	}
 36958  	var body io.Reader = nil
 36959  	c.urlParams_.Set("alt", alt)
 36960  	c.urlParams_.Set("prettyPrint", "false")
 36961  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
 36962  	urls += "?" + c.urlParams_.Encode()
 36963  	req, err := http.NewRequest("GET", urls, body)
 36964  	if err != nil {
 36965  		return nil, err
 36966  	}
 36967  	req.Header = reqHeaders
 36968  	googleapi.Expand(req.URL, map[string]string{
 36969  		"parent": c.parent,
 36970  	})
 36971  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36972  }
 36973  
 36974  // Do executes the "dialogflow.projects.locations.agent.environments.intents.list" call.
 36975  // Any non-2xx status code is an error. Response headers are in either
 36976  // *GoogleCloudDialogflowV2ListIntentsResponse.ServerResponse.Header or (if a
 36977  // response was returned at all) in error.(*googleapi.Error).Header. Use
 36978  // googleapi.IsNotModified to check whether the returned error was because
 36979  // http.StatusNotModified was returned.
 36980  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
 36981  	gensupport.SetOptions(c.urlParams_, opts...)
 36982  	res, err := c.doRequest("json")
 36983  	if res != nil && res.StatusCode == http.StatusNotModified {
 36984  		if res.Body != nil {
 36985  			res.Body.Close()
 36986  		}
 36987  		return nil, gensupport.WrapError(&googleapi.Error{
 36988  			Code:   res.StatusCode,
 36989  			Header: res.Header,
 36990  		})
 36991  	}
 36992  	if err != nil {
 36993  		return nil, err
 36994  	}
 36995  	defer googleapi.CloseBody(res)
 36996  	if err := googleapi.CheckResponse(res); err != nil {
 36997  		return nil, gensupport.WrapError(err)
 36998  	}
 36999  	ret := &GoogleCloudDialogflowV2ListIntentsResponse{
 37000  		ServerResponse: googleapi.ServerResponse{
 37001  			Header:         res.Header,
 37002  			HTTPStatusCode: res.StatusCode,
 37003  		},
 37004  	}
 37005  	target := &ret
 37006  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37007  		return nil, err
 37008  	}
 37009  	return ret, nil
 37010  }
 37011  
 37012  // Pages invokes f for each page of results.
 37013  // A non-nil error returned from f will halt the iteration.
 37014  // The provided context supersedes any context provided to the Context method.
 37015  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
 37016  	c.ctx_ = ctx
 37017  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 37018  	for {
 37019  		x, err := c.Do()
 37020  		if err != nil {
 37021  			return err
 37022  		}
 37023  		if err := f(x); err != nil {
 37024  			return err
 37025  		}
 37026  		if x.NextPageToken == "" {
 37027  			return nil
 37028  		}
 37029  		c.PageToken(x.NextPageToken)
 37030  	}
 37031  }
 37032  
 37033  type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
 37034  	s          *Service
 37035  	parent     string
 37036  	urlParams_ gensupport.URLParams
 37037  	ctx_       context.Context
 37038  	header_    http.Header
 37039  }
 37040  
 37041  // DeleteContexts: Deletes all active contexts in the specified session.
 37042  //
 37043  //   - parent: The name of the session to delete all contexts from. Format:
 37044  //     `projects//agent/sessions/` or
 37045  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 37046  //     not specified we assume default 'draft' environment. If `User ID` is not
 37047  //     specified, we assume default '-' user.
 37048  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 37049  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37050  	c.parent = parent
 37051  	return c
 37052  }
 37053  
 37054  // Fields allows partial responses to be retrieved. See
 37055  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37056  // details.
 37057  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 37058  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37059  	return c
 37060  }
 37061  
 37062  // Context sets the context to be used in this call's Do method.
 37063  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 37064  	c.ctx_ = ctx
 37065  	return c
 37066  }
 37067  
 37068  // Header returns a http.Header that can be modified by the caller to add
 37069  // headers to the request.
 37070  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
 37071  	if c.header_ == nil {
 37072  		c.header_ = make(http.Header)
 37073  	}
 37074  	return c.header_
 37075  }
 37076  
 37077  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 37078  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37079  	var body io.Reader = nil
 37080  	c.urlParams_.Set("alt", alt)
 37081  	c.urlParams_.Set("prettyPrint", "false")
 37082  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 37083  	urls += "?" + c.urlParams_.Encode()
 37084  	req, err := http.NewRequest("DELETE", urls, body)
 37085  	if err != nil {
 37086  		return nil, err
 37087  	}
 37088  	req.Header = reqHeaders
 37089  	googleapi.Expand(req.URL, map[string]string{
 37090  		"parent": c.parent,
 37091  	})
 37092  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37093  }
 37094  
 37095  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call.
 37096  // Any non-2xx status code is an error. Response headers are in either
 37097  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 37098  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 37099  // check whether the returned error was because http.StatusNotModified was
 37100  // returned.
 37101  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 37102  	gensupport.SetOptions(c.urlParams_, opts...)
 37103  	res, err := c.doRequest("json")
 37104  	if res != nil && res.StatusCode == http.StatusNotModified {
 37105  		if res.Body != nil {
 37106  			res.Body.Close()
 37107  		}
 37108  		return nil, gensupport.WrapError(&googleapi.Error{
 37109  			Code:   res.StatusCode,
 37110  			Header: res.Header,
 37111  		})
 37112  	}
 37113  	if err != nil {
 37114  		return nil, err
 37115  	}
 37116  	defer googleapi.CloseBody(res)
 37117  	if err := googleapi.CheckResponse(res); err != nil {
 37118  		return nil, gensupport.WrapError(err)
 37119  	}
 37120  	ret := &GoogleProtobufEmpty{
 37121  		ServerResponse: googleapi.ServerResponse{
 37122  			Header:         res.Header,
 37123  			HTTPStatusCode: res.StatusCode,
 37124  		},
 37125  	}
 37126  	target := &ret
 37127  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37128  		return nil, err
 37129  	}
 37130  	return ret, nil
 37131  }
 37132  
 37133  type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
 37134  	s                                          *Service
 37135  	sessionid                                  string
 37136  	googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
 37137  	urlParams_                                 gensupport.URLParams
 37138  	ctx_                                       context.Context
 37139  	header_                                    http.Header
 37140  }
 37141  
 37142  // DetectIntent: Processes a natural language query and returns structured,
 37143  // actionable data as a result. This method is not idempotent, because it may
 37144  // cause contexts and session entity types to be updated, which in turn might
 37145  // affect results of future queries. If you might use Agent Assist
 37146  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 37147  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 37148  // `AnalyzeContent` has additional functionality for Agent Assist and other
 37149  // CCAI products. Note: Always use agent versions for production traffic. See
 37150  // Versions and environments
 37151  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 37152  //
 37153  //   - session: The name of the session this query is sent to. Format:
 37154  //     `projects//agent/sessions/`, or
 37155  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 37156  //     not specified, we assume default 'draft' environment (`Environment ID`
 37157  //     might be referred to as environment name at some places). If `User ID` is
 37158  //     not specified, we are using "-". It's up to the API caller to choose an
 37159  //     appropriate `Session ID` and `User Id`. They can be a random number or
 37160  //     some type of user and session identifiers (preferably hashed). The length
 37161  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 37162  //     information, see the API interactions guide
 37163  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 37164  //     agent versions for production traffic. See Versions and environments
 37165  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 37166  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
 37167  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37168  	c.sessionid = sessionid
 37169  	c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
 37170  	return c
 37171  }
 37172  
 37173  // Fields allows partial responses to be retrieved. See
 37174  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37175  // details.
 37176  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
 37177  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37178  	return c
 37179  }
 37180  
 37181  // Context sets the context to be used in this call's Do method.
 37182  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
 37183  	c.ctx_ = ctx
 37184  	return c
 37185  }
 37186  
 37187  // Header returns a http.Header that can be modified by the caller to add
 37188  // headers to the request.
 37189  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
 37190  	if c.header_ == nil {
 37191  		c.header_ = make(http.Header)
 37192  	}
 37193  	return c.header_
 37194  }
 37195  
 37196  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 37197  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37198  	var body io.Reader = nil
 37199  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
 37200  	if err != nil {
 37201  		return nil, err
 37202  	}
 37203  	c.urlParams_.Set("alt", alt)
 37204  	c.urlParams_.Set("prettyPrint", "false")
 37205  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
 37206  	urls += "?" + c.urlParams_.Encode()
 37207  	req, err := http.NewRequest("POST", urls, body)
 37208  	if err != nil {
 37209  		return nil, err
 37210  	}
 37211  	req.Header = reqHeaders
 37212  	googleapi.Expand(req.URL, map[string]string{
 37213  		"session": c.sessionid,
 37214  	})
 37215  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37216  }
 37217  
 37218  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call.
 37219  // Any non-2xx status code is an error. Response headers are in either
 37220  // *GoogleCloudDialogflowV2DetectIntentResponse.ServerResponse.Header or (if a
 37221  // response was returned at all) in error.(*googleapi.Error).Header. Use
 37222  // googleapi.IsNotModified to check whether the returned error was because
 37223  // http.StatusNotModified was returned.
 37224  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
 37225  	gensupport.SetOptions(c.urlParams_, opts...)
 37226  	res, err := c.doRequest("json")
 37227  	if res != nil && res.StatusCode == http.StatusNotModified {
 37228  		if res.Body != nil {
 37229  			res.Body.Close()
 37230  		}
 37231  		return nil, gensupport.WrapError(&googleapi.Error{
 37232  			Code:   res.StatusCode,
 37233  			Header: res.Header,
 37234  		})
 37235  	}
 37236  	if err != nil {
 37237  		return nil, err
 37238  	}
 37239  	defer googleapi.CloseBody(res)
 37240  	if err := googleapi.CheckResponse(res); err != nil {
 37241  		return nil, gensupport.WrapError(err)
 37242  	}
 37243  	ret := &GoogleCloudDialogflowV2DetectIntentResponse{
 37244  		ServerResponse: googleapi.ServerResponse{
 37245  			Header:         res.Header,
 37246  			HTTPStatusCode: res.StatusCode,
 37247  		},
 37248  	}
 37249  	target := &ret
 37250  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37251  		return nil, err
 37252  	}
 37253  	return ret, nil
 37254  }
 37255  
 37256  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
 37257  	s                              *Service
 37258  	parent                         string
 37259  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 37260  	urlParams_                     gensupport.URLParams
 37261  	ctx_                           context.Context
 37262  	header_                        http.Header
 37263  }
 37264  
 37265  // Create: Creates a context. If the specified context already exists,
 37266  // overrides the context.
 37267  //
 37268  //   - parent: The session to create a context for. Format:
 37269  //     `projects//agent/sessions/` or
 37270  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 37271  //     not specified, we assume default 'draft' environment. If `User ID` is not
 37272  //     specified, we assume default '-' user.
 37273  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
 37274  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37275  	c.parent = parent
 37276  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 37277  	return c
 37278  }
 37279  
 37280  // Fields allows partial responses to be retrieved. See
 37281  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37282  // details.
 37283  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
 37284  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37285  	return c
 37286  }
 37287  
 37288  // Context sets the context to be used in this call's Do method.
 37289  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
 37290  	c.ctx_ = ctx
 37291  	return c
 37292  }
 37293  
 37294  // Header returns a http.Header that can be modified by the caller to add
 37295  // headers to the request.
 37296  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
 37297  	if c.header_ == nil {
 37298  		c.header_ = make(http.Header)
 37299  	}
 37300  	return c.header_
 37301  }
 37302  
 37303  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 37304  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37305  	var body io.Reader = nil
 37306  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 37307  	if err != nil {
 37308  		return nil, err
 37309  	}
 37310  	c.urlParams_.Set("alt", alt)
 37311  	c.urlParams_.Set("prettyPrint", "false")
 37312  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 37313  	urls += "?" + c.urlParams_.Encode()
 37314  	req, err := http.NewRequest("POST", urls, body)
 37315  	if err != nil {
 37316  		return nil, err
 37317  	}
 37318  	req.Header = reqHeaders
 37319  	googleapi.Expand(req.URL, map[string]string{
 37320  		"parent": c.parent,
 37321  	})
 37322  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37323  }
 37324  
 37325  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call.
 37326  // Any non-2xx status code is an error. Response headers are in either
 37327  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 37328  // returned at all) in error.(*googleapi.Error).Header. Use
 37329  // googleapi.IsNotModified to check whether the returned error was because
 37330  // http.StatusNotModified was returned.
 37331  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 37332  	gensupport.SetOptions(c.urlParams_, opts...)
 37333  	res, err := c.doRequest("json")
 37334  	if res != nil && res.StatusCode == http.StatusNotModified {
 37335  		if res.Body != nil {
 37336  			res.Body.Close()
 37337  		}
 37338  		return nil, gensupport.WrapError(&googleapi.Error{
 37339  			Code:   res.StatusCode,
 37340  			Header: res.Header,
 37341  		})
 37342  	}
 37343  	if err != nil {
 37344  		return nil, err
 37345  	}
 37346  	defer googleapi.CloseBody(res)
 37347  	if err := googleapi.CheckResponse(res); err != nil {
 37348  		return nil, gensupport.WrapError(err)
 37349  	}
 37350  	ret := &GoogleCloudDialogflowV2Context{
 37351  		ServerResponse: googleapi.ServerResponse{
 37352  			Header:         res.Header,
 37353  			HTTPStatusCode: res.StatusCode,
 37354  		},
 37355  	}
 37356  	target := &ret
 37357  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37358  		return nil, err
 37359  	}
 37360  	return ret, nil
 37361  }
 37362  
 37363  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
 37364  	s          *Service
 37365  	name       string
 37366  	urlParams_ gensupport.URLParams
 37367  	ctx_       context.Context
 37368  	header_    http.Header
 37369  }
 37370  
 37371  // Delete: Deletes the specified context.
 37372  //
 37373  //   - name: The name of the context to delete. Format:
 37374  //     `projects//agent/sessions//contexts/` or
 37375  //     `projects//agent/environments//users//sessions//contexts/`. If
 37376  //     `Environment ID` is not specified, we assume default 'draft' environment.
 37377  //     If `User ID` is not specified, we assume default '-' user.
 37378  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 37379  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37380  	c.name = name
 37381  	return c
 37382  }
 37383  
 37384  // Fields allows partial responses to be retrieved. See
 37385  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37386  // details.
 37387  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 37388  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37389  	return c
 37390  }
 37391  
 37392  // Context sets the context to be used in this call's Do method.
 37393  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 37394  	c.ctx_ = ctx
 37395  	return c
 37396  }
 37397  
 37398  // Header returns a http.Header that can be modified by the caller to add
 37399  // headers to the request.
 37400  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
 37401  	if c.header_ == nil {
 37402  		c.header_ = make(http.Header)
 37403  	}
 37404  	return c.header_
 37405  }
 37406  
 37407  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 37408  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37409  	var body io.Reader = nil
 37410  	c.urlParams_.Set("alt", alt)
 37411  	c.urlParams_.Set("prettyPrint", "false")
 37412  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 37413  	urls += "?" + c.urlParams_.Encode()
 37414  	req, err := http.NewRequest("DELETE", urls, body)
 37415  	if err != nil {
 37416  		return nil, err
 37417  	}
 37418  	req.Header = reqHeaders
 37419  	googleapi.Expand(req.URL, map[string]string{
 37420  		"name": c.name,
 37421  	})
 37422  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37423  }
 37424  
 37425  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call.
 37426  // Any non-2xx status code is an error. Response headers are in either
 37427  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 37428  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 37429  // check whether the returned error was because http.StatusNotModified was
 37430  // returned.
 37431  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 37432  	gensupport.SetOptions(c.urlParams_, opts...)
 37433  	res, err := c.doRequest("json")
 37434  	if res != nil && res.StatusCode == http.StatusNotModified {
 37435  		if res.Body != nil {
 37436  			res.Body.Close()
 37437  		}
 37438  		return nil, gensupport.WrapError(&googleapi.Error{
 37439  			Code:   res.StatusCode,
 37440  			Header: res.Header,
 37441  		})
 37442  	}
 37443  	if err != nil {
 37444  		return nil, err
 37445  	}
 37446  	defer googleapi.CloseBody(res)
 37447  	if err := googleapi.CheckResponse(res); err != nil {
 37448  		return nil, gensupport.WrapError(err)
 37449  	}
 37450  	ret := &GoogleProtobufEmpty{
 37451  		ServerResponse: googleapi.ServerResponse{
 37452  			Header:         res.Header,
 37453  			HTTPStatusCode: res.StatusCode,
 37454  		},
 37455  	}
 37456  	target := &ret
 37457  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37458  		return nil, err
 37459  	}
 37460  	return ret, nil
 37461  }
 37462  
 37463  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {
 37464  	s            *Service
 37465  	name         string
 37466  	urlParams_   gensupport.URLParams
 37467  	ifNoneMatch_ string
 37468  	ctx_         context.Context
 37469  	header_      http.Header
 37470  }
 37471  
 37472  // Get: Retrieves the specified context.
 37473  //
 37474  //   - name: The name of the context. Format:
 37475  //     `projects//agent/sessions//contexts/` or
 37476  //     `projects//agent/environments//users//sessions//contexts/`. If
 37477  //     `Environment ID` is not specified, we assume default 'draft' environment.
 37478  //     If `User ID` is not specified, we assume default '-' user.
 37479  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 37480  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37481  	c.name = name
 37482  	return c
 37483  }
 37484  
 37485  // Fields allows partial responses to be retrieved. See
 37486  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37487  // details.
 37488  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 37489  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37490  	return c
 37491  }
 37492  
 37493  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37494  // object's ETag matches the given value. This is useful for getting updates
 37495  // only after the object has changed since the last request.
 37496  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 37497  	c.ifNoneMatch_ = entityTag
 37498  	return c
 37499  }
 37500  
 37501  // Context sets the context to be used in this call's Do method.
 37502  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 37503  	c.ctx_ = ctx
 37504  	return c
 37505  }
 37506  
 37507  // Header returns a http.Header that can be modified by the caller to add
 37508  // headers to the request.
 37509  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
 37510  	if c.header_ == nil {
 37511  		c.header_ = make(http.Header)
 37512  	}
 37513  	return c.header_
 37514  }
 37515  
 37516  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 37517  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37518  	if c.ifNoneMatch_ != "" {
 37519  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37520  	}
 37521  	var body io.Reader = nil
 37522  	c.urlParams_.Set("alt", alt)
 37523  	c.urlParams_.Set("prettyPrint", "false")
 37524  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 37525  	urls += "?" + c.urlParams_.Encode()
 37526  	req, err := http.NewRequest("GET", urls, body)
 37527  	if err != nil {
 37528  		return nil, err
 37529  	}
 37530  	req.Header = reqHeaders
 37531  	googleapi.Expand(req.URL, map[string]string{
 37532  		"name": c.name,
 37533  	})
 37534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37535  }
 37536  
 37537  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call.
 37538  // Any non-2xx status code is an error. Response headers are in either
 37539  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 37540  // returned at all) in error.(*googleapi.Error).Header. Use
 37541  // googleapi.IsNotModified to check whether the returned error was because
 37542  // http.StatusNotModified was returned.
 37543  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 37544  	gensupport.SetOptions(c.urlParams_, opts...)
 37545  	res, err := c.doRequest("json")
 37546  	if res != nil && res.StatusCode == http.StatusNotModified {
 37547  		if res.Body != nil {
 37548  			res.Body.Close()
 37549  		}
 37550  		return nil, gensupport.WrapError(&googleapi.Error{
 37551  			Code:   res.StatusCode,
 37552  			Header: res.Header,
 37553  		})
 37554  	}
 37555  	if err != nil {
 37556  		return nil, err
 37557  	}
 37558  	defer googleapi.CloseBody(res)
 37559  	if err := googleapi.CheckResponse(res); err != nil {
 37560  		return nil, gensupport.WrapError(err)
 37561  	}
 37562  	ret := &GoogleCloudDialogflowV2Context{
 37563  		ServerResponse: googleapi.ServerResponse{
 37564  			Header:         res.Header,
 37565  			HTTPStatusCode: res.StatusCode,
 37566  		},
 37567  	}
 37568  	target := &ret
 37569  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37570  		return nil, err
 37571  	}
 37572  	return ret, nil
 37573  }
 37574  
 37575  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {
 37576  	s            *Service
 37577  	parent       string
 37578  	urlParams_   gensupport.URLParams
 37579  	ifNoneMatch_ string
 37580  	ctx_         context.Context
 37581  	header_      http.Header
 37582  }
 37583  
 37584  // List: Returns the list of all contexts in the specified session.
 37585  //
 37586  //   - parent: The session to list all contexts from. Format:
 37587  //     `projects//agent/sessions/` or
 37588  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 37589  //     not specified, we assume default 'draft' environment. If `User ID` is not
 37590  //     specified, we assume default '-' user.
 37591  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37592  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37593  	c.parent = parent
 37594  	return c
 37595  }
 37596  
 37597  // PageSize sets the optional parameter "pageSize": The maximum number of items
 37598  // to return in a single page. By default 100 and at most 1000.
 37599  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37600  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 37601  	return c
 37602  }
 37603  
 37604  // PageToken sets the optional parameter "pageToken": The next_page_token value
 37605  // returned from a previous list request.
 37606  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37607  	c.urlParams_.Set("pageToken", pageToken)
 37608  	return c
 37609  }
 37610  
 37611  // Fields allows partial responses to be retrieved. See
 37612  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37613  // details.
 37614  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37615  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37616  	return c
 37617  }
 37618  
 37619  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37620  // object's ETag matches the given value. This is useful for getting updates
 37621  // only after the object has changed since the last request.
 37622  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37623  	c.ifNoneMatch_ = entityTag
 37624  	return c
 37625  }
 37626  
 37627  // Context sets the context to be used in this call's Do method.
 37628  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37629  	c.ctx_ = ctx
 37630  	return c
 37631  }
 37632  
 37633  // Header returns a http.Header that can be modified by the caller to add
 37634  // headers to the request.
 37635  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
 37636  	if c.header_ == nil {
 37637  		c.header_ = make(http.Header)
 37638  	}
 37639  	return c.header_
 37640  }
 37641  
 37642  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 37643  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37644  	if c.ifNoneMatch_ != "" {
 37645  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37646  	}
 37647  	var body io.Reader = nil
 37648  	c.urlParams_.Set("alt", alt)
 37649  	c.urlParams_.Set("prettyPrint", "false")
 37650  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 37651  	urls += "?" + c.urlParams_.Encode()
 37652  	req, err := http.NewRequest("GET", urls, body)
 37653  	if err != nil {
 37654  		return nil, err
 37655  	}
 37656  	req.Header = reqHeaders
 37657  	googleapi.Expand(req.URL, map[string]string{
 37658  		"parent": c.parent,
 37659  	})
 37660  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37661  }
 37662  
 37663  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call.
 37664  // Any non-2xx status code is an error. Response headers are in either
 37665  // *GoogleCloudDialogflowV2ListContextsResponse.ServerResponse.Header or (if a
 37666  // response was returned at all) in error.(*googleapi.Error).Header. Use
 37667  // googleapi.IsNotModified to check whether the returned error was because
 37668  // http.StatusNotModified was returned.
 37669  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
 37670  	gensupport.SetOptions(c.urlParams_, opts...)
 37671  	res, err := c.doRequest("json")
 37672  	if res != nil && res.StatusCode == http.StatusNotModified {
 37673  		if res.Body != nil {
 37674  			res.Body.Close()
 37675  		}
 37676  		return nil, gensupport.WrapError(&googleapi.Error{
 37677  			Code:   res.StatusCode,
 37678  			Header: res.Header,
 37679  		})
 37680  	}
 37681  	if err != nil {
 37682  		return nil, err
 37683  	}
 37684  	defer googleapi.CloseBody(res)
 37685  	if err := googleapi.CheckResponse(res); err != nil {
 37686  		return nil, gensupport.WrapError(err)
 37687  	}
 37688  	ret := &GoogleCloudDialogflowV2ListContextsResponse{
 37689  		ServerResponse: googleapi.ServerResponse{
 37690  			Header:         res.Header,
 37691  			HTTPStatusCode: res.StatusCode,
 37692  		},
 37693  	}
 37694  	target := &ret
 37695  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37696  		return nil, err
 37697  	}
 37698  	return ret, nil
 37699  }
 37700  
 37701  // Pages invokes f for each page of results.
 37702  // A non-nil error returned from f will halt the iteration.
 37703  // The provided context supersedes any context provided to the Context method.
 37704  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
 37705  	c.ctx_ = ctx
 37706  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 37707  	for {
 37708  		x, err := c.Do()
 37709  		if err != nil {
 37710  			return err
 37711  		}
 37712  		if err := f(x); err != nil {
 37713  			return err
 37714  		}
 37715  		if x.NextPageToken == "" {
 37716  			return nil
 37717  		}
 37718  		c.PageToken(x.NextPageToken)
 37719  	}
 37720  }
 37721  
 37722  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
 37723  	s                              *Service
 37724  	nameid                         string
 37725  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 37726  	urlParams_                     gensupport.URLParams
 37727  	ctx_                           context.Context
 37728  	header_                        http.Header
 37729  }
 37730  
 37731  // Patch: Updates the specified context.
 37732  //
 37733  //   - name: The unique identifier of the context. Format:
 37734  //     `projects//agent/sessions//contexts/`, or
 37735  //     `projects//agent/environments//users//sessions//contexts/`. The `Context
 37736  //     ID` is always converted to lowercase, may only contain characters in
 37737  //     `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 37738  //     not specified, we assume default 'draft' environment. If `User ID` is not
 37739  //     specified, we assume default '-' user. The following context names are
 37740  //     reserved for internal use by Dialogflow. You should not use these contexts
 37741  //     or create contexts with these names: * `__system_counters__` *
 37742  //     `*_id_dialog_context` * `*_dialog_params_size`.
 37743  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37744  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37745  	c.nameid = nameid
 37746  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 37747  	return c
 37748  }
 37749  
 37750  // UpdateMask sets the optional parameter "updateMask": The mask to control
 37751  // which fields get updated.
 37752  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37753  	c.urlParams_.Set("updateMask", updateMask)
 37754  	return c
 37755  }
 37756  
 37757  // Fields allows partial responses to be retrieved. See
 37758  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37759  // details.
 37760  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37761  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37762  	return c
 37763  }
 37764  
 37765  // Context sets the context to be used in this call's Do method.
 37766  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37767  	c.ctx_ = ctx
 37768  	return c
 37769  }
 37770  
 37771  // Header returns a http.Header that can be modified by the caller to add
 37772  // headers to the request.
 37773  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
 37774  	if c.header_ == nil {
 37775  		c.header_ = make(http.Header)
 37776  	}
 37777  	return c.header_
 37778  }
 37779  
 37780  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 37781  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37782  	var body io.Reader = nil
 37783  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 37784  	if err != nil {
 37785  		return nil, err
 37786  	}
 37787  	c.urlParams_.Set("alt", alt)
 37788  	c.urlParams_.Set("prettyPrint", "false")
 37789  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 37790  	urls += "?" + c.urlParams_.Encode()
 37791  	req, err := http.NewRequest("PATCH", urls, body)
 37792  	if err != nil {
 37793  		return nil, err
 37794  	}
 37795  	req.Header = reqHeaders
 37796  	googleapi.Expand(req.URL, map[string]string{
 37797  		"name": c.nameid,
 37798  	})
 37799  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37800  }
 37801  
 37802  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call.
 37803  // Any non-2xx status code is an error. Response headers are in either
 37804  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 37805  // returned at all) in error.(*googleapi.Error).Header. Use
 37806  // googleapi.IsNotModified to check whether the returned error was because
 37807  // http.StatusNotModified was returned.
 37808  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 37809  	gensupport.SetOptions(c.urlParams_, opts...)
 37810  	res, err := c.doRequest("json")
 37811  	if res != nil && res.StatusCode == http.StatusNotModified {
 37812  		if res.Body != nil {
 37813  			res.Body.Close()
 37814  		}
 37815  		return nil, gensupport.WrapError(&googleapi.Error{
 37816  			Code:   res.StatusCode,
 37817  			Header: res.Header,
 37818  		})
 37819  	}
 37820  	if err != nil {
 37821  		return nil, err
 37822  	}
 37823  	defer googleapi.CloseBody(res)
 37824  	if err := googleapi.CheckResponse(res); err != nil {
 37825  		return nil, gensupport.WrapError(err)
 37826  	}
 37827  	ret := &GoogleCloudDialogflowV2Context{
 37828  		ServerResponse: googleapi.ServerResponse{
 37829  			Header:         res.Header,
 37830  			HTTPStatusCode: res.StatusCode,
 37831  		},
 37832  	}
 37833  	target := &ret
 37834  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37835  		return nil, err
 37836  	}
 37837  	return ret, nil
 37838  }
 37839  
 37840  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
 37841  	s                                        *Service
 37842  	parent                                   string
 37843  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 37844  	urlParams_                               gensupport.URLParams
 37845  	ctx_                                     context.Context
 37846  	header_                                  http.Header
 37847  }
 37848  
 37849  // Create: Creates a session entity type. If the specified session entity type
 37850  // already exists, overrides the session entity type. This method doesn't work
 37851  // with Google Assistant integration. Contact Dialogflow support if you need to
 37852  // use session entities with Google Assistant integration.
 37853  //
 37854  //   - parent: The session to create a session entity type for. Format:
 37855  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 37856  //     sessions/`. If `Environment ID` is not specified, we assume default
 37857  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 37858  //     user.
 37859  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 37860  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37861  	c.parent = parent
 37862  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 37863  	return c
 37864  }
 37865  
 37866  // Fields allows partial responses to be retrieved. See
 37867  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37868  // details.
 37869  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 37870  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37871  	return c
 37872  }
 37873  
 37874  // Context sets the context to be used in this call's Do method.
 37875  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 37876  	c.ctx_ = ctx
 37877  	return c
 37878  }
 37879  
 37880  // Header returns a http.Header that can be modified by the caller to add
 37881  // headers to the request.
 37882  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
 37883  	if c.header_ == nil {
 37884  		c.header_ = make(http.Header)
 37885  	}
 37886  	return c.header_
 37887  }
 37888  
 37889  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 37890  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37891  	var body io.Reader = nil
 37892  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 37893  	if err != nil {
 37894  		return nil, err
 37895  	}
 37896  	c.urlParams_.Set("alt", alt)
 37897  	c.urlParams_.Set("prettyPrint", "false")
 37898  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 37899  	urls += "?" + c.urlParams_.Encode()
 37900  	req, err := http.NewRequest("POST", urls, body)
 37901  	if err != nil {
 37902  		return nil, err
 37903  	}
 37904  	req.Header = reqHeaders
 37905  	googleapi.Expand(req.URL, map[string]string{
 37906  		"parent": c.parent,
 37907  	})
 37908  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37909  }
 37910  
 37911  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call.
 37912  // Any non-2xx status code is an error. Response headers are in either
 37913  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 37914  // response was returned at all) in error.(*googleapi.Error).Header. Use
 37915  // googleapi.IsNotModified to check whether the returned error was because
 37916  // http.StatusNotModified was returned.
 37917  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 37918  	gensupport.SetOptions(c.urlParams_, opts...)
 37919  	res, err := c.doRequest("json")
 37920  	if res != nil && res.StatusCode == http.StatusNotModified {
 37921  		if res.Body != nil {
 37922  			res.Body.Close()
 37923  		}
 37924  		return nil, gensupport.WrapError(&googleapi.Error{
 37925  			Code:   res.StatusCode,
 37926  			Header: res.Header,
 37927  		})
 37928  	}
 37929  	if err != nil {
 37930  		return nil, err
 37931  	}
 37932  	defer googleapi.CloseBody(res)
 37933  	if err := googleapi.CheckResponse(res); err != nil {
 37934  		return nil, gensupport.WrapError(err)
 37935  	}
 37936  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 37937  		ServerResponse: googleapi.ServerResponse{
 37938  			Header:         res.Header,
 37939  			HTTPStatusCode: res.StatusCode,
 37940  		},
 37941  	}
 37942  	target := &ret
 37943  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37944  		return nil, err
 37945  	}
 37946  	return ret, nil
 37947  }
 37948  
 37949  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
 37950  	s          *Service
 37951  	name       string
 37952  	urlParams_ gensupport.URLParams
 37953  	ctx_       context.Context
 37954  	header_    http.Header
 37955  }
 37956  
 37957  // Delete: Deletes the specified session entity type. This method doesn't work
 37958  // with Google Assistant integration. Contact Dialogflow support if you need to
 37959  // use session entities with Google Assistant integration.
 37960  //
 37961  //   - name: The name of the entity type to delete. Format:
 37962  //     `projects//agent/sessions//entityTypes/` or
 37963  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 37964  //     `Environment ID` is not specified, we assume default 'draft' environment.
 37965  //     If `User ID` is not specified, we assume default '-' user.
 37966  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 37967  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37968  	c.name = name
 37969  	return c
 37970  }
 37971  
 37972  // Fields allows partial responses to be retrieved. See
 37973  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37974  // details.
 37975  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 37976  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37977  	return c
 37978  }
 37979  
 37980  // Context sets the context to be used in this call's Do method.
 37981  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 37982  	c.ctx_ = ctx
 37983  	return c
 37984  }
 37985  
 37986  // Header returns a http.Header that can be modified by the caller to add
 37987  // headers to the request.
 37988  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
 37989  	if c.header_ == nil {
 37990  		c.header_ = make(http.Header)
 37991  	}
 37992  	return c.header_
 37993  }
 37994  
 37995  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 37996  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37997  	var body io.Reader = nil
 37998  	c.urlParams_.Set("alt", alt)
 37999  	c.urlParams_.Set("prettyPrint", "false")
 38000  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 38001  	urls += "?" + c.urlParams_.Encode()
 38002  	req, err := http.NewRequest("DELETE", urls, body)
 38003  	if err != nil {
 38004  		return nil, err
 38005  	}
 38006  	req.Header = reqHeaders
 38007  	googleapi.Expand(req.URL, map[string]string{
 38008  		"name": c.name,
 38009  	})
 38010  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38011  }
 38012  
 38013  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call.
 38014  // Any non-2xx status code is an error. Response headers are in either
 38015  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 38016  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 38017  // check whether the returned error was because http.StatusNotModified was
 38018  // returned.
 38019  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 38020  	gensupport.SetOptions(c.urlParams_, opts...)
 38021  	res, err := c.doRequest("json")
 38022  	if res != nil && res.StatusCode == http.StatusNotModified {
 38023  		if res.Body != nil {
 38024  			res.Body.Close()
 38025  		}
 38026  		return nil, gensupport.WrapError(&googleapi.Error{
 38027  			Code:   res.StatusCode,
 38028  			Header: res.Header,
 38029  		})
 38030  	}
 38031  	if err != nil {
 38032  		return nil, err
 38033  	}
 38034  	defer googleapi.CloseBody(res)
 38035  	if err := googleapi.CheckResponse(res); err != nil {
 38036  		return nil, gensupport.WrapError(err)
 38037  	}
 38038  	ret := &GoogleProtobufEmpty{
 38039  		ServerResponse: googleapi.ServerResponse{
 38040  			Header:         res.Header,
 38041  			HTTPStatusCode: res.StatusCode,
 38042  		},
 38043  	}
 38044  	target := &ret
 38045  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38046  		return nil, err
 38047  	}
 38048  	return ret, nil
 38049  }
 38050  
 38051  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
 38052  	s            *Service
 38053  	name         string
 38054  	urlParams_   gensupport.URLParams
 38055  	ifNoneMatch_ string
 38056  	ctx_         context.Context
 38057  	header_      http.Header
 38058  }
 38059  
 38060  // Get: Retrieves the specified session entity type. This method doesn't work
 38061  // with Google Assistant integration. Contact Dialogflow support if you need to
 38062  // use session entities with Google Assistant integration.
 38063  //
 38064  //   - name: The name of the session entity type. Format:
 38065  //     `projects//agent/sessions//entityTypes/` or
 38066  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 38067  //     `Environment ID` is not specified, we assume default 'draft' environment.
 38068  //     If `User ID` is not specified, we assume default '-' user.
 38069  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 38070  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38071  	c.name = name
 38072  	return c
 38073  }
 38074  
 38075  // Fields allows partial responses to be retrieved. See
 38076  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38077  // details.
 38078  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 38079  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38080  	return c
 38081  }
 38082  
 38083  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38084  // object's ETag matches the given value. This is useful for getting updates
 38085  // only after the object has changed since the last request.
 38086  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 38087  	c.ifNoneMatch_ = entityTag
 38088  	return c
 38089  }
 38090  
 38091  // Context sets the context to be used in this call's Do method.
 38092  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 38093  	c.ctx_ = ctx
 38094  	return c
 38095  }
 38096  
 38097  // Header returns a http.Header that can be modified by the caller to add
 38098  // headers to the request.
 38099  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
 38100  	if c.header_ == nil {
 38101  		c.header_ = make(http.Header)
 38102  	}
 38103  	return c.header_
 38104  }
 38105  
 38106  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 38107  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38108  	if c.ifNoneMatch_ != "" {
 38109  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38110  	}
 38111  	var body io.Reader = nil
 38112  	c.urlParams_.Set("alt", alt)
 38113  	c.urlParams_.Set("prettyPrint", "false")
 38114  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 38115  	urls += "?" + c.urlParams_.Encode()
 38116  	req, err := http.NewRequest("GET", urls, body)
 38117  	if err != nil {
 38118  		return nil, err
 38119  	}
 38120  	req.Header = reqHeaders
 38121  	googleapi.Expand(req.URL, map[string]string{
 38122  		"name": c.name,
 38123  	})
 38124  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38125  }
 38126  
 38127  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call.
 38128  // Any non-2xx status code is an error. Response headers are in either
 38129  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 38130  // response was returned at all) in error.(*googleapi.Error).Header. Use
 38131  // googleapi.IsNotModified to check whether the returned error was because
 38132  // http.StatusNotModified was returned.
 38133  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 38134  	gensupport.SetOptions(c.urlParams_, opts...)
 38135  	res, err := c.doRequest("json")
 38136  	if res != nil && res.StatusCode == http.StatusNotModified {
 38137  		if res.Body != nil {
 38138  			res.Body.Close()
 38139  		}
 38140  		return nil, gensupport.WrapError(&googleapi.Error{
 38141  			Code:   res.StatusCode,
 38142  			Header: res.Header,
 38143  		})
 38144  	}
 38145  	if err != nil {
 38146  		return nil, err
 38147  	}
 38148  	defer googleapi.CloseBody(res)
 38149  	if err := googleapi.CheckResponse(res); err != nil {
 38150  		return nil, gensupport.WrapError(err)
 38151  	}
 38152  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 38153  		ServerResponse: googleapi.ServerResponse{
 38154  			Header:         res.Header,
 38155  			HTTPStatusCode: res.StatusCode,
 38156  		},
 38157  	}
 38158  	target := &ret
 38159  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38160  		return nil, err
 38161  	}
 38162  	return ret, nil
 38163  }
 38164  
 38165  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
 38166  	s            *Service
 38167  	parent       string
 38168  	urlParams_   gensupport.URLParams
 38169  	ifNoneMatch_ string
 38170  	ctx_         context.Context
 38171  	header_      http.Header
 38172  }
 38173  
 38174  // List: Returns the list of all session entity types in the specified session.
 38175  // This method doesn't work with Google Assistant integration. Contact
 38176  // Dialogflow support if you need to use session entities with Google Assistant
 38177  // integration.
 38178  //
 38179  //   - parent: The session to list all session entity types from. Format:
 38180  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 38181  //     sessions/`. If `Environment ID` is not specified, we assume default
 38182  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 38183  //     user.
 38184  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 38185  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38186  	c.parent = parent
 38187  	return c
 38188  }
 38189  
 38190  // PageSize sets the optional parameter "pageSize": The maximum number of items
 38191  // to return in a single page. By default 100 and at most 1000.
 38192  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 38193  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 38194  	return c
 38195  }
 38196  
 38197  // PageToken sets the optional parameter "pageToken": The next_page_token value
 38198  // returned from a previous list request.
 38199  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 38200  	c.urlParams_.Set("pageToken", pageToken)
 38201  	return c
 38202  }
 38203  
 38204  // Fields allows partial responses to be retrieved. See
 38205  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38206  // details.
 38207  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 38208  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38209  	return c
 38210  }
 38211  
 38212  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38213  // object's ETag matches the given value. This is useful for getting updates
 38214  // only after the object has changed since the last request.
 38215  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 38216  	c.ifNoneMatch_ = entityTag
 38217  	return c
 38218  }
 38219  
 38220  // Context sets the context to be used in this call's Do method.
 38221  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 38222  	c.ctx_ = ctx
 38223  	return c
 38224  }
 38225  
 38226  // Header returns a http.Header that can be modified by the caller to add
 38227  // headers to the request.
 38228  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
 38229  	if c.header_ == nil {
 38230  		c.header_ = make(http.Header)
 38231  	}
 38232  	return c.header_
 38233  }
 38234  
 38235  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 38236  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38237  	if c.ifNoneMatch_ != "" {
 38238  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38239  	}
 38240  	var body io.Reader = nil
 38241  	c.urlParams_.Set("alt", alt)
 38242  	c.urlParams_.Set("prettyPrint", "false")
 38243  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 38244  	urls += "?" + c.urlParams_.Encode()
 38245  	req, err := http.NewRequest("GET", urls, body)
 38246  	if err != nil {
 38247  		return nil, err
 38248  	}
 38249  	req.Header = reqHeaders
 38250  	googleapi.Expand(req.URL, map[string]string{
 38251  		"parent": c.parent,
 38252  	})
 38253  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38254  }
 38255  
 38256  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call.
 38257  // Any non-2xx status code is an error. Response headers are in either
 38258  // *GoogleCloudDialogflowV2ListSessionEntityTypesResponse.ServerResponse.Header
 38259  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 38260  // Use googleapi.IsNotModified to check whether the returned error was because
 38261  // http.StatusNotModified was returned.
 38262  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
 38263  	gensupport.SetOptions(c.urlParams_, opts...)
 38264  	res, err := c.doRequest("json")
 38265  	if res != nil && res.StatusCode == http.StatusNotModified {
 38266  		if res.Body != nil {
 38267  			res.Body.Close()
 38268  		}
 38269  		return nil, gensupport.WrapError(&googleapi.Error{
 38270  			Code:   res.StatusCode,
 38271  			Header: res.Header,
 38272  		})
 38273  	}
 38274  	if err != nil {
 38275  		return nil, err
 38276  	}
 38277  	defer googleapi.CloseBody(res)
 38278  	if err := googleapi.CheckResponse(res); err != nil {
 38279  		return nil, gensupport.WrapError(err)
 38280  	}
 38281  	ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
 38282  		ServerResponse: googleapi.ServerResponse{
 38283  			Header:         res.Header,
 38284  			HTTPStatusCode: res.StatusCode,
 38285  		},
 38286  	}
 38287  	target := &ret
 38288  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38289  		return nil, err
 38290  	}
 38291  	return ret, nil
 38292  }
 38293  
 38294  // Pages invokes f for each page of results.
 38295  // A non-nil error returned from f will halt the iteration.
 38296  // The provided context supersedes any context provided to the Context method.
 38297  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
 38298  	c.ctx_ = ctx
 38299  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 38300  	for {
 38301  		x, err := c.Do()
 38302  		if err != nil {
 38303  			return err
 38304  		}
 38305  		if err := f(x); err != nil {
 38306  			return err
 38307  		}
 38308  		if x.NextPageToken == "" {
 38309  			return nil
 38310  		}
 38311  		c.PageToken(x.NextPageToken)
 38312  	}
 38313  }
 38314  
 38315  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
 38316  	s                                        *Service
 38317  	nameid                                   string
 38318  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 38319  	urlParams_                               gensupport.URLParams
 38320  	ctx_                                     context.Context
 38321  	header_                                  http.Header
 38322  }
 38323  
 38324  // Patch: Updates the specified session entity type. This method doesn't work
 38325  // with Google Assistant integration. Contact Dialogflow support if you need to
 38326  // use session entities with Google Assistant integration.
 38327  //
 38328  //   - name: The unique identifier of this session entity type. Format:
 38329  //     `projects//agent/sessions//entityTypes/`, or
 38330  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 38331  //     `Environment ID` is not specified, we assume default 'draft' environment.
 38332  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 38333  //     display name of an existing entity type in the same agent that will be
 38334  //     overridden or supplemented.
 38335  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 38336  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38337  	c.nameid = nameid
 38338  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 38339  	return c
 38340  }
 38341  
 38342  // UpdateMask sets the optional parameter "updateMask": The mask to control
 38343  // which fields get updated.
 38344  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 38345  	c.urlParams_.Set("updateMask", updateMask)
 38346  	return c
 38347  }
 38348  
 38349  // Fields allows partial responses to be retrieved. See
 38350  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38351  // details.
 38352  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 38353  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38354  	return c
 38355  }
 38356  
 38357  // Context sets the context to be used in this call's Do method.
 38358  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 38359  	c.ctx_ = ctx
 38360  	return c
 38361  }
 38362  
 38363  // Header returns a http.Header that can be modified by the caller to add
 38364  // headers to the request.
 38365  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
 38366  	if c.header_ == nil {
 38367  		c.header_ = make(http.Header)
 38368  	}
 38369  	return c.header_
 38370  }
 38371  
 38372  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 38373  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38374  	var body io.Reader = nil
 38375  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 38376  	if err != nil {
 38377  		return nil, err
 38378  	}
 38379  	c.urlParams_.Set("alt", alt)
 38380  	c.urlParams_.Set("prettyPrint", "false")
 38381  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 38382  	urls += "?" + c.urlParams_.Encode()
 38383  	req, err := http.NewRequest("PATCH", urls, body)
 38384  	if err != nil {
 38385  		return nil, err
 38386  	}
 38387  	req.Header = reqHeaders
 38388  	googleapi.Expand(req.URL, map[string]string{
 38389  		"name": c.nameid,
 38390  	})
 38391  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38392  }
 38393  
 38394  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call.
 38395  // Any non-2xx status code is an error. Response headers are in either
 38396  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 38397  // response was returned at all) in error.(*googleapi.Error).Header. Use
 38398  // googleapi.IsNotModified to check whether the returned error was because
 38399  // http.StatusNotModified was returned.
 38400  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 38401  	gensupport.SetOptions(c.urlParams_, opts...)
 38402  	res, err := c.doRequest("json")
 38403  	if res != nil && res.StatusCode == http.StatusNotModified {
 38404  		if res.Body != nil {
 38405  			res.Body.Close()
 38406  		}
 38407  		return nil, gensupport.WrapError(&googleapi.Error{
 38408  			Code:   res.StatusCode,
 38409  			Header: res.Header,
 38410  		})
 38411  	}
 38412  	if err != nil {
 38413  		return nil, err
 38414  	}
 38415  	defer googleapi.CloseBody(res)
 38416  	if err := googleapi.CheckResponse(res); err != nil {
 38417  		return nil, gensupport.WrapError(err)
 38418  	}
 38419  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 38420  		ServerResponse: googleapi.ServerResponse{
 38421  			Header:         res.Header,
 38422  			HTTPStatusCode: res.StatusCode,
 38423  		},
 38424  	}
 38425  	target := &ret
 38426  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38427  		return nil, err
 38428  	}
 38429  	return ret, nil
 38430  }
 38431  
 38432  type ProjectsLocationsAgentIntentsBatchDeleteCall struct {
 38433  	s                                                *Service
 38434  	parent                                           string
 38435  	googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest
 38436  	urlParams_                                       gensupport.URLParams
 38437  	ctx_                                             context.Context
 38438  	header_                                          http.Header
 38439  }
 38440  
 38441  // BatchDelete: Deletes intents in the specified agent. This method is a
 38442  // long-running operation
 38443  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 38444  // The returned `Operation` type has the following method-specific fields: -
 38445  // `metadata`: An empty Struct message
 38446  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 38447  // - `response`: An Empty message
 38448  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 38449  // Note: You should always train an agent prior to sending it queries. See the
 38450  // training documentation
 38451  // (https://cloud.google.com/dialogflow/es/docs/training).
 38452  //
 38453  //   - parent: The name of the agent to delete all entities types for. Format:
 38454  //     `projects//agent`.
 38455  func (r *ProjectsLocationsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) *ProjectsLocationsAgentIntentsBatchDeleteCall {
 38456  	c := &ProjectsLocationsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38457  	c.parent = parent
 38458  	c.googleclouddialogflowv2batchdeleteintentsrequest = googleclouddialogflowv2batchdeleteintentsrequest
 38459  	return c
 38460  }
 38461  
 38462  // Fields allows partial responses to be retrieved. See
 38463  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38464  // details.
 38465  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchDeleteCall {
 38466  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38467  	return c
 38468  }
 38469  
 38470  // Context sets the context to be used in this call's Do method.
 38471  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchDeleteCall {
 38472  	c.ctx_ = ctx
 38473  	return c
 38474  }
 38475  
 38476  // Header returns a http.Header that can be modified by the caller to add
 38477  // headers to the request.
 38478  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header {
 38479  	if c.header_ == nil {
 38480  		c.header_ = make(http.Header)
 38481  	}
 38482  	return c.header_
 38483  }
 38484  
 38485  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 38486  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38487  	var body io.Reader = nil
 38488  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteintentsrequest)
 38489  	if err != nil {
 38490  		return nil, err
 38491  	}
 38492  	c.urlParams_.Set("alt", alt)
 38493  	c.urlParams_.Set("prettyPrint", "false")
 38494  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchDelete")
 38495  	urls += "?" + c.urlParams_.Encode()
 38496  	req, err := http.NewRequest("POST", urls, body)
 38497  	if err != nil {
 38498  		return nil, err
 38499  	}
 38500  	req.Header = reqHeaders
 38501  	googleapi.Expand(req.URL, map[string]string{
 38502  		"parent": c.parent,
 38503  	})
 38504  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38505  }
 38506  
 38507  // Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call.
 38508  // Any non-2xx status code is an error. Response headers are in either
 38509  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 38510  // returned at all) in error.(*googleapi.Error).Header. Use
 38511  // googleapi.IsNotModified to check whether the returned error was because
 38512  // http.StatusNotModified was returned.
 38513  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 38514  	gensupport.SetOptions(c.urlParams_, opts...)
 38515  	res, err := c.doRequest("json")
 38516  	if res != nil && res.StatusCode == http.StatusNotModified {
 38517  		if res.Body != nil {
 38518  			res.Body.Close()
 38519  		}
 38520  		return nil, gensupport.WrapError(&googleapi.Error{
 38521  			Code:   res.StatusCode,
 38522  			Header: res.Header,
 38523  		})
 38524  	}
 38525  	if err != nil {
 38526  		return nil, err
 38527  	}
 38528  	defer googleapi.CloseBody(res)
 38529  	if err := googleapi.CheckResponse(res); err != nil {
 38530  		return nil, gensupport.WrapError(err)
 38531  	}
 38532  	ret := &GoogleLongrunningOperation{
 38533  		ServerResponse: googleapi.ServerResponse{
 38534  			Header:         res.Header,
 38535  			HTTPStatusCode: res.StatusCode,
 38536  		},
 38537  	}
 38538  	target := &ret
 38539  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38540  		return nil, err
 38541  	}
 38542  	return ret, nil
 38543  }
 38544  
 38545  type ProjectsLocationsAgentIntentsBatchUpdateCall struct {
 38546  	s                                                *Service
 38547  	parent                                           string
 38548  	googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest
 38549  	urlParams_                                       gensupport.URLParams
 38550  	ctx_                                             context.Context
 38551  	header_                                          http.Header
 38552  }
 38553  
 38554  // BatchUpdate: Updates/Creates multiple intents in the specified agent. This
 38555  // method is a long-running operation
 38556  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 38557  // The returned `Operation` type has the following method-specific fields: -
 38558  // `metadata`: An empty Struct message
 38559  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 38560  // - `response`: BatchUpdateIntentsResponse Note: You should always train an
 38561  // agent prior to sending it queries. See the training documentation
 38562  // (https://cloud.google.com/dialogflow/es/docs/training).
 38563  //
 38564  //   - parent: The name of the agent to update or create intents in. Format:
 38565  //     `projects//agent`.
 38566  func (r *ProjectsLocationsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) *ProjectsLocationsAgentIntentsBatchUpdateCall {
 38567  	c := &ProjectsLocationsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38568  	c.parent = parent
 38569  	c.googleclouddialogflowv2batchupdateintentsrequest = googleclouddialogflowv2batchupdateintentsrequest
 38570  	return c
 38571  }
 38572  
 38573  // Fields allows partial responses to be retrieved. See
 38574  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38575  // details.
 38576  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchUpdateCall {
 38577  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38578  	return c
 38579  }
 38580  
 38581  // Context sets the context to be used in this call's Do method.
 38582  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchUpdateCall {
 38583  	c.ctx_ = ctx
 38584  	return c
 38585  }
 38586  
 38587  // Header returns a http.Header that can be modified by the caller to add
 38588  // headers to the request.
 38589  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header {
 38590  	if c.header_ == nil {
 38591  		c.header_ = make(http.Header)
 38592  	}
 38593  	return c.header_
 38594  }
 38595  
 38596  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 38597  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38598  	var body io.Reader = nil
 38599  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateintentsrequest)
 38600  	if err != nil {
 38601  		return nil, err
 38602  	}
 38603  	c.urlParams_.Set("alt", alt)
 38604  	c.urlParams_.Set("prettyPrint", "false")
 38605  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchUpdate")
 38606  	urls += "?" + c.urlParams_.Encode()
 38607  	req, err := http.NewRequest("POST", urls, body)
 38608  	if err != nil {
 38609  		return nil, err
 38610  	}
 38611  	req.Header = reqHeaders
 38612  	googleapi.Expand(req.URL, map[string]string{
 38613  		"parent": c.parent,
 38614  	})
 38615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38616  }
 38617  
 38618  // Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call.
 38619  // Any non-2xx status code is an error. Response headers are in either
 38620  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 38621  // returned at all) in error.(*googleapi.Error).Header. Use
 38622  // googleapi.IsNotModified to check whether the returned error was because
 38623  // http.StatusNotModified was returned.
 38624  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 38625  	gensupport.SetOptions(c.urlParams_, opts...)
 38626  	res, err := c.doRequest("json")
 38627  	if res != nil && res.StatusCode == http.StatusNotModified {
 38628  		if res.Body != nil {
 38629  			res.Body.Close()
 38630  		}
 38631  		return nil, gensupport.WrapError(&googleapi.Error{
 38632  			Code:   res.StatusCode,
 38633  			Header: res.Header,
 38634  		})
 38635  	}
 38636  	if err != nil {
 38637  		return nil, err
 38638  	}
 38639  	defer googleapi.CloseBody(res)
 38640  	if err := googleapi.CheckResponse(res); err != nil {
 38641  		return nil, gensupport.WrapError(err)
 38642  	}
 38643  	ret := &GoogleLongrunningOperation{
 38644  		ServerResponse: googleapi.ServerResponse{
 38645  			Header:         res.Header,
 38646  			HTTPStatusCode: res.StatusCode,
 38647  		},
 38648  	}
 38649  	target := &ret
 38650  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38651  		return nil, err
 38652  	}
 38653  	return ret, nil
 38654  }
 38655  
 38656  type ProjectsLocationsAgentIntentsCreateCall struct {
 38657  	s                             *Service
 38658  	parent                        string
 38659  	googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
 38660  	urlParams_                    gensupport.URLParams
 38661  	ctx_                          context.Context
 38662  	header_                       http.Header
 38663  }
 38664  
 38665  // Create: Creates an intent in the specified agent. Note: You should always
 38666  // train an agent prior to sending it queries. See the training documentation
 38667  // (https://cloud.google.com/dialogflow/es/docs/training).
 38668  //
 38669  // - parent: The agent to create a intent for. Format: `projects//agent`.
 38670  func (r *ProjectsLocationsAgentIntentsService) Create(parent string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsLocationsAgentIntentsCreateCall {
 38671  	c := &ProjectsLocationsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38672  	c.parent = parent
 38673  	c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
 38674  	return c
 38675  }
 38676  
 38677  // IntentView sets the optional parameter "intentView": The resource view to
 38678  // apply to the returned intent.
 38679  //
 38680  // Possible values:
 38681  //
 38682  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 38683  //
 38684  // response.
 38685  //
 38686  //	"INTENT_VIEW_FULL" - All fields are populated.
 38687  func (c *ProjectsLocationsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsCreateCall {
 38688  	c.urlParams_.Set("intentView", intentView)
 38689  	return c
 38690  }
 38691  
 38692  // LanguageCode sets the optional parameter "languageCode": The language used
 38693  // to access language-specific data. If not specified, the agent's default
 38694  // language is used. For more information, see Multilingual intent and entity
 38695  // data
 38696  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 38697  func (c *ProjectsLocationsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsCreateCall {
 38698  	c.urlParams_.Set("languageCode", languageCode)
 38699  	return c
 38700  }
 38701  
 38702  // Fields allows partial responses to be retrieved. See
 38703  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38704  // details.
 38705  func (c *ProjectsLocationsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsCreateCall {
 38706  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38707  	return c
 38708  }
 38709  
 38710  // Context sets the context to be used in this call's Do method.
 38711  func (c *ProjectsLocationsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsCreateCall {
 38712  	c.ctx_ = ctx
 38713  	return c
 38714  }
 38715  
 38716  // Header returns a http.Header that can be modified by the caller to add
 38717  // headers to the request.
 38718  func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header {
 38719  	if c.header_ == nil {
 38720  		c.header_ = make(http.Header)
 38721  	}
 38722  	return c.header_
 38723  }
 38724  
 38725  func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
 38726  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38727  	var body io.Reader = nil
 38728  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
 38729  	if err != nil {
 38730  		return nil, err
 38731  	}
 38732  	c.urlParams_.Set("alt", alt)
 38733  	c.urlParams_.Set("prettyPrint", "false")
 38734  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
 38735  	urls += "?" + c.urlParams_.Encode()
 38736  	req, err := http.NewRequest("POST", urls, body)
 38737  	if err != nil {
 38738  		return nil, err
 38739  	}
 38740  	req.Header = reqHeaders
 38741  	googleapi.Expand(req.URL, map[string]string{
 38742  		"parent": c.parent,
 38743  	})
 38744  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38745  }
 38746  
 38747  // Do executes the "dialogflow.projects.locations.agent.intents.create" call.
 38748  // Any non-2xx status code is an error. Response headers are in either
 38749  // *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was
 38750  // returned at all) in error.(*googleapi.Error).Header. Use
 38751  // googleapi.IsNotModified to check whether the returned error was because
 38752  // http.StatusNotModified was returned.
 38753  func (c *ProjectsLocationsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
 38754  	gensupport.SetOptions(c.urlParams_, opts...)
 38755  	res, err := c.doRequest("json")
 38756  	if res != nil && res.StatusCode == http.StatusNotModified {
 38757  		if res.Body != nil {
 38758  			res.Body.Close()
 38759  		}
 38760  		return nil, gensupport.WrapError(&googleapi.Error{
 38761  			Code:   res.StatusCode,
 38762  			Header: res.Header,
 38763  		})
 38764  	}
 38765  	if err != nil {
 38766  		return nil, err
 38767  	}
 38768  	defer googleapi.CloseBody(res)
 38769  	if err := googleapi.CheckResponse(res); err != nil {
 38770  		return nil, gensupport.WrapError(err)
 38771  	}
 38772  	ret := &GoogleCloudDialogflowV2Intent{
 38773  		ServerResponse: googleapi.ServerResponse{
 38774  			Header:         res.Header,
 38775  			HTTPStatusCode: res.StatusCode,
 38776  		},
 38777  	}
 38778  	target := &ret
 38779  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38780  		return nil, err
 38781  	}
 38782  	return ret, nil
 38783  }
 38784  
 38785  type ProjectsLocationsAgentIntentsDeleteCall struct {
 38786  	s          *Service
 38787  	name       string
 38788  	urlParams_ gensupport.URLParams
 38789  	ctx_       context.Context
 38790  	header_    http.Header
 38791  }
 38792  
 38793  // Delete: Deletes the specified intent and its direct or indirect followup
 38794  // intents. Note: You should always train an agent prior to sending it queries.
 38795  // See the training documentation
 38796  // (https://cloud.google.com/dialogflow/es/docs/training).
 38797  //
 38798  //   - name: The name of the intent to delete. If this intent has direct or
 38799  //     indirect followup intents, we also delete them. Format:
 38800  //     `projects//agent/intents/`.
 38801  func (r *ProjectsLocationsAgentIntentsService) Delete(name string) *ProjectsLocationsAgentIntentsDeleteCall {
 38802  	c := &ProjectsLocationsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38803  	c.name = name
 38804  	return c
 38805  }
 38806  
 38807  // Fields allows partial responses to be retrieved. See
 38808  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38809  // details.
 38810  func (c *ProjectsLocationsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsDeleteCall {
 38811  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38812  	return c
 38813  }
 38814  
 38815  // Context sets the context to be used in this call's Do method.
 38816  func (c *ProjectsLocationsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsDeleteCall {
 38817  	c.ctx_ = ctx
 38818  	return c
 38819  }
 38820  
 38821  // Header returns a http.Header that can be modified by the caller to add
 38822  // headers to the request.
 38823  func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header {
 38824  	if c.header_ == nil {
 38825  		c.header_ = make(http.Header)
 38826  	}
 38827  	return c.header_
 38828  }
 38829  
 38830  func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 38831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38832  	var body io.Reader = nil
 38833  	c.urlParams_.Set("alt", alt)
 38834  	c.urlParams_.Set("prettyPrint", "false")
 38835  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 38836  	urls += "?" + c.urlParams_.Encode()
 38837  	req, err := http.NewRequest("DELETE", urls, body)
 38838  	if err != nil {
 38839  		return nil, err
 38840  	}
 38841  	req.Header = reqHeaders
 38842  	googleapi.Expand(req.URL, map[string]string{
 38843  		"name": c.name,
 38844  	})
 38845  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38846  }
 38847  
 38848  // Do executes the "dialogflow.projects.locations.agent.intents.delete" call.
 38849  // Any non-2xx status code is an error. Response headers are in either
 38850  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 38851  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 38852  // check whether the returned error was because http.StatusNotModified was
 38853  // returned.
 38854  func (c *ProjectsLocationsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 38855  	gensupport.SetOptions(c.urlParams_, opts...)
 38856  	res, err := c.doRequest("json")
 38857  	if res != nil && res.StatusCode == http.StatusNotModified {
 38858  		if res.Body != nil {
 38859  			res.Body.Close()
 38860  		}
 38861  		return nil, gensupport.WrapError(&googleapi.Error{
 38862  			Code:   res.StatusCode,
 38863  			Header: res.Header,
 38864  		})
 38865  	}
 38866  	if err != nil {
 38867  		return nil, err
 38868  	}
 38869  	defer googleapi.CloseBody(res)
 38870  	if err := googleapi.CheckResponse(res); err != nil {
 38871  		return nil, gensupport.WrapError(err)
 38872  	}
 38873  	ret := &GoogleProtobufEmpty{
 38874  		ServerResponse: googleapi.ServerResponse{
 38875  			Header:         res.Header,
 38876  			HTTPStatusCode: res.StatusCode,
 38877  		},
 38878  	}
 38879  	target := &ret
 38880  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38881  		return nil, err
 38882  	}
 38883  	return ret, nil
 38884  }
 38885  
 38886  type ProjectsLocationsAgentIntentsGetCall struct {
 38887  	s            *Service
 38888  	name         string
 38889  	urlParams_   gensupport.URLParams
 38890  	ifNoneMatch_ string
 38891  	ctx_         context.Context
 38892  	header_      http.Header
 38893  }
 38894  
 38895  // Get: Retrieves the specified intent.
 38896  //
 38897  // - name: The name of the intent. Format: `projects//agent/intents/`.
 38898  func (r *ProjectsLocationsAgentIntentsService) Get(name string) *ProjectsLocationsAgentIntentsGetCall {
 38899  	c := &ProjectsLocationsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38900  	c.name = name
 38901  	return c
 38902  }
 38903  
 38904  // IntentView sets the optional parameter "intentView": The resource view to
 38905  // apply to the returned intent.
 38906  //
 38907  // Possible values:
 38908  //
 38909  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 38910  //
 38911  // response.
 38912  //
 38913  //	"INTENT_VIEW_FULL" - All fields are populated.
 38914  func (c *ProjectsLocationsAgentIntentsGetCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsGetCall {
 38915  	c.urlParams_.Set("intentView", intentView)
 38916  	return c
 38917  }
 38918  
 38919  // LanguageCode sets the optional parameter "languageCode": The language used
 38920  // to access language-specific data. If not specified, the agent's default
 38921  // language is used. For more information, see Multilingual intent and entity
 38922  // data
 38923  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 38924  func (c *ProjectsLocationsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsGetCall {
 38925  	c.urlParams_.Set("languageCode", languageCode)
 38926  	return c
 38927  }
 38928  
 38929  // Fields allows partial responses to be retrieved. See
 38930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38931  // details.
 38932  func (c *ProjectsLocationsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsGetCall {
 38933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38934  	return c
 38935  }
 38936  
 38937  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38938  // object's ETag matches the given value. This is useful for getting updates
 38939  // only after the object has changed since the last request.
 38940  func (c *ProjectsLocationsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsGetCall {
 38941  	c.ifNoneMatch_ = entityTag
 38942  	return c
 38943  }
 38944  
 38945  // Context sets the context to be used in this call's Do method.
 38946  func (c *ProjectsLocationsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsGetCall {
 38947  	c.ctx_ = ctx
 38948  	return c
 38949  }
 38950  
 38951  // Header returns a http.Header that can be modified by the caller to add
 38952  // headers to the request.
 38953  func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header {
 38954  	if c.header_ == nil {
 38955  		c.header_ = make(http.Header)
 38956  	}
 38957  	return c.header_
 38958  }
 38959  
 38960  func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
 38961  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38962  	if c.ifNoneMatch_ != "" {
 38963  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38964  	}
 38965  	var body io.Reader = nil
 38966  	c.urlParams_.Set("alt", alt)
 38967  	c.urlParams_.Set("prettyPrint", "false")
 38968  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 38969  	urls += "?" + c.urlParams_.Encode()
 38970  	req, err := http.NewRequest("GET", urls, body)
 38971  	if err != nil {
 38972  		return nil, err
 38973  	}
 38974  	req.Header = reqHeaders
 38975  	googleapi.Expand(req.URL, map[string]string{
 38976  		"name": c.name,
 38977  	})
 38978  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38979  }
 38980  
 38981  // Do executes the "dialogflow.projects.locations.agent.intents.get" call.
 38982  // Any non-2xx status code is an error. Response headers are in either
 38983  // *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was
 38984  // returned at all) in error.(*googleapi.Error).Header. Use
 38985  // googleapi.IsNotModified to check whether the returned error was because
 38986  // http.StatusNotModified was returned.
 38987  func (c *ProjectsLocationsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
 38988  	gensupport.SetOptions(c.urlParams_, opts...)
 38989  	res, err := c.doRequest("json")
 38990  	if res != nil && res.StatusCode == http.StatusNotModified {
 38991  		if res.Body != nil {
 38992  			res.Body.Close()
 38993  		}
 38994  		return nil, gensupport.WrapError(&googleapi.Error{
 38995  			Code:   res.StatusCode,
 38996  			Header: res.Header,
 38997  		})
 38998  	}
 38999  	if err != nil {
 39000  		return nil, err
 39001  	}
 39002  	defer googleapi.CloseBody(res)
 39003  	if err := googleapi.CheckResponse(res); err != nil {
 39004  		return nil, gensupport.WrapError(err)
 39005  	}
 39006  	ret := &GoogleCloudDialogflowV2Intent{
 39007  		ServerResponse: googleapi.ServerResponse{
 39008  			Header:         res.Header,
 39009  			HTTPStatusCode: res.StatusCode,
 39010  		},
 39011  	}
 39012  	target := &ret
 39013  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39014  		return nil, err
 39015  	}
 39016  	return ret, nil
 39017  }
 39018  
 39019  type ProjectsLocationsAgentIntentsListCall struct {
 39020  	s            *Service
 39021  	parent       string
 39022  	urlParams_   gensupport.URLParams
 39023  	ifNoneMatch_ string
 39024  	ctx_         context.Context
 39025  	header_      http.Header
 39026  }
 39027  
 39028  // List: Returns the list of all intents in the specified agent.
 39029  //
 39030  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 39031  //     `projects//locations//agent`. Alternatively, you can specify the
 39032  //     environment to list intents for. Format: `projects//agent/environments/`
 39033  //     or `projects//locations//agent/environments/`. Note: training phrases of
 39034  //     the intents will not be returned for non-draft environment.
 39035  func (r *ProjectsLocationsAgentIntentsService) List(parent string) *ProjectsLocationsAgentIntentsListCall {
 39036  	c := &ProjectsLocationsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39037  	c.parent = parent
 39038  	return c
 39039  }
 39040  
 39041  // IntentView sets the optional parameter "intentView": The resource view to
 39042  // apply to the returned intent.
 39043  //
 39044  // Possible values:
 39045  //
 39046  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 39047  //
 39048  // response.
 39049  //
 39050  //	"INTENT_VIEW_FULL" - All fields are populated.
 39051  func (c *ProjectsLocationsAgentIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsListCall {
 39052  	c.urlParams_.Set("intentView", intentView)
 39053  	return c
 39054  }
 39055  
 39056  // LanguageCode sets the optional parameter "languageCode": The language used
 39057  // to access language-specific data. If not specified, the agent's default
 39058  // language is used. For more information, see Multilingual intent and entity
 39059  // data
 39060  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 39061  func (c *ProjectsLocationsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsListCall {
 39062  	c.urlParams_.Set("languageCode", languageCode)
 39063  	return c
 39064  }
 39065  
 39066  // PageSize sets the optional parameter "pageSize": The maximum number of items
 39067  // to return in a single page. By default 100 and at most 1000.
 39068  func (c *ProjectsLocationsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentIntentsListCall {
 39069  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 39070  	return c
 39071  }
 39072  
 39073  // PageToken sets the optional parameter "pageToken": The next_page_token value
 39074  // returned from a previous list request.
 39075  func (c *ProjectsLocationsAgentIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentIntentsListCall {
 39076  	c.urlParams_.Set("pageToken", pageToken)
 39077  	return c
 39078  }
 39079  
 39080  // Fields allows partial responses to be retrieved. See
 39081  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39082  // details.
 39083  func (c *ProjectsLocationsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsListCall {
 39084  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39085  	return c
 39086  }
 39087  
 39088  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39089  // object's ETag matches the given value. This is useful for getting updates
 39090  // only after the object has changed since the last request.
 39091  func (c *ProjectsLocationsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsListCall {
 39092  	c.ifNoneMatch_ = entityTag
 39093  	return c
 39094  }
 39095  
 39096  // Context sets the context to be used in this call's Do method.
 39097  func (c *ProjectsLocationsAgentIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsListCall {
 39098  	c.ctx_ = ctx
 39099  	return c
 39100  }
 39101  
 39102  // Header returns a http.Header that can be modified by the caller to add
 39103  // headers to the request.
 39104  func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header {
 39105  	if c.header_ == nil {
 39106  		c.header_ = make(http.Header)
 39107  	}
 39108  	return c.header_
 39109  }
 39110  
 39111  func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
 39112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39113  	if c.ifNoneMatch_ != "" {
 39114  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39115  	}
 39116  	var body io.Reader = nil
 39117  	c.urlParams_.Set("alt", alt)
 39118  	c.urlParams_.Set("prettyPrint", "false")
 39119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
 39120  	urls += "?" + c.urlParams_.Encode()
 39121  	req, err := http.NewRequest("GET", urls, body)
 39122  	if err != nil {
 39123  		return nil, err
 39124  	}
 39125  	req.Header = reqHeaders
 39126  	googleapi.Expand(req.URL, map[string]string{
 39127  		"parent": c.parent,
 39128  	})
 39129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39130  }
 39131  
 39132  // Do executes the "dialogflow.projects.locations.agent.intents.list" call.
 39133  // Any non-2xx status code is an error. Response headers are in either
 39134  // *GoogleCloudDialogflowV2ListIntentsResponse.ServerResponse.Header or (if a
 39135  // response was returned at all) in error.(*googleapi.Error).Header. Use
 39136  // googleapi.IsNotModified to check whether the returned error was because
 39137  // http.StatusNotModified was returned.
 39138  func (c *ProjectsLocationsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
 39139  	gensupport.SetOptions(c.urlParams_, opts...)
 39140  	res, err := c.doRequest("json")
 39141  	if res != nil && res.StatusCode == http.StatusNotModified {
 39142  		if res.Body != nil {
 39143  			res.Body.Close()
 39144  		}
 39145  		return nil, gensupport.WrapError(&googleapi.Error{
 39146  			Code:   res.StatusCode,
 39147  			Header: res.Header,
 39148  		})
 39149  	}
 39150  	if err != nil {
 39151  		return nil, err
 39152  	}
 39153  	defer googleapi.CloseBody(res)
 39154  	if err := googleapi.CheckResponse(res); err != nil {
 39155  		return nil, gensupport.WrapError(err)
 39156  	}
 39157  	ret := &GoogleCloudDialogflowV2ListIntentsResponse{
 39158  		ServerResponse: googleapi.ServerResponse{
 39159  			Header:         res.Header,
 39160  			HTTPStatusCode: res.StatusCode,
 39161  		},
 39162  	}
 39163  	target := &ret
 39164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39165  		return nil, err
 39166  	}
 39167  	return ret, nil
 39168  }
 39169  
 39170  // Pages invokes f for each page of results.
 39171  // A non-nil error returned from f will halt the iteration.
 39172  // The provided context supersedes any context provided to the Context method.
 39173  func (c *ProjectsLocationsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
 39174  	c.ctx_ = ctx
 39175  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 39176  	for {
 39177  		x, err := c.Do()
 39178  		if err != nil {
 39179  			return err
 39180  		}
 39181  		if err := f(x); err != nil {
 39182  			return err
 39183  		}
 39184  		if x.NextPageToken == "" {
 39185  			return nil
 39186  		}
 39187  		c.PageToken(x.NextPageToken)
 39188  	}
 39189  }
 39190  
 39191  type ProjectsLocationsAgentIntentsPatchCall struct {
 39192  	s                             *Service
 39193  	nameid                        string
 39194  	googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
 39195  	urlParams_                    gensupport.URLParams
 39196  	ctx_                          context.Context
 39197  	header_                       http.Header
 39198  }
 39199  
 39200  // Patch: Updates the specified intent. Note: You should always train an agent
 39201  // prior to sending it queries. See the training documentation
 39202  // (https://cloud.google.com/dialogflow/es/docs/training).
 39203  //
 39204  //   - name: Optional. The unique identifier of this intent. Required for
 39205  //     Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
 39206  //     `projects//agent/intents/`.
 39207  func (r *ProjectsLocationsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsLocationsAgentIntentsPatchCall {
 39208  	c := &ProjectsLocationsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39209  	c.nameid = nameid
 39210  	c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
 39211  	return c
 39212  }
 39213  
 39214  // IntentView sets the optional parameter "intentView": The resource view to
 39215  // apply to the returned intent.
 39216  //
 39217  // Possible values:
 39218  //
 39219  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 39220  //
 39221  // response.
 39222  //
 39223  //	"INTENT_VIEW_FULL" - All fields are populated.
 39224  func (c *ProjectsLocationsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsPatchCall {
 39225  	c.urlParams_.Set("intentView", intentView)
 39226  	return c
 39227  }
 39228  
 39229  // LanguageCode sets the optional parameter "languageCode": The language used
 39230  // to access language-specific data. If not specified, the agent's default
 39231  // language is used. For more information, see Multilingual intent and entity
 39232  // data
 39233  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 39234  func (c *ProjectsLocationsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsPatchCall {
 39235  	c.urlParams_.Set("languageCode", languageCode)
 39236  	return c
 39237  }
 39238  
 39239  // UpdateMask sets the optional parameter "updateMask": The mask to control
 39240  // which fields get updated.
 39241  func (c *ProjectsLocationsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentIntentsPatchCall {
 39242  	c.urlParams_.Set("updateMask", updateMask)
 39243  	return c
 39244  }
 39245  
 39246  // Fields allows partial responses to be retrieved. See
 39247  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39248  // details.
 39249  func (c *ProjectsLocationsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsPatchCall {
 39250  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39251  	return c
 39252  }
 39253  
 39254  // Context sets the context to be used in this call's Do method.
 39255  func (c *ProjectsLocationsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsPatchCall {
 39256  	c.ctx_ = ctx
 39257  	return c
 39258  }
 39259  
 39260  // Header returns a http.Header that can be modified by the caller to add
 39261  // headers to the request.
 39262  func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header {
 39263  	if c.header_ == nil {
 39264  		c.header_ = make(http.Header)
 39265  	}
 39266  	return c.header_
 39267  }
 39268  
 39269  func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
 39270  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39271  	var body io.Reader = nil
 39272  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
 39273  	if err != nil {
 39274  		return nil, err
 39275  	}
 39276  	c.urlParams_.Set("alt", alt)
 39277  	c.urlParams_.Set("prettyPrint", "false")
 39278  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 39279  	urls += "?" + c.urlParams_.Encode()
 39280  	req, err := http.NewRequest("PATCH", urls, body)
 39281  	if err != nil {
 39282  		return nil, err
 39283  	}
 39284  	req.Header = reqHeaders
 39285  	googleapi.Expand(req.URL, map[string]string{
 39286  		"name": c.nameid,
 39287  	})
 39288  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39289  }
 39290  
 39291  // Do executes the "dialogflow.projects.locations.agent.intents.patch" call.
 39292  // Any non-2xx status code is an error. Response headers are in either
 39293  // *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was
 39294  // returned at all) in error.(*googleapi.Error).Header. Use
 39295  // googleapi.IsNotModified to check whether the returned error was because
 39296  // http.StatusNotModified was returned.
 39297  func (c *ProjectsLocationsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
 39298  	gensupport.SetOptions(c.urlParams_, opts...)
 39299  	res, err := c.doRequest("json")
 39300  	if res != nil && res.StatusCode == http.StatusNotModified {
 39301  		if res.Body != nil {
 39302  			res.Body.Close()
 39303  		}
 39304  		return nil, gensupport.WrapError(&googleapi.Error{
 39305  			Code:   res.StatusCode,
 39306  			Header: res.Header,
 39307  		})
 39308  	}
 39309  	if err != nil {
 39310  		return nil, err
 39311  	}
 39312  	defer googleapi.CloseBody(res)
 39313  	if err := googleapi.CheckResponse(res); err != nil {
 39314  		return nil, gensupport.WrapError(err)
 39315  	}
 39316  	ret := &GoogleCloudDialogflowV2Intent{
 39317  		ServerResponse: googleapi.ServerResponse{
 39318  			Header:         res.Header,
 39319  			HTTPStatusCode: res.StatusCode,
 39320  		},
 39321  	}
 39322  	target := &ret
 39323  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39324  		return nil, err
 39325  	}
 39326  	return ret, nil
 39327  }
 39328  
 39329  type ProjectsLocationsAgentSessionsDeleteContextsCall struct {
 39330  	s          *Service
 39331  	parent     string
 39332  	urlParams_ gensupport.URLParams
 39333  	ctx_       context.Context
 39334  	header_    http.Header
 39335  }
 39336  
 39337  // DeleteContexts: Deletes all active contexts in the specified session.
 39338  //
 39339  //   - parent: The name of the session to delete all contexts from. Format:
 39340  //     `projects//agent/sessions/` or
 39341  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 39342  //     not specified we assume default 'draft' environment. If `User ID` is not
 39343  //     specified, we assume default '-' user.
 39344  func (r *ProjectsLocationsAgentSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentSessionsDeleteContextsCall {
 39345  	c := &ProjectsLocationsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39346  	c.parent = parent
 39347  	return c
 39348  }
 39349  
 39350  // Fields allows partial responses to be retrieved. See
 39351  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39352  // details.
 39353  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDeleteContextsCall {
 39354  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39355  	return c
 39356  }
 39357  
 39358  // Context sets the context to be used in this call's Do method.
 39359  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDeleteContextsCall {
 39360  	c.ctx_ = ctx
 39361  	return c
 39362  }
 39363  
 39364  // Header returns a http.Header that can be modified by the caller to add
 39365  // headers to the request.
 39366  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header {
 39367  	if c.header_ == nil {
 39368  		c.header_ = make(http.Header)
 39369  	}
 39370  	return c.header_
 39371  }
 39372  
 39373  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 39374  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39375  	var body io.Reader = nil
 39376  	c.urlParams_.Set("alt", alt)
 39377  	c.urlParams_.Set("prettyPrint", "false")
 39378  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 39379  	urls += "?" + c.urlParams_.Encode()
 39380  	req, err := http.NewRequest("DELETE", urls, body)
 39381  	if err != nil {
 39382  		return nil, err
 39383  	}
 39384  	req.Header = reqHeaders
 39385  	googleapi.Expand(req.URL, map[string]string{
 39386  		"parent": c.parent,
 39387  	})
 39388  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39389  }
 39390  
 39391  // Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call.
 39392  // Any non-2xx status code is an error. Response headers are in either
 39393  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 39394  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 39395  // check whether the returned error was because http.StatusNotModified was
 39396  // returned.
 39397  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 39398  	gensupport.SetOptions(c.urlParams_, opts...)
 39399  	res, err := c.doRequest("json")
 39400  	if res != nil && res.StatusCode == http.StatusNotModified {
 39401  		if res.Body != nil {
 39402  			res.Body.Close()
 39403  		}
 39404  		return nil, gensupport.WrapError(&googleapi.Error{
 39405  			Code:   res.StatusCode,
 39406  			Header: res.Header,
 39407  		})
 39408  	}
 39409  	if err != nil {
 39410  		return nil, err
 39411  	}
 39412  	defer googleapi.CloseBody(res)
 39413  	if err := googleapi.CheckResponse(res); err != nil {
 39414  		return nil, gensupport.WrapError(err)
 39415  	}
 39416  	ret := &GoogleProtobufEmpty{
 39417  		ServerResponse: googleapi.ServerResponse{
 39418  			Header:         res.Header,
 39419  			HTTPStatusCode: res.StatusCode,
 39420  		},
 39421  	}
 39422  	target := &ret
 39423  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39424  		return nil, err
 39425  	}
 39426  	return ret, nil
 39427  }
 39428  
 39429  type ProjectsLocationsAgentSessionsDetectIntentCall struct {
 39430  	s                                          *Service
 39431  	sessionid                                  string
 39432  	googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
 39433  	urlParams_                                 gensupport.URLParams
 39434  	ctx_                                       context.Context
 39435  	header_                                    http.Header
 39436  }
 39437  
 39438  // DetectIntent: Processes a natural language query and returns structured,
 39439  // actionable data as a result. This method is not idempotent, because it may
 39440  // cause contexts and session entity types to be updated, which in turn might
 39441  // affect results of future queries. If you might use Agent Assist
 39442  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 39443  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 39444  // `AnalyzeContent` has additional functionality for Agent Assist and other
 39445  // CCAI products. Note: Always use agent versions for production traffic. See
 39446  // Versions and environments
 39447  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 39448  //
 39449  //   - session: The name of the session this query is sent to. Format:
 39450  //     `projects//agent/sessions/`, or
 39451  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 39452  //     not specified, we assume default 'draft' environment (`Environment ID`
 39453  //     might be referred to as environment name at some places). If `User ID` is
 39454  //     not specified, we are using "-". It's up to the API caller to choose an
 39455  //     appropriate `Session ID` and `User Id`. They can be a random number or
 39456  //     some type of user and session identifiers (preferably hashed). The length
 39457  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 39458  //     information, see the API interactions guide
 39459  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 39460  //     agent versions for production traffic. See Versions and environments
 39461  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 39462  func (r *ProjectsLocationsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsLocationsAgentSessionsDetectIntentCall {
 39463  	c := &ProjectsLocationsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39464  	c.sessionid = sessionid
 39465  	c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
 39466  	return c
 39467  }
 39468  
 39469  // Fields allows partial responses to be retrieved. See
 39470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39471  // details.
 39472  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDetectIntentCall {
 39473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39474  	return c
 39475  }
 39476  
 39477  // Context sets the context to be used in this call's Do method.
 39478  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDetectIntentCall {
 39479  	c.ctx_ = ctx
 39480  	return c
 39481  }
 39482  
 39483  // Header returns a http.Header that can be modified by the caller to add
 39484  // headers to the request.
 39485  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header {
 39486  	if c.header_ == nil {
 39487  		c.header_ = make(http.Header)
 39488  	}
 39489  	return c.header_
 39490  }
 39491  
 39492  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 39493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39494  	var body io.Reader = nil
 39495  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
 39496  	if err != nil {
 39497  		return nil, err
 39498  	}
 39499  	c.urlParams_.Set("alt", alt)
 39500  	c.urlParams_.Set("prettyPrint", "false")
 39501  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
 39502  	urls += "?" + c.urlParams_.Encode()
 39503  	req, err := http.NewRequest("POST", urls, body)
 39504  	if err != nil {
 39505  		return nil, err
 39506  	}
 39507  	req.Header = reqHeaders
 39508  	googleapi.Expand(req.URL, map[string]string{
 39509  		"session": c.sessionid,
 39510  	})
 39511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39512  }
 39513  
 39514  // Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call.
 39515  // Any non-2xx status code is an error. Response headers are in either
 39516  // *GoogleCloudDialogflowV2DetectIntentResponse.ServerResponse.Header or (if a
 39517  // response was returned at all) in error.(*googleapi.Error).Header. Use
 39518  // googleapi.IsNotModified to check whether the returned error was because
 39519  // http.StatusNotModified was returned.
 39520  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
 39521  	gensupport.SetOptions(c.urlParams_, opts...)
 39522  	res, err := c.doRequest("json")
 39523  	if res != nil && res.StatusCode == http.StatusNotModified {
 39524  		if res.Body != nil {
 39525  			res.Body.Close()
 39526  		}
 39527  		return nil, gensupport.WrapError(&googleapi.Error{
 39528  			Code:   res.StatusCode,
 39529  			Header: res.Header,
 39530  		})
 39531  	}
 39532  	if err != nil {
 39533  		return nil, err
 39534  	}
 39535  	defer googleapi.CloseBody(res)
 39536  	if err := googleapi.CheckResponse(res); err != nil {
 39537  		return nil, gensupport.WrapError(err)
 39538  	}
 39539  	ret := &GoogleCloudDialogflowV2DetectIntentResponse{
 39540  		ServerResponse: googleapi.ServerResponse{
 39541  			Header:         res.Header,
 39542  			HTTPStatusCode: res.StatusCode,
 39543  		},
 39544  	}
 39545  	target := &ret
 39546  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39547  		return nil, err
 39548  	}
 39549  	return ret, nil
 39550  }
 39551  
 39552  type ProjectsLocationsAgentSessionsContextsCreateCall struct {
 39553  	s                              *Service
 39554  	parent                         string
 39555  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 39556  	urlParams_                     gensupport.URLParams
 39557  	ctx_                           context.Context
 39558  	header_                        http.Header
 39559  }
 39560  
 39561  // Create: Creates a context. If the specified context already exists,
 39562  // overrides the context.
 39563  //
 39564  //   - parent: The session to create a context for. Format:
 39565  //     `projects//agent/sessions/` or
 39566  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 39567  //     not specified, we assume default 'draft' environment. If `User ID` is not
 39568  //     specified, we assume default '-' user.
 39569  func (r *ProjectsLocationsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
 39570  	c := &ProjectsLocationsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39571  	c.parent = parent
 39572  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 39573  	return c
 39574  }
 39575  
 39576  // Fields allows partial responses to be retrieved. See
 39577  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39578  // details.
 39579  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsCreateCall {
 39580  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39581  	return c
 39582  }
 39583  
 39584  // Context sets the context to be used in this call's Do method.
 39585  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
 39586  	c.ctx_ = ctx
 39587  	return c
 39588  }
 39589  
 39590  // Header returns a http.Header that can be modified by the caller to add
 39591  // headers to the request.
 39592  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header {
 39593  	if c.header_ == nil {
 39594  		c.header_ = make(http.Header)
 39595  	}
 39596  	return c.header_
 39597  }
 39598  
 39599  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 39600  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39601  	var body io.Reader = nil
 39602  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 39603  	if err != nil {
 39604  		return nil, err
 39605  	}
 39606  	c.urlParams_.Set("alt", alt)
 39607  	c.urlParams_.Set("prettyPrint", "false")
 39608  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 39609  	urls += "?" + c.urlParams_.Encode()
 39610  	req, err := http.NewRequest("POST", urls, body)
 39611  	if err != nil {
 39612  		return nil, err
 39613  	}
 39614  	req.Header = reqHeaders
 39615  	googleapi.Expand(req.URL, map[string]string{
 39616  		"parent": c.parent,
 39617  	})
 39618  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39619  }
 39620  
 39621  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call.
 39622  // Any non-2xx status code is an error. Response headers are in either
 39623  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 39624  // returned at all) in error.(*googleapi.Error).Header. Use
 39625  // googleapi.IsNotModified to check whether the returned error was because
 39626  // http.StatusNotModified was returned.
 39627  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 39628  	gensupport.SetOptions(c.urlParams_, opts...)
 39629  	res, err := c.doRequest("json")
 39630  	if res != nil && res.StatusCode == http.StatusNotModified {
 39631  		if res.Body != nil {
 39632  			res.Body.Close()
 39633  		}
 39634  		return nil, gensupport.WrapError(&googleapi.Error{
 39635  			Code:   res.StatusCode,
 39636  			Header: res.Header,
 39637  		})
 39638  	}
 39639  	if err != nil {
 39640  		return nil, err
 39641  	}
 39642  	defer googleapi.CloseBody(res)
 39643  	if err := googleapi.CheckResponse(res); err != nil {
 39644  		return nil, gensupport.WrapError(err)
 39645  	}
 39646  	ret := &GoogleCloudDialogflowV2Context{
 39647  		ServerResponse: googleapi.ServerResponse{
 39648  			Header:         res.Header,
 39649  			HTTPStatusCode: res.StatusCode,
 39650  		},
 39651  	}
 39652  	target := &ret
 39653  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39654  		return nil, err
 39655  	}
 39656  	return ret, nil
 39657  }
 39658  
 39659  type ProjectsLocationsAgentSessionsContextsDeleteCall struct {
 39660  	s          *Service
 39661  	name       string
 39662  	urlParams_ gensupport.URLParams
 39663  	ctx_       context.Context
 39664  	header_    http.Header
 39665  }
 39666  
 39667  // Delete: Deletes the specified context.
 39668  //
 39669  //   - name: The name of the context to delete. Format:
 39670  //     `projects//agent/sessions//contexts/` or
 39671  //     `projects//agent/environments//users//sessions//contexts/`. If
 39672  //     `Environment ID` is not specified, we assume default 'draft' environment.
 39673  //     If `User ID` is not specified, we assume default '-' user.
 39674  func (r *ProjectsLocationsAgentSessionsContextsService) Delete(name string) *ProjectsLocationsAgentSessionsContextsDeleteCall {
 39675  	c := &ProjectsLocationsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39676  	c.name = name
 39677  	return c
 39678  }
 39679  
 39680  // Fields allows partial responses to be retrieved. See
 39681  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39682  // details.
 39683  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsDeleteCall {
 39684  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39685  	return c
 39686  }
 39687  
 39688  // Context sets the context to be used in this call's Do method.
 39689  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsDeleteCall {
 39690  	c.ctx_ = ctx
 39691  	return c
 39692  }
 39693  
 39694  // Header returns a http.Header that can be modified by the caller to add
 39695  // headers to the request.
 39696  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header {
 39697  	if c.header_ == nil {
 39698  		c.header_ = make(http.Header)
 39699  	}
 39700  	return c.header_
 39701  }
 39702  
 39703  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 39704  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39705  	var body io.Reader = nil
 39706  	c.urlParams_.Set("alt", alt)
 39707  	c.urlParams_.Set("prettyPrint", "false")
 39708  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 39709  	urls += "?" + c.urlParams_.Encode()
 39710  	req, err := http.NewRequest("DELETE", urls, body)
 39711  	if err != nil {
 39712  		return nil, err
 39713  	}
 39714  	req.Header = reqHeaders
 39715  	googleapi.Expand(req.URL, map[string]string{
 39716  		"name": c.name,
 39717  	})
 39718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39719  }
 39720  
 39721  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call.
 39722  // Any non-2xx status code is an error. Response headers are in either
 39723  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 39724  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 39725  // check whether the returned error was because http.StatusNotModified was
 39726  // returned.
 39727  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 39728  	gensupport.SetOptions(c.urlParams_, opts...)
 39729  	res, err := c.doRequest("json")
 39730  	if res != nil && res.StatusCode == http.StatusNotModified {
 39731  		if res.Body != nil {
 39732  			res.Body.Close()
 39733  		}
 39734  		return nil, gensupport.WrapError(&googleapi.Error{
 39735  			Code:   res.StatusCode,
 39736  			Header: res.Header,
 39737  		})
 39738  	}
 39739  	if err != nil {
 39740  		return nil, err
 39741  	}
 39742  	defer googleapi.CloseBody(res)
 39743  	if err := googleapi.CheckResponse(res); err != nil {
 39744  		return nil, gensupport.WrapError(err)
 39745  	}
 39746  	ret := &GoogleProtobufEmpty{
 39747  		ServerResponse: googleapi.ServerResponse{
 39748  			Header:         res.Header,
 39749  			HTTPStatusCode: res.StatusCode,
 39750  		},
 39751  	}
 39752  	target := &ret
 39753  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39754  		return nil, err
 39755  	}
 39756  	return ret, nil
 39757  }
 39758  
 39759  type ProjectsLocationsAgentSessionsContextsGetCall struct {
 39760  	s            *Service
 39761  	name         string
 39762  	urlParams_   gensupport.URLParams
 39763  	ifNoneMatch_ string
 39764  	ctx_         context.Context
 39765  	header_      http.Header
 39766  }
 39767  
 39768  // Get: Retrieves the specified context.
 39769  //
 39770  //   - name: The name of the context. Format:
 39771  //     `projects//agent/sessions//contexts/` or
 39772  //     `projects//agent/environments//users//sessions//contexts/`. If
 39773  //     `Environment ID` is not specified, we assume default 'draft' environment.
 39774  //     If `User ID` is not specified, we assume default '-' user.
 39775  func (r *ProjectsLocationsAgentSessionsContextsService) Get(name string) *ProjectsLocationsAgentSessionsContextsGetCall {
 39776  	c := &ProjectsLocationsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39777  	c.name = name
 39778  	return c
 39779  }
 39780  
 39781  // Fields allows partial responses to be retrieved. See
 39782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39783  // details.
 39784  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsGetCall {
 39785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39786  	return c
 39787  }
 39788  
 39789  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39790  // object's ETag matches the given value. This is useful for getting updates
 39791  // only after the object has changed since the last request.
 39792  func (c *ProjectsLocationsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsGetCall {
 39793  	c.ifNoneMatch_ = entityTag
 39794  	return c
 39795  }
 39796  
 39797  // Context sets the context to be used in this call's Do method.
 39798  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsGetCall {
 39799  	c.ctx_ = ctx
 39800  	return c
 39801  }
 39802  
 39803  // Header returns a http.Header that can be modified by the caller to add
 39804  // headers to the request.
 39805  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header {
 39806  	if c.header_ == nil {
 39807  		c.header_ = make(http.Header)
 39808  	}
 39809  	return c.header_
 39810  }
 39811  
 39812  func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 39813  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39814  	if c.ifNoneMatch_ != "" {
 39815  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39816  	}
 39817  	var body io.Reader = nil
 39818  	c.urlParams_.Set("alt", alt)
 39819  	c.urlParams_.Set("prettyPrint", "false")
 39820  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 39821  	urls += "?" + c.urlParams_.Encode()
 39822  	req, err := http.NewRequest("GET", urls, body)
 39823  	if err != nil {
 39824  		return nil, err
 39825  	}
 39826  	req.Header = reqHeaders
 39827  	googleapi.Expand(req.URL, map[string]string{
 39828  		"name": c.name,
 39829  	})
 39830  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39831  }
 39832  
 39833  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call.
 39834  // Any non-2xx status code is an error. Response headers are in either
 39835  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 39836  // returned at all) in error.(*googleapi.Error).Header. Use
 39837  // googleapi.IsNotModified to check whether the returned error was because
 39838  // http.StatusNotModified was returned.
 39839  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 39840  	gensupport.SetOptions(c.urlParams_, opts...)
 39841  	res, err := c.doRequest("json")
 39842  	if res != nil && res.StatusCode == http.StatusNotModified {
 39843  		if res.Body != nil {
 39844  			res.Body.Close()
 39845  		}
 39846  		return nil, gensupport.WrapError(&googleapi.Error{
 39847  			Code:   res.StatusCode,
 39848  			Header: res.Header,
 39849  		})
 39850  	}
 39851  	if err != nil {
 39852  		return nil, err
 39853  	}
 39854  	defer googleapi.CloseBody(res)
 39855  	if err := googleapi.CheckResponse(res); err != nil {
 39856  		return nil, gensupport.WrapError(err)
 39857  	}
 39858  	ret := &GoogleCloudDialogflowV2Context{
 39859  		ServerResponse: googleapi.ServerResponse{
 39860  			Header:         res.Header,
 39861  			HTTPStatusCode: res.StatusCode,
 39862  		},
 39863  	}
 39864  	target := &ret
 39865  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39866  		return nil, err
 39867  	}
 39868  	return ret, nil
 39869  }
 39870  
 39871  type ProjectsLocationsAgentSessionsContextsListCall struct {
 39872  	s            *Service
 39873  	parent       string
 39874  	urlParams_   gensupport.URLParams
 39875  	ifNoneMatch_ string
 39876  	ctx_         context.Context
 39877  	header_      http.Header
 39878  }
 39879  
 39880  // List: Returns the list of all contexts in the specified session.
 39881  //
 39882  //   - parent: The session to list all contexts from. Format:
 39883  //     `projects//agent/sessions/` or
 39884  //     `projects//agent/environments//users//sessions/`. If `Environment ID` is
 39885  //     not specified, we assume default 'draft' environment. If `User ID` is not
 39886  //     specified, we assume default '-' user.
 39887  func (r *ProjectsLocationsAgentSessionsContextsService) List(parent string) *ProjectsLocationsAgentSessionsContextsListCall {
 39888  	c := &ProjectsLocationsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39889  	c.parent = parent
 39890  	return c
 39891  }
 39892  
 39893  // PageSize sets the optional parameter "pageSize": The maximum number of items
 39894  // to return in a single page. By default 100 and at most 1000.
 39895  func (c *ProjectsLocationsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsContextsListCall {
 39896  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 39897  	return c
 39898  }
 39899  
 39900  // PageToken sets the optional parameter "pageToken": The next_page_token value
 39901  // returned from a previous list request.
 39902  func (c *ProjectsLocationsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsContextsListCall {
 39903  	c.urlParams_.Set("pageToken", pageToken)
 39904  	return c
 39905  }
 39906  
 39907  // Fields allows partial responses to be retrieved. See
 39908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39909  // details.
 39910  func (c *ProjectsLocationsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsListCall {
 39911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39912  	return c
 39913  }
 39914  
 39915  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39916  // object's ETag matches the given value. This is useful for getting updates
 39917  // only after the object has changed since the last request.
 39918  func (c *ProjectsLocationsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsListCall {
 39919  	c.ifNoneMatch_ = entityTag
 39920  	return c
 39921  }
 39922  
 39923  // Context sets the context to be used in this call's Do method.
 39924  func (c *ProjectsLocationsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsListCall {
 39925  	c.ctx_ = ctx
 39926  	return c
 39927  }
 39928  
 39929  // Header returns a http.Header that can be modified by the caller to add
 39930  // headers to the request.
 39931  func (c *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header {
 39932  	if c.header_ == nil {
 39933  		c.header_ = make(http.Header)
 39934  	}
 39935  	return c.header_
 39936  }
 39937  
 39938  func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 39939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39940  	if c.ifNoneMatch_ != "" {
 39941  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39942  	}
 39943  	var body io.Reader = nil
 39944  	c.urlParams_.Set("alt", alt)
 39945  	c.urlParams_.Set("prettyPrint", "false")
 39946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
 39947  	urls += "?" + c.urlParams_.Encode()
 39948  	req, err := http.NewRequest("GET", urls, body)
 39949  	if err != nil {
 39950  		return nil, err
 39951  	}
 39952  	req.Header = reqHeaders
 39953  	googleapi.Expand(req.URL, map[string]string{
 39954  		"parent": c.parent,
 39955  	})
 39956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39957  }
 39958  
 39959  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call.
 39960  // Any non-2xx status code is an error. Response headers are in either
 39961  // *GoogleCloudDialogflowV2ListContextsResponse.ServerResponse.Header or (if a
 39962  // response was returned at all) in error.(*googleapi.Error).Header. Use
 39963  // googleapi.IsNotModified to check whether the returned error was because
 39964  // http.StatusNotModified was returned.
 39965  func (c *ProjectsLocationsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
 39966  	gensupport.SetOptions(c.urlParams_, opts...)
 39967  	res, err := c.doRequest("json")
 39968  	if res != nil && res.StatusCode == http.StatusNotModified {
 39969  		if res.Body != nil {
 39970  			res.Body.Close()
 39971  		}
 39972  		return nil, gensupport.WrapError(&googleapi.Error{
 39973  			Code:   res.StatusCode,
 39974  			Header: res.Header,
 39975  		})
 39976  	}
 39977  	if err != nil {
 39978  		return nil, err
 39979  	}
 39980  	defer googleapi.CloseBody(res)
 39981  	if err := googleapi.CheckResponse(res); err != nil {
 39982  		return nil, gensupport.WrapError(err)
 39983  	}
 39984  	ret := &GoogleCloudDialogflowV2ListContextsResponse{
 39985  		ServerResponse: googleapi.ServerResponse{
 39986  			Header:         res.Header,
 39987  			HTTPStatusCode: res.StatusCode,
 39988  		},
 39989  	}
 39990  	target := &ret
 39991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39992  		return nil, err
 39993  	}
 39994  	return ret, nil
 39995  }
 39996  
 39997  // Pages invokes f for each page of results.
 39998  // A non-nil error returned from f will halt the iteration.
 39999  // The provided context supersedes any context provided to the Context method.
 40000  func (c *ProjectsLocationsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
 40001  	c.ctx_ = ctx
 40002  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40003  	for {
 40004  		x, err := c.Do()
 40005  		if err != nil {
 40006  			return err
 40007  		}
 40008  		if err := f(x); err != nil {
 40009  			return err
 40010  		}
 40011  		if x.NextPageToken == "" {
 40012  			return nil
 40013  		}
 40014  		c.PageToken(x.NextPageToken)
 40015  	}
 40016  }
 40017  
 40018  type ProjectsLocationsAgentSessionsContextsPatchCall struct {
 40019  	s                              *Service
 40020  	nameid                         string
 40021  	googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
 40022  	urlParams_                     gensupport.URLParams
 40023  	ctx_                           context.Context
 40024  	header_                        http.Header
 40025  }
 40026  
 40027  // Patch: Updates the specified context.
 40028  //
 40029  //   - name: The unique identifier of the context. Format:
 40030  //     `projects//agent/sessions//contexts/`, or
 40031  //     `projects//agent/environments//users//sessions//contexts/`. The `Context
 40032  //     ID` is always converted to lowercase, may only contain characters in
 40033  //     `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 40034  //     not specified, we assume default 'draft' environment. If `User ID` is not
 40035  //     specified, we assume default '-' user. The following context names are
 40036  //     reserved for internal use by Dialogflow. You should not use these contexts
 40037  //     or create contexts with these names: * `__system_counters__` *
 40038  //     `*_id_dialog_context` * `*_dialog_params_size`.
 40039  func (r *ProjectsLocationsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
 40040  	c := &ProjectsLocationsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40041  	c.nameid = nameid
 40042  	c.googleclouddialogflowv2context = googleclouddialogflowv2context
 40043  	return c
 40044  }
 40045  
 40046  // UpdateMask sets the optional parameter "updateMask": The mask to control
 40047  // which fields get updated.
 40048  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsContextsPatchCall {
 40049  	c.urlParams_.Set("updateMask", updateMask)
 40050  	return c
 40051  }
 40052  
 40053  // Fields allows partial responses to be retrieved. See
 40054  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40055  // details.
 40056  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsPatchCall {
 40057  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40058  	return c
 40059  }
 40060  
 40061  // Context sets the context to be used in this call's Do method.
 40062  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
 40063  	c.ctx_ = ctx
 40064  	return c
 40065  }
 40066  
 40067  // Header returns a http.Header that can be modified by the caller to add
 40068  // headers to the request.
 40069  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header {
 40070  	if c.header_ == nil {
 40071  		c.header_ = make(http.Header)
 40072  	}
 40073  	return c.header_
 40074  }
 40075  
 40076  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 40077  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40078  	var body io.Reader = nil
 40079  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
 40080  	if err != nil {
 40081  		return nil, err
 40082  	}
 40083  	c.urlParams_.Set("alt", alt)
 40084  	c.urlParams_.Set("prettyPrint", "false")
 40085  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 40086  	urls += "?" + c.urlParams_.Encode()
 40087  	req, err := http.NewRequest("PATCH", urls, body)
 40088  	if err != nil {
 40089  		return nil, err
 40090  	}
 40091  	req.Header = reqHeaders
 40092  	googleapi.Expand(req.URL, map[string]string{
 40093  		"name": c.nameid,
 40094  	})
 40095  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40096  }
 40097  
 40098  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call.
 40099  // Any non-2xx status code is an error. Response headers are in either
 40100  // *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was
 40101  // returned at all) in error.(*googleapi.Error).Header. Use
 40102  // googleapi.IsNotModified to check whether the returned error was because
 40103  // http.StatusNotModified was returned.
 40104  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
 40105  	gensupport.SetOptions(c.urlParams_, opts...)
 40106  	res, err := c.doRequest("json")
 40107  	if res != nil && res.StatusCode == http.StatusNotModified {
 40108  		if res.Body != nil {
 40109  			res.Body.Close()
 40110  		}
 40111  		return nil, gensupport.WrapError(&googleapi.Error{
 40112  			Code:   res.StatusCode,
 40113  			Header: res.Header,
 40114  		})
 40115  	}
 40116  	if err != nil {
 40117  		return nil, err
 40118  	}
 40119  	defer googleapi.CloseBody(res)
 40120  	if err := googleapi.CheckResponse(res); err != nil {
 40121  		return nil, gensupport.WrapError(err)
 40122  	}
 40123  	ret := &GoogleCloudDialogflowV2Context{
 40124  		ServerResponse: googleapi.ServerResponse{
 40125  			Header:         res.Header,
 40126  			HTTPStatusCode: res.StatusCode,
 40127  		},
 40128  	}
 40129  	target := &ret
 40130  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40131  		return nil, err
 40132  	}
 40133  	return ret, nil
 40134  }
 40135  
 40136  type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {
 40137  	s                                        *Service
 40138  	parent                                   string
 40139  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 40140  	urlParams_                               gensupport.URLParams
 40141  	ctx_                                     context.Context
 40142  	header_                                  http.Header
 40143  }
 40144  
 40145  // Create: Creates a session entity type. If the specified session entity type
 40146  // already exists, overrides the session entity type. This method doesn't work
 40147  // with Google Assistant integration. Contact Dialogflow support if you need to
 40148  // use session entities with Google Assistant integration.
 40149  //
 40150  //   - parent: The session to create a session entity type for. Format:
 40151  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 40152  //     sessions/`. If `Environment ID` is not specified, we assume default
 40153  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 40154  //     user.
 40155  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
 40156  	c := &ProjectsLocationsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40157  	c.parent = parent
 40158  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 40159  	return c
 40160  }
 40161  
 40162  // Fields allows partial responses to be retrieved. See
 40163  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40164  // details.
 40165  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
 40166  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40167  	return c
 40168  }
 40169  
 40170  // Context sets the context to be used in this call's Do method.
 40171  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
 40172  	c.ctx_ = ctx
 40173  	return c
 40174  }
 40175  
 40176  // Header returns a http.Header that can be modified by the caller to add
 40177  // headers to the request.
 40178  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Header {
 40179  	if c.header_ == nil {
 40180  		c.header_ = make(http.Header)
 40181  	}
 40182  	return c.header_
 40183  }
 40184  
 40185  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 40186  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40187  	var body io.Reader = nil
 40188  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 40189  	if err != nil {
 40190  		return nil, err
 40191  	}
 40192  	c.urlParams_.Set("alt", alt)
 40193  	c.urlParams_.Set("prettyPrint", "false")
 40194  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 40195  	urls += "?" + c.urlParams_.Encode()
 40196  	req, err := http.NewRequest("POST", urls, body)
 40197  	if err != nil {
 40198  		return nil, err
 40199  	}
 40200  	req.Header = reqHeaders
 40201  	googleapi.Expand(req.URL, map[string]string{
 40202  		"parent": c.parent,
 40203  	})
 40204  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40205  }
 40206  
 40207  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call.
 40208  // Any non-2xx status code is an error. Response headers are in either
 40209  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 40210  // response was returned at all) in error.(*googleapi.Error).Header. Use
 40211  // googleapi.IsNotModified to check whether the returned error was because
 40212  // http.StatusNotModified was returned.
 40213  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 40214  	gensupport.SetOptions(c.urlParams_, opts...)
 40215  	res, err := c.doRequest("json")
 40216  	if res != nil && res.StatusCode == http.StatusNotModified {
 40217  		if res.Body != nil {
 40218  			res.Body.Close()
 40219  		}
 40220  		return nil, gensupport.WrapError(&googleapi.Error{
 40221  			Code:   res.StatusCode,
 40222  			Header: res.Header,
 40223  		})
 40224  	}
 40225  	if err != nil {
 40226  		return nil, err
 40227  	}
 40228  	defer googleapi.CloseBody(res)
 40229  	if err := googleapi.CheckResponse(res); err != nil {
 40230  		return nil, gensupport.WrapError(err)
 40231  	}
 40232  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 40233  		ServerResponse: googleapi.ServerResponse{
 40234  			Header:         res.Header,
 40235  			HTTPStatusCode: res.StatusCode,
 40236  		},
 40237  	}
 40238  	target := &ret
 40239  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40240  		return nil, err
 40241  	}
 40242  	return ret, nil
 40243  }
 40244  
 40245  type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {
 40246  	s          *Service
 40247  	name       string
 40248  	urlParams_ gensupport.URLParams
 40249  	ctx_       context.Context
 40250  	header_    http.Header
 40251  }
 40252  
 40253  // Delete: Deletes the specified session entity type. This method doesn't work
 40254  // with Google Assistant integration. Contact Dialogflow support if you need to
 40255  // use session entities with Google Assistant integration.
 40256  //
 40257  //   - name: The name of the entity type to delete. Format:
 40258  //     `projects//agent/sessions//entityTypes/` or
 40259  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 40260  //     `Environment ID` is not specified, we assume default 'draft' environment.
 40261  //     If `User ID` is not specified, we assume default '-' user.
 40262  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
 40263  	c := &ProjectsLocationsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40264  	c.name = name
 40265  	return c
 40266  }
 40267  
 40268  // Fields allows partial responses to be retrieved. See
 40269  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40270  // details.
 40271  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
 40272  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40273  	return c
 40274  }
 40275  
 40276  // Context sets the context to be used in this call's Do method.
 40277  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
 40278  	c.ctx_ = ctx
 40279  	return c
 40280  }
 40281  
 40282  // Header returns a http.Header that can be modified by the caller to add
 40283  // headers to the request.
 40284  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
 40285  	if c.header_ == nil {
 40286  		c.header_ = make(http.Header)
 40287  	}
 40288  	return c.header_
 40289  }
 40290  
 40291  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 40292  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40293  	var body io.Reader = nil
 40294  	c.urlParams_.Set("alt", alt)
 40295  	c.urlParams_.Set("prettyPrint", "false")
 40296  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 40297  	urls += "?" + c.urlParams_.Encode()
 40298  	req, err := http.NewRequest("DELETE", urls, body)
 40299  	if err != nil {
 40300  		return nil, err
 40301  	}
 40302  	req.Header = reqHeaders
 40303  	googleapi.Expand(req.URL, map[string]string{
 40304  		"name": c.name,
 40305  	})
 40306  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40307  }
 40308  
 40309  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call.
 40310  // Any non-2xx status code is an error. Response headers are in either
 40311  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 40312  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 40313  // check whether the returned error was because http.StatusNotModified was
 40314  // returned.
 40315  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 40316  	gensupport.SetOptions(c.urlParams_, opts...)
 40317  	res, err := c.doRequest("json")
 40318  	if res != nil && res.StatusCode == http.StatusNotModified {
 40319  		if res.Body != nil {
 40320  			res.Body.Close()
 40321  		}
 40322  		return nil, gensupport.WrapError(&googleapi.Error{
 40323  			Code:   res.StatusCode,
 40324  			Header: res.Header,
 40325  		})
 40326  	}
 40327  	if err != nil {
 40328  		return nil, err
 40329  	}
 40330  	defer googleapi.CloseBody(res)
 40331  	if err := googleapi.CheckResponse(res); err != nil {
 40332  		return nil, gensupport.WrapError(err)
 40333  	}
 40334  	ret := &GoogleProtobufEmpty{
 40335  		ServerResponse: googleapi.ServerResponse{
 40336  			Header:         res.Header,
 40337  			HTTPStatusCode: res.StatusCode,
 40338  		},
 40339  	}
 40340  	target := &ret
 40341  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40342  		return nil, err
 40343  	}
 40344  	return ret, nil
 40345  }
 40346  
 40347  type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {
 40348  	s            *Service
 40349  	name         string
 40350  	urlParams_   gensupport.URLParams
 40351  	ifNoneMatch_ string
 40352  	ctx_         context.Context
 40353  	header_      http.Header
 40354  }
 40355  
 40356  // Get: Retrieves the specified session entity type. This method doesn't work
 40357  // with Google Assistant integration. Contact Dialogflow support if you need to
 40358  // use session entities with Google Assistant integration.
 40359  //
 40360  //   - name: The name of the session entity type. Format:
 40361  //     `projects//agent/sessions//entityTypes/` or
 40362  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 40363  //     `Environment ID` is not specified, we assume default 'draft' environment.
 40364  //     If `User ID` is not specified, we assume default '-' user.
 40365  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 40366  	c := &ProjectsLocationsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40367  	c.name = name
 40368  	return c
 40369  }
 40370  
 40371  // Fields allows partial responses to be retrieved. See
 40372  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40373  // details.
 40374  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 40375  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40376  	return c
 40377  }
 40378  
 40379  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40380  // object's ETag matches the given value. This is useful for getting updates
 40381  // only after the object has changed since the last request.
 40382  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 40383  	c.ifNoneMatch_ = entityTag
 40384  	return c
 40385  }
 40386  
 40387  // Context sets the context to be used in this call's Do method.
 40388  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 40389  	c.ctx_ = ctx
 40390  	return c
 40391  }
 40392  
 40393  // Header returns a http.Header that can be modified by the caller to add
 40394  // headers to the request.
 40395  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header {
 40396  	if c.header_ == nil {
 40397  		c.header_ = make(http.Header)
 40398  	}
 40399  	return c.header_
 40400  }
 40401  
 40402  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 40403  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40404  	if c.ifNoneMatch_ != "" {
 40405  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40406  	}
 40407  	var body io.Reader = nil
 40408  	c.urlParams_.Set("alt", alt)
 40409  	c.urlParams_.Set("prettyPrint", "false")
 40410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 40411  	urls += "?" + c.urlParams_.Encode()
 40412  	req, err := http.NewRequest("GET", urls, body)
 40413  	if err != nil {
 40414  		return nil, err
 40415  	}
 40416  	req.Header = reqHeaders
 40417  	googleapi.Expand(req.URL, map[string]string{
 40418  		"name": c.name,
 40419  	})
 40420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40421  }
 40422  
 40423  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call.
 40424  // Any non-2xx status code is an error. Response headers are in either
 40425  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 40426  // response was returned at all) in error.(*googleapi.Error).Header. Use
 40427  // googleapi.IsNotModified to check whether the returned error was because
 40428  // http.StatusNotModified was returned.
 40429  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 40430  	gensupport.SetOptions(c.urlParams_, opts...)
 40431  	res, err := c.doRequest("json")
 40432  	if res != nil && res.StatusCode == http.StatusNotModified {
 40433  		if res.Body != nil {
 40434  			res.Body.Close()
 40435  		}
 40436  		return nil, gensupport.WrapError(&googleapi.Error{
 40437  			Code:   res.StatusCode,
 40438  			Header: res.Header,
 40439  		})
 40440  	}
 40441  	if err != nil {
 40442  		return nil, err
 40443  	}
 40444  	defer googleapi.CloseBody(res)
 40445  	if err := googleapi.CheckResponse(res); err != nil {
 40446  		return nil, gensupport.WrapError(err)
 40447  	}
 40448  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 40449  		ServerResponse: googleapi.ServerResponse{
 40450  			Header:         res.Header,
 40451  			HTTPStatusCode: res.StatusCode,
 40452  		},
 40453  	}
 40454  	target := &ret
 40455  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40456  		return nil, err
 40457  	}
 40458  	return ret, nil
 40459  }
 40460  
 40461  type ProjectsLocationsAgentSessionsEntityTypesListCall struct {
 40462  	s            *Service
 40463  	parent       string
 40464  	urlParams_   gensupport.URLParams
 40465  	ifNoneMatch_ string
 40466  	ctx_         context.Context
 40467  	header_      http.Header
 40468  }
 40469  
 40470  // List: Returns the list of all session entity types in the specified session.
 40471  // This method doesn't work with Google Assistant integration. Contact
 40472  // Dialogflow support if you need to use session entities with Google Assistant
 40473  // integration.
 40474  //
 40475  //   - parent: The session to list all session entity types from. Format:
 40476  //     `projects//agent/sessions/` or `projects//agent/environments//users//
 40477  //     sessions/`. If `Environment ID` is not specified, we assume default
 40478  //     'draft' environment. If `User ID` is not specified, we assume default '-'
 40479  //     user.
 40480  func (r *ProjectsLocationsAgentSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 40481  	c := &ProjectsLocationsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40482  	c.parent = parent
 40483  	return c
 40484  }
 40485  
 40486  // PageSize sets the optional parameter "pageSize": The maximum number of items
 40487  // to return in a single page. By default 100 and at most 1000.
 40488  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 40489  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 40490  	return c
 40491  }
 40492  
 40493  // PageToken sets the optional parameter "pageToken": The next_page_token value
 40494  // returned from a previous list request.
 40495  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 40496  	c.urlParams_.Set("pageToken", pageToken)
 40497  	return c
 40498  }
 40499  
 40500  // Fields allows partial responses to be retrieved. See
 40501  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40502  // details.
 40503  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 40504  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40505  	return c
 40506  }
 40507  
 40508  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40509  // object's ETag matches the given value. This is useful for getting updates
 40510  // only after the object has changed since the last request.
 40511  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 40512  	c.ifNoneMatch_ = entityTag
 40513  	return c
 40514  }
 40515  
 40516  // Context sets the context to be used in this call's Do method.
 40517  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 40518  	c.ctx_ = ctx
 40519  	return c
 40520  }
 40521  
 40522  // Header returns a http.Header that can be modified by the caller to add
 40523  // headers to the request.
 40524  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header {
 40525  	if c.header_ == nil {
 40526  		c.header_ = make(http.Header)
 40527  	}
 40528  	return c.header_
 40529  }
 40530  
 40531  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 40532  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40533  	if c.ifNoneMatch_ != "" {
 40534  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40535  	}
 40536  	var body io.Reader = nil
 40537  	c.urlParams_.Set("alt", alt)
 40538  	c.urlParams_.Set("prettyPrint", "false")
 40539  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
 40540  	urls += "?" + c.urlParams_.Encode()
 40541  	req, err := http.NewRequest("GET", urls, body)
 40542  	if err != nil {
 40543  		return nil, err
 40544  	}
 40545  	req.Header = reqHeaders
 40546  	googleapi.Expand(req.URL, map[string]string{
 40547  		"parent": c.parent,
 40548  	})
 40549  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40550  }
 40551  
 40552  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call.
 40553  // Any non-2xx status code is an error. Response headers are in either
 40554  // *GoogleCloudDialogflowV2ListSessionEntityTypesResponse.ServerResponse.Header
 40555  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 40556  // Use googleapi.IsNotModified to check whether the returned error was because
 40557  // http.StatusNotModified was returned.
 40558  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
 40559  	gensupport.SetOptions(c.urlParams_, opts...)
 40560  	res, err := c.doRequest("json")
 40561  	if res != nil && res.StatusCode == http.StatusNotModified {
 40562  		if res.Body != nil {
 40563  			res.Body.Close()
 40564  		}
 40565  		return nil, gensupport.WrapError(&googleapi.Error{
 40566  			Code:   res.StatusCode,
 40567  			Header: res.Header,
 40568  		})
 40569  	}
 40570  	if err != nil {
 40571  		return nil, err
 40572  	}
 40573  	defer googleapi.CloseBody(res)
 40574  	if err := googleapi.CheckResponse(res); err != nil {
 40575  		return nil, gensupport.WrapError(err)
 40576  	}
 40577  	ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
 40578  		ServerResponse: googleapi.ServerResponse{
 40579  			Header:         res.Header,
 40580  			HTTPStatusCode: res.StatusCode,
 40581  		},
 40582  	}
 40583  	target := &ret
 40584  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40585  		return nil, err
 40586  	}
 40587  	return ret, nil
 40588  }
 40589  
 40590  // Pages invokes f for each page of results.
 40591  // A non-nil error returned from f will halt the iteration.
 40592  // The provided context supersedes any context provided to the Context method.
 40593  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
 40594  	c.ctx_ = ctx
 40595  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40596  	for {
 40597  		x, err := c.Do()
 40598  		if err != nil {
 40599  			return err
 40600  		}
 40601  		if err := f(x); err != nil {
 40602  			return err
 40603  		}
 40604  		if x.NextPageToken == "" {
 40605  			return nil
 40606  		}
 40607  		c.PageToken(x.NextPageToken)
 40608  	}
 40609  }
 40610  
 40611  type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {
 40612  	s                                        *Service
 40613  	nameid                                   string
 40614  	googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
 40615  	urlParams_                               gensupport.URLParams
 40616  	ctx_                                     context.Context
 40617  	header_                                  http.Header
 40618  }
 40619  
 40620  // Patch: Updates the specified session entity type. This method doesn't work
 40621  // with Google Assistant integration. Contact Dialogflow support if you need to
 40622  // use session entities with Google Assistant integration.
 40623  //
 40624  //   - name: The unique identifier of this session entity type. Format:
 40625  //     `projects//agent/sessions//entityTypes/`, or
 40626  //     `projects//agent/environments//users//sessions//entityTypes/`. If
 40627  //     `Environment ID` is not specified, we assume default 'draft' environment.
 40628  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 40629  //     display name of an existing entity type in the same agent that will be
 40630  //     overridden or supplemented.
 40631  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40632  	c := &ProjectsLocationsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40633  	c.nameid = nameid
 40634  	c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
 40635  	return c
 40636  }
 40637  
 40638  // UpdateMask sets the optional parameter "updateMask": The mask to control
 40639  // which fields get updated.
 40640  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40641  	c.urlParams_.Set("updateMask", updateMask)
 40642  	return c
 40643  }
 40644  
 40645  // Fields allows partial responses to be retrieved. See
 40646  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40647  // details.
 40648  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40649  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40650  	return c
 40651  }
 40652  
 40653  // Context sets the context to be used in this call's Do method.
 40654  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40655  	c.ctx_ = ctx
 40656  	return c
 40657  }
 40658  
 40659  // Header returns a http.Header that can be modified by the caller to add
 40660  // headers to the request.
 40661  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Header {
 40662  	if c.header_ == nil {
 40663  		c.header_ = make(http.Header)
 40664  	}
 40665  	return c.header_
 40666  }
 40667  
 40668  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 40669  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40670  	var body io.Reader = nil
 40671  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
 40672  	if err != nil {
 40673  		return nil, err
 40674  	}
 40675  	c.urlParams_.Set("alt", alt)
 40676  	c.urlParams_.Set("prettyPrint", "false")
 40677  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 40678  	urls += "?" + c.urlParams_.Encode()
 40679  	req, err := http.NewRequest("PATCH", urls, body)
 40680  	if err != nil {
 40681  		return nil, err
 40682  	}
 40683  	req.Header = reqHeaders
 40684  	googleapi.Expand(req.URL, map[string]string{
 40685  		"name": c.nameid,
 40686  	})
 40687  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40688  }
 40689  
 40690  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call.
 40691  // Any non-2xx status code is an error. Response headers are in either
 40692  // *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a
 40693  // response was returned at all) in error.(*googleapi.Error).Header. Use
 40694  // googleapi.IsNotModified to check whether the returned error was because
 40695  // http.StatusNotModified was returned.
 40696  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
 40697  	gensupport.SetOptions(c.urlParams_, opts...)
 40698  	res, err := c.doRequest("json")
 40699  	if res != nil && res.StatusCode == http.StatusNotModified {
 40700  		if res.Body != nil {
 40701  			res.Body.Close()
 40702  		}
 40703  		return nil, gensupport.WrapError(&googleapi.Error{
 40704  			Code:   res.StatusCode,
 40705  			Header: res.Header,
 40706  		})
 40707  	}
 40708  	if err != nil {
 40709  		return nil, err
 40710  	}
 40711  	defer googleapi.CloseBody(res)
 40712  	if err := googleapi.CheckResponse(res); err != nil {
 40713  		return nil, gensupport.WrapError(err)
 40714  	}
 40715  	ret := &GoogleCloudDialogflowV2SessionEntityType{
 40716  		ServerResponse: googleapi.ServerResponse{
 40717  			Header:         res.Header,
 40718  			HTTPStatusCode: res.StatusCode,
 40719  		},
 40720  	}
 40721  	target := &ret
 40722  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40723  		return nil, err
 40724  	}
 40725  	return ret, nil
 40726  }
 40727  
 40728  type ProjectsLocationsAgentVersionsCreateCall struct {
 40729  	s                              *Service
 40730  	parent                         string
 40731  	googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
 40732  	urlParams_                     gensupport.URLParams
 40733  	ctx_                           context.Context
 40734  	header_                        http.Header
 40735  }
 40736  
 40737  // Create: Creates an agent version. The new version points to the agent
 40738  // instance in the "default" environment.
 40739  //
 40740  //   - parent: The agent to create a version for. Supported formats: -
 40741  //     `projects//agent` - `projects//locations//agent`.
 40742  func (r *ProjectsLocationsAgentVersionsService) Create(parent string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsLocationsAgentVersionsCreateCall {
 40743  	c := &ProjectsLocationsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40744  	c.parent = parent
 40745  	c.googleclouddialogflowv2version = googleclouddialogflowv2version
 40746  	return c
 40747  }
 40748  
 40749  // Fields allows partial responses to be retrieved. See
 40750  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40751  // details.
 40752  func (c *ProjectsLocationsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsCreateCall {
 40753  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40754  	return c
 40755  }
 40756  
 40757  // Context sets the context to be used in this call's Do method.
 40758  func (c *ProjectsLocationsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsCreateCall {
 40759  	c.ctx_ = ctx
 40760  	return c
 40761  }
 40762  
 40763  // Header returns a http.Header that can be modified by the caller to add
 40764  // headers to the request.
 40765  func (c *ProjectsLocationsAgentVersionsCreateCall) Header() http.Header {
 40766  	if c.header_ == nil {
 40767  		c.header_ = make(http.Header)
 40768  	}
 40769  	return c.header_
 40770  }
 40771  
 40772  func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
 40773  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40774  	var body io.Reader = nil
 40775  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
 40776  	if err != nil {
 40777  		return nil, err
 40778  	}
 40779  	c.urlParams_.Set("alt", alt)
 40780  	c.urlParams_.Set("prettyPrint", "false")
 40781  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
 40782  	urls += "?" + c.urlParams_.Encode()
 40783  	req, err := http.NewRequest("POST", urls, body)
 40784  	if err != nil {
 40785  		return nil, err
 40786  	}
 40787  	req.Header = reqHeaders
 40788  	googleapi.Expand(req.URL, map[string]string{
 40789  		"parent": c.parent,
 40790  	})
 40791  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40792  }
 40793  
 40794  // Do executes the "dialogflow.projects.locations.agent.versions.create" call.
 40795  // Any non-2xx status code is an error. Response headers are in either
 40796  // *GoogleCloudDialogflowV2Version.ServerResponse.Header or (if a response was
 40797  // returned at all) in error.(*googleapi.Error).Header. Use
 40798  // googleapi.IsNotModified to check whether the returned error was because
 40799  // http.StatusNotModified was returned.
 40800  func (c *ProjectsLocationsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
 40801  	gensupport.SetOptions(c.urlParams_, opts...)
 40802  	res, err := c.doRequest("json")
 40803  	if res != nil && res.StatusCode == http.StatusNotModified {
 40804  		if res.Body != nil {
 40805  			res.Body.Close()
 40806  		}
 40807  		return nil, gensupport.WrapError(&googleapi.Error{
 40808  			Code:   res.StatusCode,
 40809  			Header: res.Header,
 40810  		})
 40811  	}
 40812  	if err != nil {
 40813  		return nil, err
 40814  	}
 40815  	defer googleapi.CloseBody(res)
 40816  	if err := googleapi.CheckResponse(res); err != nil {
 40817  		return nil, gensupport.WrapError(err)
 40818  	}
 40819  	ret := &GoogleCloudDialogflowV2Version{
 40820  		ServerResponse: googleapi.ServerResponse{
 40821  			Header:         res.Header,
 40822  			HTTPStatusCode: res.StatusCode,
 40823  		},
 40824  	}
 40825  	target := &ret
 40826  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40827  		return nil, err
 40828  	}
 40829  	return ret, nil
 40830  }
 40831  
 40832  type ProjectsLocationsAgentVersionsDeleteCall struct {
 40833  	s          *Service
 40834  	name       string
 40835  	urlParams_ gensupport.URLParams
 40836  	ctx_       context.Context
 40837  	header_    http.Header
 40838  }
 40839  
 40840  // Delete: Delete the specified agent version.
 40841  //
 40842  //   - name: The name of the version to delete. Supported formats: -
 40843  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 40844  func (r *ProjectsLocationsAgentVersionsService) Delete(name string) *ProjectsLocationsAgentVersionsDeleteCall {
 40845  	c := &ProjectsLocationsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40846  	c.name = name
 40847  	return c
 40848  }
 40849  
 40850  // Fields allows partial responses to be retrieved. See
 40851  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40852  // details.
 40853  func (c *ProjectsLocationsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsDeleteCall {
 40854  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40855  	return c
 40856  }
 40857  
 40858  // Context sets the context to be used in this call's Do method.
 40859  func (c *ProjectsLocationsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsDeleteCall {
 40860  	c.ctx_ = ctx
 40861  	return c
 40862  }
 40863  
 40864  // Header returns a http.Header that can be modified by the caller to add
 40865  // headers to the request.
 40866  func (c *ProjectsLocationsAgentVersionsDeleteCall) Header() http.Header {
 40867  	if c.header_ == nil {
 40868  		c.header_ = make(http.Header)
 40869  	}
 40870  	return c.header_
 40871  }
 40872  
 40873  func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 40874  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40875  	var body io.Reader = nil
 40876  	c.urlParams_.Set("alt", alt)
 40877  	c.urlParams_.Set("prettyPrint", "false")
 40878  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 40879  	urls += "?" + c.urlParams_.Encode()
 40880  	req, err := http.NewRequest("DELETE", urls, body)
 40881  	if err != nil {
 40882  		return nil, err
 40883  	}
 40884  	req.Header = reqHeaders
 40885  	googleapi.Expand(req.URL, map[string]string{
 40886  		"name": c.name,
 40887  	})
 40888  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40889  }
 40890  
 40891  // Do executes the "dialogflow.projects.locations.agent.versions.delete" call.
 40892  // Any non-2xx status code is an error. Response headers are in either
 40893  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 40894  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 40895  // check whether the returned error was because http.StatusNotModified was
 40896  // returned.
 40897  func (c *ProjectsLocationsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 40898  	gensupport.SetOptions(c.urlParams_, opts...)
 40899  	res, err := c.doRequest("json")
 40900  	if res != nil && res.StatusCode == http.StatusNotModified {
 40901  		if res.Body != nil {
 40902  			res.Body.Close()
 40903  		}
 40904  		return nil, gensupport.WrapError(&googleapi.Error{
 40905  			Code:   res.StatusCode,
 40906  			Header: res.Header,
 40907  		})
 40908  	}
 40909  	if err != nil {
 40910  		return nil, err
 40911  	}
 40912  	defer googleapi.CloseBody(res)
 40913  	if err := googleapi.CheckResponse(res); err != nil {
 40914  		return nil, gensupport.WrapError(err)
 40915  	}
 40916  	ret := &GoogleProtobufEmpty{
 40917  		ServerResponse: googleapi.ServerResponse{
 40918  			Header:         res.Header,
 40919  			HTTPStatusCode: res.StatusCode,
 40920  		},
 40921  	}
 40922  	target := &ret
 40923  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40924  		return nil, err
 40925  	}
 40926  	return ret, nil
 40927  }
 40928  
 40929  type ProjectsLocationsAgentVersionsGetCall struct {
 40930  	s            *Service
 40931  	name         string
 40932  	urlParams_   gensupport.URLParams
 40933  	ifNoneMatch_ string
 40934  	ctx_         context.Context
 40935  	header_      http.Header
 40936  }
 40937  
 40938  // Get: Retrieves the specified agent version.
 40939  //
 40940  //   - name: The name of the version. Supported formats: -
 40941  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 40942  func (r *ProjectsLocationsAgentVersionsService) Get(name string) *ProjectsLocationsAgentVersionsGetCall {
 40943  	c := &ProjectsLocationsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40944  	c.name = name
 40945  	return c
 40946  }
 40947  
 40948  // Fields allows partial responses to be retrieved. See
 40949  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40950  // details.
 40951  func (c *ProjectsLocationsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsGetCall {
 40952  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40953  	return c
 40954  }
 40955  
 40956  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40957  // object's ETag matches the given value. This is useful for getting updates
 40958  // only after the object has changed since the last request.
 40959  func (c *ProjectsLocationsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsGetCall {
 40960  	c.ifNoneMatch_ = entityTag
 40961  	return c
 40962  }
 40963  
 40964  // Context sets the context to be used in this call's Do method.
 40965  func (c *ProjectsLocationsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsGetCall {
 40966  	c.ctx_ = ctx
 40967  	return c
 40968  }
 40969  
 40970  // Header returns a http.Header that can be modified by the caller to add
 40971  // headers to the request.
 40972  func (c *ProjectsLocationsAgentVersionsGetCall) Header() http.Header {
 40973  	if c.header_ == nil {
 40974  		c.header_ = make(http.Header)
 40975  	}
 40976  	return c.header_
 40977  }
 40978  
 40979  func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 40980  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40981  	if c.ifNoneMatch_ != "" {
 40982  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40983  	}
 40984  	var body io.Reader = nil
 40985  	c.urlParams_.Set("alt", alt)
 40986  	c.urlParams_.Set("prettyPrint", "false")
 40987  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 40988  	urls += "?" + c.urlParams_.Encode()
 40989  	req, err := http.NewRequest("GET", urls, body)
 40990  	if err != nil {
 40991  		return nil, err
 40992  	}
 40993  	req.Header = reqHeaders
 40994  	googleapi.Expand(req.URL, map[string]string{
 40995  		"name": c.name,
 40996  	})
 40997  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40998  }
 40999  
 41000  // Do executes the "dialogflow.projects.locations.agent.versions.get" call.
 41001  // Any non-2xx status code is an error. Response headers are in either
 41002  // *GoogleCloudDialogflowV2Version.ServerResponse.Header or (if a response was
 41003  // returned at all) in error.(*googleapi.Error).Header. Use
 41004  // googleapi.IsNotModified to check whether the returned error was because
 41005  // http.StatusNotModified was returned.
 41006  func (c *ProjectsLocationsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
 41007  	gensupport.SetOptions(c.urlParams_, opts...)
 41008  	res, err := c.doRequest("json")
 41009  	if res != nil && res.StatusCode == http.StatusNotModified {
 41010  		if res.Body != nil {
 41011  			res.Body.Close()
 41012  		}
 41013  		return nil, gensupport.WrapError(&googleapi.Error{
 41014  			Code:   res.StatusCode,
 41015  			Header: res.Header,
 41016  		})
 41017  	}
 41018  	if err != nil {
 41019  		return nil, err
 41020  	}
 41021  	defer googleapi.CloseBody(res)
 41022  	if err := googleapi.CheckResponse(res); err != nil {
 41023  		return nil, gensupport.WrapError(err)
 41024  	}
 41025  	ret := &GoogleCloudDialogflowV2Version{
 41026  		ServerResponse: googleapi.ServerResponse{
 41027  			Header:         res.Header,
 41028  			HTTPStatusCode: res.StatusCode,
 41029  		},
 41030  	}
 41031  	target := &ret
 41032  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41033  		return nil, err
 41034  	}
 41035  	return ret, nil
 41036  }
 41037  
 41038  type ProjectsLocationsAgentVersionsListCall struct {
 41039  	s            *Service
 41040  	parent       string
 41041  	urlParams_   gensupport.URLParams
 41042  	ifNoneMatch_ string
 41043  	ctx_         context.Context
 41044  	header_      http.Header
 41045  }
 41046  
 41047  // List: Returns the list of all versions of the specified agent.
 41048  //
 41049  //   - parent: The agent to list all versions from. Supported formats: -
 41050  //     `projects//agent` - `projects//locations//agent`.
 41051  func (r *ProjectsLocationsAgentVersionsService) List(parent string) *ProjectsLocationsAgentVersionsListCall {
 41052  	c := &ProjectsLocationsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41053  	c.parent = parent
 41054  	return c
 41055  }
 41056  
 41057  // PageSize sets the optional parameter "pageSize": The maximum number of items
 41058  // to return in a single page. By default 100 and at most 1000.
 41059  func (c *ProjectsLocationsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentVersionsListCall {
 41060  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 41061  	return c
 41062  }
 41063  
 41064  // PageToken sets the optional parameter "pageToken": The next_page_token value
 41065  // returned from a previous list request.
 41066  func (c *ProjectsLocationsAgentVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentVersionsListCall {
 41067  	c.urlParams_.Set("pageToken", pageToken)
 41068  	return c
 41069  }
 41070  
 41071  // Fields allows partial responses to be retrieved. See
 41072  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41073  // details.
 41074  func (c *ProjectsLocationsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsListCall {
 41075  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41076  	return c
 41077  }
 41078  
 41079  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41080  // object's ETag matches the given value. This is useful for getting updates
 41081  // only after the object has changed since the last request.
 41082  func (c *ProjectsLocationsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsListCall {
 41083  	c.ifNoneMatch_ = entityTag
 41084  	return c
 41085  }
 41086  
 41087  // Context sets the context to be used in this call's Do method.
 41088  func (c *ProjectsLocationsAgentVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsListCall {
 41089  	c.ctx_ = ctx
 41090  	return c
 41091  }
 41092  
 41093  // Header returns a http.Header that can be modified by the caller to add
 41094  // headers to the request.
 41095  func (c *ProjectsLocationsAgentVersionsListCall) Header() http.Header {
 41096  	if c.header_ == nil {
 41097  		c.header_ = make(http.Header)
 41098  	}
 41099  	return c.header_
 41100  }
 41101  
 41102  func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
 41103  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41104  	if c.ifNoneMatch_ != "" {
 41105  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41106  	}
 41107  	var body io.Reader = nil
 41108  	c.urlParams_.Set("alt", alt)
 41109  	c.urlParams_.Set("prettyPrint", "false")
 41110  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
 41111  	urls += "?" + c.urlParams_.Encode()
 41112  	req, err := http.NewRequest("GET", urls, body)
 41113  	if err != nil {
 41114  		return nil, err
 41115  	}
 41116  	req.Header = reqHeaders
 41117  	googleapi.Expand(req.URL, map[string]string{
 41118  		"parent": c.parent,
 41119  	})
 41120  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41121  }
 41122  
 41123  // Do executes the "dialogflow.projects.locations.agent.versions.list" call.
 41124  // Any non-2xx status code is an error. Response headers are in either
 41125  // *GoogleCloudDialogflowV2ListVersionsResponse.ServerResponse.Header or (if a
 41126  // response was returned at all) in error.(*googleapi.Error).Header. Use
 41127  // googleapi.IsNotModified to check whether the returned error was because
 41128  // http.StatusNotModified was returned.
 41129  func (c *ProjectsLocationsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListVersionsResponse, error) {
 41130  	gensupport.SetOptions(c.urlParams_, opts...)
 41131  	res, err := c.doRequest("json")
 41132  	if res != nil && res.StatusCode == http.StatusNotModified {
 41133  		if res.Body != nil {
 41134  			res.Body.Close()
 41135  		}
 41136  		return nil, gensupport.WrapError(&googleapi.Error{
 41137  			Code:   res.StatusCode,
 41138  			Header: res.Header,
 41139  		})
 41140  	}
 41141  	if err != nil {
 41142  		return nil, err
 41143  	}
 41144  	defer googleapi.CloseBody(res)
 41145  	if err := googleapi.CheckResponse(res); err != nil {
 41146  		return nil, gensupport.WrapError(err)
 41147  	}
 41148  	ret := &GoogleCloudDialogflowV2ListVersionsResponse{
 41149  		ServerResponse: googleapi.ServerResponse{
 41150  			Header:         res.Header,
 41151  			HTTPStatusCode: res.StatusCode,
 41152  		},
 41153  	}
 41154  	target := &ret
 41155  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41156  		return nil, err
 41157  	}
 41158  	return ret, nil
 41159  }
 41160  
 41161  // Pages invokes f for each page of results.
 41162  // A non-nil error returned from f will halt the iteration.
 41163  // The provided context supersedes any context provided to the Context method.
 41164  func (c *ProjectsLocationsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListVersionsResponse) error) error {
 41165  	c.ctx_ = ctx
 41166  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 41167  	for {
 41168  		x, err := c.Do()
 41169  		if err != nil {
 41170  			return err
 41171  		}
 41172  		if err := f(x); err != nil {
 41173  			return err
 41174  		}
 41175  		if x.NextPageToken == "" {
 41176  			return nil
 41177  		}
 41178  		c.PageToken(x.NextPageToken)
 41179  	}
 41180  }
 41181  
 41182  type ProjectsLocationsAgentVersionsPatchCall struct {
 41183  	s                              *Service
 41184  	nameid                         string
 41185  	googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
 41186  	urlParams_                     gensupport.URLParams
 41187  	ctx_                           context.Context
 41188  	header_                        http.Header
 41189  }
 41190  
 41191  // Patch: Updates the specified agent version. Note that this method does not
 41192  // allow you to update the state of the agent the given version points to. It
 41193  // allows you to update only mutable properties of the version resource.
 41194  //
 41195  //   - name: Output only. The unique identifier of this agent version. Supported
 41196  //     formats: - `projects//agent/versions/` -
 41197  //     `projects//locations//agent/versions/`.
 41198  func (r *ProjectsLocationsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsLocationsAgentVersionsPatchCall {
 41199  	c := &ProjectsLocationsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41200  	c.nameid = nameid
 41201  	c.googleclouddialogflowv2version = googleclouddialogflowv2version
 41202  	return c
 41203  }
 41204  
 41205  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 41206  // control which fields get updated.
 41207  func (c *ProjectsLocationsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentVersionsPatchCall {
 41208  	c.urlParams_.Set("updateMask", updateMask)
 41209  	return c
 41210  }
 41211  
 41212  // Fields allows partial responses to be retrieved. See
 41213  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41214  // details.
 41215  func (c *ProjectsLocationsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsPatchCall {
 41216  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41217  	return c
 41218  }
 41219  
 41220  // Context sets the context to be used in this call's Do method.
 41221  func (c *ProjectsLocationsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsPatchCall {
 41222  	c.ctx_ = ctx
 41223  	return c
 41224  }
 41225  
 41226  // Header returns a http.Header that can be modified by the caller to add
 41227  // headers to the request.
 41228  func (c *ProjectsLocationsAgentVersionsPatchCall) Header() http.Header {
 41229  	if c.header_ == nil {
 41230  		c.header_ = make(http.Header)
 41231  	}
 41232  	return c.header_
 41233  }
 41234  
 41235  func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
 41236  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41237  	var body io.Reader = nil
 41238  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
 41239  	if err != nil {
 41240  		return nil, err
 41241  	}
 41242  	c.urlParams_.Set("alt", alt)
 41243  	c.urlParams_.Set("prettyPrint", "false")
 41244  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 41245  	urls += "?" + c.urlParams_.Encode()
 41246  	req, err := http.NewRequest("PATCH", urls, body)
 41247  	if err != nil {
 41248  		return nil, err
 41249  	}
 41250  	req.Header = reqHeaders
 41251  	googleapi.Expand(req.URL, map[string]string{
 41252  		"name": c.nameid,
 41253  	})
 41254  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41255  }
 41256  
 41257  // Do executes the "dialogflow.projects.locations.agent.versions.patch" call.
 41258  // Any non-2xx status code is an error. Response headers are in either
 41259  // *GoogleCloudDialogflowV2Version.ServerResponse.Header or (if a response was
 41260  // returned at all) in error.(*googleapi.Error).Header. Use
 41261  // googleapi.IsNotModified to check whether the returned error was because
 41262  // http.StatusNotModified was returned.
 41263  func (c *ProjectsLocationsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
 41264  	gensupport.SetOptions(c.urlParams_, opts...)
 41265  	res, err := c.doRequest("json")
 41266  	if res != nil && res.StatusCode == http.StatusNotModified {
 41267  		if res.Body != nil {
 41268  			res.Body.Close()
 41269  		}
 41270  		return nil, gensupport.WrapError(&googleapi.Error{
 41271  			Code:   res.StatusCode,
 41272  			Header: res.Header,
 41273  		})
 41274  	}
 41275  	if err != nil {
 41276  		return nil, err
 41277  	}
 41278  	defer googleapi.CloseBody(res)
 41279  	if err := googleapi.CheckResponse(res); err != nil {
 41280  		return nil, gensupport.WrapError(err)
 41281  	}
 41282  	ret := &GoogleCloudDialogflowV2Version{
 41283  		ServerResponse: googleapi.ServerResponse{
 41284  			Header:         res.Header,
 41285  			HTTPStatusCode: res.StatusCode,
 41286  		},
 41287  	}
 41288  	target := &ret
 41289  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41290  		return nil, err
 41291  	}
 41292  	return ret, nil
 41293  }
 41294  
 41295  type ProjectsLocationsAnswerRecordsListCall struct {
 41296  	s            *Service
 41297  	parent       string
 41298  	urlParams_   gensupport.URLParams
 41299  	ifNoneMatch_ string
 41300  	ctx_         context.Context
 41301  	header_      http.Header
 41302  }
 41303  
 41304  // List: Returns the list of all answer records in the specified project in
 41305  // reverse chronological order.
 41306  //
 41307  //   - parent: The project to list all answer records for in reverse
 41308  //     chronological order. Format: `projects//locations/`.
 41309  func (r *ProjectsLocationsAnswerRecordsService) List(parent string) *ProjectsLocationsAnswerRecordsListCall {
 41310  	c := &ProjectsLocationsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41311  	c.parent = parent
 41312  	return c
 41313  }
 41314  
 41315  // Filter sets the optional parameter "filter": Filters to restrict results to
 41316  // specific answer records. Marked deprecated as it hasn't been, and isn't
 41317  // currently, supported. For more information about filtering, see API
 41318  // Filtering (https://aip.dev/160).
 41319  func (c *ProjectsLocationsAnswerRecordsListCall) Filter(filter string) *ProjectsLocationsAnswerRecordsListCall {
 41320  	c.urlParams_.Set("filter", filter)
 41321  	return c
 41322  }
 41323  
 41324  // PageSize sets the optional parameter "pageSize": The maximum number of
 41325  // records to return in a single page. The server may return fewer records than
 41326  // this. If unspecified, we use 10. The maximum is 100.
 41327  func (c *ProjectsLocationsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsLocationsAnswerRecordsListCall {
 41328  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 41329  	return c
 41330  }
 41331  
 41332  // PageToken sets the optional parameter "pageToken": The
 41333  // ListAnswerRecordsResponse.next_page_token value returned from a previous
 41334  // list request used to continue listing on the next page.
 41335  func (c *ProjectsLocationsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsLocationsAnswerRecordsListCall {
 41336  	c.urlParams_.Set("pageToken", pageToken)
 41337  	return c
 41338  }
 41339  
 41340  // Fields allows partial responses to be retrieved. See
 41341  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41342  // details.
 41343  func (c *ProjectsLocationsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsListCall {
 41344  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41345  	return c
 41346  }
 41347  
 41348  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41349  // object's ETag matches the given value. This is useful for getting updates
 41350  // only after the object has changed since the last request.
 41351  func (c *ProjectsLocationsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsListCall {
 41352  	c.ifNoneMatch_ = entityTag
 41353  	return c
 41354  }
 41355  
 41356  // Context sets the context to be used in this call's Do method.
 41357  func (c *ProjectsLocationsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsListCall {
 41358  	c.ctx_ = ctx
 41359  	return c
 41360  }
 41361  
 41362  // Header returns a http.Header that can be modified by the caller to add
 41363  // headers to the request.
 41364  func (c *ProjectsLocationsAnswerRecordsListCall) Header() http.Header {
 41365  	if c.header_ == nil {
 41366  		c.header_ = make(http.Header)
 41367  	}
 41368  	return c.header_
 41369  }
 41370  
 41371  func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
 41372  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41373  	if c.ifNoneMatch_ != "" {
 41374  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41375  	}
 41376  	var body io.Reader = nil
 41377  	c.urlParams_.Set("alt", alt)
 41378  	c.urlParams_.Set("prettyPrint", "false")
 41379  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/answerRecords")
 41380  	urls += "?" + c.urlParams_.Encode()
 41381  	req, err := http.NewRequest("GET", urls, body)
 41382  	if err != nil {
 41383  		return nil, err
 41384  	}
 41385  	req.Header = reqHeaders
 41386  	googleapi.Expand(req.URL, map[string]string{
 41387  		"parent": c.parent,
 41388  	})
 41389  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41390  }
 41391  
 41392  // Do executes the "dialogflow.projects.locations.answerRecords.list" call.
 41393  // Any non-2xx status code is an error. Response headers are in either
 41394  // *GoogleCloudDialogflowV2ListAnswerRecordsResponse.ServerResponse.Header or
 41395  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 41396  // googleapi.IsNotModified to check whether the returned error was because
 41397  // http.StatusNotModified was returned.
 41398  func (c *ProjectsLocationsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListAnswerRecordsResponse, error) {
 41399  	gensupport.SetOptions(c.urlParams_, opts...)
 41400  	res, err := c.doRequest("json")
 41401  	if res != nil && res.StatusCode == http.StatusNotModified {
 41402  		if res.Body != nil {
 41403  			res.Body.Close()
 41404  		}
 41405  		return nil, gensupport.WrapError(&googleapi.Error{
 41406  			Code:   res.StatusCode,
 41407  			Header: res.Header,
 41408  		})
 41409  	}
 41410  	if err != nil {
 41411  		return nil, err
 41412  	}
 41413  	defer googleapi.CloseBody(res)
 41414  	if err := googleapi.CheckResponse(res); err != nil {
 41415  		return nil, gensupport.WrapError(err)
 41416  	}
 41417  	ret := &GoogleCloudDialogflowV2ListAnswerRecordsResponse{
 41418  		ServerResponse: googleapi.ServerResponse{
 41419  			Header:         res.Header,
 41420  			HTTPStatusCode: res.StatusCode,
 41421  		},
 41422  	}
 41423  	target := &ret
 41424  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41425  		return nil, err
 41426  	}
 41427  	return ret, nil
 41428  }
 41429  
 41430  // Pages invokes f for each page of results.
 41431  // A non-nil error returned from f will halt the iteration.
 41432  // The provided context supersedes any context provided to the Context method.
 41433  func (c *ProjectsLocationsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListAnswerRecordsResponse) error) error {
 41434  	c.ctx_ = ctx
 41435  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 41436  	for {
 41437  		x, err := c.Do()
 41438  		if err != nil {
 41439  			return err
 41440  		}
 41441  		if err := f(x); err != nil {
 41442  			return err
 41443  		}
 41444  		if x.NextPageToken == "" {
 41445  			return nil
 41446  		}
 41447  		c.PageToken(x.NextPageToken)
 41448  	}
 41449  }
 41450  
 41451  type ProjectsLocationsAnswerRecordsPatchCall struct {
 41452  	s                                   *Service
 41453  	nameid                              string
 41454  	googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord
 41455  	urlParams_                          gensupport.URLParams
 41456  	ctx_                                context.Context
 41457  	header_                             http.Header
 41458  }
 41459  
 41460  // Patch: Updates the specified answer record.
 41461  //
 41462  //   - name: The unique identifier of this answer record. Format:
 41463  //     `projects//locations//answerRecords/`.
 41464  func (r *ProjectsLocationsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord) *ProjectsLocationsAnswerRecordsPatchCall {
 41465  	c := &ProjectsLocationsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41466  	c.nameid = nameid
 41467  	c.googleclouddialogflowv2answerrecord = googleclouddialogflowv2answerrecord
 41468  	return c
 41469  }
 41470  
 41471  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 41472  // control which fields get updated.
 41473  func (c *ProjectsLocationsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnswerRecordsPatchCall {
 41474  	c.urlParams_.Set("updateMask", updateMask)
 41475  	return c
 41476  }
 41477  
 41478  // Fields allows partial responses to be retrieved. See
 41479  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41480  // details.
 41481  func (c *ProjectsLocationsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsPatchCall {
 41482  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41483  	return c
 41484  }
 41485  
 41486  // Context sets the context to be used in this call's Do method.
 41487  func (c *ProjectsLocationsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsPatchCall {
 41488  	c.ctx_ = ctx
 41489  	return c
 41490  }
 41491  
 41492  // Header returns a http.Header that can be modified by the caller to add
 41493  // headers to the request.
 41494  func (c *ProjectsLocationsAnswerRecordsPatchCall) Header() http.Header {
 41495  	if c.header_ == nil {
 41496  		c.header_ = make(http.Header)
 41497  	}
 41498  	return c.header_
 41499  }
 41500  
 41501  func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
 41502  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41503  	var body io.Reader = nil
 41504  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2answerrecord)
 41505  	if err != nil {
 41506  		return nil, err
 41507  	}
 41508  	c.urlParams_.Set("alt", alt)
 41509  	c.urlParams_.Set("prettyPrint", "false")
 41510  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 41511  	urls += "?" + c.urlParams_.Encode()
 41512  	req, err := http.NewRequest("PATCH", urls, body)
 41513  	if err != nil {
 41514  		return nil, err
 41515  	}
 41516  	req.Header = reqHeaders
 41517  	googleapi.Expand(req.URL, map[string]string{
 41518  		"name": c.nameid,
 41519  	})
 41520  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41521  }
 41522  
 41523  // Do executes the "dialogflow.projects.locations.answerRecords.patch" call.
 41524  // Any non-2xx status code is an error. Response headers are in either
 41525  // *GoogleCloudDialogflowV2AnswerRecord.ServerResponse.Header or (if a response
 41526  // was returned at all) in error.(*googleapi.Error).Header. Use
 41527  // googleapi.IsNotModified to check whether the returned error was because
 41528  // http.StatusNotModified was returned.
 41529  func (c *ProjectsLocationsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnswerRecord, error) {
 41530  	gensupport.SetOptions(c.urlParams_, opts...)
 41531  	res, err := c.doRequest("json")
 41532  	if res != nil && res.StatusCode == http.StatusNotModified {
 41533  		if res.Body != nil {
 41534  			res.Body.Close()
 41535  		}
 41536  		return nil, gensupport.WrapError(&googleapi.Error{
 41537  			Code:   res.StatusCode,
 41538  			Header: res.Header,
 41539  		})
 41540  	}
 41541  	if err != nil {
 41542  		return nil, err
 41543  	}
 41544  	defer googleapi.CloseBody(res)
 41545  	if err := googleapi.CheckResponse(res); err != nil {
 41546  		return nil, gensupport.WrapError(err)
 41547  	}
 41548  	ret := &GoogleCloudDialogflowV2AnswerRecord{
 41549  		ServerResponse: googleapi.ServerResponse{
 41550  			Header:         res.Header,
 41551  			HTTPStatusCode: res.StatusCode,
 41552  		},
 41553  	}
 41554  	target := &ret
 41555  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41556  		return nil, err
 41557  	}
 41558  	return ret, nil
 41559  }
 41560  
 41561  type ProjectsLocationsConversationDatasetsCreateCall struct {
 41562  	s                                          *Service
 41563  	parent                                     string
 41564  	googleclouddialogflowv2conversationdataset *GoogleCloudDialogflowV2ConversationDataset
 41565  	urlParams_                                 gensupport.URLParams
 41566  	ctx_                                       context.Context
 41567  	header_                                    http.Header
 41568  }
 41569  
 41570  // Create: Creates a new conversation dataset. This method is a long-running
 41571  // operation
 41572  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 41573  // The returned `Operation` type has the following method-specific fields: -
 41574  // `metadata`: CreateConversationDatasetOperationMetadata - `response`:
 41575  // ConversationDataset
 41576  //
 41577  //   - parent: The project to create conversation dataset for. Format:
 41578  //     `projects//locations/`.
 41579  func (r *ProjectsLocationsConversationDatasetsService) Create(parent string, googleclouddialogflowv2conversationdataset *GoogleCloudDialogflowV2ConversationDataset) *ProjectsLocationsConversationDatasetsCreateCall {
 41580  	c := &ProjectsLocationsConversationDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41581  	c.parent = parent
 41582  	c.googleclouddialogflowv2conversationdataset = googleclouddialogflowv2conversationdataset
 41583  	return c
 41584  }
 41585  
 41586  // Fields allows partial responses to be retrieved. See
 41587  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41588  // details.
 41589  func (c *ProjectsLocationsConversationDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsCreateCall {
 41590  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41591  	return c
 41592  }
 41593  
 41594  // Context sets the context to be used in this call's Do method.
 41595  func (c *ProjectsLocationsConversationDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsCreateCall {
 41596  	c.ctx_ = ctx
 41597  	return c
 41598  }
 41599  
 41600  // Header returns a http.Header that can be modified by the caller to add
 41601  // headers to the request.
 41602  func (c *ProjectsLocationsConversationDatasetsCreateCall) Header() http.Header {
 41603  	if c.header_ == nil {
 41604  		c.header_ = make(http.Header)
 41605  	}
 41606  	return c.header_
 41607  }
 41608  
 41609  func (c *ProjectsLocationsConversationDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
 41610  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41611  	var body io.Reader = nil
 41612  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationdataset)
 41613  	if err != nil {
 41614  		return nil, err
 41615  	}
 41616  	c.urlParams_.Set("alt", alt)
 41617  	c.urlParams_.Set("prettyPrint", "false")
 41618  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationDatasets")
 41619  	urls += "?" + c.urlParams_.Encode()
 41620  	req, err := http.NewRequest("POST", urls, body)
 41621  	if err != nil {
 41622  		return nil, err
 41623  	}
 41624  	req.Header = reqHeaders
 41625  	googleapi.Expand(req.URL, map[string]string{
 41626  		"parent": c.parent,
 41627  	})
 41628  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41629  }
 41630  
 41631  // Do executes the "dialogflow.projects.locations.conversationDatasets.create" call.
 41632  // Any non-2xx status code is an error. Response headers are in either
 41633  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41634  // returned at all) in error.(*googleapi.Error).Header. Use
 41635  // googleapi.IsNotModified to check whether the returned error was because
 41636  // http.StatusNotModified was returned.
 41637  func (c *ProjectsLocationsConversationDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41638  	gensupport.SetOptions(c.urlParams_, opts...)
 41639  	res, err := c.doRequest("json")
 41640  	if res != nil && res.StatusCode == http.StatusNotModified {
 41641  		if res.Body != nil {
 41642  			res.Body.Close()
 41643  		}
 41644  		return nil, gensupport.WrapError(&googleapi.Error{
 41645  			Code:   res.StatusCode,
 41646  			Header: res.Header,
 41647  		})
 41648  	}
 41649  	if err != nil {
 41650  		return nil, err
 41651  	}
 41652  	defer googleapi.CloseBody(res)
 41653  	if err := googleapi.CheckResponse(res); err != nil {
 41654  		return nil, gensupport.WrapError(err)
 41655  	}
 41656  	ret := &GoogleLongrunningOperation{
 41657  		ServerResponse: googleapi.ServerResponse{
 41658  			Header:         res.Header,
 41659  			HTTPStatusCode: res.StatusCode,
 41660  		},
 41661  	}
 41662  	target := &ret
 41663  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41664  		return nil, err
 41665  	}
 41666  	return ret, nil
 41667  }
 41668  
 41669  type ProjectsLocationsConversationDatasetsDeleteCall struct {
 41670  	s          *Service
 41671  	name       string
 41672  	urlParams_ gensupport.URLParams
 41673  	ctx_       context.Context
 41674  	header_    http.Header
 41675  }
 41676  
 41677  // Delete: Deletes the specified conversation dataset. This method is a
 41678  // long-running operation
 41679  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 41680  // The returned `Operation` type has the following method-specific fields: -
 41681  // `metadata`: DeleteConversationDatasetOperationMetadata - `response`: An
 41682  // Empty message
 41683  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 41684  //
 41685  //   - name: The conversation dataset to delete. Format:
 41686  //     `projects//locations//conversationDatasets/`.
 41687  func (r *ProjectsLocationsConversationDatasetsService) Delete(name string) *ProjectsLocationsConversationDatasetsDeleteCall {
 41688  	c := &ProjectsLocationsConversationDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41689  	c.name = name
 41690  	return c
 41691  }
 41692  
 41693  // Fields allows partial responses to be retrieved. See
 41694  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41695  // details.
 41696  func (c *ProjectsLocationsConversationDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsDeleteCall {
 41697  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41698  	return c
 41699  }
 41700  
 41701  // Context sets the context to be used in this call's Do method.
 41702  func (c *ProjectsLocationsConversationDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsDeleteCall {
 41703  	c.ctx_ = ctx
 41704  	return c
 41705  }
 41706  
 41707  // Header returns a http.Header that can be modified by the caller to add
 41708  // headers to the request.
 41709  func (c *ProjectsLocationsConversationDatasetsDeleteCall) Header() http.Header {
 41710  	if c.header_ == nil {
 41711  		c.header_ = make(http.Header)
 41712  	}
 41713  	return c.header_
 41714  }
 41715  
 41716  func (c *ProjectsLocationsConversationDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 41717  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41718  	var body io.Reader = nil
 41719  	c.urlParams_.Set("alt", alt)
 41720  	c.urlParams_.Set("prettyPrint", "false")
 41721  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 41722  	urls += "?" + c.urlParams_.Encode()
 41723  	req, err := http.NewRequest("DELETE", urls, body)
 41724  	if err != nil {
 41725  		return nil, err
 41726  	}
 41727  	req.Header = reqHeaders
 41728  	googleapi.Expand(req.URL, map[string]string{
 41729  		"name": c.name,
 41730  	})
 41731  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41732  }
 41733  
 41734  // Do executes the "dialogflow.projects.locations.conversationDatasets.delete" call.
 41735  // Any non-2xx status code is an error. Response headers are in either
 41736  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41737  // returned at all) in error.(*googleapi.Error).Header. Use
 41738  // googleapi.IsNotModified to check whether the returned error was because
 41739  // http.StatusNotModified was returned.
 41740  func (c *ProjectsLocationsConversationDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41741  	gensupport.SetOptions(c.urlParams_, opts...)
 41742  	res, err := c.doRequest("json")
 41743  	if res != nil && res.StatusCode == http.StatusNotModified {
 41744  		if res.Body != nil {
 41745  			res.Body.Close()
 41746  		}
 41747  		return nil, gensupport.WrapError(&googleapi.Error{
 41748  			Code:   res.StatusCode,
 41749  			Header: res.Header,
 41750  		})
 41751  	}
 41752  	if err != nil {
 41753  		return nil, err
 41754  	}
 41755  	defer googleapi.CloseBody(res)
 41756  	if err := googleapi.CheckResponse(res); err != nil {
 41757  		return nil, gensupport.WrapError(err)
 41758  	}
 41759  	ret := &GoogleLongrunningOperation{
 41760  		ServerResponse: googleapi.ServerResponse{
 41761  			Header:         res.Header,
 41762  			HTTPStatusCode: res.StatusCode,
 41763  		},
 41764  	}
 41765  	target := &ret
 41766  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41767  		return nil, err
 41768  	}
 41769  	return ret, nil
 41770  }
 41771  
 41772  type ProjectsLocationsConversationDatasetsGetCall struct {
 41773  	s            *Service
 41774  	name         string
 41775  	urlParams_   gensupport.URLParams
 41776  	ifNoneMatch_ string
 41777  	ctx_         context.Context
 41778  	header_      http.Header
 41779  }
 41780  
 41781  // Get: Retrieves the specified conversation dataset.
 41782  //
 41783  //   - name: The conversation dataset to retrieve. Format:
 41784  //     `projects//locations//conversationDatasets/`.
 41785  func (r *ProjectsLocationsConversationDatasetsService) Get(name string) *ProjectsLocationsConversationDatasetsGetCall {
 41786  	c := &ProjectsLocationsConversationDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41787  	c.name = name
 41788  	return c
 41789  }
 41790  
 41791  // Fields allows partial responses to be retrieved. See
 41792  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41793  // details.
 41794  func (c *ProjectsLocationsConversationDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsGetCall {
 41795  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41796  	return c
 41797  }
 41798  
 41799  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41800  // object's ETag matches the given value. This is useful for getting updates
 41801  // only after the object has changed since the last request.
 41802  func (c *ProjectsLocationsConversationDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationDatasetsGetCall {
 41803  	c.ifNoneMatch_ = entityTag
 41804  	return c
 41805  }
 41806  
 41807  // Context sets the context to be used in this call's Do method.
 41808  func (c *ProjectsLocationsConversationDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsGetCall {
 41809  	c.ctx_ = ctx
 41810  	return c
 41811  }
 41812  
 41813  // Header returns a http.Header that can be modified by the caller to add
 41814  // headers to the request.
 41815  func (c *ProjectsLocationsConversationDatasetsGetCall) Header() http.Header {
 41816  	if c.header_ == nil {
 41817  		c.header_ = make(http.Header)
 41818  	}
 41819  	return c.header_
 41820  }
 41821  
 41822  func (c *ProjectsLocationsConversationDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
 41823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41824  	if c.ifNoneMatch_ != "" {
 41825  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41826  	}
 41827  	var body io.Reader = nil
 41828  	c.urlParams_.Set("alt", alt)
 41829  	c.urlParams_.Set("prettyPrint", "false")
 41830  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 41831  	urls += "?" + c.urlParams_.Encode()
 41832  	req, err := http.NewRequest("GET", urls, body)
 41833  	if err != nil {
 41834  		return nil, err
 41835  	}
 41836  	req.Header = reqHeaders
 41837  	googleapi.Expand(req.URL, map[string]string{
 41838  		"name": c.name,
 41839  	})
 41840  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41841  }
 41842  
 41843  // Do executes the "dialogflow.projects.locations.conversationDatasets.get" call.
 41844  // Any non-2xx status code is an error. Response headers are in either
 41845  // *GoogleCloudDialogflowV2ConversationDataset.ServerResponse.Header or (if a
 41846  // response was returned at all) in error.(*googleapi.Error).Header. Use
 41847  // googleapi.IsNotModified to check whether the returned error was because
 41848  // http.StatusNotModified was returned.
 41849  func (c *ProjectsLocationsConversationDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationDataset, error) {
 41850  	gensupport.SetOptions(c.urlParams_, opts...)
 41851  	res, err := c.doRequest("json")
 41852  	if res != nil && res.StatusCode == http.StatusNotModified {
 41853  		if res.Body != nil {
 41854  			res.Body.Close()
 41855  		}
 41856  		return nil, gensupport.WrapError(&googleapi.Error{
 41857  			Code:   res.StatusCode,
 41858  			Header: res.Header,
 41859  		})
 41860  	}
 41861  	if err != nil {
 41862  		return nil, err
 41863  	}
 41864  	defer googleapi.CloseBody(res)
 41865  	if err := googleapi.CheckResponse(res); err != nil {
 41866  		return nil, gensupport.WrapError(err)
 41867  	}
 41868  	ret := &GoogleCloudDialogflowV2ConversationDataset{
 41869  		ServerResponse: googleapi.ServerResponse{
 41870  			Header:         res.Header,
 41871  			HTTPStatusCode: res.StatusCode,
 41872  		},
 41873  	}
 41874  	target := &ret
 41875  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41876  		return nil, err
 41877  	}
 41878  	return ret, nil
 41879  }
 41880  
 41881  type ProjectsLocationsConversationDatasetsImportConversationDataCall struct {
 41882  	s                                                    *Service
 41883  	name                                                 string
 41884  	googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest
 41885  	urlParams_                                           gensupport.URLParams
 41886  	ctx_                                                 context.Context
 41887  	header_                                              http.Header
 41888  }
 41889  
 41890  // ImportConversationData: Import data into the specified conversation dataset.
 41891  // Note that it is not allowed to import data to a conversation dataset that
 41892  // already has data in it. This method is a long-running operation
 41893  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 41894  // The returned `Operation` type has the following method-specific fields: -
 41895  // `metadata`: ImportConversationDataOperationMetadata - `response`:
 41896  // ImportConversationDataOperationResponse
 41897  //
 41898  //   - name: Dataset resource name. Format:
 41899  //     `projects//locations//conversationDatasets/`.
 41900  func (r *ProjectsLocationsConversationDatasetsService) ImportConversationData(name string, googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest) *ProjectsLocationsConversationDatasetsImportConversationDataCall {
 41901  	c := &ProjectsLocationsConversationDatasetsImportConversationDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41902  	c.name = name
 41903  	c.googleclouddialogflowv2importconversationdatarequest = googleclouddialogflowv2importconversationdatarequest
 41904  	return c
 41905  }
 41906  
 41907  // Fields allows partial responses to be retrieved. See
 41908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41909  // details.
 41910  func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsImportConversationDataCall {
 41911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41912  	return c
 41913  }
 41914  
 41915  // Context sets the context to be used in this call's Do method.
 41916  func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsImportConversationDataCall {
 41917  	c.ctx_ = ctx
 41918  	return c
 41919  }
 41920  
 41921  // Header returns a http.Header that can be modified by the caller to add
 41922  // headers to the request.
 41923  func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Header() http.Header {
 41924  	if c.header_ == nil {
 41925  		c.header_ = make(http.Header)
 41926  	}
 41927  	return c.header_
 41928  }
 41929  
 41930  func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) doRequest(alt string) (*http.Response, error) {
 41931  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41932  	var body io.Reader = nil
 41933  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importconversationdatarequest)
 41934  	if err != nil {
 41935  		return nil, err
 41936  	}
 41937  	c.urlParams_.Set("alt", alt)
 41938  	c.urlParams_.Set("prettyPrint", "false")
 41939  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:importConversationData")
 41940  	urls += "?" + c.urlParams_.Encode()
 41941  	req, err := http.NewRequest("POST", urls, body)
 41942  	if err != nil {
 41943  		return nil, err
 41944  	}
 41945  	req.Header = reqHeaders
 41946  	googleapi.Expand(req.URL, map[string]string{
 41947  		"name": c.name,
 41948  	})
 41949  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41950  }
 41951  
 41952  // Do executes the "dialogflow.projects.locations.conversationDatasets.importConversationData" call.
 41953  // Any non-2xx status code is an error. Response headers are in either
 41954  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41955  // returned at all) in error.(*googleapi.Error).Header. Use
 41956  // googleapi.IsNotModified to check whether the returned error was because
 41957  // http.StatusNotModified was returned.
 41958  func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41959  	gensupport.SetOptions(c.urlParams_, opts...)
 41960  	res, err := c.doRequest("json")
 41961  	if res != nil && res.StatusCode == http.StatusNotModified {
 41962  		if res.Body != nil {
 41963  			res.Body.Close()
 41964  		}
 41965  		return nil, gensupport.WrapError(&googleapi.Error{
 41966  			Code:   res.StatusCode,
 41967  			Header: res.Header,
 41968  		})
 41969  	}
 41970  	if err != nil {
 41971  		return nil, err
 41972  	}
 41973  	defer googleapi.CloseBody(res)
 41974  	if err := googleapi.CheckResponse(res); err != nil {
 41975  		return nil, gensupport.WrapError(err)
 41976  	}
 41977  	ret := &GoogleLongrunningOperation{
 41978  		ServerResponse: googleapi.ServerResponse{
 41979  			Header:         res.Header,
 41980  			HTTPStatusCode: res.StatusCode,
 41981  		},
 41982  	}
 41983  	target := &ret
 41984  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41985  		return nil, err
 41986  	}
 41987  	return ret, nil
 41988  }
 41989  
 41990  type ProjectsLocationsConversationDatasetsListCall struct {
 41991  	s            *Service
 41992  	parent       string
 41993  	urlParams_   gensupport.URLParams
 41994  	ifNoneMatch_ string
 41995  	ctx_         context.Context
 41996  	header_      http.Header
 41997  }
 41998  
 41999  // List: Returns the list of all conversation datasets in the specified project
 42000  // and location.
 42001  //
 42002  //   - parent: The project and location name to list all conversation datasets
 42003  //     for. Format: `projects//locations/`.
 42004  func (r *ProjectsLocationsConversationDatasetsService) List(parent string) *ProjectsLocationsConversationDatasetsListCall {
 42005  	c := &ProjectsLocationsConversationDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42006  	c.parent = parent
 42007  	return c
 42008  }
 42009  
 42010  // PageSize sets the optional parameter "pageSize": Maximum number of
 42011  // conversation datasets to return in a single page. By default 100 and at most
 42012  // 1000.
 42013  func (c *ProjectsLocationsConversationDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationDatasetsListCall {
 42014  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 42015  	return c
 42016  }
 42017  
 42018  // PageToken sets the optional parameter "pageToken": The next_page_token value
 42019  // returned from a previous list request.
 42020  func (c *ProjectsLocationsConversationDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsConversationDatasetsListCall {
 42021  	c.urlParams_.Set("pageToken", pageToken)
 42022  	return c
 42023  }
 42024  
 42025  // Fields allows partial responses to be retrieved. See
 42026  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42027  // details.
 42028  func (c *ProjectsLocationsConversationDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsListCall {
 42029  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42030  	return c
 42031  }
 42032  
 42033  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42034  // object's ETag matches the given value. This is useful for getting updates
 42035  // only after the object has changed since the last request.
 42036  func (c *ProjectsLocationsConversationDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationDatasetsListCall {
 42037  	c.ifNoneMatch_ = entityTag
 42038  	return c
 42039  }
 42040  
 42041  // Context sets the context to be used in this call's Do method.
 42042  func (c *ProjectsLocationsConversationDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsListCall {
 42043  	c.ctx_ = ctx
 42044  	return c
 42045  }
 42046  
 42047  // Header returns a http.Header that can be modified by the caller to add
 42048  // headers to the request.
 42049  func (c *ProjectsLocationsConversationDatasetsListCall) Header() http.Header {
 42050  	if c.header_ == nil {
 42051  		c.header_ = make(http.Header)
 42052  	}
 42053  	return c.header_
 42054  }
 42055  
 42056  func (c *ProjectsLocationsConversationDatasetsListCall) doRequest(alt string) (*http.Response, error) {
 42057  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42058  	if c.ifNoneMatch_ != "" {
 42059  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42060  	}
 42061  	var body io.Reader = nil
 42062  	c.urlParams_.Set("alt", alt)
 42063  	c.urlParams_.Set("prettyPrint", "false")
 42064  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationDatasets")
 42065  	urls += "?" + c.urlParams_.Encode()
 42066  	req, err := http.NewRequest("GET", urls, body)
 42067  	if err != nil {
 42068  		return nil, err
 42069  	}
 42070  	req.Header = reqHeaders
 42071  	googleapi.Expand(req.URL, map[string]string{
 42072  		"parent": c.parent,
 42073  	})
 42074  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42075  }
 42076  
 42077  // Do executes the "dialogflow.projects.locations.conversationDatasets.list" call.
 42078  // Any non-2xx status code is an error. Response headers are in either
 42079  // *GoogleCloudDialogflowV2ListConversationDatasetsResponse.ServerResponse.Heade
 42080  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 42081  // Use googleapi.IsNotModified to check whether the returned error was because
 42082  // http.StatusNotModified was returned.
 42083  func (c *ProjectsLocationsConversationDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationDatasetsResponse, error) {
 42084  	gensupport.SetOptions(c.urlParams_, opts...)
 42085  	res, err := c.doRequest("json")
 42086  	if res != nil && res.StatusCode == http.StatusNotModified {
 42087  		if res.Body != nil {
 42088  			res.Body.Close()
 42089  		}
 42090  		return nil, gensupport.WrapError(&googleapi.Error{
 42091  			Code:   res.StatusCode,
 42092  			Header: res.Header,
 42093  		})
 42094  	}
 42095  	if err != nil {
 42096  		return nil, err
 42097  	}
 42098  	defer googleapi.CloseBody(res)
 42099  	if err := googleapi.CheckResponse(res); err != nil {
 42100  		return nil, gensupport.WrapError(err)
 42101  	}
 42102  	ret := &GoogleCloudDialogflowV2ListConversationDatasetsResponse{
 42103  		ServerResponse: googleapi.ServerResponse{
 42104  			Header:         res.Header,
 42105  			HTTPStatusCode: res.StatusCode,
 42106  		},
 42107  	}
 42108  	target := &ret
 42109  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42110  		return nil, err
 42111  	}
 42112  	return ret, nil
 42113  }
 42114  
 42115  // Pages invokes f for each page of results.
 42116  // A non-nil error returned from f will halt the iteration.
 42117  // The provided context supersedes any context provided to the Context method.
 42118  func (c *ProjectsLocationsConversationDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationDatasetsResponse) error) error {
 42119  	c.ctx_ = ctx
 42120  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 42121  	for {
 42122  		x, err := c.Do()
 42123  		if err != nil {
 42124  			return err
 42125  		}
 42126  		if err := f(x); err != nil {
 42127  			return err
 42128  		}
 42129  		if x.NextPageToken == "" {
 42130  			return nil
 42131  		}
 42132  		c.PageToken(x.NextPageToken)
 42133  	}
 42134  }
 42135  
 42136  type ProjectsLocationsConversationModelsCreateCall struct {
 42137  	s                                        *Service
 42138  	parent                                   string
 42139  	googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel
 42140  	urlParams_                               gensupport.URLParams
 42141  	ctx_                                     context.Context
 42142  	header_                                  http.Header
 42143  }
 42144  
 42145  // Create: Creates a model. This method is a long-running operation
 42146  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 42147  // The returned `Operation` type has the following method-specific fields: -
 42148  // `metadata`: CreateConversationModelOperationMetadata - `response`:
 42149  // ConversationModel
 42150  //
 42151  // - parent: The project to create conversation model for. Format: `projects/`.
 42152  func (r *ProjectsLocationsConversationModelsService) Create(parent string, googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel) *ProjectsLocationsConversationModelsCreateCall {
 42153  	c := &ProjectsLocationsConversationModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42154  	c.parent = parent
 42155  	c.googleclouddialogflowv2conversationmodel = googleclouddialogflowv2conversationmodel
 42156  	return c
 42157  }
 42158  
 42159  // Fields allows partial responses to be retrieved. See
 42160  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42161  // details.
 42162  func (c *ProjectsLocationsConversationModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsCreateCall {
 42163  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42164  	return c
 42165  }
 42166  
 42167  // Context sets the context to be used in this call's Do method.
 42168  func (c *ProjectsLocationsConversationModelsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsCreateCall {
 42169  	c.ctx_ = ctx
 42170  	return c
 42171  }
 42172  
 42173  // Header returns a http.Header that can be modified by the caller to add
 42174  // headers to the request.
 42175  func (c *ProjectsLocationsConversationModelsCreateCall) Header() http.Header {
 42176  	if c.header_ == nil {
 42177  		c.header_ = make(http.Header)
 42178  	}
 42179  	return c.header_
 42180  }
 42181  
 42182  func (c *ProjectsLocationsConversationModelsCreateCall) doRequest(alt string) (*http.Response, error) {
 42183  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42184  	var body io.Reader = nil
 42185  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationmodel)
 42186  	if err != nil {
 42187  		return nil, err
 42188  	}
 42189  	c.urlParams_.Set("alt", alt)
 42190  	c.urlParams_.Set("prettyPrint", "false")
 42191  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
 42192  	urls += "?" + c.urlParams_.Encode()
 42193  	req, err := http.NewRequest("POST", urls, body)
 42194  	if err != nil {
 42195  		return nil, err
 42196  	}
 42197  	req.Header = reqHeaders
 42198  	googleapi.Expand(req.URL, map[string]string{
 42199  		"parent": c.parent,
 42200  	})
 42201  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42202  }
 42203  
 42204  // Do executes the "dialogflow.projects.locations.conversationModels.create" call.
 42205  // Any non-2xx status code is an error. Response headers are in either
 42206  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42207  // returned at all) in error.(*googleapi.Error).Header. Use
 42208  // googleapi.IsNotModified to check whether the returned error was because
 42209  // http.StatusNotModified was returned.
 42210  func (c *ProjectsLocationsConversationModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42211  	gensupport.SetOptions(c.urlParams_, opts...)
 42212  	res, err := c.doRequest("json")
 42213  	if res != nil && res.StatusCode == http.StatusNotModified {
 42214  		if res.Body != nil {
 42215  			res.Body.Close()
 42216  		}
 42217  		return nil, gensupport.WrapError(&googleapi.Error{
 42218  			Code:   res.StatusCode,
 42219  			Header: res.Header,
 42220  		})
 42221  	}
 42222  	if err != nil {
 42223  		return nil, err
 42224  	}
 42225  	defer googleapi.CloseBody(res)
 42226  	if err := googleapi.CheckResponse(res); err != nil {
 42227  		return nil, gensupport.WrapError(err)
 42228  	}
 42229  	ret := &GoogleLongrunningOperation{
 42230  		ServerResponse: googleapi.ServerResponse{
 42231  			Header:         res.Header,
 42232  			HTTPStatusCode: res.StatusCode,
 42233  		},
 42234  	}
 42235  	target := &ret
 42236  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42237  		return nil, err
 42238  	}
 42239  	return ret, nil
 42240  }
 42241  
 42242  type ProjectsLocationsConversationModelsDeleteCall struct {
 42243  	s          *Service
 42244  	name       string
 42245  	urlParams_ gensupport.URLParams
 42246  	ctx_       context.Context
 42247  	header_    http.Header
 42248  }
 42249  
 42250  // Delete: Deletes a model. This method is a long-running operation
 42251  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 42252  // The returned `Operation` type has the following method-specific fields: -
 42253  // `metadata`: DeleteConversationModelOperationMetadata - `response`: An Empty
 42254  // message
 42255  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 42256  //
 42257  //   - name: The conversation model to delete. Format:
 42258  //     `projects//conversationModels/`.
 42259  func (r *ProjectsLocationsConversationModelsService) Delete(name string) *ProjectsLocationsConversationModelsDeleteCall {
 42260  	c := &ProjectsLocationsConversationModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42261  	c.name = name
 42262  	return c
 42263  }
 42264  
 42265  // Fields allows partial responses to be retrieved. See
 42266  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42267  // details.
 42268  func (c *ProjectsLocationsConversationModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsDeleteCall {
 42269  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42270  	return c
 42271  }
 42272  
 42273  // Context sets the context to be used in this call's Do method.
 42274  func (c *ProjectsLocationsConversationModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsDeleteCall {
 42275  	c.ctx_ = ctx
 42276  	return c
 42277  }
 42278  
 42279  // Header returns a http.Header that can be modified by the caller to add
 42280  // headers to the request.
 42281  func (c *ProjectsLocationsConversationModelsDeleteCall) Header() http.Header {
 42282  	if c.header_ == nil {
 42283  		c.header_ = make(http.Header)
 42284  	}
 42285  	return c.header_
 42286  }
 42287  
 42288  func (c *ProjectsLocationsConversationModelsDeleteCall) doRequest(alt string) (*http.Response, error) {
 42289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42290  	var body io.Reader = nil
 42291  	c.urlParams_.Set("alt", alt)
 42292  	c.urlParams_.Set("prettyPrint", "false")
 42293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 42294  	urls += "?" + c.urlParams_.Encode()
 42295  	req, err := http.NewRequest("DELETE", urls, body)
 42296  	if err != nil {
 42297  		return nil, err
 42298  	}
 42299  	req.Header = reqHeaders
 42300  	googleapi.Expand(req.URL, map[string]string{
 42301  		"name": c.name,
 42302  	})
 42303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42304  }
 42305  
 42306  // Do executes the "dialogflow.projects.locations.conversationModels.delete" call.
 42307  // Any non-2xx status code is an error. Response headers are in either
 42308  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42309  // returned at all) in error.(*googleapi.Error).Header. Use
 42310  // googleapi.IsNotModified to check whether the returned error was because
 42311  // http.StatusNotModified was returned.
 42312  func (c *ProjectsLocationsConversationModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42313  	gensupport.SetOptions(c.urlParams_, opts...)
 42314  	res, err := c.doRequest("json")
 42315  	if res != nil && res.StatusCode == http.StatusNotModified {
 42316  		if res.Body != nil {
 42317  			res.Body.Close()
 42318  		}
 42319  		return nil, gensupport.WrapError(&googleapi.Error{
 42320  			Code:   res.StatusCode,
 42321  			Header: res.Header,
 42322  		})
 42323  	}
 42324  	if err != nil {
 42325  		return nil, err
 42326  	}
 42327  	defer googleapi.CloseBody(res)
 42328  	if err := googleapi.CheckResponse(res); err != nil {
 42329  		return nil, gensupport.WrapError(err)
 42330  	}
 42331  	ret := &GoogleLongrunningOperation{
 42332  		ServerResponse: googleapi.ServerResponse{
 42333  			Header:         res.Header,
 42334  			HTTPStatusCode: res.StatusCode,
 42335  		},
 42336  	}
 42337  	target := &ret
 42338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42339  		return nil, err
 42340  	}
 42341  	return ret, nil
 42342  }
 42343  
 42344  type ProjectsLocationsConversationModelsDeployCall struct {
 42345  	s                                                     *Service
 42346  	name                                                  string
 42347  	googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest
 42348  	urlParams_                                            gensupport.URLParams
 42349  	ctx_                                                  context.Context
 42350  	header_                                               http.Header
 42351  }
 42352  
 42353  // Deploy: Deploys a model. If a model is already deployed, deploying it has no
 42354  // effect. A model can only serve prediction requests after it gets deployed.
 42355  // For article suggestion, custom model will not be used unless it is deployed.
 42356  // This method is a long-running operation
 42357  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 42358  // The returned `Operation` type has the following method-specific fields: -
 42359  // `metadata`: DeployConversationModelOperationMetadata - `response`: An Empty
 42360  // message
 42361  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 42362  //
 42363  //   - name: The conversation model to deploy. Format:
 42364  //     `projects//conversationModels/`.
 42365  func (r *ProjectsLocationsConversationModelsService) Deploy(name string, googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest) *ProjectsLocationsConversationModelsDeployCall {
 42366  	c := &ProjectsLocationsConversationModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42367  	c.name = name
 42368  	c.googleclouddialogflowv2deployconversationmodelrequest = googleclouddialogflowv2deployconversationmodelrequest
 42369  	return c
 42370  }
 42371  
 42372  // Fields allows partial responses to be retrieved. See
 42373  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42374  // details.
 42375  func (c *ProjectsLocationsConversationModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsDeployCall {
 42376  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42377  	return c
 42378  }
 42379  
 42380  // Context sets the context to be used in this call's Do method.
 42381  func (c *ProjectsLocationsConversationModelsDeployCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsDeployCall {
 42382  	c.ctx_ = ctx
 42383  	return c
 42384  }
 42385  
 42386  // Header returns a http.Header that can be modified by the caller to add
 42387  // headers to the request.
 42388  func (c *ProjectsLocationsConversationModelsDeployCall) Header() http.Header {
 42389  	if c.header_ == nil {
 42390  		c.header_ = make(http.Header)
 42391  	}
 42392  	return c.header_
 42393  }
 42394  
 42395  func (c *ProjectsLocationsConversationModelsDeployCall) doRequest(alt string) (*http.Response, error) {
 42396  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42397  	var body io.Reader = nil
 42398  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2deployconversationmodelrequest)
 42399  	if err != nil {
 42400  		return nil, err
 42401  	}
 42402  	c.urlParams_.Set("alt", alt)
 42403  	c.urlParams_.Set("prettyPrint", "false")
 42404  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:deploy")
 42405  	urls += "?" + c.urlParams_.Encode()
 42406  	req, err := http.NewRequest("POST", urls, body)
 42407  	if err != nil {
 42408  		return nil, err
 42409  	}
 42410  	req.Header = reqHeaders
 42411  	googleapi.Expand(req.URL, map[string]string{
 42412  		"name": c.name,
 42413  	})
 42414  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42415  }
 42416  
 42417  // Do executes the "dialogflow.projects.locations.conversationModels.deploy" call.
 42418  // Any non-2xx status code is an error. Response headers are in either
 42419  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42420  // returned at all) in error.(*googleapi.Error).Header. Use
 42421  // googleapi.IsNotModified to check whether the returned error was because
 42422  // http.StatusNotModified was returned.
 42423  func (c *ProjectsLocationsConversationModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42424  	gensupport.SetOptions(c.urlParams_, opts...)
 42425  	res, err := c.doRequest("json")
 42426  	if res != nil && res.StatusCode == http.StatusNotModified {
 42427  		if res.Body != nil {
 42428  			res.Body.Close()
 42429  		}
 42430  		return nil, gensupport.WrapError(&googleapi.Error{
 42431  			Code:   res.StatusCode,
 42432  			Header: res.Header,
 42433  		})
 42434  	}
 42435  	if err != nil {
 42436  		return nil, err
 42437  	}
 42438  	defer googleapi.CloseBody(res)
 42439  	if err := googleapi.CheckResponse(res); err != nil {
 42440  		return nil, gensupport.WrapError(err)
 42441  	}
 42442  	ret := &GoogleLongrunningOperation{
 42443  		ServerResponse: googleapi.ServerResponse{
 42444  			Header:         res.Header,
 42445  			HTTPStatusCode: res.StatusCode,
 42446  		},
 42447  	}
 42448  	target := &ret
 42449  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42450  		return nil, err
 42451  	}
 42452  	return ret, nil
 42453  }
 42454  
 42455  type ProjectsLocationsConversationModelsGetCall struct {
 42456  	s            *Service
 42457  	name         string
 42458  	urlParams_   gensupport.URLParams
 42459  	ifNoneMatch_ string
 42460  	ctx_         context.Context
 42461  	header_      http.Header
 42462  }
 42463  
 42464  // Get: Gets conversation model.
 42465  //
 42466  //   - name: The conversation model to retrieve. Format:
 42467  //     `projects//conversationModels/`.
 42468  func (r *ProjectsLocationsConversationModelsService) Get(name string) *ProjectsLocationsConversationModelsGetCall {
 42469  	c := &ProjectsLocationsConversationModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42470  	c.name = name
 42471  	return c
 42472  }
 42473  
 42474  // Fields allows partial responses to be retrieved. See
 42475  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42476  // details.
 42477  func (c *ProjectsLocationsConversationModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsGetCall {
 42478  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42479  	return c
 42480  }
 42481  
 42482  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42483  // object's ETag matches the given value. This is useful for getting updates
 42484  // only after the object has changed since the last request.
 42485  func (c *ProjectsLocationsConversationModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsGetCall {
 42486  	c.ifNoneMatch_ = entityTag
 42487  	return c
 42488  }
 42489  
 42490  // Context sets the context to be used in this call's Do method.
 42491  func (c *ProjectsLocationsConversationModelsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsGetCall {
 42492  	c.ctx_ = ctx
 42493  	return c
 42494  }
 42495  
 42496  // Header returns a http.Header that can be modified by the caller to add
 42497  // headers to the request.
 42498  func (c *ProjectsLocationsConversationModelsGetCall) Header() http.Header {
 42499  	if c.header_ == nil {
 42500  		c.header_ = make(http.Header)
 42501  	}
 42502  	return c.header_
 42503  }
 42504  
 42505  func (c *ProjectsLocationsConversationModelsGetCall) doRequest(alt string) (*http.Response, error) {
 42506  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42507  	if c.ifNoneMatch_ != "" {
 42508  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42509  	}
 42510  	var body io.Reader = nil
 42511  	c.urlParams_.Set("alt", alt)
 42512  	c.urlParams_.Set("prettyPrint", "false")
 42513  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 42514  	urls += "?" + c.urlParams_.Encode()
 42515  	req, err := http.NewRequest("GET", urls, body)
 42516  	if err != nil {
 42517  		return nil, err
 42518  	}
 42519  	req.Header = reqHeaders
 42520  	googleapi.Expand(req.URL, map[string]string{
 42521  		"name": c.name,
 42522  	})
 42523  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42524  }
 42525  
 42526  // Do executes the "dialogflow.projects.locations.conversationModels.get" call.
 42527  // Any non-2xx status code is an error. Response headers are in either
 42528  // *GoogleCloudDialogflowV2ConversationModel.ServerResponse.Header or (if a
 42529  // response was returned at all) in error.(*googleapi.Error).Header. Use
 42530  // googleapi.IsNotModified to check whether the returned error was because
 42531  // http.StatusNotModified was returned.
 42532  func (c *ProjectsLocationsConversationModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModel, error) {
 42533  	gensupport.SetOptions(c.urlParams_, opts...)
 42534  	res, err := c.doRequest("json")
 42535  	if res != nil && res.StatusCode == http.StatusNotModified {
 42536  		if res.Body != nil {
 42537  			res.Body.Close()
 42538  		}
 42539  		return nil, gensupport.WrapError(&googleapi.Error{
 42540  			Code:   res.StatusCode,
 42541  			Header: res.Header,
 42542  		})
 42543  	}
 42544  	if err != nil {
 42545  		return nil, err
 42546  	}
 42547  	defer googleapi.CloseBody(res)
 42548  	if err := googleapi.CheckResponse(res); err != nil {
 42549  		return nil, gensupport.WrapError(err)
 42550  	}
 42551  	ret := &GoogleCloudDialogflowV2ConversationModel{
 42552  		ServerResponse: googleapi.ServerResponse{
 42553  			Header:         res.Header,
 42554  			HTTPStatusCode: res.StatusCode,
 42555  		},
 42556  	}
 42557  	target := &ret
 42558  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42559  		return nil, err
 42560  	}
 42561  	return ret, nil
 42562  }
 42563  
 42564  type ProjectsLocationsConversationModelsListCall struct {
 42565  	s            *Service
 42566  	parent       string
 42567  	urlParams_   gensupport.URLParams
 42568  	ifNoneMatch_ string
 42569  	ctx_         context.Context
 42570  	header_      http.Header
 42571  }
 42572  
 42573  // List: Lists conversation models.
 42574  //
 42575  //   - parent: The project to list all conversation models for. Format:
 42576  //     `projects/`.
 42577  func (r *ProjectsLocationsConversationModelsService) List(parent string) *ProjectsLocationsConversationModelsListCall {
 42578  	c := &ProjectsLocationsConversationModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42579  	c.parent = parent
 42580  	return c
 42581  }
 42582  
 42583  // PageSize sets the optional parameter "pageSize": Maximum number of
 42584  // conversation models to return in a single page. By default 100 and at most
 42585  // 1000.
 42586  func (c *ProjectsLocationsConversationModelsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationModelsListCall {
 42587  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 42588  	return c
 42589  }
 42590  
 42591  // PageToken sets the optional parameter "pageToken": The next_page_token value
 42592  // returned from a previous list request.
 42593  func (c *ProjectsLocationsConversationModelsListCall) PageToken(pageToken string) *ProjectsLocationsConversationModelsListCall {
 42594  	c.urlParams_.Set("pageToken", pageToken)
 42595  	return c
 42596  }
 42597  
 42598  // Fields allows partial responses to be retrieved. See
 42599  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42600  // details.
 42601  func (c *ProjectsLocationsConversationModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsListCall {
 42602  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42603  	return c
 42604  }
 42605  
 42606  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42607  // object's ETag matches the given value. This is useful for getting updates
 42608  // only after the object has changed since the last request.
 42609  func (c *ProjectsLocationsConversationModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsListCall {
 42610  	c.ifNoneMatch_ = entityTag
 42611  	return c
 42612  }
 42613  
 42614  // Context sets the context to be used in this call's Do method.
 42615  func (c *ProjectsLocationsConversationModelsListCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsListCall {
 42616  	c.ctx_ = ctx
 42617  	return c
 42618  }
 42619  
 42620  // Header returns a http.Header that can be modified by the caller to add
 42621  // headers to the request.
 42622  func (c *ProjectsLocationsConversationModelsListCall) Header() http.Header {
 42623  	if c.header_ == nil {
 42624  		c.header_ = make(http.Header)
 42625  	}
 42626  	return c.header_
 42627  }
 42628  
 42629  func (c *ProjectsLocationsConversationModelsListCall) doRequest(alt string) (*http.Response, error) {
 42630  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42631  	if c.ifNoneMatch_ != "" {
 42632  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42633  	}
 42634  	var body io.Reader = nil
 42635  	c.urlParams_.Set("alt", alt)
 42636  	c.urlParams_.Set("prettyPrint", "false")
 42637  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
 42638  	urls += "?" + c.urlParams_.Encode()
 42639  	req, err := http.NewRequest("GET", urls, body)
 42640  	if err != nil {
 42641  		return nil, err
 42642  	}
 42643  	req.Header = reqHeaders
 42644  	googleapi.Expand(req.URL, map[string]string{
 42645  		"parent": c.parent,
 42646  	})
 42647  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42648  }
 42649  
 42650  // Do executes the "dialogflow.projects.locations.conversationModels.list" call.
 42651  // Any non-2xx status code is an error. Response headers are in either
 42652  // *GoogleCloudDialogflowV2ListConversationModelsResponse.ServerResponse.Header
 42653  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 42654  // Use googleapi.IsNotModified to check whether the returned error was because
 42655  // http.StatusNotModified was returned.
 42656  func (c *ProjectsLocationsConversationModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelsResponse, error) {
 42657  	gensupport.SetOptions(c.urlParams_, opts...)
 42658  	res, err := c.doRequest("json")
 42659  	if res != nil && res.StatusCode == http.StatusNotModified {
 42660  		if res.Body != nil {
 42661  			res.Body.Close()
 42662  		}
 42663  		return nil, gensupport.WrapError(&googleapi.Error{
 42664  			Code:   res.StatusCode,
 42665  			Header: res.Header,
 42666  		})
 42667  	}
 42668  	if err != nil {
 42669  		return nil, err
 42670  	}
 42671  	defer googleapi.CloseBody(res)
 42672  	if err := googleapi.CheckResponse(res); err != nil {
 42673  		return nil, gensupport.WrapError(err)
 42674  	}
 42675  	ret := &GoogleCloudDialogflowV2ListConversationModelsResponse{
 42676  		ServerResponse: googleapi.ServerResponse{
 42677  			Header:         res.Header,
 42678  			HTTPStatusCode: res.StatusCode,
 42679  		},
 42680  	}
 42681  	target := &ret
 42682  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42683  		return nil, err
 42684  	}
 42685  	return ret, nil
 42686  }
 42687  
 42688  // Pages invokes f for each page of results.
 42689  // A non-nil error returned from f will halt the iteration.
 42690  // The provided context supersedes any context provided to the Context method.
 42691  func (c *ProjectsLocationsConversationModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelsResponse) error) error {
 42692  	c.ctx_ = ctx
 42693  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 42694  	for {
 42695  		x, err := c.Do()
 42696  		if err != nil {
 42697  			return err
 42698  		}
 42699  		if err := f(x); err != nil {
 42700  			return err
 42701  		}
 42702  		if x.NextPageToken == "" {
 42703  			return nil
 42704  		}
 42705  		c.PageToken(x.NextPageToken)
 42706  	}
 42707  }
 42708  
 42709  type ProjectsLocationsConversationModelsUndeployCall struct {
 42710  	s                                                       *Service
 42711  	name                                                    string
 42712  	googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest
 42713  	urlParams_                                              gensupport.URLParams
 42714  	ctx_                                                    context.Context
 42715  	header_                                                 http.Header
 42716  }
 42717  
 42718  // Undeploy: Undeploys a model. If the model is not deployed this method has no
 42719  // effect. If the model is currently being used: - For article suggestion,
 42720  // article suggestion will fallback to the default model if model is
 42721  // undeployed. This method is a long-running operation
 42722  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 42723  // The returned `Operation` type has the following method-specific fields: -
 42724  // `metadata`: UndeployConversationModelOperationMetadata - `response`: An
 42725  // Empty message
 42726  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 42727  //
 42728  //   - name: The conversation model to undeploy. Format:
 42729  //     `projects//conversationModels/`.
 42730  func (r *ProjectsLocationsConversationModelsService) Undeploy(name string, googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest) *ProjectsLocationsConversationModelsUndeployCall {
 42731  	c := &ProjectsLocationsConversationModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42732  	c.name = name
 42733  	c.googleclouddialogflowv2undeployconversationmodelrequest = googleclouddialogflowv2undeployconversationmodelrequest
 42734  	return c
 42735  }
 42736  
 42737  // Fields allows partial responses to be retrieved. See
 42738  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42739  // details.
 42740  func (c *ProjectsLocationsConversationModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsUndeployCall {
 42741  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42742  	return c
 42743  }
 42744  
 42745  // Context sets the context to be used in this call's Do method.
 42746  func (c *ProjectsLocationsConversationModelsUndeployCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsUndeployCall {
 42747  	c.ctx_ = ctx
 42748  	return c
 42749  }
 42750  
 42751  // Header returns a http.Header that can be modified by the caller to add
 42752  // headers to the request.
 42753  func (c *ProjectsLocationsConversationModelsUndeployCall) Header() http.Header {
 42754  	if c.header_ == nil {
 42755  		c.header_ = make(http.Header)
 42756  	}
 42757  	return c.header_
 42758  }
 42759  
 42760  func (c *ProjectsLocationsConversationModelsUndeployCall) doRequest(alt string) (*http.Response, error) {
 42761  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42762  	var body io.Reader = nil
 42763  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2undeployconversationmodelrequest)
 42764  	if err != nil {
 42765  		return nil, err
 42766  	}
 42767  	c.urlParams_.Set("alt", alt)
 42768  	c.urlParams_.Set("prettyPrint", "false")
 42769  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undeploy")
 42770  	urls += "?" + c.urlParams_.Encode()
 42771  	req, err := http.NewRequest("POST", urls, body)
 42772  	if err != nil {
 42773  		return nil, err
 42774  	}
 42775  	req.Header = reqHeaders
 42776  	googleapi.Expand(req.URL, map[string]string{
 42777  		"name": c.name,
 42778  	})
 42779  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42780  }
 42781  
 42782  // Do executes the "dialogflow.projects.locations.conversationModels.undeploy" call.
 42783  // Any non-2xx status code is an error. Response headers are in either
 42784  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42785  // returned at all) in error.(*googleapi.Error).Header. Use
 42786  // googleapi.IsNotModified to check whether the returned error was because
 42787  // http.StatusNotModified was returned.
 42788  func (c *ProjectsLocationsConversationModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42789  	gensupport.SetOptions(c.urlParams_, opts...)
 42790  	res, err := c.doRequest("json")
 42791  	if res != nil && res.StatusCode == http.StatusNotModified {
 42792  		if res.Body != nil {
 42793  			res.Body.Close()
 42794  		}
 42795  		return nil, gensupport.WrapError(&googleapi.Error{
 42796  			Code:   res.StatusCode,
 42797  			Header: res.Header,
 42798  		})
 42799  	}
 42800  	if err != nil {
 42801  		return nil, err
 42802  	}
 42803  	defer googleapi.CloseBody(res)
 42804  	if err := googleapi.CheckResponse(res); err != nil {
 42805  		return nil, gensupport.WrapError(err)
 42806  	}
 42807  	ret := &GoogleLongrunningOperation{
 42808  		ServerResponse: googleapi.ServerResponse{
 42809  			Header:         res.Header,
 42810  			HTTPStatusCode: res.StatusCode,
 42811  		},
 42812  	}
 42813  	target := &ret
 42814  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42815  		return nil, err
 42816  	}
 42817  	return ret, nil
 42818  }
 42819  
 42820  type ProjectsLocationsConversationModelsEvaluationsCreateCall struct {
 42821  	s                                                               *Service
 42822  	parent                                                          string
 42823  	googleclouddialogflowv2createconversationmodelevaluationrequest *GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest
 42824  	urlParams_                                                      gensupport.URLParams
 42825  	ctx_                                                            context.Context
 42826  	header_                                                         http.Header
 42827  }
 42828  
 42829  // Create: Creates evaluation of a conversation model.
 42830  //
 42831  //   - parent: The conversation model resource name. Format:
 42832  //     `projects//locations//conversationModels/`.
 42833  func (r *ProjectsLocationsConversationModelsEvaluationsService) Create(parent string, googleclouddialogflowv2createconversationmodelevaluationrequest *GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest) *ProjectsLocationsConversationModelsEvaluationsCreateCall {
 42834  	c := &ProjectsLocationsConversationModelsEvaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42835  	c.parent = parent
 42836  	c.googleclouddialogflowv2createconversationmodelevaluationrequest = googleclouddialogflowv2createconversationmodelevaluationrequest
 42837  	return c
 42838  }
 42839  
 42840  // Fields allows partial responses to be retrieved. See
 42841  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42842  // details.
 42843  func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsEvaluationsCreateCall {
 42844  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42845  	return c
 42846  }
 42847  
 42848  // Context sets the context to be used in this call's Do method.
 42849  func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsEvaluationsCreateCall {
 42850  	c.ctx_ = ctx
 42851  	return c
 42852  }
 42853  
 42854  // Header returns a http.Header that can be modified by the caller to add
 42855  // headers to the request.
 42856  func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Header() http.Header {
 42857  	if c.header_ == nil {
 42858  		c.header_ = make(http.Header)
 42859  	}
 42860  	return c.header_
 42861  }
 42862  
 42863  func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
 42864  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42865  	var body io.Reader = nil
 42866  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2createconversationmodelevaluationrequest)
 42867  	if err != nil {
 42868  		return nil, err
 42869  	}
 42870  	c.urlParams_.Set("alt", alt)
 42871  	c.urlParams_.Set("prettyPrint", "false")
 42872  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/evaluations")
 42873  	urls += "?" + c.urlParams_.Encode()
 42874  	req, err := http.NewRequest("POST", urls, body)
 42875  	if err != nil {
 42876  		return nil, err
 42877  	}
 42878  	req.Header = reqHeaders
 42879  	googleapi.Expand(req.URL, map[string]string{
 42880  		"parent": c.parent,
 42881  	})
 42882  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42883  }
 42884  
 42885  // Do executes the "dialogflow.projects.locations.conversationModels.evaluations.create" call.
 42886  // Any non-2xx status code is an error. Response headers are in either
 42887  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 42888  // returned at all) in error.(*googleapi.Error).Header. Use
 42889  // googleapi.IsNotModified to check whether the returned error was because
 42890  // http.StatusNotModified was returned.
 42891  func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 42892  	gensupport.SetOptions(c.urlParams_, opts...)
 42893  	res, err := c.doRequest("json")
 42894  	if res != nil && res.StatusCode == http.StatusNotModified {
 42895  		if res.Body != nil {
 42896  			res.Body.Close()
 42897  		}
 42898  		return nil, gensupport.WrapError(&googleapi.Error{
 42899  			Code:   res.StatusCode,
 42900  			Header: res.Header,
 42901  		})
 42902  	}
 42903  	if err != nil {
 42904  		return nil, err
 42905  	}
 42906  	defer googleapi.CloseBody(res)
 42907  	if err := googleapi.CheckResponse(res); err != nil {
 42908  		return nil, gensupport.WrapError(err)
 42909  	}
 42910  	ret := &GoogleLongrunningOperation{
 42911  		ServerResponse: googleapi.ServerResponse{
 42912  			Header:         res.Header,
 42913  			HTTPStatusCode: res.StatusCode,
 42914  		},
 42915  	}
 42916  	target := &ret
 42917  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42918  		return nil, err
 42919  	}
 42920  	return ret, nil
 42921  }
 42922  
 42923  type ProjectsLocationsConversationModelsEvaluationsGetCall struct {
 42924  	s            *Service
 42925  	name         string
 42926  	urlParams_   gensupport.URLParams
 42927  	ifNoneMatch_ string
 42928  	ctx_         context.Context
 42929  	header_      http.Header
 42930  }
 42931  
 42932  // Get: Gets an evaluation of conversation model.
 42933  //
 42934  //   - name: The conversation model evaluation resource name. Format:
 42935  //     `projects//conversationModels//evaluations/`.
 42936  func (r *ProjectsLocationsConversationModelsEvaluationsService) Get(name string) *ProjectsLocationsConversationModelsEvaluationsGetCall {
 42937  	c := &ProjectsLocationsConversationModelsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42938  	c.name = name
 42939  	return c
 42940  }
 42941  
 42942  // Fields allows partial responses to be retrieved. See
 42943  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42944  // details.
 42945  func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsEvaluationsGetCall {
 42946  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42947  	return c
 42948  }
 42949  
 42950  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42951  // object's ETag matches the given value. This is useful for getting updates
 42952  // only after the object has changed since the last request.
 42953  func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsEvaluationsGetCall {
 42954  	c.ifNoneMatch_ = entityTag
 42955  	return c
 42956  }
 42957  
 42958  // Context sets the context to be used in this call's Do method.
 42959  func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsEvaluationsGetCall {
 42960  	c.ctx_ = ctx
 42961  	return c
 42962  }
 42963  
 42964  // Header returns a http.Header that can be modified by the caller to add
 42965  // headers to the request.
 42966  func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Header() http.Header {
 42967  	if c.header_ == nil {
 42968  		c.header_ = make(http.Header)
 42969  	}
 42970  	return c.header_
 42971  }
 42972  
 42973  func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
 42974  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42975  	if c.ifNoneMatch_ != "" {
 42976  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42977  	}
 42978  	var body io.Reader = nil
 42979  	c.urlParams_.Set("alt", alt)
 42980  	c.urlParams_.Set("prettyPrint", "false")
 42981  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 42982  	urls += "?" + c.urlParams_.Encode()
 42983  	req, err := http.NewRequest("GET", urls, body)
 42984  	if err != nil {
 42985  		return nil, err
 42986  	}
 42987  	req.Header = reqHeaders
 42988  	googleapi.Expand(req.URL, map[string]string{
 42989  		"name": c.name,
 42990  	})
 42991  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42992  }
 42993  
 42994  // Do executes the "dialogflow.projects.locations.conversationModels.evaluations.get" call.
 42995  // Any non-2xx status code is an error. Response headers are in either
 42996  // *GoogleCloudDialogflowV2ConversationModelEvaluation.ServerResponse.Header or
 42997  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 42998  // googleapi.IsNotModified to check whether the returned error was because
 42999  // http.StatusNotModified was returned.
 43000  func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModelEvaluation, error) {
 43001  	gensupport.SetOptions(c.urlParams_, opts...)
 43002  	res, err := c.doRequest("json")
 43003  	if res != nil && res.StatusCode == http.StatusNotModified {
 43004  		if res.Body != nil {
 43005  			res.Body.Close()
 43006  		}
 43007  		return nil, gensupport.WrapError(&googleapi.Error{
 43008  			Code:   res.StatusCode,
 43009  			Header: res.Header,
 43010  		})
 43011  	}
 43012  	if err != nil {
 43013  		return nil, err
 43014  	}
 43015  	defer googleapi.CloseBody(res)
 43016  	if err := googleapi.CheckResponse(res); err != nil {
 43017  		return nil, gensupport.WrapError(err)
 43018  	}
 43019  	ret := &GoogleCloudDialogflowV2ConversationModelEvaluation{
 43020  		ServerResponse: googleapi.ServerResponse{
 43021  			Header:         res.Header,
 43022  			HTTPStatusCode: res.StatusCode,
 43023  		},
 43024  	}
 43025  	target := &ret
 43026  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43027  		return nil, err
 43028  	}
 43029  	return ret, nil
 43030  }
 43031  
 43032  type ProjectsLocationsConversationModelsEvaluationsListCall struct {
 43033  	s            *Service
 43034  	parent       string
 43035  	urlParams_   gensupport.URLParams
 43036  	ifNoneMatch_ string
 43037  	ctx_         context.Context
 43038  	header_      http.Header
 43039  }
 43040  
 43041  // List: Lists evaluations of a conversation model.
 43042  //
 43043  //   - parent: The conversation model resource name. Format:
 43044  //     `projects//conversationModels/`.
 43045  func (r *ProjectsLocationsConversationModelsEvaluationsService) List(parent string) *ProjectsLocationsConversationModelsEvaluationsListCall {
 43046  	c := &ProjectsLocationsConversationModelsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43047  	c.parent = parent
 43048  	return c
 43049  }
 43050  
 43051  // PageSize sets the optional parameter "pageSize": Maximum number of
 43052  // evaluations to return in a single page. By default 100 and at most 1000.
 43053  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationModelsEvaluationsListCall {
 43054  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 43055  	return c
 43056  }
 43057  
 43058  // PageToken sets the optional parameter "pageToken": The next_page_token value
 43059  // returned from a previous list request.
 43060  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationModelsEvaluationsListCall {
 43061  	c.urlParams_.Set("pageToken", pageToken)
 43062  	return c
 43063  }
 43064  
 43065  // Fields allows partial responses to be retrieved. See
 43066  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43067  // details.
 43068  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsEvaluationsListCall {
 43069  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43070  	return c
 43071  }
 43072  
 43073  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43074  // object's ETag matches the given value. This is useful for getting updates
 43075  // only after the object has changed since the last request.
 43076  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsEvaluationsListCall {
 43077  	c.ifNoneMatch_ = entityTag
 43078  	return c
 43079  }
 43080  
 43081  // Context sets the context to be used in this call's Do method.
 43082  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsEvaluationsListCall {
 43083  	c.ctx_ = ctx
 43084  	return c
 43085  }
 43086  
 43087  // Header returns a http.Header that can be modified by the caller to add
 43088  // headers to the request.
 43089  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Header() http.Header {
 43090  	if c.header_ == nil {
 43091  		c.header_ = make(http.Header)
 43092  	}
 43093  	return c.header_
 43094  }
 43095  
 43096  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
 43097  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43098  	if c.ifNoneMatch_ != "" {
 43099  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43100  	}
 43101  	var body io.Reader = nil
 43102  	c.urlParams_.Set("alt", alt)
 43103  	c.urlParams_.Set("prettyPrint", "false")
 43104  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/evaluations")
 43105  	urls += "?" + c.urlParams_.Encode()
 43106  	req, err := http.NewRequest("GET", urls, body)
 43107  	if err != nil {
 43108  		return nil, err
 43109  	}
 43110  	req.Header = reqHeaders
 43111  	googleapi.Expand(req.URL, map[string]string{
 43112  		"parent": c.parent,
 43113  	})
 43114  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43115  }
 43116  
 43117  // Do executes the "dialogflow.projects.locations.conversationModels.evaluations.list" call.
 43118  // Any non-2xx status code is an error. Response headers are in either
 43119  // *GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse.ServerRespon
 43120  // se.Header or (if a response was returned at all) in
 43121  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 43122  // whether the returned error was because http.StatusNotModified was returned.
 43123  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse, error) {
 43124  	gensupport.SetOptions(c.urlParams_, opts...)
 43125  	res, err := c.doRequest("json")
 43126  	if res != nil && res.StatusCode == http.StatusNotModified {
 43127  		if res.Body != nil {
 43128  			res.Body.Close()
 43129  		}
 43130  		return nil, gensupport.WrapError(&googleapi.Error{
 43131  			Code:   res.StatusCode,
 43132  			Header: res.Header,
 43133  		})
 43134  	}
 43135  	if err != nil {
 43136  		return nil, err
 43137  	}
 43138  	defer googleapi.CloseBody(res)
 43139  	if err := googleapi.CheckResponse(res); err != nil {
 43140  		return nil, gensupport.WrapError(err)
 43141  	}
 43142  	ret := &GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse{
 43143  		ServerResponse: googleapi.ServerResponse{
 43144  			Header:         res.Header,
 43145  			HTTPStatusCode: res.StatusCode,
 43146  		},
 43147  	}
 43148  	target := &ret
 43149  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43150  		return nil, err
 43151  	}
 43152  	return ret, nil
 43153  }
 43154  
 43155  // Pages invokes f for each page of results.
 43156  // A non-nil error returned from f will halt the iteration.
 43157  // The provided context supersedes any context provided to the Context method.
 43158  func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse) error) error {
 43159  	c.ctx_ = ctx
 43160  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 43161  	for {
 43162  		x, err := c.Do()
 43163  		if err != nil {
 43164  			return err
 43165  		}
 43166  		if err := f(x); err != nil {
 43167  			return err
 43168  		}
 43169  		if x.NextPageToken == "" {
 43170  			return nil
 43171  		}
 43172  		c.PageToken(x.NextPageToken)
 43173  	}
 43174  }
 43175  
 43176  type ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall struct {
 43177  	s                                                          *Service
 43178  	conversationProfile                                        string
 43179  	googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
 43180  	urlParams_                                                 gensupport.URLParams
 43181  	ctx_                                                       context.Context
 43182  	header_                                                    http.Header
 43183  }
 43184  
 43185  // ClearSuggestionFeatureConfig: Clears a suggestion feature from a
 43186  // conversation profile for the given participant role. This method is a
 43187  // long-running operation
 43188  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 43189  // The returned `Operation` type has the following method-specific fields: -
 43190  // `metadata`: ClearSuggestionFeatureConfigOperationMetadata - `response`:
 43191  // ConversationProfile
 43192  //
 43193  //   - conversationProfile: The Conversation Profile to add or update the
 43194  //     suggestion feature config. Format:
 43195  //     `projects//locations//conversationProfiles/`.
 43196  func (r *ProjectsLocationsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
 43197  	c := &ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43198  	c.conversationProfile = conversationProfile
 43199  	c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest = googleclouddialogflowv2clearsuggestionfeatureconfigrequest
 43200  	return c
 43201  }
 43202  
 43203  // Fields allows partial responses to be retrieved. See
 43204  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43205  // details.
 43206  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
 43207  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43208  	return c
 43209  }
 43210  
 43211  // Context sets the context to be used in this call's Do method.
 43212  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
 43213  	c.ctx_ = ctx
 43214  	return c
 43215  }
 43216  
 43217  // Header returns a http.Header that can be modified by the caller to add
 43218  // headers to the request.
 43219  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
 43220  	if c.header_ == nil {
 43221  		c.header_ = make(http.Header)
 43222  	}
 43223  	return c.header_
 43224  }
 43225  
 43226  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 43227  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43228  	var body io.Reader = nil
 43229  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest)
 43230  	if err != nil {
 43231  		return nil, err
 43232  	}
 43233  	c.urlParams_.Set("alt", alt)
 43234  	c.urlParams_.Set("prettyPrint", "false")
 43235  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:clearSuggestionFeatureConfig")
 43236  	urls += "?" + c.urlParams_.Encode()
 43237  	req, err := http.NewRequest("POST", urls, body)
 43238  	if err != nil {
 43239  		return nil, err
 43240  	}
 43241  	req.Header = reqHeaders
 43242  	googleapi.Expand(req.URL, map[string]string{
 43243  		"conversationProfile": c.conversationProfile,
 43244  	})
 43245  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43246  }
 43247  
 43248  // Do executes the "dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig" call.
 43249  // Any non-2xx status code is an error. Response headers are in either
 43250  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 43251  // returned at all) in error.(*googleapi.Error).Header. Use
 43252  // googleapi.IsNotModified to check whether the returned error was because
 43253  // http.StatusNotModified was returned.
 43254  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 43255  	gensupport.SetOptions(c.urlParams_, opts...)
 43256  	res, err := c.doRequest("json")
 43257  	if res != nil && res.StatusCode == http.StatusNotModified {
 43258  		if res.Body != nil {
 43259  			res.Body.Close()
 43260  		}
 43261  		return nil, gensupport.WrapError(&googleapi.Error{
 43262  			Code:   res.StatusCode,
 43263  			Header: res.Header,
 43264  		})
 43265  	}
 43266  	if err != nil {
 43267  		return nil, err
 43268  	}
 43269  	defer googleapi.CloseBody(res)
 43270  	if err := googleapi.CheckResponse(res); err != nil {
 43271  		return nil, gensupport.WrapError(err)
 43272  	}
 43273  	ret := &GoogleLongrunningOperation{
 43274  		ServerResponse: googleapi.ServerResponse{
 43275  			Header:         res.Header,
 43276  			HTTPStatusCode: res.StatusCode,
 43277  		},
 43278  	}
 43279  	target := &ret
 43280  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43281  		return nil, err
 43282  	}
 43283  	return ret, nil
 43284  }
 43285  
 43286  type ProjectsLocationsConversationProfilesCreateCall struct {
 43287  	s                                          *Service
 43288  	parent                                     string
 43289  	googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
 43290  	urlParams_                                 gensupport.URLParams
 43291  	ctx_                                       context.Context
 43292  	header_                                    http.Header
 43293  }
 43294  
 43295  // Create: Creates a conversation profile in the specified project.
 43296  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 43297  // populated in the response. You can retrieve them via GetConversationProfile
 43298  // API.
 43299  //
 43300  //   - parent: The project to create a conversation profile for. Format:
 43301  //     `projects//locations/`.
 43302  func (r *ProjectsLocationsConversationProfilesService) Create(parent string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsLocationsConversationProfilesCreateCall {
 43303  	c := &ProjectsLocationsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43304  	c.parent = parent
 43305  	c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
 43306  	return c
 43307  }
 43308  
 43309  // Fields allows partial responses to be retrieved. See
 43310  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43311  // details.
 43312  func (c *ProjectsLocationsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesCreateCall {
 43313  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43314  	return c
 43315  }
 43316  
 43317  // Context sets the context to be used in this call's Do method.
 43318  func (c *ProjectsLocationsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesCreateCall {
 43319  	c.ctx_ = ctx
 43320  	return c
 43321  }
 43322  
 43323  // Header returns a http.Header that can be modified by the caller to add
 43324  // headers to the request.
 43325  func (c *ProjectsLocationsConversationProfilesCreateCall) Header() http.Header {
 43326  	if c.header_ == nil {
 43327  		c.header_ = make(http.Header)
 43328  	}
 43329  	return c.header_
 43330  }
 43331  
 43332  func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
 43333  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43334  	var body io.Reader = nil
 43335  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
 43336  	if err != nil {
 43337  		return nil, err
 43338  	}
 43339  	c.urlParams_.Set("alt", alt)
 43340  	c.urlParams_.Set("prettyPrint", "false")
 43341  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
 43342  	urls += "?" + c.urlParams_.Encode()
 43343  	req, err := http.NewRequest("POST", urls, body)
 43344  	if err != nil {
 43345  		return nil, err
 43346  	}
 43347  	req.Header = reqHeaders
 43348  	googleapi.Expand(req.URL, map[string]string{
 43349  		"parent": c.parent,
 43350  	})
 43351  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43352  }
 43353  
 43354  // Do executes the "dialogflow.projects.locations.conversationProfiles.create" call.
 43355  // Any non-2xx status code is an error. Response headers are in either
 43356  // *GoogleCloudDialogflowV2ConversationProfile.ServerResponse.Header or (if a
 43357  // response was returned at all) in error.(*googleapi.Error).Header. Use
 43358  // googleapi.IsNotModified to check whether the returned error was because
 43359  // http.StatusNotModified was returned.
 43360  func (c *ProjectsLocationsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
 43361  	gensupport.SetOptions(c.urlParams_, opts...)
 43362  	res, err := c.doRequest("json")
 43363  	if res != nil && res.StatusCode == http.StatusNotModified {
 43364  		if res.Body != nil {
 43365  			res.Body.Close()
 43366  		}
 43367  		return nil, gensupport.WrapError(&googleapi.Error{
 43368  			Code:   res.StatusCode,
 43369  			Header: res.Header,
 43370  		})
 43371  	}
 43372  	if err != nil {
 43373  		return nil, err
 43374  	}
 43375  	defer googleapi.CloseBody(res)
 43376  	if err := googleapi.CheckResponse(res); err != nil {
 43377  		return nil, gensupport.WrapError(err)
 43378  	}
 43379  	ret := &GoogleCloudDialogflowV2ConversationProfile{
 43380  		ServerResponse: googleapi.ServerResponse{
 43381  			Header:         res.Header,
 43382  			HTTPStatusCode: res.StatusCode,
 43383  		},
 43384  	}
 43385  	target := &ret
 43386  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43387  		return nil, err
 43388  	}
 43389  	return ret, nil
 43390  }
 43391  
 43392  type ProjectsLocationsConversationProfilesDeleteCall struct {
 43393  	s          *Service
 43394  	name       string
 43395  	urlParams_ gensupport.URLParams
 43396  	ctx_       context.Context
 43397  	header_    http.Header
 43398  }
 43399  
 43400  // Delete: Deletes the specified conversation profile.
 43401  //
 43402  //   - name: The name of the conversation profile to delete. Format:
 43403  //     `projects//locations//conversationProfiles/`.
 43404  func (r *ProjectsLocationsConversationProfilesService) Delete(name string) *ProjectsLocationsConversationProfilesDeleteCall {
 43405  	c := &ProjectsLocationsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43406  	c.name = name
 43407  	return c
 43408  }
 43409  
 43410  // Fields allows partial responses to be retrieved. See
 43411  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43412  // details.
 43413  func (c *ProjectsLocationsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesDeleteCall {
 43414  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43415  	return c
 43416  }
 43417  
 43418  // Context sets the context to be used in this call's Do method.
 43419  func (c *ProjectsLocationsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesDeleteCall {
 43420  	c.ctx_ = ctx
 43421  	return c
 43422  }
 43423  
 43424  // Header returns a http.Header that can be modified by the caller to add
 43425  // headers to the request.
 43426  func (c *ProjectsLocationsConversationProfilesDeleteCall) Header() http.Header {
 43427  	if c.header_ == nil {
 43428  		c.header_ = make(http.Header)
 43429  	}
 43430  	return c.header_
 43431  }
 43432  
 43433  func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 43434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43435  	var body io.Reader = nil
 43436  	c.urlParams_.Set("alt", alt)
 43437  	c.urlParams_.Set("prettyPrint", "false")
 43438  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 43439  	urls += "?" + c.urlParams_.Encode()
 43440  	req, err := http.NewRequest("DELETE", urls, body)
 43441  	if err != nil {
 43442  		return nil, err
 43443  	}
 43444  	req.Header = reqHeaders
 43445  	googleapi.Expand(req.URL, map[string]string{
 43446  		"name": c.name,
 43447  	})
 43448  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43449  }
 43450  
 43451  // Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call.
 43452  // Any non-2xx status code is an error. Response headers are in either
 43453  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 43454  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 43455  // check whether the returned error was because http.StatusNotModified was
 43456  // returned.
 43457  func (c *ProjectsLocationsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 43458  	gensupport.SetOptions(c.urlParams_, opts...)
 43459  	res, err := c.doRequest("json")
 43460  	if res != nil && res.StatusCode == http.StatusNotModified {
 43461  		if res.Body != nil {
 43462  			res.Body.Close()
 43463  		}
 43464  		return nil, gensupport.WrapError(&googleapi.Error{
 43465  			Code:   res.StatusCode,
 43466  			Header: res.Header,
 43467  		})
 43468  	}
 43469  	if err != nil {
 43470  		return nil, err
 43471  	}
 43472  	defer googleapi.CloseBody(res)
 43473  	if err := googleapi.CheckResponse(res); err != nil {
 43474  		return nil, gensupport.WrapError(err)
 43475  	}
 43476  	ret := &GoogleProtobufEmpty{
 43477  		ServerResponse: googleapi.ServerResponse{
 43478  			Header:         res.Header,
 43479  			HTTPStatusCode: res.StatusCode,
 43480  		},
 43481  	}
 43482  	target := &ret
 43483  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43484  		return nil, err
 43485  	}
 43486  	return ret, nil
 43487  }
 43488  
 43489  type ProjectsLocationsConversationProfilesGetCall struct {
 43490  	s            *Service
 43491  	name         string
 43492  	urlParams_   gensupport.URLParams
 43493  	ifNoneMatch_ string
 43494  	ctx_         context.Context
 43495  	header_      http.Header
 43496  }
 43497  
 43498  // Get: Retrieves the specified conversation profile.
 43499  //
 43500  //   - name: The resource name of the conversation profile. Format:
 43501  //     `projects//locations//conversationProfiles/`.
 43502  func (r *ProjectsLocationsConversationProfilesService) Get(name string) *ProjectsLocationsConversationProfilesGetCall {
 43503  	c := &ProjectsLocationsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43504  	c.name = name
 43505  	return c
 43506  }
 43507  
 43508  // Fields allows partial responses to be retrieved. See
 43509  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43510  // details.
 43511  func (c *ProjectsLocationsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesGetCall {
 43512  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43513  	return c
 43514  }
 43515  
 43516  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43517  // object's ETag matches the given value. This is useful for getting updates
 43518  // only after the object has changed since the last request.
 43519  func (c *ProjectsLocationsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesGetCall {
 43520  	c.ifNoneMatch_ = entityTag
 43521  	return c
 43522  }
 43523  
 43524  // Context sets the context to be used in this call's Do method.
 43525  func (c *ProjectsLocationsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesGetCall {
 43526  	c.ctx_ = ctx
 43527  	return c
 43528  }
 43529  
 43530  // Header returns a http.Header that can be modified by the caller to add
 43531  // headers to the request.
 43532  func (c *ProjectsLocationsConversationProfilesGetCall) Header() http.Header {
 43533  	if c.header_ == nil {
 43534  		c.header_ = make(http.Header)
 43535  	}
 43536  	return c.header_
 43537  }
 43538  
 43539  func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 43540  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43541  	if c.ifNoneMatch_ != "" {
 43542  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43543  	}
 43544  	var body io.Reader = nil
 43545  	c.urlParams_.Set("alt", alt)
 43546  	c.urlParams_.Set("prettyPrint", "false")
 43547  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 43548  	urls += "?" + c.urlParams_.Encode()
 43549  	req, err := http.NewRequest("GET", urls, body)
 43550  	if err != nil {
 43551  		return nil, err
 43552  	}
 43553  	req.Header = reqHeaders
 43554  	googleapi.Expand(req.URL, map[string]string{
 43555  		"name": c.name,
 43556  	})
 43557  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43558  }
 43559  
 43560  // Do executes the "dialogflow.projects.locations.conversationProfiles.get" call.
 43561  // Any non-2xx status code is an error. Response headers are in either
 43562  // *GoogleCloudDialogflowV2ConversationProfile.ServerResponse.Header or (if a
 43563  // response was returned at all) in error.(*googleapi.Error).Header. Use
 43564  // googleapi.IsNotModified to check whether the returned error was because
 43565  // http.StatusNotModified was returned.
 43566  func (c *ProjectsLocationsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
 43567  	gensupport.SetOptions(c.urlParams_, opts...)
 43568  	res, err := c.doRequest("json")
 43569  	if res != nil && res.StatusCode == http.StatusNotModified {
 43570  		if res.Body != nil {
 43571  			res.Body.Close()
 43572  		}
 43573  		return nil, gensupport.WrapError(&googleapi.Error{
 43574  			Code:   res.StatusCode,
 43575  			Header: res.Header,
 43576  		})
 43577  	}
 43578  	if err != nil {
 43579  		return nil, err
 43580  	}
 43581  	defer googleapi.CloseBody(res)
 43582  	if err := googleapi.CheckResponse(res); err != nil {
 43583  		return nil, gensupport.WrapError(err)
 43584  	}
 43585  	ret := &GoogleCloudDialogflowV2ConversationProfile{
 43586  		ServerResponse: googleapi.ServerResponse{
 43587  			Header:         res.Header,
 43588  			HTTPStatusCode: res.StatusCode,
 43589  		},
 43590  	}
 43591  	target := &ret
 43592  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43593  		return nil, err
 43594  	}
 43595  	return ret, nil
 43596  }
 43597  
 43598  type ProjectsLocationsConversationProfilesListCall struct {
 43599  	s            *Service
 43600  	parent       string
 43601  	urlParams_   gensupport.URLParams
 43602  	ifNoneMatch_ string
 43603  	ctx_         context.Context
 43604  	header_      http.Header
 43605  }
 43606  
 43607  // List: Returns the list of all conversation profiles in the specified
 43608  // project.
 43609  //
 43610  //   - parent: The project to list all conversation profiles from. Format:
 43611  //     `projects//locations/`.
 43612  func (r *ProjectsLocationsConversationProfilesService) List(parent string) *ProjectsLocationsConversationProfilesListCall {
 43613  	c := &ProjectsLocationsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43614  	c.parent = parent
 43615  	return c
 43616  }
 43617  
 43618  // PageSize sets the optional parameter "pageSize": The maximum number of items
 43619  // to return in a single page. By default 100 and at most 1000.
 43620  func (c *ProjectsLocationsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationProfilesListCall {
 43621  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 43622  	return c
 43623  }
 43624  
 43625  // PageToken sets the optional parameter "pageToken": The next_page_token value
 43626  // returned from a previous list request.
 43627  func (c *ProjectsLocationsConversationProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConversationProfilesListCall {
 43628  	c.urlParams_.Set("pageToken", pageToken)
 43629  	return c
 43630  }
 43631  
 43632  // Fields allows partial responses to be retrieved. See
 43633  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43634  // details.
 43635  func (c *ProjectsLocationsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesListCall {
 43636  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43637  	return c
 43638  }
 43639  
 43640  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43641  // object's ETag matches the given value. This is useful for getting updates
 43642  // only after the object has changed since the last request.
 43643  func (c *ProjectsLocationsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesListCall {
 43644  	c.ifNoneMatch_ = entityTag
 43645  	return c
 43646  }
 43647  
 43648  // Context sets the context to be used in this call's Do method.
 43649  func (c *ProjectsLocationsConversationProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesListCall {
 43650  	c.ctx_ = ctx
 43651  	return c
 43652  }
 43653  
 43654  // Header returns a http.Header that can be modified by the caller to add
 43655  // headers to the request.
 43656  func (c *ProjectsLocationsConversationProfilesListCall) Header() http.Header {
 43657  	if c.header_ == nil {
 43658  		c.header_ = make(http.Header)
 43659  	}
 43660  	return c.header_
 43661  }
 43662  
 43663  func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
 43664  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43665  	if c.ifNoneMatch_ != "" {
 43666  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43667  	}
 43668  	var body io.Reader = nil
 43669  	c.urlParams_.Set("alt", alt)
 43670  	c.urlParams_.Set("prettyPrint", "false")
 43671  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
 43672  	urls += "?" + c.urlParams_.Encode()
 43673  	req, err := http.NewRequest("GET", urls, body)
 43674  	if err != nil {
 43675  		return nil, err
 43676  	}
 43677  	req.Header = reqHeaders
 43678  	googleapi.Expand(req.URL, map[string]string{
 43679  		"parent": c.parent,
 43680  	})
 43681  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43682  }
 43683  
 43684  // Do executes the "dialogflow.projects.locations.conversationProfiles.list" call.
 43685  // Any non-2xx status code is an error. Response headers are in either
 43686  // *GoogleCloudDialogflowV2ListConversationProfilesResponse.ServerResponse.Heade
 43687  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 43688  // Use googleapi.IsNotModified to check whether the returned error was because
 43689  // http.StatusNotModified was returned.
 43690  func (c *ProjectsLocationsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationProfilesResponse, error) {
 43691  	gensupport.SetOptions(c.urlParams_, opts...)
 43692  	res, err := c.doRequest("json")
 43693  	if res != nil && res.StatusCode == http.StatusNotModified {
 43694  		if res.Body != nil {
 43695  			res.Body.Close()
 43696  		}
 43697  		return nil, gensupport.WrapError(&googleapi.Error{
 43698  			Code:   res.StatusCode,
 43699  			Header: res.Header,
 43700  		})
 43701  	}
 43702  	if err != nil {
 43703  		return nil, err
 43704  	}
 43705  	defer googleapi.CloseBody(res)
 43706  	if err := googleapi.CheckResponse(res); err != nil {
 43707  		return nil, gensupport.WrapError(err)
 43708  	}
 43709  	ret := &GoogleCloudDialogflowV2ListConversationProfilesResponse{
 43710  		ServerResponse: googleapi.ServerResponse{
 43711  			Header:         res.Header,
 43712  			HTTPStatusCode: res.StatusCode,
 43713  		},
 43714  	}
 43715  	target := &ret
 43716  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43717  		return nil, err
 43718  	}
 43719  	return ret, nil
 43720  }
 43721  
 43722  // Pages invokes f for each page of results.
 43723  // A non-nil error returned from f will halt the iteration.
 43724  // The provided context supersedes any context provided to the Context method.
 43725  func (c *ProjectsLocationsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationProfilesResponse) error) error {
 43726  	c.ctx_ = ctx
 43727  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 43728  	for {
 43729  		x, err := c.Do()
 43730  		if err != nil {
 43731  			return err
 43732  		}
 43733  		if err := f(x); err != nil {
 43734  			return err
 43735  		}
 43736  		if x.NextPageToken == "" {
 43737  			return nil
 43738  		}
 43739  		c.PageToken(x.NextPageToken)
 43740  	}
 43741  }
 43742  
 43743  type ProjectsLocationsConversationProfilesPatchCall struct {
 43744  	s                                          *Service
 43745  	nameid                                     string
 43746  	googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
 43747  	urlParams_                                 gensupport.URLParams
 43748  	ctx_                                       context.Context
 43749  	header_                                    http.Header
 43750  }
 43751  
 43752  // Patch: Updates the specified conversation profile.
 43753  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 43754  // populated in the response. You can retrieve them via GetConversationProfile
 43755  // API.
 43756  //
 43757  //   - name: The unique identifier of this conversation profile. Format:
 43758  //     `projects//locations//conversationProfiles/`.
 43759  func (r *ProjectsLocationsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsLocationsConversationProfilesPatchCall {
 43760  	c := &ProjectsLocationsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43761  	c.nameid = nameid
 43762  	c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
 43763  	return c
 43764  }
 43765  
 43766  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 43767  // control which fields to update.
 43768  func (c *ProjectsLocationsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationProfilesPatchCall {
 43769  	c.urlParams_.Set("updateMask", updateMask)
 43770  	return c
 43771  }
 43772  
 43773  // Fields allows partial responses to be retrieved. See
 43774  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43775  // details.
 43776  func (c *ProjectsLocationsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesPatchCall {
 43777  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43778  	return c
 43779  }
 43780  
 43781  // Context sets the context to be used in this call's Do method.
 43782  func (c *ProjectsLocationsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesPatchCall {
 43783  	c.ctx_ = ctx
 43784  	return c
 43785  }
 43786  
 43787  // Header returns a http.Header that can be modified by the caller to add
 43788  // headers to the request.
 43789  func (c *ProjectsLocationsConversationProfilesPatchCall) Header() http.Header {
 43790  	if c.header_ == nil {
 43791  		c.header_ = make(http.Header)
 43792  	}
 43793  	return c.header_
 43794  }
 43795  
 43796  func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
 43797  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43798  	var body io.Reader = nil
 43799  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
 43800  	if err != nil {
 43801  		return nil, err
 43802  	}
 43803  	c.urlParams_.Set("alt", alt)
 43804  	c.urlParams_.Set("prettyPrint", "false")
 43805  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 43806  	urls += "?" + c.urlParams_.Encode()
 43807  	req, err := http.NewRequest("PATCH", urls, body)
 43808  	if err != nil {
 43809  		return nil, err
 43810  	}
 43811  	req.Header = reqHeaders
 43812  	googleapi.Expand(req.URL, map[string]string{
 43813  		"name": c.nameid,
 43814  	})
 43815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43816  }
 43817  
 43818  // Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call.
 43819  // Any non-2xx status code is an error. Response headers are in either
 43820  // *GoogleCloudDialogflowV2ConversationProfile.ServerResponse.Header or (if a
 43821  // response was returned at all) in error.(*googleapi.Error).Header. Use
 43822  // googleapi.IsNotModified to check whether the returned error was because
 43823  // http.StatusNotModified was returned.
 43824  func (c *ProjectsLocationsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
 43825  	gensupport.SetOptions(c.urlParams_, opts...)
 43826  	res, err := c.doRequest("json")
 43827  	if res != nil && res.StatusCode == http.StatusNotModified {
 43828  		if res.Body != nil {
 43829  			res.Body.Close()
 43830  		}
 43831  		return nil, gensupport.WrapError(&googleapi.Error{
 43832  			Code:   res.StatusCode,
 43833  			Header: res.Header,
 43834  		})
 43835  	}
 43836  	if err != nil {
 43837  		return nil, err
 43838  	}
 43839  	defer googleapi.CloseBody(res)
 43840  	if err := googleapi.CheckResponse(res); err != nil {
 43841  		return nil, gensupport.WrapError(err)
 43842  	}
 43843  	ret := &GoogleCloudDialogflowV2ConversationProfile{
 43844  		ServerResponse: googleapi.ServerResponse{
 43845  			Header:         res.Header,
 43846  			HTTPStatusCode: res.StatusCode,
 43847  		},
 43848  	}
 43849  	target := &ret
 43850  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43851  		return nil, err
 43852  	}
 43853  	return ret, nil
 43854  }
 43855  
 43856  type ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall struct {
 43857  	s                                                        *Service
 43858  	conversationProfile                                      string
 43859  	googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
 43860  	urlParams_                                               gensupport.URLParams
 43861  	ctx_                                                     context.Context
 43862  	header_                                                  http.Header
 43863  }
 43864  
 43865  // SetSuggestionFeatureConfig: Adds or updates a suggestion feature in a
 43866  // conversation profile. If the conversation profile contains the type of
 43867  // suggestion feature for the participant role, it will update it. Otherwise it
 43868  // will insert the suggestion feature. This method is a long-running operation
 43869  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 43870  // The returned `Operation` type has the following method-specific fields: -
 43871  // `metadata`: SetSuggestionFeatureConfigOperationMetadata - `response`:
 43872  // ConversationProfile If a long running operation to add or update suggestion
 43873  // feature config for the same conversation profile, participant role and
 43874  // suggestion feature type exists, please cancel the existing long running
 43875  // operation before sending such request, otherwise the request will be
 43876  // rejected.
 43877  //
 43878  //   - conversationProfile: The Conversation Profile to add or update the
 43879  //     suggestion feature config. Format:
 43880  //     `projects//locations//conversationProfiles/`.
 43881  func (r *ProjectsLocationsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
 43882  	c := &ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43883  	c.conversationProfile = conversationProfile
 43884  	c.googleclouddialogflowv2setsuggestionfeatureconfigrequest = googleclouddialogflowv2setsuggestionfeatureconfigrequest
 43885  	return c
 43886  }
 43887  
 43888  // Fields allows partial responses to be retrieved. See
 43889  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43890  // details.
 43891  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
 43892  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43893  	return c
 43894  }
 43895  
 43896  // Context sets the context to be used in this call's Do method.
 43897  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
 43898  	c.ctx_ = ctx
 43899  	return c
 43900  }
 43901  
 43902  // Header returns a http.Header that can be modified by the caller to add
 43903  // headers to the request.
 43904  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
 43905  	if c.header_ == nil {
 43906  		c.header_ = make(http.Header)
 43907  	}
 43908  	return c.header_
 43909  }
 43910  
 43911  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 43912  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43913  	var body io.Reader = nil
 43914  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2setsuggestionfeatureconfigrequest)
 43915  	if err != nil {
 43916  		return nil, err
 43917  	}
 43918  	c.urlParams_.Set("alt", alt)
 43919  	c.urlParams_.Set("prettyPrint", "false")
 43920  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:setSuggestionFeatureConfig")
 43921  	urls += "?" + c.urlParams_.Encode()
 43922  	req, err := http.NewRequest("POST", urls, body)
 43923  	if err != nil {
 43924  		return nil, err
 43925  	}
 43926  	req.Header = reqHeaders
 43927  	googleapi.Expand(req.URL, map[string]string{
 43928  		"conversationProfile": c.conversationProfile,
 43929  	})
 43930  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43931  }
 43932  
 43933  // Do executes the "dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig" call.
 43934  // Any non-2xx status code is an error. Response headers are in either
 43935  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 43936  // returned at all) in error.(*googleapi.Error).Header. Use
 43937  // googleapi.IsNotModified to check whether the returned error was because
 43938  // http.StatusNotModified was returned.
 43939  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 43940  	gensupport.SetOptions(c.urlParams_, opts...)
 43941  	res, err := c.doRequest("json")
 43942  	if res != nil && res.StatusCode == http.StatusNotModified {
 43943  		if res.Body != nil {
 43944  			res.Body.Close()
 43945  		}
 43946  		return nil, gensupport.WrapError(&googleapi.Error{
 43947  			Code:   res.StatusCode,
 43948  			Header: res.Header,
 43949  		})
 43950  	}
 43951  	if err != nil {
 43952  		return nil, err
 43953  	}
 43954  	defer googleapi.CloseBody(res)
 43955  	if err := googleapi.CheckResponse(res); err != nil {
 43956  		return nil, gensupport.WrapError(err)
 43957  	}
 43958  	ret := &GoogleLongrunningOperation{
 43959  		ServerResponse: googleapi.ServerResponse{
 43960  			Header:         res.Header,
 43961  			HTTPStatusCode: res.StatusCode,
 43962  		},
 43963  	}
 43964  	target := &ret
 43965  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43966  		return nil, err
 43967  	}
 43968  	return ret, nil
 43969  }
 43970  
 43971  type ProjectsLocationsConversationsCompleteCall struct {
 43972  	s                                                  *Service
 43973  	nameid                                             string
 43974  	googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest
 43975  	urlParams_                                         gensupport.URLParams
 43976  	ctx_                                               context.Context
 43977  	header_                                            http.Header
 43978  }
 43979  
 43980  // Complete: Completes the specified conversation. Finished conversations are
 43981  // purged from the database after 30 days.
 43982  //
 43983  //   - name: Resource identifier of the conversation to close. Format:
 43984  //     `projects//locations//conversations/`.
 43985  func (r *ProjectsLocationsConversationsService) Complete(nameid string, googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest) *ProjectsLocationsConversationsCompleteCall {
 43986  	c := &ProjectsLocationsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43987  	c.nameid = nameid
 43988  	c.googleclouddialogflowv2completeconversationrequest = googleclouddialogflowv2completeconversationrequest
 43989  	return c
 43990  }
 43991  
 43992  // Fields allows partial responses to be retrieved. See
 43993  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43994  // details.
 43995  func (c *ProjectsLocationsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCompleteCall {
 43996  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43997  	return c
 43998  }
 43999  
 44000  // Context sets the context to be used in this call's Do method.
 44001  func (c *ProjectsLocationsConversationsCompleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsCompleteCall {
 44002  	c.ctx_ = ctx
 44003  	return c
 44004  }
 44005  
 44006  // Header returns a http.Header that can be modified by the caller to add
 44007  // headers to the request.
 44008  func (c *ProjectsLocationsConversationsCompleteCall) Header() http.Header {
 44009  	if c.header_ == nil {
 44010  		c.header_ = make(http.Header)
 44011  	}
 44012  	return c.header_
 44013  }
 44014  
 44015  func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
 44016  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44017  	var body io.Reader = nil
 44018  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2completeconversationrequest)
 44019  	if err != nil {
 44020  		return nil, err
 44021  	}
 44022  	c.urlParams_.Set("alt", alt)
 44023  	c.urlParams_.Set("prettyPrint", "false")
 44024  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:complete")
 44025  	urls += "?" + c.urlParams_.Encode()
 44026  	req, err := http.NewRequest("POST", urls, body)
 44027  	if err != nil {
 44028  		return nil, err
 44029  	}
 44030  	req.Header = reqHeaders
 44031  	googleapi.Expand(req.URL, map[string]string{
 44032  		"name": c.nameid,
 44033  	})
 44034  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44035  }
 44036  
 44037  // Do executes the "dialogflow.projects.locations.conversations.complete" call.
 44038  // Any non-2xx status code is an error. Response headers are in either
 44039  // *GoogleCloudDialogflowV2Conversation.ServerResponse.Header or (if a response
 44040  // was returned at all) in error.(*googleapi.Error).Header. Use
 44041  // googleapi.IsNotModified to check whether the returned error was because
 44042  // http.StatusNotModified was returned.
 44043  func (c *ProjectsLocationsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
 44044  	gensupport.SetOptions(c.urlParams_, opts...)
 44045  	res, err := c.doRequest("json")
 44046  	if res != nil && res.StatusCode == http.StatusNotModified {
 44047  		if res.Body != nil {
 44048  			res.Body.Close()
 44049  		}
 44050  		return nil, gensupport.WrapError(&googleapi.Error{
 44051  			Code:   res.StatusCode,
 44052  			Header: res.Header,
 44053  		})
 44054  	}
 44055  	if err != nil {
 44056  		return nil, err
 44057  	}
 44058  	defer googleapi.CloseBody(res)
 44059  	if err := googleapi.CheckResponse(res); err != nil {
 44060  		return nil, gensupport.WrapError(err)
 44061  	}
 44062  	ret := &GoogleCloudDialogflowV2Conversation{
 44063  		ServerResponse: googleapi.ServerResponse{
 44064  			Header:         res.Header,
 44065  			HTTPStatusCode: res.StatusCode,
 44066  		},
 44067  	}
 44068  	target := &ret
 44069  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44070  		return nil, err
 44071  	}
 44072  	return ret, nil
 44073  }
 44074  
 44075  type ProjectsLocationsConversationsCreateCall struct {
 44076  	s                                   *Service
 44077  	parentid                            string
 44078  	googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation
 44079  	urlParams_                          gensupport.URLParams
 44080  	ctx_                                context.Context
 44081  	header_                             http.Header
 44082  }
 44083  
 44084  // Create: Creates a new conversation. Conversations are auto-completed after
 44085  // 24 hours. Conversation Lifecycle: There are two stages during a
 44086  // conversation: Automated Agent Stage and Assist Stage. For Automated Agent
 44087  // Stage, there will be a dialogflow agent responding to user queries. For
 44088  // Assist Stage, there's no dialogflow agent responding to user queries. But we
 44089  // will provide suggestions which are generated from conversation. If
 44090  // Conversation.conversation_profile is configured for a dialogflow agent,
 44091  // conversation will start from `Automated Agent Stage`, otherwise, it will
 44092  // start from `Assist Stage`. And during `Automated Agent Stage`, once an
 44093  // Intent with Intent.live_agent_handoff is triggered, conversation will
 44094  // transfer to Assist Stage.
 44095  //
 44096  //   - parent: Resource identifier of the project creating the conversation.
 44097  //     Format: `projects//locations/`.
 44098  func (r *ProjectsLocationsConversationsService) Create(parentid string, googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation) *ProjectsLocationsConversationsCreateCall {
 44099  	c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44100  	c.parentid = parentid
 44101  	c.googleclouddialogflowv2conversation = googleclouddialogflowv2conversation
 44102  	return c
 44103  }
 44104  
 44105  // ConversationId sets the optional parameter "conversationId": Identifier of
 44106  // the conversation. Generally it's auto generated by Google. Only set it if
 44107  // you cannot wait for the response to return a auto-generated one to you. The
 44108  // conversation ID must be compliant with the regression fomula `a-zA-Z*` with
 44109  // the characters length in range of [3,64]. If the field is provided, the
 44110  // caller is resposible for 1. the uniqueness of the ID, otherwise the request
 44111  // will be rejected. 2. the consistency for whether to use custom ID or not
 44112  // under a project to better ensure uniqueness.
 44113  func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
 44114  	c.urlParams_.Set("conversationId", conversationId)
 44115  	return c
 44116  }
 44117  
 44118  // Fields allows partial responses to be retrieved. See
 44119  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44120  // details.
 44121  func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
 44122  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44123  	return c
 44124  }
 44125  
 44126  // Context sets the context to be used in this call's Do method.
 44127  func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
 44128  	c.ctx_ = ctx
 44129  	return c
 44130  }
 44131  
 44132  // Header returns a http.Header that can be modified by the caller to add
 44133  // headers to the request.
 44134  func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
 44135  	if c.header_ == nil {
 44136  		c.header_ = make(http.Header)
 44137  	}
 44138  	return c.header_
 44139  }
 44140  
 44141  func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 44142  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44143  	var body io.Reader = nil
 44144  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversation)
 44145  	if err != nil {
 44146  		return nil, err
 44147  	}
 44148  	c.urlParams_.Set("alt", alt)
 44149  	c.urlParams_.Set("prettyPrint", "false")
 44150  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
 44151  	urls += "?" + c.urlParams_.Encode()
 44152  	req, err := http.NewRequest("POST", urls, body)
 44153  	if err != nil {
 44154  		return nil, err
 44155  	}
 44156  	req.Header = reqHeaders
 44157  	googleapi.Expand(req.URL, map[string]string{
 44158  		"parent": c.parentid,
 44159  	})
 44160  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44161  }
 44162  
 44163  // Do executes the "dialogflow.projects.locations.conversations.create" call.
 44164  // Any non-2xx status code is an error. Response headers are in either
 44165  // *GoogleCloudDialogflowV2Conversation.ServerResponse.Header or (if a response
 44166  // was returned at all) in error.(*googleapi.Error).Header. Use
 44167  // googleapi.IsNotModified to check whether the returned error was because
 44168  // http.StatusNotModified was returned.
 44169  func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
 44170  	gensupport.SetOptions(c.urlParams_, opts...)
 44171  	res, err := c.doRequest("json")
 44172  	if res != nil && res.StatusCode == http.StatusNotModified {
 44173  		if res.Body != nil {
 44174  			res.Body.Close()
 44175  		}
 44176  		return nil, gensupport.WrapError(&googleapi.Error{
 44177  			Code:   res.StatusCode,
 44178  			Header: res.Header,
 44179  		})
 44180  	}
 44181  	if err != nil {
 44182  		return nil, err
 44183  	}
 44184  	defer googleapi.CloseBody(res)
 44185  	if err := googleapi.CheckResponse(res); err != nil {
 44186  		return nil, gensupport.WrapError(err)
 44187  	}
 44188  	ret := &GoogleCloudDialogflowV2Conversation{
 44189  		ServerResponse: googleapi.ServerResponse{
 44190  			Header:         res.Header,
 44191  			HTTPStatusCode: res.StatusCode,
 44192  		},
 44193  	}
 44194  	target := &ret
 44195  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44196  		return nil, err
 44197  	}
 44198  	return ret, nil
 44199  }
 44200  
 44201  type ProjectsLocationsConversationsGetCall struct {
 44202  	s            *Service
 44203  	name         string
 44204  	urlParams_   gensupport.URLParams
 44205  	ifNoneMatch_ string
 44206  	ctx_         context.Context
 44207  	header_      http.Header
 44208  }
 44209  
 44210  // Get: Retrieves the specific conversation.
 44211  //
 44212  //   - name: The name of the conversation. Format:
 44213  //     `projects//locations//conversations/`.
 44214  func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
 44215  	c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44216  	c.name = name
 44217  	return c
 44218  }
 44219  
 44220  // Fields allows partial responses to be retrieved. See
 44221  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44222  // details.
 44223  func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
 44224  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44225  	return c
 44226  }
 44227  
 44228  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44229  // object's ETag matches the given value. This is useful for getting updates
 44230  // only after the object has changed since the last request.
 44231  func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
 44232  	c.ifNoneMatch_ = entityTag
 44233  	return c
 44234  }
 44235  
 44236  // Context sets the context to be used in this call's Do method.
 44237  func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
 44238  	c.ctx_ = ctx
 44239  	return c
 44240  }
 44241  
 44242  // Header returns a http.Header that can be modified by the caller to add
 44243  // headers to the request.
 44244  func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
 44245  	if c.header_ == nil {
 44246  		c.header_ = make(http.Header)
 44247  	}
 44248  	return c.header_
 44249  }
 44250  
 44251  func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 44252  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44253  	if c.ifNoneMatch_ != "" {
 44254  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44255  	}
 44256  	var body io.Reader = nil
 44257  	c.urlParams_.Set("alt", alt)
 44258  	c.urlParams_.Set("prettyPrint", "false")
 44259  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 44260  	urls += "?" + c.urlParams_.Encode()
 44261  	req, err := http.NewRequest("GET", urls, body)
 44262  	if err != nil {
 44263  		return nil, err
 44264  	}
 44265  	req.Header = reqHeaders
 44266  	googleapi.Expand(req.URL, map[string]string{
 44267  		"name": c.name,
 44268  	})
 44269  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44270  }
 44271  
 44272  // Do executes the "dialogflow.projects.locations.conversations.get" call.
 44273  // Any non-2xx status code is an error. Response headers are in either
 44274  // *GoogleCloudDialogflowV2Conversation.ServerResponse.Header or (if a response
 44275  // was returned at all) in error.(*googleapi.Error).Header. Use
 44276  // googleapi.IsNotModified to check whether the returned error was because
 44277  // http.StatusNotModified was returned.
 44278  func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
 44279  	gensupport.SetOptions(c.urlParams_, opts...)
 44280  	res, err := c.doRequest("json")
 44281  	if res != nil && res.StatusCode == http.StatusNotModified {
 44282  		if res.Body != nil {
 44283  			res.Body.Close()
 44284  		}
 44285  		return nil, gensupport.WrapError(&googleapi.Error{
 44286  			Code:   res.StatusCode,
 44287  			Header: res.Header,
 44288  		})
 44289  	}
 44290  	if err != nil {
 44291  		return nil, err
 44292  	}
 44293  	defer googleapi.CloseBody(res)
 44294  	if err := googleapi.CheckResponse(res); err != nil {
 44295  		return nil, gensupport.WrapError(err)
 44296  	}
 44297  	ret := &GoogleCloudDialogflowV2Conversation{
 44298  		ServerResponse: googleapi.ServerResponse{
 44299  			Header:         res.Header,
 44300  			HTTPStatusCode: res.StatusCode,
 44301  		},
 44302  	}
 44303  	target := &ret
 44304  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44305  		return nil, err
 44306  	}
 44307  	return ret, nil
 44308  }
 44309  
 44310  type ProjectsLocationsConversationsListCall struct {
 44311  	s            *Service
 44312  	parent       string
 44313  	urlParams_   gensupport.URLParams
 44314  	ifNoneMatch_ string
 44315  	ctx_         context.Context
 44316  	header_      http.Header
 44317  }
 44318  
 44319  // List: Returns the list of all conversations in the specified project.
 44320  //
 44321  //   - parent: The project from which to list all conversation. Format:
 44322  //     `projects//locations/`.
 44323  func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
 44324  	c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44325  	c.parent = parent
 44326  	return c
 44327  }
 44328  
 44329  // Filter sets the optional parameter "filter": A filter expression that
 44330  // filters conversations listed in the response. In general, the expression
 44331  // must specify the field name, a comparison operator, and the value to use for
 44332  // filtering: - The value must be a string, a number, or a boolean. - The
 44333  // comparison operator must be either `=`,`!=`, `>`, or `<`. - To filter on
 44334  // multiple expressions, separate the expressions with `AND` or `OR` (omitting
 44335  // both implies `AND`). - For clarity, expressions can be enclosed in
 44336  // parentheses. Only `lifecycle_state` can be filtered on in this way. For
 44337  // example, the following expression only returns `COMPLETED` conversations:
 44338  // `lifecycle_state = "COMPLETED" For more information about filtering, see
 44339  // API Filtering (https://aip.dev/160).
 44340  func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
 44341  	c.urlParams_.Set("filter", filter)
 44342  	return c
 44343  }
 44344  
 44345  // PageSize sets the optional parameter "pageSize": The maximum number of items
 44346  // to return in a single page. By default 100 and at most 1000.
 44347  func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
 44348  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44349  	return c
 44350  }
 44351  
 44352  // PageToken sets the optional parameter "pageToken": The next_page_token value
 44353  // returned from a previous list request.
 44354  func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
 44355  	c.urlParams_.Set("pageToken", pageToken)
 44356  	return c
 44357  }
 44358  
 44359  // Fields allows partial responses to be retrieved. See
 44360  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44361  // details.
 44362  func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
 44363  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44364  	return c
 44365  }
 44366  
 44367  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44368  // object's ETag matches the given value. This is useful for getting updates
 44369  // only after the object has changed since the last request.
 44370  func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
 44371  	c.ifNoneMatch_ = entityTag
 44372  	return c
 44373  }
 44374  
 44375  // Context sets the context to be used in this call's Do method.
 44376  func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
 44377  	c.ctx_ = ctx
 44378  	return c
 44379  }
 44380  
 44381  // Header returns a http.Header that can be modified by the caller to add
 44382  // headers to the request.
 44383  func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
 44384  	if c.header_ == nil {
 44385  		c.header_ = make(http.Header)
 44386  	}
 44387  	return c.header_
 44388  }
 44389  
 44390  func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
 44391  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44392  	if c.ifNoneMatch_ != "" {
 44393  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44394  	}
 44395  	var body io.Reader = nil
 44396  	c.urlParams_.Set("alt", alt)
 44397  	c.urlParams_.Set("prettyPrint", "false")
 44398  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
 44399  	urls += "?" + c.urlParams_.Encode()
 44400  	req, err := http.NewRequest("GET", urls, body)
 44401  	if err != nil {
 44402  		return nil, err
 44403  	}
 44404  	req.Header = reqHeaders
 44405  	googleapi.Expand(req.URL, map[string]string{
 44406  		"parent": c.parent,
 44407  	})
 44408  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44409  }
 44410  
 44411  // Do executes the "dialogflow.projects.locations.conversations.list" call.
 44412  // Any non-2xx status code is an error. Response headers are in either
 44413  // *GoogleCloudDialogflowV2ListConversationsResponse.ServerResponse.Header or
 44414  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 44415  // googleapi.IsNotModified to check whether the returned error was because
 44416  // http.StatusNotModified was returned.
 44417  func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationsResponse, error) {
 44418  	gensupport.SetOptions(c.urlParams_, opts...)
 44419  	res, err := c.doRequest("json")
 44420  	if res != nil && res.StatusCode == http.StatusNotModified {
 44421  		if res.Body != nil {
 44422  			res.Body.Close()
 44423  		}
 44424  		return nil, gensupport.WrapError(&googleapi.Error{
 44425  			Code:   res.StatusCode,
 44426  			Header: res.Header,
 44427  		})
 44428  	}
 44429  	if err != nil {
 44430  		return nil, err
 44431  	}
 44432  	defer googleapi.CloseBody(res)
 44433  	if err := googleapi.CheckResponse(res); err != nil {
 44434  		return nil, gensupport.WrapError(err)
 44435  	}
 44436  	ret := &GoogleCloudDialogflowV2ListConversationsResponse{
 44437  		ServerResponse: googleapi.ServerResponse{
 44438  			Header:         res.Header,
 44439  			HTTPStatusCode: res.StatusCode,
 44440  		},
 44441  	}
 44442  	target := &ret
 44443  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44444  		return nil, err
 44445  	}
 44446  	return ret, nil
 44447  }
 44448  
 44449  // Pages invokes f for each page of results.
 44450  // A non-nil error returned from f will halt the iteration.
 44451  // The provided context supersedes any context provided to the Context method.
 44452  func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationsResponse) error) error {
 44453  	c.ctx_ = ctx
 44454  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 44455  	for {
 44456  		x, err := c.Do()
 44457  		if err != nil {
 44458  			return err
 44459  		}
 44460  		if err := f(x); err != nil {
 44461  			return err
 44462  		}
 44463  		if x.NextPageToken == "" {
 44464  			return nil
 44465  		}
 44466  		c.PageToken(x.NextPageToken)
 44467  	}
 44468  }
 44469  
 44470  type ProjectsLocationsConversationsMessagesListCall struct {
 44471  	s            *Service
 44472  	parent       string
 44473  	urlParams_   gensupport.URLParams
 44474  	ifNoneMatch_ string
 44475  	ctx_         context.Context
 44476  	header_      http.Header
 44477  }
 44478  
 44479  // List: Lists messages that belong to a given conversation. `messages` are
 44480  // ordered by `create_time` in descending order. To fetch updates without
 44481  // duplication, send request with filter `create_time_epoch_microseconds >
 44482  // [first item's create_time of previous request]` and empty page_token.
 44483  //
 44484  //   - parent: The name of the conversation to list messages for. Format:
 44485  //     `projects//locations//conversations/`.
 44486  func (r *ProjectsLocationsConversationsMessagesService) List(parent string) *ProjectsLocationsConversationsMessagesListCall {
 44487  	c := &ProjectsLocationsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44488  	c.parent = parent
 44489  	return c
 44490  }
 44491  
 44492  // Filter sets the optional parameter "filter": Filter on message fields.
 44493  // Currently predicates on `create_time` and `create_time_epoch_microseconds`
 44494  // are supported. `create_time` only support milliseconds accuracy. E.g.,
 44495  // `create_time_epoch_microseconds > 1551790877964485` or `create_time >
 44496  // 2017-01-15T01:30:15.01Z`. For more information about filtering, see API
 44497  // Filtering (https://aip.dev/160).
 44498  func (c *ProjectsLocationsConversationsMessagesListCall) Filter(filter string) *ProjectsLocationsConversationsMessagesListCall {
 44499  	c.urlParams_.Set("filter", filter)
 44500  	return c
 44501  }
 44502  
 44503  // PageSize sets the optional parameter "pageSize": The maximum number of items
 44504  // to return in a single page. By default 100 and at most 1000.
 44505  func (c *ProjectsLocationsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsMessagesListCall {
 44506  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44507  	return c
 44508  }
 44509  
 44510  // PageToken sets the optional parameter "pageToken": The next_page_token value
 44511  // returned from a previous list request.
 44512  func (c *ProjectsLocationsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsMessagesListCall {
 44513  	c.urlParams_.Set("pageToken", pageToken)
 44514  	return c
 44515  }
 44516  
 44517  // Fields allows partial responses to be retrieved. See
 44518  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44519  // details.
 44520  func (c *ProjectsLocationsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesListCall {
 44521  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44522  	return c
 44523  }
 44524  
 44525  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44526  // object's ETag matches the given value. This is useful for getting updates
 44527  // only after the object has changed since the last request.
 44528  func (c *ProjectsLocationsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsMessagesListCall {
 44529  	c.ifNoneMatch_ = entityTag
 44530  	return c
 44531  }
 44532  
 44533  // Context sets the context to be used in this call's Do method.
 44534  func (c *ProjectsLocationsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesListCall {
 44535  	c.ctx_ = ctx
 44536  	return c
 44537  }
 44538  
 44539  // Header returns a http.Header that can be modified by the caller to add
 44540  // headers to the request.
 44541  func (c *ProjectsLocationsConversationsMessagesListCall) Header() http.Header {
 44542  	if c.header_ == nil {
 44543  		c.header_ = make(http.Header)
 44544  	}
 44545  	return c.header_
 44546  }
 44547  
 44548  func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
 44549  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44550  	if c.ifNoneMatch_ != "" {
 44551  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44552  	}
 44553  	var body io.Reader = nil
 44554  	c.urlParams_.Set("alt", alt)
 44555  	c.urlParams_.Set("prettyPrint", "false")
 44556  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/messages")
 44557  	urls += "?" + c.urlParams_.Encode()
 44558  	req, err := http.NewRequest("GET", urls, body)
 44559  	if err != nil {
 44560  		return nil, err
 44561  	}
 44562  	req.Header = reqHeaders
 44563  	googleapi.Expand(req.URL, map[string]string{
 44564  		"parent": c.parent,
 44565  	})
 44566  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44567  }
 44568  
 44569  // Do executes the "dialogflow.projects.locations.conversations.messages.list" call.
 44570  // Any non-2xx status code is an error. Response headers are in either
 44571  // *GoogleCloudDialogflowV2ListMessagesResponse.ServerResponse.Header or (if a
 44572  // response was returned at all) in error.(*googleapi.Error).Header. Use
 44573  // googleapi.IsNotModified to check whether the returned error was because
 44574  // http.StatusNotModified was returned.
 44575  func (c *ProjectsLocationsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListMessagesResponse, error) {
 44576  	gensupport.SetOptions(c.urlParams_, opts...)
 44577  	res, err := c.doRequest("json")
 44578  	if res != nil && res.StatusCode == http.StatusNotModified {
 44579  		if res.Body != nil {
 44580  			res.Body.Close()
 44581  		}
 44582  		return nil, gensupport.WrapError(&googleapi.Error{
 44583  			Code:   res.StatusCode,
 44584  			Header: res.Header,
 44585  		})
 44586  	}
 44587  	if err != nil {
 44588  		return nil, err
 44589  	}
 44590  	defer googleapi.CloseBody(res)
 44591  	if err := googleapi.CheckResponse(res); err != nil {
 44592  		return nil, gensupport.WrapError(err)
 44593  	}
 44594  	ret := &GoogleCloudDialogflowV2ListMessagesResponse{
 44595  		ServerResponse: googleapi.ServerResponse{
 44596  			Header:         res.Header,
 44597  			HTTPStatusCode: res.StatusCode,
 44598  		},
 44599  	}
 44600  	target := &ret
 44601  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44602  		return nil, err
 44603  	}
 44604  	return ret, nil
 44605  }
 44606  
 44607  // Pages invokes f for each page of results.
 44608  // A non-nil error returned from f will halt the iteration.
 44609  // The provided context supersedes any context provided to the Context method.
 44610  func (c *ProjectsLocationsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListMessagesResponse) error) error {
 44611  	c.ctx_ = ctx
 44612  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 44613  	for {
 44614  		x, err := c.Do()
 44615  		if err != nil {
 44616  			return err
 44617  		}
 44618  		if err := f(x); err != nil {
 44619  			return err
 44620  		}
 44621  		if x.NextPageToken == "" {
 44622  			return nil
 44623  		}
 44624  		c.PageToken(x.NextPageToken)
 44625  	}
 44626  }
 44627  
 44628  type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {
 44629  	s                                            *Service
 44630  	participant                                  string
 44631  	googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest
 44632  	urlParams_                                   gensupport.URLParams
 44633  	ctx_                                         context.Context
 44634  	header_                                      http.Header
 44635  }
 44636  
 44637  // AnalyzeContent: Adds a text (chat, for example), or audio (phone recording,
 44638  // for example) message from a participant into the conversation. Note: Always
 44639  // use agent versions for production traffic sent to virtual agents. See
 44640  // Versions and environments
 44641  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 44642  //
 44643  //   - participant: The name of the participant this text comes from. Format:
 44644  //     `projects//locations//conversations//participants/`.
 44645  func (r *ProjectsLocationsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
 44646  	c := &ProjectsLocationsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44647  	c.participant = participant
 44648  	c.googleclouddialogflowv2analyzecontentrequest = googleclouddialogflowv2analyzecontentrequest
 44649  	return c
 44650  }
 44651  
 44652  // Fields allows partial responses to be retrieved. See
 44653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44654  // details.
 44655  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
 44656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44657  	return c
 44658  }
 44659  
 44660  // Context sets the context to be used in this call's Do method.
 44661  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
 44662  	c.ctx_ = ctx
 44663  	return c
 44664  }
 44665  
 44666  // Header returns a http.Header that can be modified by the caller to add
 44667  // headers to the request.
 44668  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
 44669  	if c.header_ == nil {
 44670  		c.header_ = make(http.Header)
 44671  	}
 44672  	return c.header_
 44673  }
 44674  
 44675  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
 44676  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44677  	var body io.Reader = nil
 44678  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2analyzecontentrequest)
 44679  	if err != nil {
 44680  		return nil, err
 44681  	}
 44682  	c.urlParams_.Set("alt", alt)
 44683  	c.urlParams_.Set("prettyPrint", "false")
 44684  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+participant}:analyzeContent")
 44685  	urls += "?" + c.urlParams_.Encode()
 44686  	req, err := http.NewRequest("POST", urls, body)
 44687  	if err != nil {
 44688  		return nil, err
 44689  	}
 44690  	req.Header = reqHeaders
 44691  	googleapi.Expand(req.URL, map[string]string{
 44692  		"participant": c.participant,
 44693  	})
 44694  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44695  }
 44696  
 44697  // Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call.
 44698  // Any non-2xx status code is an error. Response headers are in either
 44699  // *GoogleCloudDialogflowV2AnalyzeContentResponse.ServerResponse.Header or (if
 44700  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 44701  // googleapi.IsNotModified to check whether the returned error was because
 44702  // http.StatusNotModified was returned.
 44703  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnalyzeContentResponse, error) {
 44704  	gensupport.SetOptions(c.urlParams_, opts...)
 44705  	res, err := c.doRequest("json")
 44706  	if res != nil && res.StatusCode == http.StatusNotModified {
 44707  		if res.Body != nil {
 44708  			res.Body.Close()
 44709  		}
 44710  		return nil, gensupport.WrapError(&googleapi.Error{
 44711  			Code:   res.StatusCode,
 44712  			Header: res.Header,
 44713  		})
 44714  	}
 44715  	if err != nil {
 44716  		return nil, err
 44717  	}
 44718  	defer googleapi.CloseBody(res)
 44719  	if err := googleapi.CheckResponse(res); err != nil {
 44720  		return nil, gensupport.WrapError(err)
 44721  	}
 44722  	ret := &GoogleCloudDialogflowV2AnalyzeContentResponse{
 44723  		ServerResponse: googleapi.ServerResponse{
 44724  			Header:         res.Header,
 44725  			HTTPStatusCode: res.StatusCode,
 44726  		},
 44727  	}
 44728  	target := &ret
 44729  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44730  		return nil, err
 44731  	}
 44732  	return ret, nil
 44733  }
 44734  
 44735  type ProjectsLocationsConversationsParticipantsCreateCall struct {
 44736  	s                                  *Service
 44737  	parentid                           string
 44738  	googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
 44739  	urlParams_                         gensupport.URLParams
 44740  	ctx_                               context.Context
 44741  	header_                            http.Header
 44742  }
 44743  
 44744  // Create: Creates a new participant in a conversation.
 44745  //
 44746  //   - parent: Resource identifier of the conversation adding the participant.
 44747  //     Format: `projects//locations//conversations/`.
 44748  func (r *ProjectsLocationsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsLocationsConversationsParticipantsCreateCall {
 44749  	c := &ProjectsLocationsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44750  	c.parentid = parentid
 44751  	c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
 44752  	return c
 44753  }
 44754  
 44755  // Fields allows partial responses to be retrieved. See
 44756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44757  // details.
 44758  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsCreateCall {
 44759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44760  	return c
 44761  }
 44762  
 44763  // Context sets the context to be used in this call's Do method.
 44764  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsCreateCall {
 44765  	c.ctx_ = ctx
 44766  	return c
 44767  }
 44768  
 44769  // Header returns a http.Header that can be modified by the caller to add
 44770  // headers to the request.
 44771  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Header() http.Header {
 44772  	if c.header_ == nil {
 44773  		c.header_ = make(http.Header)
 44774  	}
 44775  	return c.header_
 44776  }
 44777  
 44778  func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
 44779  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44780  	var body io.Reader = nil
 44781  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
 44782  	if err != nil {
 44783  		return nil, err
 44784  	}
 44785  	c.urlParams_.Set("alt", alt)
 44786  	c.urlParams_.Set("prettyPrint", "false")
 44787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
 44788  	urls += "?" + c.urlParams_.Encode()
 44789  	req, err := http.NewRequest("POST", urls, body)
 44790  	if err != nil {
 44791  		return nil, err
 44792  	}
 44793  	req.Header = reqHeaders
 44794  	googleapi.Expand(req.URL, map[string]string{
 44795  		"parent": c.parentid,
 44796  	})
 44797  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44798  }
 44799  
 44800  // Do executes the "dialogflow.projects.locations.conversations.participants.create" call.
 44801  // Any non-2xx status code is an error. Response headers are in either
 44802  // *GoogleCloudDialogflowV2Participant.ServerResponse.Header or (if a response
 44803  // was returned at all) in error.(*googleapi.Error).Header. Use
 44804  // googleapi.IsNotModified to check whether the returned error was because
 44805  // http.StatusNotModified was returned.
 44806  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
 44807  	gensupport.SetOptions(c.urlParams_, opts...)
 44808  	res, err := c.doRequest("json")
 44809  	if res != nil && res.StatusCode == http.StatusNotModified {
 44810  		if res.Body != nil {
 44811  			res.Body.Close()
 44812  		}
 44813  		return nil, gensupport.WrapError(&googleapi.Error{
 44814  			Code:   res.StatusCode,
 44815  			Header: res.Header,
 44816  		})
 44817  	}
 44818  	if err != nil {
 44819  		return nil, err
 44820  	}
 44821  	defer googleapi.CloseBody(res)
 44822  	if err := googleapi.CheckResponse(res); err != nil {
 44823  		return nil, gensupport.WrapError(err)
 44824  	}
 44825  	ret := &GoogleCloudDialogflowV2Participant{
 44826  		ServerResponse: googleapi.ServerResponse{
 44827  			Header:         res.Header,
 44828  			HTTPStatusCode: res.StatusCode,
 44829  		},
 44830  	}
 44831  	target := &ret
 44832  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44833  		return nil, err
 44834  	}
 44835  	return ret, nil
 44836  }
 44837  
 44838  type ProjectsLocationsConversationsParticipantsGetCall struct {
 44839  	s            *Service
 44840  	name         string
 44841  	urlParams_   gensupport.URLParams
 44842  	ifNoneMatch_ string
 44843  	ctx_         context.Context
 44844  	header_      http.Header
 44845  }
 44846  
 44847  // Get: Retrieves a conversation participant.
 44848  //
 44849  //   - name: The name of the participant. Format:
 44850  //     `projects//locations//conversations//participants/`.
 44851  func (r *ProjectsLocationsConversationsParticipantsService) Get(name string) *ProjectsLocationsConversationsParticipantsGetCall {
 44852  	c := &ProjectsLocationsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44853  	c.name = name
 44854  	return c
 44855  }
 44856  
 44857  // Fields allows partial responses to be retrieved. See
 44858  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44859  // details.
 44860  func (c *ProjectsLocationsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsGetCall {
 44861  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44862  	return c
 44863  }
 44864  
 44865  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44866  // object's ETag matches the given value. This is useful for getting updates
 44867  // only after the object has changed since the last request.
 44868  func (c *ProjectsLocationsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsGetCall {
 44869  	c.ifNoneMatch_ = entityTag
 44870  	return c
 44871  }
 44872  
 44873  // Context sets the context to be used in this call's Do method.
 44874  func (c *ProjectsLocationsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsGetCall {
 44875  	c.ctx_ = ctx
 44876  	return c
 44877  }
 44878  
 44879  // Header returns a http.Header that can be modified by the caller to add
 44880  // headers to the request.
 44881  func (c *ProjectsLocationsConversationsParticipantsGetCall) Header() http.Header {
 44882  	if c.header_ == nil {
 44883  		c.header_ = make(http.Header)
 44884  	}
 44885  	return c.header_
 44886  }
 44887  
 44888  func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
 44889  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44890  	if c.ifNoneMatch_ != "" {
 44891  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44892  	}
 44893  	var body io.Reader = nil
 44894  	c.urlParams_.Set("alt", alt)
 44895  	c.urlParams_.Set("prettyPrint", "false")
 44896  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 44897  	urls += "?" + c.urlParams_.Encode()
 44898  	req, err := http.NewRequest("GET", urls, body)
 44899  	if err != nil {
 44900  		return nil, err
 44901  	}
 44902  	req.Header = reqHeaders
 44903  	googleapi.Expand(req.URL, map[string]string{
 44904  		"name": c.name,
 44905  	})
 44906  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44907  }
 44908  
 44909  // Do executes the "dialogflow.projects.locations.conversations.participants.get" call.
 44910  // Any non-2xx status code is an error. Response headers are in either
 44911  // *GoogleCloudDialogflowV2Participant.ServerResponse.Header or (if a response
 44912  // was returned at all) in error.(*googleapi.Error).Header. Use
 44913  // googleapi.IsNotModified to check whether the returned error was because
 44914  // http.StatusNotModified was returned.
 44915  func (c *ProjectsLocationsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
 44916  	gensupport.SetOptions(c.urlParams_, opts...)
 44917  	res, err := c.doRequest("json")
 44918  	if res != nil && res.StatusCode == http.StatusNotModified {
 44919  		if res.Body != nil {
 44920  			res.Body.Close()
 44921  		}
 44922  		return nil, gensupport.WrapError(&googleapi.Error{
 44923  			Code:   res.StatusCode,
 44924  			Header: res.Header,
 44925  		})
 44926  	}
 44927  	if err != nil {
 44928  		return nil, err
 44929  	}
 44930  	defer googleapi.CloseBody(res)
 44931  	if err := googleapi.CheckResponse(res); err != nil {
 44932  		return nil, gensupport.WrapError(err)
 44933  	}
 44934  	ret := &GoogleCloudDialogflowV2Participant{
 44935  		ServerResponse: googleapi.ServerResponse{
 44936  			Header:         res.Header,
 44937  			HTTPStatusCode: res.StatusCode,
 44938  		},
 44939  	}
 44940  	target := &ret
 44941  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44942  		return nil, err
 44943  	}
 44944  	return ret, nil
 44945  }
 44946  
 44947  type ProjectsLocationsConversationsParticipantsListCall struct {
 44948  	s            *Service
 44949  	parent       string
 44950  	urlParams_   gensupport.URLParams
 44951  	ifNoneMatch_ string
 44952  	ctx_         context.Context
 44953  	header_      http.Header
 44954  }
 44955  
 44956  // List: Returns the list of all participants in the specified conversation.
 44957  //
 44958  //   - parent: The conversation to list all participants from. Format:
 44959  //     `projects//locations//conversations/`.
 44960  func (r *ProjectsLocationsConversationsParticipantsService) List(parent string) *ProjectsLocationsConversationsParticipantsListCall {
 44961  	c := &ProjectsLocationsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44962  	c.parent = parent
 44963  	return c
 44964  }
 44965  
 44966  // PageSize sets the optional parameter "pageSize": The maximum number of items
 44967  // to return in a single page. By default 100 and at most 1000.
 44968  func (c *ProjectsLocationsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsParticipantsListCall {
 44969  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44970  	return c
 44971  }
 44972  
 44973  // PageToken sets the optional parameter "pageToken": The next_page_token value
 44974  // returned from a previous list request.
 44975  func (c *ProjectsLocationsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsParticipantsListCall {
 44976  	c.urlParams_.Set("pageToken", pageToken)
 44977  	return c
 44978  }
 44979  
 44980  // Fields allows partial responses to be retrieved. See
 44981  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44982  // details.
 44983  func (c *ProjectsLocationsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsListCall {
 44984  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44985  	return c
 44986  }
 44987  
 44988  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44989  // object's ETag matches the given value. This is useful for getting updates
 44990  // only after the object has changed since the last request.
 44991  func (c *ProjectsLocationsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsListCall {
 44992  	c.ifNoneMatch_ = entityTag
 44993  	return c
 44994  }
 44995  
 44996  // Context sets the context to be used in this call's Do method.
 44997  func (c *ProjectsLocationsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsListCall {
 44998  	c.ctx_ = ctx
 44999  	return c
 45000  }
 45001  
 45002  // Header returns a http.Header that can be modified by the caller to add
 45003  // headers to the request.
 45004  func (c *ProjectsLocationsConversationsParticipantsListCall) Header() http.Header {
 45005  	if c.header_ == nil {
 45006  		c.header_ = make(http.Header)
 45007  	}
 45008  	return c.header_
 45009  }
 45010  
 45011  func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
 45012  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45013  	if c.ifNoneMatch_ != "" {
 45014  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45015  	}
 45016  	var body io.Reader = nil
 45017  	c.urlParams_.Set("alt", alt)
 45018  	c.urlParams_.Set("prettyPrint", "false")
 45019  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
 45020  	urls += "?" + c.urlParams_.Encode()
 45021  	req, err := http.NewRequest("GET", urls, body)
 45022  	if err != nil {
 45023  		return nil, err
 45024  	}
 45025  	req.Header = reqHeaders
 45026  	googleapi.Expand(req.URL, map[string]string{
 45027  		"parent": c.parent,
 45028  	})
 45029  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45030  }
 45031  
 45032  // Do executes the "dialogflow.projects.locations.conversations.participants.list" call.
 45033  // Any non-2xx status code is an error. Response headers are in either
 45034  // *GoogleCloudDialogflowV2ListParticipantsResponse.ServerResponse.Header or
 45035  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 45036  // googleapi.IsNotModified to check whether the returned error was because
 45037  // http.StatusNotModified was returned.
 45038  func (c *ProjectsLocationsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListParticipantsResponse, error) {
 45039  	gensupport.SetOptions(c.urlParams_, opts...)
 45040  	res, err := c.doRequest("json")
 45041  	if res != nil && res.StatusCode == http.StatusNotModified {
 45042  		if res.Body != nil {
 45043  			res.Body.Close()
 45044  		}
 45045  		return nil, gensupport.WrapError(&googleapi.Error{
 45046  			Code:   res.StatusCode,
 45047  			Header: res.Header,
 45048  		})
 45049  	}
 45050  	if err != nil {
 45051  		return nil, err
 45052  	}
 45053  	defer googleapi.CloseBody(res)
 45054  	if err := googleapi.CheckResponse(res); err != nil {
 45055  		return nil, gensupport.WrapError(err)
 45056  	}
 45057  	ret := &GoogleCloudDialogflowV2ListParticipantsResponse{
 45058  		ServerResponse: googleapi.ServerResponse{
 45059  			Header:         res.Header,
 45060  			HTTPStatusCode: res.StatusCode,
 45061  		},
 45062  	}
 45063  	target := &ret
 45064  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45065  		return nil, err
 45066  	}
 45067  	return ret, nil
 45068  }
 45069  
 45070  // Pages invokes f for each page of results.
 45071  // A non-nil error returned from f will halt the iteration.
 45072  // The provided context supersedes any context provided to the Context method.
 45073  func (c *ProjectsLocationsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListParticipantsResponse) error) error {
 45074  	c.ctx_ = ctx
 45075  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 45076  	for {
 45077  		x, err := c.Do()
 45078  		if err != nil {
 45079  			return err
 45080  		}
 45081  		if err := f(x); err != nil {
 45082  			return err
 45083  		}
 45084  		if x.NextPageToken == "" {
 45085  			return nil
 45086  		}
 45087  		c.PageToken(x.NextPageToken)
 45088  	}
 45089  }
 45090  
 45091  type ProjectsLocationsConversationsParticipantsPatchCall struct {
 45092  	s                                  *Service
 45093  	nameid                             string
 45094  	googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
 45095  	urlParams_                         gensupport.URLParams
 45096  	ctx_                               context.Context
 45097  	header_                            http.Header
 45098  }
 45099  
 45100  // Patch: Updates the specified participant.
 45101  //
 45102  //   - name: Optional. The unique identifier of this participant. Format:
 45103  //     `projects//locations//conversations//participants/`.
 45104  func (r *ProjectsLocationsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsLocationsConversationsParticipantsPatchCall {
 45105  	c := &ProjectsLocationsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45106  	c.nameid = nameid
 45107  	c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
 45108  	return c
 45109  }
 45110  
 45111  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 45112  // specify which fields to update.
 45113  func (c *ProjectsLocationsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsParticipantsPatchCall {
 45114  	c.urlParams_.Set("updateMask", updateMask)
 45115  	return c
 45116  }
 45117  
 45118  // Fields allows partial responses to be retrieved. See
 45119  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45120  // details.
 45121  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsPatchCall {
 45122  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45123  	return c
 45124  }
 45125  
 45126  // Context sets the context to be used in this call's Do method.
 45127  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsPatchCall {
 45128  	c.ctx_ = ctx
 45129  	return c
 45130  }
 45131  
 45132  // Header returns a http.Header that can be modified by the caller to add
 45133  // headers to the request.
 45134  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Header() http.Header {
 45135  	if c.header_ == nil {
 45136  		c.header_ = make(http.Header)
 45137  	}
 45138  	return c.header_
 45139  }
 45140  
 45141  func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
 45142  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45143  	var body io.Reader = nil
 45144  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
 45145  	if err != nil {
 45146  		return nil, err
 45147  	}
 45148  	c.urlParams_.Set("alt", alt)
 45149  	c.urlParams_.Set("prettyPrint", "false")
 45150  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 45151  	urls += "?" + c.urlParams_.Encode()
 45152  	req, err := http.NewRequest("PATCH", urls, body)
 45153  	if err != nil {
 45154  		return nil, err
 45155  	}
 45156  	req.Header = reqHeaders
 45157  	googleapi.Expand(req.URL, map[string]string{
 45158  		"name": c.nameid,
 45159  	})
 45160  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45161  }
 45162  
 45163  // Do executes the "dialogflow.projects.locations.conversations.participants.patch" call.
 45164  // Any non-2xx status code is an error. Response headers are in either
 45165  // *GoogleCloudDialogflowV2Participant.ServerResponse.Header or (if a response
 45166  // was returned at all) in error.(*googleapi.Error).Header. Use
 45167  // googleapi.IsNotModified to check whether the returned error was because
 45168  // http.StatusNotModified was returned.
 45169  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
 45170  	gensupport.SetOptions(c.urlParams_, opts...)
 45171  	res, err := c.doRequest("json")
 45172  	if res != nil && res.StatusCode == http.StatusNotModified {
 45173  		if res.Body != nil {
 45174  			res.Body.Close()
 45175  		}
 45176  		return nil, gensupport.WrapError(&googleapi.Error{
 45177  			Code:   res.StatusCode,
 45178  			Header: res.Header,
 45179  		})
 45180  	}
 45181  	if err != nil {
 45182  		return nil, err
 45183  	}
 45184  	defer googleapi.CloseBody(res)
 45185  	if err := googleapi.CheckResponse(res); err != nil {
 45186  		return nil, gensupport.WrapError(err)
 45187  	}
 45188  	ret := &GoogleCloudDialogflowV2Participant{
 45189  		ServerResponse: googleapi.ServerResponse{
 45190  			Header:         res.Header,
 45191  			HTTPStatusCode: res.StatusCode,
 45192  		},
 45193  	}
 45194  	target := &ret
 45195  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45196  		return nil, err
 45197  	}
 45198  	return ret, nil
 45199  }
 45200  
 45201  type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
 45202  	s                                             *Service
 45203  	parent                                        string
 45204  	googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest
 45205  	urlParams_                                    gensupport.URLParams
 45206  	ctx_                                          context.Context
 45207  	header_                                       http.Header
 45208  }
 45209  
 45210  // SuggestArticles: Gets suggested articles for a participant based on specific
 45211  // historical messages.
 45212  //
 45213  //   - parent: The name of the participant to fetch suggestion for. Format:
 45214  //     `projects//locations//conversations//participants/`.
 45215  func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
 45216  	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45217  	c.parent = parent
 45218  	c.googleclouddialogflowv2suggestarticlesrequest = googleclouddialogflowv2suggestarticlesrequest
 45219  	return c
 45220  }
 45221  
 45222  // Fields allows partial responses to be retrieved. See
 45223  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45224  // details.
 45225  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
 45226  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45227  	return c
 45228  }
 45229  
 45230  // Context sets the context to be used in this call's Do method.
 45231  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
 45232  	c.ctx_ = ctx
 45233  	return c
 45234  }
 45235  
 45236  // Header returns a http.Header that can be modified by the caller to add
 45237  // headers to the request.
 45238  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
 45239  	if c.header_ == nil {
 45240  		c.header_ = make(http.Header)
 45241  	}
 45242  	return c.header_
 45243  }
 45244  
 45245  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
 45246  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45247  	var body io.Reader = nil
 45248  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestarticlesrequest)
 45249  	if err != nil {
 45250  		return nil, err
 45251  	}
 45252  	c.urlParams_.Set("alt", alt)
 45253  	c.urlParams_.Set("prettyPrint", "false")
 45254  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestArticles")
 45255  	urls += "?" + c.urlParams_.Encode()
 45256  	req, err := http.NewRequest("POST", urls, body)
 45257  	if err != nil {
 45258  		return nil, err
 45259  	}
 45260  	req.Header = reqHeaders
 45261  	googleapi.Expand(req.URL, map[string]string{
 45262  		"parent": c.parent,
 45263  	})
 45264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45265  }
 45266  
 45267  // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call.
 45268  // Any non-2xx status code is an error. Response headers are in either
 45269  // *GoogleCloudDialogflowV2SuggestArticlesResponse.ServerResponse.Header or (if
 45270  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 45271  // googleapi.IsNotModified to check whether the returned error was because
 45272  // http.StatusNotModified was returned.
 45273  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestArticlesResponse, error) {
 45274  	gensupport.SetOptions(c.urlParams_, opts...)
 45275  	res, err := c.doRequest("json")
 45276  	if res != nil && res.StatusCode == http.StatusNotModified {
 45277  		if res.Body != nil {
 45278  			res.Body.Close()
 45279  		}
 45280  		return nil, gensupport.WrapError(&googleapi.Error{
 45281  			Code:   res.StatusCode,
 45282  			Header: res.Header,
 45283  		})
 45284  	}
 45285  	if err != nil {
 45286  		return nil, err
 45287  	}
 45288  	defer googleapi.CloseBody(res)
 45289  	if err := googleapi.CheckResponse(res); err != nil {
 45290  		return nil, gensupport.WrapError(err)
 45291  	}
 45292  	ret := &GoogleCloudDialogflowV2SuggestArticlesResponse{
 45293  		ServerResponse: googleapi.ServerResponse{
 45294  			Header:         res.Header,
 45295  			HTTPStatusCode: res.StatusCode,
 45296  		},
 45297  	}
 45298  	target := &ret
 45299  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45300  		return nil, err
 45301  	}
 45302  	return ret, nil
 45303  }
 45304  
 45305  type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
 45306  	s                                               *Service
 45307  	parent                                          string
 45308  	googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest
 45309  	urlParams_                                      gensupport.URLParams
 45310  	ctx_                                            context.Context
 45311  	header_                                         http.Header
 45312  }
 45313  
 45314  // SuggestFaqAnswers: Gets suggested faq answers for a participant based on
 45315  // specific historical messages.
 45316  //
 45317  //   - parent: The name of the participant to fetch suggestion for. Format:
 45318  //     `projects//locations//conversations//participants/`.
 45319  func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 45320  	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45321  	c.parent = parent
 45322  	c.googleclouddialogflowv2suggestfaqanswersrequest = googleclouddialogflowv2suggestfaqanswersrequest
 45323  	return c
 45324  }
 45325  
 45326  // Fields allows partial responses to be retrieved. See
 45327  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45328  // details.
 45329  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 45330  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45331  	return c
 45332  }
 45333  
 45334  // Context sets the context to be used in this call's Do method.
 45335  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 45336  	c.ctx_ = ctx
 45337  	return c
 45338  }
 45339  
 45340  // Header returns a http.Header that can be modified by the caller to add
 45341  // headers to the request.
 45342  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
 45343  	if c.header_ == nil {
 45344  		c.header_ = make(http.Header)
 45345  	}
 45346  	return c.header_
 45347  }
 45348  
 45349  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
 45350  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45351  	var body io.Reader = nil
 45352  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestfaqanswersrequest)
 45353  	if err != nil {
 45354  		return nil, err
 45355  	}
 45356  	c.urlParams_.Set("alt", alt)
 45357  	c.urlParams_.Set("prettyPrint", "false")
 45358  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestFaqAnswers")
 45359  	urls += "?" + c.urlParams_.Encode()
 45360  	req, err := http.NewRequest("POST", urls, body)
 45361  	if err != nil {
 45362  		return nil, err
 45363  	}
 45364  	req.Header = reqHeaders
 45365  	googleapi.Expand(req.URL, map[string]string{
 45366  		"parent": c.parent,
 45367  	})
 45368  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45369  }
 45370  
 45371  // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call.
 45372  // Any non-2xx status code is an error. Response headers are in either
 45373  // *GoogleCloudDialogflowV2SuggestFaqAnswersResponse.ServerResponse.Header or
 45374  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 45375  // googleapi.IsNotModified to check whether the returned error was because
 45376  // http.StatusNotModified was returned.
 45377  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestFaqAnswersResponse, error) {
 45378  	gensupport.SetOptions(c.urlParams_, opts...)
 45379  	res, err := c.doRequest("json")
 45380  	if res != nil && res.StatusCode == http.StatusNotModified {
 45381  		if res.Body != nil {
 45382  			res.Body.Close()
 45383  		}
 45384  		return nil, gensupport.WrapError(&googleapi.Error{
 45385  			Code:   res.StatusCode,
 45386  			Header: res.Header,
 45387  		})
 45388  	}
 45389  	if err != nil {
 45390  		return nil, err
 45391  	}
 45392  	defer googleapi.CloseBody(res)
 45393  	if err := googleapi.CheckResponse(res); err != nil {
 45394  		return nil, gensupport.WrapError(err)
 45395  	}
 45396  	ret := &GoogleCloudDialogflowV2SuggestFaqAnswersResponse{
 45397  		ServerResponse: googleapi.ServerResponse{
 45398  			Header:         res.Header,
 45399  			HTTPStatusCode: res.StatusCode,
 45400  		},
 45401  	}
 45402  	target := &ret
 45403  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45404  		return nil, err
 45405  	}
 45406  	return ret, nil
 45407  }
 45408  
 45409  type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
 45410  	s                                                 *Service
 45411  	parent                                            string
 45412  	googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest
 45413  	urlParams_                                        gensupport.URLParams
 45414  	ctx_                                              context.Context
 45415  	header_                                           http.Header
 45416  }
 45417  
 45418  // SuggestSmartReplies: Gets smart replies for a participant based on specific
 45419  // historical messages.
 45420  //
 45421  //   - parent: The name of the participant to fetch suggestion for. Format:
 45422  //     `projects//locations//conversations//participants/`.
 45423  func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 45424  	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45425  	c.parent = parent
 45426  	c.googleclouddialogflowv2suggestsmartrepliesrequest = googleclouddialogflowv2suggestsmartrepliesrequest
 45427  	return c
 45428  }
 45429  
 45430  // Fields allows partial responses to be retrieved. See
 45431  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45432  // details.
 45433  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 45434  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45435  	return c
 45436  }
 45437  
 45438  // Context sets the context to be used in this call's Do method.
 45439  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 45440  	c.ctx_ = ctx
 45441  	return c
 45442  }
 45443  
 45444  // Header returns a http.Header that can be modified by the caller to add
 45445  // headers to the request.
 45446  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
 45447  	if c.header_ == nil {
 45448  		c.header_ = make(http.Header)
 45449  	}
 45450  	return c.header_
 45451  }
 45452  
 45453  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
 45454  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45455  	var body io.Reader = nil
 45456  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestsmartrepliesrequest)
 45457  	if err != nil {
 45458  		return nil, err
 45459  	}
 45460  	c.urlParams_.Set("alt", alt)
 45461  	c.urlParams_.Set("prettyPrint", "false")
 45462  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestSmartReplies")
 45463  	urls += "?" + c.urlParams_.Encode()
 45464  	req, err := http.NewRequest("POST", urls, body)
 45465  	if err != nil {
 45466  		return nil, err
 45467  	}
 45468  	req.Header = reqHeaders
 45469  	googleapi.Expand(req.URL, map[string]string{
 45470  		"parent": c.parent,
 45471  	})
 45472  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45473  }
 45474  
 45475  // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call.
 45476  // Any non-2xx status code is an error. Response headers are in either
 45477  // *GoogleCloudDialogflowV2SuggestSmartRepliesResponse.ServerResponse.Header or
 45478  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 45479  // googleapi.IsNotModified to check whether the returned error was because
 45480  // http.StatusNotModified was returned.
 45481  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestSmartRepliesResponse, error) {
 45482  	gensupport.SetOptions(c.urlParams_, opts...)
 45483  	res, err := c.doRequest("json")
 45484  	if res != nil && res.StatusCode == http.StatusNotModified {
 45485  		if res.Body != nil {
 45486  			res.Body.Close()
 45487  		}
 45488  		return nil, gensupport.WrapError(&googleapi.Error{
 45489  			Code:   res.StatusCode,
 45490  			Header: res.Header,
 45491  		})
 45492  	}
 45493  	if err != nil {
 45494  		return nil, err
 45495  	}
 45496  	defer googleapi.CloseBody(res)
 45497  	if err := googleapi.CheckResponse(res); err != nil {
 45498  		return nil, gensupport.WrapError(err)
 45499  	}
 45500  	ret := &GoogleCloudDialogflowV2SuggestSmartRepliesResponse{
 45501  		ServerResponse: googleapi.ServerResponse{
 45502  			Header:         res.Header,
 45503  			HTTPStatusCode: res.StatusCode,
 45504  		},
 45505  	}
 45506  	target := &ret
 45507  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45508  		return nil, err
 45509  	}
 45510  	return ret, nil
 45511  }
 45512  
 45513  type ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall struct {
 45514  	s                                             *Service
 45515  	conversation                                  string
 45516  	googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
 45517  	urlParams_                                    gensupport.URLParams
 45518  	ctx_                                          context.Context
 45519  	header_                                       http.Header
 45520  }
 45521  
 45522  // SearchKnowledge: Get answers for the given query based on knowledge
 45523  // documents.
 45524  //
 45525  //   - conversation: The conversation (between human agent and end user) where
 45526  //     the search request is triggered. Format:
 45527  //     `projects//locations//conversations/`.
 45528  func (r *ProjectsLocationsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
 45529  	c := &ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45530  	c.conversation = conversation
 45531  	c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
 45532  	return c
 45533  }
 45534  
 45535  // Fields allows partial responses to be retrieved. See
 45536  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45537  // details.
 45538  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
 45539  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45540  	return c
 45541  }
 45542  
 45543  // Context sets the context to be used in this call's Do method.
 45544  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
 45545  	c.ctx_ = ctx
 45546  	return c
 45547  }
 45548  
 45549  // Header returns a http.Header that can be modified by the caller to add
 45550  // headers to the request.
 45551  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
 45552  	if c.header_ == nil {
 45553  		c.header_ = make(http.Header)
 45554  	}
 45555  	return c.header_
 45556  }
 45557  
 45558  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 45559  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45560  	var body io.Reader = nil
 45561  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
 45562  	if err != nil {
 45563  		return nil, err
 45564  	}
 45565  	c.urlParams_.Set("alt", alt)
 45566  	c.urlParams_.Set("prettyPrint", "false")
 45567  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:searchKnowledge")
 45568  	urls += "?" + c.urlParams_.Encode()
 45569  	req, err := http.NewRequest("POST", urls, body)
 45570  	if err != nil {
 45571  		return nil, err
 45572  	}
 45573  	req.Header = reqHeaders
 45574  	googleapi.Expand(req.URL, map[string]string{
 45575  		"conversation": c.conversation,
 45576  	})
 45577  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45578  }
 45579  
 45580  // Do executes the "dialogflow.projects.locations.conversations.suggestions.searchKnowledge" call.
 45581  // Any non-2xx status code is an error. Response headers are in either
 45582  // *GoogleCloudDialogflowV2SearchKnowledgeResponse.ServerResponse.Header or (if
 45583  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 45584  // googleapi.IsNotModified to check whether the returned error was because
 45585  // http.StatusNotModified was returned.
 45586  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
 45587  	gensupport.SetOptions(c.urlParams_, opts...)
 45588  	res, err := c.doRequest("json")
 45589  	if res != nil && res.StatusCode == http.StatusNotModified {
 45590  		if res.Body != nil {
 45591  			res.Body.Close()
 45592  		}
 45593  		return nil, gensupport.WrapError(&googleapi.Error{
 45594  			Code:   res.StatusCode,
 45595  			Header: res.Header,
 45596  		})
 45597  	}
 45598  	if err != nil {
 45599  		return nil, err
 45600  	}
 45601  	defer googleapi.CloseBody(res)
 45602  	if err := googleapi.CheckResponse(res); err != nil {
 45603  		return nil, gensupport.WrapError(err)
 45604  	}
 45605  	ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
 45606  		ServerResponse: googleapi.ServerResponse{
 45607  			Header:         res.Header,
 45608  			HTTPStatusCode: res.StatusCode,
 45609  		},
 45610  	}
 45611  	target := &ret
 45612  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45613  		return nil, err
 45614  	}
 45615  	return ret, nil
 45616  }
 45617  
 45618  type ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall struct {
 45619  	s                                                        *Service
 45620  	conversation                                             string
 45621  	googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest
 45622  	urlParams_                                               gensupport.URLParams
 45623  	ctx_                                                     context.Context
 45624  	header_                                                  http.Header
 45625  }
 45626  
 45627  // SuggestConversationSummary: Suggests summary for a conversation based on
 45628  // specific historical messages. The range of the messages to be used for
 45629  // summary can be specified in the request.
 45630  //
 45631  //   - conversation: The conversation to fetch suggestion for. Format:
 45632  //     `projects//locations//conversations/`.
 45633  func (r *ProjectsLocationsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
 45634  	c := &ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45635  	c.conversation = conversation
 45636  	c.googleclouddialogflowv2suggestconversationsummaryrequest = googleclouddialogflowv2suggestconversationsummaryrequest
 45637  	return c
 45638  }
 45639  
 45640  // Fields allows partial responses to be retrieved. See
 45641  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45642  // details.
 45643  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
 45644  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45645  	return c
 45646  }
 45647  
 45648  // Context sets the context to be used in this call's Do method.
 45649  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
 45650  	c.ctx_ = ctx
 45651  	return c
 45652  }
 45653  
 45654  // Header returns a http.Header that can be modified by the caller to add
 45655  // headers to the request.
 45656  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
 45657  	if c.header_ == nil {
 45658  		c.header_ = make(http.Header)
 45659  	}
 45660  	return c.header_
 45661  }
 45662  
 45663  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
 45664  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45665  	var body io.Reader = nil
 45666  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestconversationsummaryrequest)
 45667  	if err != nil {
 45668  		return nil, err
 45669  	}
 45670  	c.urlParams_.Set("alt", alt)
 45671  	c.urlParams_.Set("prettyPrint", "false")
 45672  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:suggestConversationSummary")
 45673  	urls += "?" + c.urlParams_.Encode()
 45674  	req, err := http.NewRequest("POST", urls, body)
 45675  	if err != nil {
 45676  		return nil, err
 45677  	}
 45678  	req.Header = reqHeaders
 45679  	googleapi.Expand(req.URL, map[string]string{
 45680  		"conversation": c.conversation,
 45681  	})
 45682  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45683  }
 45684  
 45685  // Do executes the "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary" call.
 45686  // Any non-2xx status code is an error. Response headers are in either
 45687  // *GoogleCloudDialogflowV2SuggestConversationSummaryResponse.ServerResponse.Hea
 45688  // der or (if a response was returned at all) in
 45689  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 45690  // whether the returned error was because http.StatusNotModified was returned.
 45691  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestConversationSummaryResponse, error) {
 45692  	gensupport.SetOptions(c.urlParams_, opts...)
 45693  	res, err := c.doRequest("json")
 45694  	if res != nil && res.StatusCode == http.StatusNotModified {
 45695  		if res.Body != nil {
 45696  			res.Body.Close()
 45697  		}
 45698  		return nil, gensupport.WrapError(&googleapi.Error{
 45699  			Code:   res.StatusCode,
 45700  			Header: res.Header,
 45701  		})
 45702  	}
 45703  	if err != nil {
 45704  		return nil, err
 45705  	}
 45706  	defer googleapi.CloseBody(res)
 45707  	if err := googleapi.CheckResponse(res); err != nil {
 45708  		return nil, gensupport.WrapError(err)
 45709  	}
 45710  	ret := &GoogleCloudDialogflowV2SuggestConversationSummaryResponse{
 45711  		ServerResponse: googleapi.ServerResponse{
 45712  			Header:         res.Header,
 45713  			HTTPStatusCode: res.StatusCode,
 45714  		},
 45715  	}
 45716  	target := &ret
 45717  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45718  		return nil, err
 45719  	}
 45720  	return ret, nil
 45721  }
 45722  
 45723  type ProjectsLocationsKnowledgeBasesCreateCall struct {
 45724  	s                                    *Service
 45725  	parent                               string
 45726  	googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
 45727  	urlParams_                           gensupport.URLParams
 45728  	ctx_                                 context.Context
 45729  	header_                              http.Header
 45730  }
 45731  
 45732  // Create: Creates a knowledge base.
 45733  //
 45734  //   - parent: The project to create a knowledge base for. Format:
 45735  //     `projects//locations/`.
 45736  func (r *ProjectsLocationsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsLocationsKnowledgeBasesCreateCall {
 45737  	c := &ProjectsLocationsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45738  	c.parent = parent
 45739  	c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
 45740  	return c
 45741  }
 45742  
 45743  // Fields allows partial responses to be retrieved. See
 45744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45745  // details.
 45746  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesCreateCall {
 45747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45748  	return c
 45749  }
 45750  
 45751  // Context sets the context to be used in this call's Do method.
 45752  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesCreateCall {
 45753  	c.ctx_ = ctx
 45754  	return c
 45755  }
 45756  
 45757  // Header returns a http.Header that can be modified by the caller to add
 45758  // headers to the request.
 45759  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Header() http.Header {
 45760  	if c.header_ == nil {
 45761  		c.header_ = make(http.Header)
 45762  	}
 45763  	return c.header_
 45764  }
 45765  
 45766  func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
 45767  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45768  	var body io.Reader = nil
 45769  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
 45770  	if err != nil {
 45771  		return nil, err
 45772  	}
 45773  	c.urlParams_.Set("alt", alt)
 45774  	c.urlParams_.Set("prettyPrint", "false")
 45775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
 45776  	urls += "?" + c.urlParams_.Encode()
 45777  	req, err := http.NewRequest("POST", urls, body)
 45778  	if err != nil {
 45779  		return nil, err
 45780  	}
 45781  	req.Header = reqHeaders
 45782  	googleapi.Expand(req.URL, map[string]string{
 45783  		"parent": c.parent,
 45784  	})
 45785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45786  }
 45787  
 45788  // Do executes the "dialogflow.projects.locations.knowledgeBases.create" call.
 45789  // Any non-2xx status code is an error. Response headers are in either
 45790  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 45791  // response was returned at all) in error.(*googleapi.Error).Header. Use
 45792  // googleapi.IsNotModified to check whether the returned error was because
 45793  // http.StatusNotModified was returned.
 45794  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 45795  	gensupport.SetOptions(c.urlParams_, opts...)
 45796  	res, err := c.doRequest("json")
 45797  	if res != nil && res.StatusCode == http.StatusNotModified {
 45798  		if res.Body != nil {
 45799  			res.Body.Close()
 45800  		}
 45801  		return nil, gensupport.WrapError(&googleapi.Error{
 45802  			Code:   res.StatusCode,
 45803  			Header: res.Header,
 45804  		})
 45805  	}
 45806  	if err != nil {
 45807  		return nil, err
 45808  	}
 45809  	defer googleapi.CloseBody(res)
 45810  	if err := googleapi.CheckResponse(res); err != nil {
 45811  		return nil, gensupport.WrapError(err)
 45812  	}
 45813  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 45814  		ServerResponse: googleapi.ServerResponse{
 45815  			Header:         res.Header,
 45816  			HTTPStatusCode: res.StatusCode,
 45817  		},
 45818  	}
 45819  	target := &ret
 45820  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45821  		return nil, err
 45822  	}
 45823  	return ret, nil
 45824  }
 45825  
 45826  type ProjectsLocationsKnowledgeBasesDeleteCall struct {
 45827  	s          *Service
 45828  	name       string
 45829  	urlParams_ gensupport.URLParams
 45830  	ctx_       context.Context
 45831  	header_    http.Header
 45832  }
 45833  
 45834  // Delete: Deletes the specified knowledge base.
 45835  //
 45836  //   - name: The name of the knowledge base to delete. Format:
 45837  //     `projects//locations//knowledgeBases/`.
 45838  func (r *ProjectsLocationsKnowledgeBasesService) Delete(name string) *ProjectsLocationsKnowledgeBasesDeleteCall {
 45839  	c := &ProjectsLocationsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45840  	c.name = name
 45841  	return c
 45842  }
 45843  
 45844  // Force sets the optional parameter "force": Force deletes the knowledge base.
 45845  // When set to true, any documents in the knowledge base are also deleted.
 45846  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsLocationsKnowledgeBasesDeleteCall {
 45847  	c.urlParams_.Set("force", fmt.Sprint(force))
 45848  	return c
 45849  }
 45850  
 45851  // Fields allows partial responses to be retrieved. See
 45852  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45853  // details.
 45854  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDeleteCall {
 45855  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45856  	return c
 45857  }
 45858  
 45859  // Context sets the context to be used in this call's Do method.
 45860  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDeleteCall {
 45861  	c.ctx_ = ctx
 45862  	return c
 45863  }
 45864  
 45865  // Header returns a http.Header that can be modified by the caller to add
 45866  // headers to the request.
 45867  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Header() http.Header {
 45868  	if c.header_ == nil {
 45869  		c.header_ = make(http.Header)
 45870  	}
 45871  	return c.header_
 45872  }
 45873  
 45874  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 45875  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45876  	var body io.Reader = nil
 45877  	c.urlParams_.Set("alt", alt)
 45878  	c.urlParams_.Set("prettyPrint", "false")
 45879  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 45880  	urls += "?" + c.urlParams_.Encode()
 45881  	req, err := http.NewRequest("DELETE", urls, body)
 45882  	if err != nil {
 45883  		return nil, err
 45884  	}
 45885  	req.Header = reqHeaders
 45886  	googleapi.Expand(req.URL, map[string]string{
 45887  		"name": c.name,
 45888  	})
 45889  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45890  }
 45891  
 45892  // Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call.
 45893  // Any non-2xx status code is an error. Response headers are in either
 45894  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 45895  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 45896  // check whether the returned error was because http.StatusNotModified was
 45897  // returned.
 45898  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 45899  	gensupport.SetOptions(c.urlParams_, opts...)
 45900  	res, err := c.doRequest("json")
 45901  	if res != nil && res.StatusCode == http.StatusNotModified {
 45902  		if res.Body != nil {
 45903  			res.Body.Close()
 45904  		}
 45905  		return nil, gensupport.WrapError(&googleapi.Error{
 45906  			Code:   res.StatusCode,
 45907  			Header: res.Header,
 45908  		})
 45909  	}
 45910  	if err != nil {
 45911  		return nil, err
 45912  	}
 45913  	defer googleapi.CloseBody(res)
 45914  	if err := googleapi.CheckResponse(res); err != nil {
 45915  		return nil, gensupport.WrapError(err)
 45916  	}
 45917  	ret := &GoogleProtobufEmpty{
 45918  		ServerResponse: googleapi.ServerResponse{
 45919  			Header:         res.Header,
 45920  			HTTPStatusCode: res.StatusCode,
 45921  		},
 45922  	}
 45923  	target := &ret
 45924  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45925  		return nil, err
 45926  	}
 45927  	return ret, nil
 45928  }
 45929  
 45930  type ProjectsLocationsKnowledgeBasesGetCall struct {
 45931  	s            *Service
 45932  	name         string
 45933  	urlParams_   gensupport.URLParams
 45934  	ifNoneMatch_ string
 45935  	ctx_         context.Context
 45936  	header_      http.Header
 45937  }
 45938  
 45939  // Get: Retrieves the specified knowledge base.
 45940  //
 45941  //   - name: The name of the knowledge base to retrieve. Format
 45942  //     `projects//locations//knowledgeBases/`.
 45943  func (r *ProjectsLocationsKnowledgeBasesService) Get(name string) *ProjectsLocationsKnowledgeBasesGetCall {
 45944  	c := &ProjectsLocationsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45945  	c.name = name
 45946  	return c
 45947  }
 45948  
 45949  // Fields allows partial responses to be retrieved. See
 45950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45951  // details.
 45952  func (c *ProjectsLocationsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesGetCall {
 45953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45954  	return c
 45955  }
 45956  
 45957  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45958  // object's ETag matches the given value. This is useful for getting updates
 45959  // only after the object has changed since the last request.
 45960  func (c *ProjectsLocationsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesGetCall {
 45961  	c.ifNoneMatch_ = entityTag
 45962  	return c
 45963  }
 45964  
 45965  // Context sets the context to be used in this call's Do method.
 45966  func (c *ProjectsLocationsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesGetCall {
 45967  	c.ctx_ = ctx
 45968  	return c
 45969  }
 45970  
 45971  // Header returns a http.Header that can be modified by the caller to add
 45972  // headers to the request.
 45973  func (c *ProjectsLocationsKnowledgeBasesGetCall) Header() http.Header {
 45974  	if c.header_ == nil {
 45975  		c.header_ = make(http.Header)
 45976  	}
 45977  	return c.header_
 45978  }
 45979  
 45980  func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
 45981  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45982  	if c.ifNoneMatch_ != "" {
 45983  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45984  	}
 45985  	var body io.Reader = nil
 45986  	c.urlParams_.Set("alt", alt)
 45987  	c.urlParams_.Set("prettyPrint", "false")
 45988  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 45989  	urls += "?" + c.urlParams_.Encode()
 45990  	req, err := http.NewRequest("GET", urls, body)
 45991  	if err != nil {
 45992  		return nil, err
 45993  	}
 45994  	req.Header = reqHeaders
 45995  	googleapi.Expand(req.URL, map[string]string{
 45996  		"name": c.name,
 45997  	})
 45998  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45999  }
 46000  
 46001  // Do executes the "dialogflow.projects.locations.knowledgeBases.get" call.
 46002  // Any non-2xx status code is an error. Response headers are in either
 46003  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 46004  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46005  // googleapi.IsNotModified to check whether the returned error was because
 46006  // http.StatusNotModified was returned.
 46007  func (c *ProjectsLocationsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 46008  	gensupport.SetOptions(c.urlParams_, opts...)
 46009  	res, err := c.doRequest("json")
 46010  	if res != nil && res.StatusCode == http.StatusNotModified {
 46011  		if res.Body != nil {
 46012  			res.Body.Close()
 46013  		}
 46014  		return nil, gensupport.WrapError(&googleapi.Error{
 46015  			Code:   res.StatusCode,
 46016  			Header: res.Header,
 46017  		})
 46018  	}
 46019  	if err != nil {
 46020  		return nil, err
 46021  	}
 46022  	defer googleapi.CloseBody(res)
 46023  	if err := googleapi.CheckResponse(res); err != nil {
 46024  		return nil, gensupport.WrapError(err)
 46025  	}
 46026  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 46027  		ServerResponse: googleapi.ServerResponse{
 46028  			Header:         res.Header,
 46029  			HTTPStatusCode: res.StatusCode,
 46030  		},
 46031  	}
 46032  	target := &ret
 46033  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46034  		return nil, err
 46035  	}
 46036  	return ret, nil
 46037  }
 46038  
 46039  type ProjectsLocationsKnowledgeBasesListCall struct {
 46040  	s            *Service
 46041  	parent       string
 46042  	urlParams_   gensupport.URLParams
 46043  	ifNoneMatch_ string
 46044  	ctx_         context.Context
 46045  	header_      http.Header
 46046  }
 46047  
 46048  // List: Returns the list of all knowledge bases of the specified agent.
 46049  //
 46050  //   - parent: The project to list of knowledge bases for. Format:
 46051  //     `projects//locations/`.
 46052  func (r *ProjectsLocationsKnowledgeBasesService) List(parent string) *ProjectsLocationsKnowledgeBasesListCall {
 46053  	c := &ProjectsLocationsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46054  	c.parent = parent
 46055  	return c
 46056  }
 46057  
 46058  // Filter sets the optional parameter "filter": The filter expression used to
 46059  // filter knowledge bases returned by the list method. The expression has the
 46060  // following syntax: [AND ] ... The following fields and operators are
 46061  // supported: * display_name with has(:) operator * language_code with
 46062  // equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases
 46063  // with en-us language code. * 'display_name:articles' matches knowledge bases
 46064  // whose display name contains "articles". * 'display_name:"Best Articles"'
 46065  // matches knowledge bases whose display name contains "Best Articles". *
 46066  // 'language_code=en-gb AND display_name=articles' matches all knowledge bases
 46067  // whose display name contains "articles" and whose language code is "en-gb".
 46068  // Note: An empty filter string (i.e. "") is a no-op and will result in no
 46069  // filtering. For more information about filtering, see API Filtering
 46070  // (https://aip.dev/160).
 46071  func (c *ProjectsLocationsKnowledgeBasesListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesListCall {
 46072  	c.urlParams_.Set("filter", filter)
 46073  	return c
 46074  }
 46075  
 46076  // PageSize sets the optional parameter "pageSize": The maximum number of items
 46077  // to return in a single page. By default 10 and at most 100.
 46078  func (c *ProjectsLocationsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesListCall {
 46079  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 46080  	return c
 46081  }
 46082  
 46083  // PageToken sets the optional parameter "pageToken": The next_page_token value
 46084  // returned from a previous list request.
 46085  func (c *ProjectsLocationsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesListCall {
 46086  	c.urlParams_.Set("pageToken", pageToken)
 46087  	return c
 46088  }
 46089  
 46090  // Fields allows partial responses to be retrieved. See
 46091  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46092  // details.
 46093  func (c *ProjectsLocationsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesListCall {
 46094  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46095  	return c
 46096  }
 46097  
 46098  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46099  // object's ETag matches the given value. This is useful for getting updates
 46100  // only after the object has changed since the last request.
 46101  func (c *ProjectsLocationsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesListCall {
 46102  	c.ifNoneMatch_ = entityTag
 46103  	return c
 46104  }
 46105  
 46106  // Context sets the context to be used in this call's Do method.
 46107  func (c *ProjectsLocationsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesListCall {
 46108  	c.ctx_ = ctx
 46109  	return c
 46110  }
 46111  
 46112  // Header returns a http.Header that can be modified by the caller to add
 46113  // headers to the request.
 46114  func (c *ProjectsLocationsKnowledgeBasesListCall) Header() http.Header {
 46115  	if c.header_ == nil {
 46116  		c.header_ = make(http.Header)
 46117  	}
 46118  	return c.header_
 46119  }
 46120  
 46121  func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
 46122  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46123  	if c.ifNoneMatch_ != "" {
 46124  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46125  	}
 46126  	var body io.Reader = nil
 46127  	c.urlParams_.Set("alt", alt)
 46128  	c.urlParams_.Set("prettyPrint", "false")
 46129  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
 46130  	urls += "?" + c.urlParams_.Encode()
 46131  	req, err := http.NewRequest("GET", urls, body)
 46132  	if err != nil {
 46133  		return nil, err
 46134  	}
 46135  	req.Header = reqHeaders
 46136  	googleapi.Expand(req.URL, map[string]string{
 46137  		"parent": c.parent,
 46138  	})
 46139  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46140  }
 46141  
 46142  // Do executes the "dialogflow.projects.locations.knowledgeBases.list" call.
 46143  // Any non-2xx status code is an error. Response headers are in either
 46144  // *GoogleCloudDialogflowV2ListKnowledgeBasesResponse.ServerResponse.Header or
 46145  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 46146  // googleapi.IsNotModified to check whether the returned error was because
 46147  // http.StatusNotModified was returned.
 46148  func (c *ProjectsLocationsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListKnowledgeBasesResponse, error) {
 46149  	gensupport.SetOptions(c.urlParams_, opts...)
 46150  	res, err := c.doRequest("json")
 46151  	if res != nil && res.StatusCode == http.StatusNotModified {
 46152  		if res.Body != nil {
 46153  			res.Body.Close()
 46154  		}
 46155  		return nil, gensupport.WrapError(&googleapi.Error{
 46156  			Code:   res.StatusCode,
 46157  			Header: res.Header,
 46158  		})
 46159  	}
 46160  	if err != nil {
 46161  		return nil, err
 46162  	}
 46163  	defer googleapi.CloseBody(res)
 46164  	if err := googleapi.CheckResponse(res); err != nil {
 46165  		return nil, gensupport.WrapError(err)
 46166  	}
 46167  	ret := &GoogleCloudDialogflowV2ListKnowledgeBasesResponse{
 46168  		ServerResponse: googleapi.ServerResponse{
 46169  			Header:         res.Header,
 46170  			HTTPStatusCode: res.StatusCode,
 46171  		},
 46172  	}
 46173  	target := &ret
 46174  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46175  		return nil, err
 46176  	}
 46177  	return ret, nil
 46178  }
 46179  
 46180  // Pages invokes f for each page of results.
 46181  // A non-nil error returned from f will halt the iteration.
 46182  // The provided context supersedes any context provided to the Context method.
 46183  func (c *ProjectsLocationsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListKnowledgeBasesResponse) error) error {
 46184  	c.ctx_ = ctx
 46185  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 46186  	for {
 46187  		x, err := c.Do()
 46188  		if err != nil {
 46189  			return err
 46190  		}
 46191  		if err := f(x); err != nil {
 46192  			return err
 46193  		}
 46194  		if x.NextPageToken == "" {
 46195  			return nil
 46196  		}
 46197  		c.PageToken(x.NextPageToken)
 46198  	}
 46199  }
 46200  
 46201  type ProjectsLocationsKnowledgeBasesPatchCall struct {
 46202  	s                                    *Service
 46203  	name                                 string
 46204  	googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
 46205  	urlParams_                           gensupport.URLParams
 46206  	ctx_                                 context.Context
 46207  	header_                              http.Header
 46208  }
 46209  
 46210  // Patch: Updates the specified knowledge base.
 46211  //
 46212  //   - name: The knowledge base resource name. The name must be empty when
 46213  //     creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
 46214  func (r *ProjectsLocationsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsLocationsKnowledgeBasesPatchCall {
 46215  	c := &ProjectsLocationsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46216  	c.name = name
 46217  	c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
 46218  	return c
 46219  }
 46220  
 46221  // UpdateMask sets the optional parameter "updateMask": Not specified means
 46222  // `update all`. Currently, only `display_name` can be updated, an
 46223  // InvalidArgument will be returned for attempting to update other fields.
 46224  func (c *ProjectsLocationsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesPatchCall {
 46225  	c.urlParams_.Set("updateMask", updateMask)
 46226  	return c
 46227  }
 46228  
 46229  // Fields allows partial responses to be retrieved. See
 46230  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46231  // details.
 46232  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesPatchCall {
 46233  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46234  	return c
 46235  }
 46236  
 46237  // Context sets the context to be used in this call's Do method.
 46238  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesPatchCall {
 46239  	c.ctx_ = ctx
 46240  	return c
 46241  }
 46242  
 46243  // Header returns a http.Header that can be modified by the caller to add
 46244  // headers to the request.
 46245  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Header() http.Header {
 46246  	if c.header_ == nil {
 46247  		c.header_ = make(http.Header)
 46248  	}
 46249  	return c.header_
 46250  }
 46251  
 46252  func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
 46253  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46254  	var body io.Reader = nil
 46255  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
 46256  	if err != nil {
 46257  		return nil, err
 46258  	}
 46259  	c.urlParams_.Set("alt", alt)
 46260  	c.urlParams_.Set("prettyPrint", "false")
 46261  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 46262  	urls += "?" + c.urlParams_.Encode()
 46263  	req, err := http.NewRequest("PATCH", urls, body)
 46264  	if err != nil {
 46265  		return nil, err
 46266  	}
 46267  	req.Header = reqHeaders
 46268  	googleapi.Expand(req.URL, map[string]string{
 46269  		"name": c.name,
 46270  	})
 46271  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46272  }
 46273  
 46274  // Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call.
 46275  // Any non-2xx status code is an error. Response headers are in either
 46276  // *GoogleCloudDialogflowV2KnowledgeBase.ServerResponse.Header or (if a
 46277  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46278  // googleapi.IsNotModified to check whether the returned error was because
 46279  // http.StatusNotModified was returned.
 46280  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
 46281  	gensupport.SetOptions(c.urlParams_, opts...)
 46282  	res, err := c.doRequest("json")
 46283  	if res != nil && res.StatusCode == http.StatusNotModified {
 46284  		if res.Body != nil {
 46285  			res.Body.Close()
 46286  		}
 46287  		return nil, gensupport.WrapError(&googleapi.Error{
 46288  			Code:   res.StatusCode,
 46289  			Header: res.Header,
 46290  		})
 46291  	}
 46292  	if err != nil {
 46293  		return nil, err
 46294  	}
 46295  	defer googleapi.CloseBody(res)
 46296  	if err := googleapi.CheckResponse(res); err != nil {
 46297  		return nil, gensupport.WrapError(err)
 46298  	}
 46299  	ret := &GoogleCloudDialogflowV2KnowledgeBase{
 46300  		ServerResponse: googleapi.ServerResponse{
 46301  			Header:         res.Header,
 46302  			HTTPStatusCode: res.StatusCode,
 46303  		},
 46304  	}
 46305  	target := &ret
 46306  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46307  		return nil, err
 46308  	}
 46309  	return ret, nil
 46310  }
 46311  
 46312  type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {
 46313  	s                               *Service
 46314  	parent                          string
 46315  	googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
 46316  	urlParams_                      gensupport.URLParams
 46317  	ctx_                            context.Context
 46318  	header_                         http.Header
 46319  }
 46320  
 46321  // Create: Creates a new document. This method is a long-running operation
 46322  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 46323  // The returned `Operation` type has the following method-specific fields: -
 46324  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 46325  //
 46326  //   - parent: The knowledge base to create a document for. Format:
 46327  //     `projects//locations//knowledgeBases/`.
 46328  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 46329  	c := &ProjectsLocationsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46330  	c.parent = parent
 46331  	c.googleclouddialogflowv2document = googleclouddialogflowv2document
 46332  	return c
 46333  }
 46334  
 46335  // Fields allows partial responses to be retrieved. See
 46336  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46337  // details.
 46338  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 46339  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46340  	return c
 46341  }
 46342  
 46343  // Context sets the context to be used in this call's Do method.
 46344  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 46345  	c.ctx_ = ctx
 46346  	return c
 46347  }
 46348  
 46349  // Header returns a http.Header that can be modified by the caller to add
 46350  // headers to the request.
 46351  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
 46352  	if c.header_ == nil {
 46353  		c.header_ = make(http.Header)
 46354  	}
 46355  	return c.header_
 46356  }
 46357  
 46358  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 46359  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46360  	var body io.Reader = nil
 46361  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
 46362  	if err != nil {
 46363  		return nil, err
 46364  	}
 46365  	c.urlParams_.Set("alt", alt)
 46366  	c.urlParams_.Set("prettyPrint", "false")
 46367  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
 46368  	urls += "?" + c.urlParams_.Encode()
 46369  	req, err := http.NewRequest("POST", urls, body)
 46370  	if err != nil {
 46371  		return nil, err
 46372  	}
 46373  	req.Header = reqHeaders
 46374  	googleapi.Expand(req.URL, map[string]string{
 46375  		"parent": c.parent,
 46376  	})
 46377  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46378  }
 46379  
 46380  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call.
 46381  // Any non-2xx status code is an error. Response headers are in either
 46382  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 46383  // returned at all) in error.(*googleapi.Error).Header. Use
 46384  // googleapi.IsNotModified to check whether the returned error was because
 46385  // http.StatusNotModified was returned.
 46386  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 46387  	gensupport.SetOptions(c.urlParams_, opts...)
 46388  	res, err := c.doRequest("json")
 46389  	if res != nil && res.StatusCode == http.StatusNotModified {
 46390  		if res.Body != nil {
 46391  			res.Body.Close()
 46392  		}
 46393  		return nil, gensupport.WrapError(&googleapi.Error{
 46394  			Code:   res.StatusCode,
 46395  			Header: res.Header,
 46396  		})
 46397  	}
 46398  	if err != nil {
 46399  		return nil, err
 46400  	}
 46401  	defer googleapi.CloseBody(res)
 46402  	if err := googleapi.CheckResponse(res); err != nil {
 46403  		return nil, gensupport.WrapError(err)
 46404  	}
 46405  	ret := &GoogleLongrunningOperation{
 46406  		ServerResponse: googleapi.ServerResponse{
 46407  			Header:         res.Header,
 46408  			HTTPStatusCode: res.StatusCode,
 46409  		},
 46410  	}
 46411  	target := &ret
 46412  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46413  		return nil, err
 46414  	}
 46415  	return ret, nil
 46416  }
 46417  
 46418  type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {
 46419  	s          *Service
 46420  	name       string
 46421  	urlParams_ gensupport.URLParams
 46422  	ctx_       context.Context
 46423  	header_    http.Header
 46424  }
 46425  
 46426  // Delete: Deletes the specified document. This method is a long-running
 46427  // operation
 46428  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 46429  // The returned `Operation` type has the following method-specific fields: -
 46430  // `metadata`: KnowledgeOperationMetadata - `response`: An Empty message
 46431  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 46432  //
 46433  //   - name: The name of the document to delete. Format:
 46434  //     `projects//locations//knowledgeBases//documents/`.
 46435  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
 46436  	c := &ProjectsLocationsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46437  	c.name = name
 46438  	return c
 46439  }
 46440  
 46441  // Fields allows partial responses to be retrieved. See
 46442  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46443  // details.
 46444  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
 46445  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46446  	return c
 46447  }
 46448  
 46449  // Context sets the context to be used in this call's Do method.
 46450  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
 46451  	c.ctx_ = ctx
 46452  	return c
 46453  }
 46454  
 46455  // Header returns a http.Header that can be modified by the caller to add
 46456  // headers to the request.
 46457  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
 46458  	if c.header_ == nil {
 46459  		c.header_ = make(http.Header)
 46460  	}
 46461  	return c.header_
 46462  }
 46463  
 46464  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 46465  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46466  	var body io.Reader = nil
 46467  	c.urlParams_.Set("alt", alt)
 46468  	c.urlParams_.Set("prettyPrint", "false")
 46469  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 46470  	urls += "?" + c.urlParams_.Encode()
 46471  	req, err := http.NewRequest("DELETE", urls, body)
 46472  	if err != nil {
 46473  		return nil, err
 46474  	}
 46475  	req.Header = reqHeaders
 46476  	googleapi.Expand(req.URL, map[string]string{
 46477  		"name": c.name,
 46478  	})
 46479  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46480  }
 46481  
 46482  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call.
 46483  // Any non-2xx status code is an error. Response headers are in either
 46484  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 46485  // returned at all) in error.(*googleapi.Error).Header. Use
 46486  // googleapi.IsNotModified to check whether the returned error was because
 46487  // http.StatusNotModified was returned.
 46488  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 46489  	gensupport.SetOptions(c.urlParams_, opts...)
 46490  	res, err := c.doRequest("json")
 46491  	if res != nil && res.StatusCode == http.StatusNotModified {
 46492  		if res.Body != nil {
 46493  			res.Body.Close()
 46494  		}
 46495  		return nil, gensupport.WrapError(&googleapi.Error{
 46496  			Code:   res.StatusCode,
 46497  			Header: res.Header,
 46498  		})
 46499  	}
 46500  	if err != nil {
 46501  		return nil, err
 46502  	}
 46503  	defer googleapi.CloseBody(res)
 46504  	if err := googleapi.CheckResponse(res); err != nil {
 46505  		return nil, gensupport.WrapError(err)
 46506  	}
 46507  	ret := &GoogleLongrunningOperation{
 46508  		ServerResponse: googleapi.ServerResponse{
 46509  			Header:         res.Header,
 46510  			HTTPStatusCode: res.StatusCode,
 46511  		},
 46512  	}
 46513  	target := &ret
 46514  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46515  		return nil, err
 46516  	}
 46517  	return ret, nil
 46518  }
 46519  
 46520  type ProjectsLocationsKnowledgeBasesDocumentsExportCall struct {
 46521  	s                                            *Service
 46522  	name                                         string
 46523  	googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest
 46524  	urlParams_                                   gensupport.URLParams
 46525  	ctx_                                         context.Context
 46526  	header_                                      http.Header
 46527  }
 46528  
 46529  // Export: Exports a smart messaging candidate document into the specified
 46530  // destination. This method is a long-running operation
 46531  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 46532  // The returned `Operation` type has the following method-specific fields: -
 46533  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 46534  //
 46535  //   - name: The name of the document to export. Format:
 46536  //     `projects//locations//knowledgeBases//documents/`.
 46537  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Export(name string, googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsExportCall {
 46538  	c := &ProjectsLocationsKnowledgeBasesDocumentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46539  	c.name = name
 46540  	c.googleclouddialogflowv2exportdocumentrequest = googleclouddialogflowv2exportdocumentrequest
 46541  	return c
 46542  }
 46543  
 46544  // Fields allows partial responses to be retrieved. See
 46545  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46546  // details.
 46547  func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsExportCall {
 46548  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46549  	return c
 46550  }
 46551  
 46552  // Context sets the context to be used in this call's Do method.
 46553  func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsExportCall {
 46554  	c.ctx_ = ctx
 46555  	return c
 46556  }
 46557  
 46558  // Header returns a http.Header that can be modified by the caller to add
 46559  // headers to the request.
 46560  func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Header() http.Header {
 46561  	if c.header_ == nil {
 46562  		c.header_ = make(http.Header)
 46563  	}
 46564  	return c.header_
 46565  }
 46566  
 46567  func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) doRequest(alt string) (*http.Response, error) {
 46568  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46569  	var body io.Reader = nil
 46570  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportdocumentrequest)
 46571  	if err != nil {
 46572  		return nil, err
 46573  	}
 46574  	c.urlParams_.Set("alt", alt)
 46575  	c.urlParams_.Set("prettyPrint", "false")
 46576  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:export")
 46577  	urls += "?" + c.urlParams_.Encode()
 46578  	req, err := http.NewRequest("POST", urls, body)
 46579  	if err != nil {
 46580  		return nil, err
 46581  	}
 46582  	req.Header = reqHeaders
 46583  	googleapi.Expand(req.URL, map[string]string{
 46584  		"name": c.name,
 46585  	})
 46586  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46587  }
 46588  
 46589  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.export" call.
 46590  // Any non-2xx status code is an error. Response headers are in either
 46591  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 46592  // returned at all) in error.(*googleapi.Error).Header. Use
 46593  // googleapi.IsNotModified to check whether the returned error was because
 46594  // http.StatusNotModified was returned.
 46595  func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 46596  	gensupport.SetOptions(c.urlParams_, opts...)
 46597  	res, err := c.doRequest("json")
 46598  	if res != nil && res.StatusCode == http.StatusNotModified {
 46599  		if res.Body != nil {
 46600  			res.Body.Close()
 46601  		}
 46602  		return nil, gensupport.WrapError(&googleapi.Error{
 46603  			Code:   res.StatusCode,
 46604  			Header: res.Header,
 46605  		})
 46606  	}
 46607  	if err != nil {
 46608  		return nil, err
 46609  	}
 46610  	defer googleapi.CloseBody(res)
 46611  	if err := googleapi.CheckResponse(res); err != nil {
 46612  		return nil, gensupport.WrapError(err)
 46613  	}
 46614  	ret := &GoogleLongrunningOperation{
 46615  		ServerResponse: googleapi.ServerResponse{
 46616  			Header:         res.Header,
 46617  			HTTPStatusCode: res.StatusCode,
 46618  		},
 46619  	}
 46620  	target := &ret
 46621  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46622  		return nil, err
 46623  	}
 46624  	return ret, nil
 46625  }
 46626  
 46627  type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {
 46628  	s            *Service
 46629  	name         string
 46630  	urlParams_   gensupport.URLParams
 46631  	ifNoneMatch_ string
 46632  	ctx_         context.Context
 46633  	header_      http.Header
 46634  }
 46635  
 46636  // Get: Retrieves the specified document.
 46637  //
 46638  //   - name: The name of the document to retrieve. Format
 46639  //     `projects//locations//knowledgeBases//documents/`.
 46640  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Get(name string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 46641  	c := &ProjectsLocationsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46642  	c.name = name
 46643  	return c
 46644  }
 46645  
 46646  // Fields allows partial responses to be retrieved. See
 46647  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46648  // details.
 46649  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 46650  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46651  	return c
 46652  }
 46653  
 46654  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46655  // object's ETag matches the given value. This is useful for getting updates
 46656  // only after the object has changed since the last request.
 46657  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 46658  	c.ifNoneMatch_ = entityTag
 46659  	return c
 46660  }
 46661  
 46662  // Context sets the context to be used in this call's Do method.
 46663  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 46664  	c.ctx_ = ctx
 46665  	return c
 46666  }
 46667  
 46668  // Header returns a http.Header that can be modified by the caller to add
 46669  // headers to the request.
 46670  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Header() http.Header {
 46671  	if c.header_ == nil {
 46672  		c.header_ = make(http.Header)
 46673  	}
 46674  	return c.header_
 46675  }
 46676  
 46677  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 46678  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46679  	if c.ifNoneMatch_ != "" {
 46680  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46681  	}
 46682  	var body io.Reader = nil
 46683  	c.urlParams_.Set("alt", alt)
 46684  	c.urlParams_.Set("prettyPrint", "false")
 46685  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 46686  	urls += "?" + c.urlParams_.Encode()
 46687  	req, err := http.NewRequest("GET", urls, body)
 46688  	if err != nil {
 46689  		return nil, err
 46690  	}
 46691  	req.Header = reqHeaders
 46692  	googleapi.Expand(req.URL, map[string]string{
 46693  		"name": c.name,
 46694  	})
 46695  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46696  }
 46697  
 46698  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call.
 46699  // Any non-2xx status code is an error. Response headers are in either
 46700  // *GoogleCloudDialogflowV2Document.ServerResponse.Header or (if a response was
 46701  // returned at all) in error.(*googleapi.Error).Header. Use
 46702  // googleapi.IsNotModified to check whether the returned error was because
 46703  // http.StatusNotModified was returned.
 46704  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Document, error) {
 46705  	gensupport.SetOptions(c.urlParams_, opts...)
 46706  	res, err := c.doRequest("json")
 46707  	if res != nil && res.StatusCode == http.StatusNotModified {
 46708  		if res.Body != nil {
 46709  			res.Body.Close()
 46710  		}
 46711  		return nil, gensupport.WrapError(&googleapi.Error{
 46712  			Code:   res.StatusCode,
 46713  			Header: res.Header,
 46714  		})
 46715  	}
 46716  	if err != nil {
 46717  		return nil, err
 46718  	}
 46719  	defer googleapi.CloseBody(res)
 46720  	if err := googleapi.CheckResponse(res); err != nil {
 46721  		return nil, gensupport.WrapError(err)
 46722  	}
 46723  	ret := &GoogleCloudDialogflowV2Document{
 46724  		ServerResponse: googleapi.ServerResponse{
 46725  			Header:         res.Header,
 46726  			HTTPStatusCode: res.StatusCode,
 46727  		},
 46728  	}
 46729  	target := &ret
 46730  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46731  		return nil, err
 46732  	}
 46733  	return ret, nil
 46734  }
 46735  
 46736  type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {
 46737  	s                                             *Service
 46738  	parent                                        string
 46739  	googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest
 46740  	urlParams_                                    gensupport.URLParams
 46741  	ctx_                                          context.Context
 46742  	header_                                       http.Header
 46743  }
 46744  
 46745  // Import: Creates documents by importing data from external sources.
 46746  // Dialogflow supports up to 350 documents in each request. If you try to
 46747  // import more, Dialogflow will return an error. This method is a long-running
 46748  // operation
 46749  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 46750  // The returned `Operation` type has the following method-specific fields: -
 46751  // `metadata`: KnowledgeOperationMetadata - `response`: ImportDocumentsResponse
 46752  //
 46753  //   - parent: The knowledge base to import documents into. Format:
 46754  //     `projects//locations//knowledgeBases/`.
 46755  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
 46756  	c := &ProjectsLocationsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46757  	c.parent = parent
 46758  	c.googleclouddialogflowv2importdocumentsrequest = googleclouddialogflowv2importdocumentsrequest
 46759  	return c
 46760  }
 46761  
 46762  // Fields allows partial responses to be retrieved. See
 46763  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46764  // details.
 46765  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
 46766  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46767  	return c
 46768  }
 46769  
 46770  // Context sets the context to be used in this call's Do method.
 46771  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
 46772  	c.ctx_ = ctx
 46773  	return c
 46774  }
 46775  
 46776  // Header returns a http.Header that can be modified by the caller to add
 46777  // headers to the request.
 46778  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Header() http.Header {
 46779  	if c.header_ == nil {
 46780  		c.header_ = make(http.Header)
 46781  	}
 46782  	return c.header_
 46783  }
 46784  
 46785  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 46786  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46787  	var body io.Reader = nil
 46788  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importdocumentsrequest)
 46789  	if err != nil {
 46790  		return nil, err
 46791  	}
 46792  	c.urlParams_.Set("alt", alt)
 46793  	c.urlParams_.Set("prettyPrint", "false")
 46794  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents:import")
 46795  	urls += "?" + c.urlParams_.Encode()
 46796  	req, err := http.NewRequest("POST", urls, body)
 46797  	if err != nil {
 46798  		return nil, err
 46799  	}
 46800  	req.Header = reqHeaders
 46801  	googleapi.Expand(req.URL, map[string]string{
 46802  		"parent": c.parent,
 46803  	})
 46804  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46805  }
 46806  
 46807  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call.
 46808  // Any non-2xx status code is an error. Response headers are in either
 46809  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 46810  // returned at all) in error.(*googleapi.Error).Header. Use
 46811  // googleapi.IsNotModified to check whether the returned error was because
 46812  // http.StatusNotModified was returned.
 46813  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 46814  	gensupport.SetOptions(c.urlParams_, opts...)
 46815  	res, err := c.doRequest("json")
 46816  	if res != nil && res.StatusCode == http.StatusNotModified {
 46817  		if res.Body != nil {
 46818  			res.Body.Close()
 46819  		}
 46820  		return nil, gensupport.WrapError(&googleapi.Error{
 46821  			Code:   res.StatusCode,
 46822  			Header: res.Header,
 46823  		})
 46824  	}
 46825  	if err != nil {
 46826  		return nil, err
 46827  	}
 46828  	defer googleapi.CloseBody(res)
 46829  	if err := googleapi.CheckResponse(res); err != nil {
 46830  		return nil, gensupport.WrapError(err)
 46831  	}
 46832  	ret := &GoogleLongrunningOperation{
 46833  		ServerResponse: googleapi.ServerResponse{
 46834  			Header:         res.Header,
 46835  			HTTPStatusCode: res.StatusCode,
 46836  		},
 46837  	}
 46838  	target := &ret
 46839  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46840  		return nil, err
 46841  	}
 46842  	return ret, nil
 46843  }
 46844  
 46845  type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {
 46846  	s            *Service
 46847  	parent       string
 46848  	urlParams_   gensupport.URLParams
 46849  	ifNoneMatch_ string
 46850  	ctx_         context.Context
 46851  	header_      http.Header
 46852  }
 46853  
 46854  // List: Returns the list of all documents of the knowledge base.
 46855  //
 46856  //   - parent: The knowledge base to list all documents for. Format:
 46857  //     `projects//locations//knowledgeBases/`.
 46858  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) List(parent string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46859  	c := &ProjectsLocationsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46860  	c.parent = parent
 46861  	return c
 46862  }
 46863  
 46864  // Filter sets the optional parameter "filter": The filter expression used to
 46865  // filter documents returned by the list method. The expression has the
 46866  // following syntax: [AND ] ... The following fields and operators are
 46867  // supported: * knowledge_types with has(:) operator * display_name with has(:)
 46868  // operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"
 46869  // matches documents with FAQ knowledge type. * "display_name:customer" matches
 46870  // documents whose display name contains "customer". * "state=ACTIVE" matches
 46871  // documents with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"
 46872  // matches all active FAQ documents. For more information about filtering, see
 46873  // API Filtering (https://aip.dev/160).
 46874  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46875  	c.urlParams_.Set("filter", filter)
 46876  	return c
 46877  }
 46878  
 46879  // PageSize sets the optional parameter "pageSize": The maximum number of items
 46880  // to return in a single page. By default 10 and at most 100.
 46881  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46882  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 46883  	return c
 46884  }
 46885  
 46886  // PageToken sets the optional parameter "pageToken": The next_page_token value
 46887  // returned from a previous list request.
 46888  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46889  	c.urlParams_.Set("pageToken", pageToken)
 46890  	return c
 46891  }
 46892  
 46893  // Fields allows partial responses to be retrieved. See
 46894  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46895  // details.
 46896  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46897  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46898  	return c
 46899  }
 46900  
 46901  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46902  // object's ETag matches the given value. This is useful for getting updates
 46903  // only after the object has changed since the last request.
 46904  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46905  	c.ifNoneMatch_ = entityTag
 46906  	return c
 46907  }
 46908  
 46909  // Context sets the context to be used in this call's Do method.
 46910  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 46911  	c.ctx_ = ctx
 46912  	return c
 46913  }
 46914  
 46915  // Header returns a http.Header that can be modified by the caller to add
 46916  // headers to the request.
 46917  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Header() http.Header {
 46918  	if c.header_ == nil {
 46919  		c.header_ = make(http.Header)
 46920  	}
 46921  	return c.header_
 46922  }
 46923  
 46924  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 46925  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46926  	if c.ifNoneMatch_ != "" {
 46927  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46928  	}
 46929  	var body io.Reader = nil
 46930  	c.urlParams_.Set("alt", alt)
 46931  	c.urlParams_.Set("prettyPrint", "false")
 46932  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
 46933  	urls += "?" + c.urlParams_.Encode()
 46934  	req, err := http.NewRequest("GET", urls, body)
 46935  	if err != nil {
 46936  		return nil, err
 46937  	}
 46938  	req.Header = reqHeaders
 46939  	googleapi.Expand(req.URL, map[string]string{
 46940  		"parent": c.parent,
 46941  	})
 46942  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46943  }
 46944  
 46945  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call.
 46946  // Any non-2xx status code is an error. Response headers are in either
 46947  // *GoogleCloudDialogflowV2ListDocumentsResponse.ServerResponse.Header or (if a
 46948  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46949  // googleapi.IsNotModified to check whether the returned error was because
 46950  // http.StatusNotModified was returned.
 46951  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListDocumentsResponse, error) {
 46952  	gensupport.SetOptions(c.urlParams_, opts...)
 46953  	res, err := c.doRequest("json")
 46954  	if res != nil && res.StatusCode == http.StatusNotModified {
 46955  		if res.Body != nil {
 46956  			res.Body.Close()
 46957  		}
 46958  		return nil, gensupport.WrapError(&googleapi.Error{
 46959  			Code:   res.StatusCode,
 46960  			Header: res.Header,
 46961  		})
 46962  	}
 46963  	if err != nil {
 46964  		return nil, err
 46965  	}
 46966  	defer googleapi.CloseBody(res)
 46967  	if err := googleapi.CheckResponse(res); err != nil {
 46968  		return nil, gensupport.WrapError(err)
 46969  	}
 46970  	ret := &GoogleCloudDialogflowV2ListDocumentsResponse{
 46971  		ServerResponse: googleapi.ServerResponse{
 46972  			Header:         res.Header,
 46973  			HTTPStatusCode: res.StatusCode,
 46974  		},
 46975  	}
 46976  	target := &ret
 46977  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46978  		return nil, err
 46979  	}
 46980  	return ret, nil
 46981  }
 46982  
 46983  // Pages invokes f for each page of results.
 46984  // A non-nil error returned from f will halt the iteration.
 46985  // The provided context supersedes any context provided to the Context method.
 46986  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListDocumentsResponse) error) error {
 46987  	c.ctx_ = ctx
 46988  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 46989  	for {
 46990  		x, err := c.Do()
 46991  		if err != nil {
 46992  			return err
 46993  		}
 46994  		if err := f(x); err != nil {
 46995  			return err
 46996  		}
 46997  		if x.NextPageToken == "" {
 46998  			return nil
 46999  		}
 47000  		c.PageToken(x.NextPageToken)
 47001  	}
 47002  }
 47003  
 47004  type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {
 47005  	s                               *Service
 47006  	name                            string
 47007  	googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
 47008  	urlParams_                      gensupport.URLParams
 47009  	ctx_                            context.Context
 47010  	header_                         http.Header
 47011  }
 47012  
 47013  // Patch: Updates the specified document. This method is a long-running
 47014  // operation
 47015  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 47016  // The returned `Operation` type has the following method-specific fields: -
 47017  // `metadata`: KnowledgeOperationMetadata - `response`: Document
 47018  //
 47019  //   - name: Optional. The document resource name. The name must be empty when
 47020  //     creating a document. Format:
 47021  //     `projects//locations//knowledgeBases//documents/`.
 47022  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 47023  	c := &ProjectsLocationsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47024  	c.name = name
 47025  	c.googleclouddialogflowv2document = googleclouddialogflowv2document
 47026  	return c
 47027  }
 47028  
 47029  // UpdateMask sets the optional parameter "updateMask": Not specified means
 47030  // `update all`. Currently, only `display_name` can be updated, an
 47031  // InvalidArgument will be returned for attempting to update other fields.
 47032  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 47033  	c.urlParams_.Set("updateMask", updateMask)
 47034  	return c
 47035  }
 47036  
 47037  // Fields allows partial responses to be retrieved. See
 47038  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47039  // details.
 47040  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 47041  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47042  	return c
 47043  }
 47044  
 47045  // Context sets the context to be used in this call's Do method.
 47046  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 47047  	c.ctx_ = ctx
 47048  	return c
 47049  }
 47050  
 47051  // Header returns a http.Header that can be modified by the caller to add
 47052  // headers to the request.
 47053  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
 47054  	if c.header_ == nil {
 47055  		c.header_ = make(http.Header)
 47056  	}
 47057  	return c.header_
 47058  }
 47059  
 47060  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 47061  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47062  	var body io.Reader = nil
 47063  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
 47064  	if err != nil {
 47065  		return nil, err
 47066  	}
 47067  	c.urlParams_.Set("alt", alt)
 47068  	c.urlParams_.Set("prettyPrint", "false")
 47069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 47070  	urls += "?" + c.urlParams_.Encode()
 47071  	req, err := http.NewRequest("PATCH", urls, body)
 47072  	if err != nil {
 47073  		return nil, err
 47074  	}
 47075  	req.Header = reqHeaders
 47076  	googleapi.Expand(req.URL, map[string]string{
 47077  		"name": c.name,
 47078  	})
 47079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47080  }
 47081  
 47082  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call.
 47083  // Any non-2xx status code is an error. Response headers are in either
 47084  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 47085  // returned at all) in error.(*googleapi.Error).Header. Use
 47086  // googleapi.IsNotModified to check whether the returned error was because
 47087  // http.StatusNotModified was returned.
 47088  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 47089  	gensupport.SetOptions(c.urlParams_, opts...)
 47090  	res, err := c.doRequest("json")
 47091  	if res != nil && res.StatusCode == http.StatusNotModified {
 47092  		if res.Body != nil {
 47093  			res.Body.Close()
 47094  		}
 47095  		return nil, gensupport.WrapError(&googleapi.Error{
 47096  			Code:   res.StatusCode,
 47097  			Header: res.Header,
 47098  		})
 47099  	}
 47100  	if err != nil {
 47101  		return nil, err
 47102  	}
 47103  	defer googleapi.CloseBody(res)
 47104  	if err := googleapi.CheckResponse(res); err != nil {
 47105  		return nil, gensupport.WrapError(err)
 47106  	}
 47107  	ret := &GoogleLongrunningOperation{
 47108  		ServerResponse: googleapi.ServerResponse{
 47109  			Header:         res.Header,
 47110  			HTTPStatusCode: res.StatusCode,
 47111  		},
 47112  	}
 47113  	target := &ret
 47114  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47115  		return nil, err
 47116  	}
 47117  	return ret, nil
 47118  }
 47119  
 47120  type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {
 47121  	s                                            *Service
 47122  	name                                         string
 47123  	googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest
 47124  	urlParams_                                   gensupport.URLParams
 47125  	ctx_                                         context.Context
 47126  	header_                                      http.Header
 47127  }
 47128  
 47129  // Reload: Reloads the specified document from its specified source,
 47130  // content_uri or content. The previously loaded content of the document will
 47131  // be deleted. Note: Even when the content of the document has not changed,
 47132  // there still may be side effects because of internal implementation changes.
 47133  // This method is a long-running operation
 47134  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 47135  // The returned `Operation` type has the following method-specific fields: -
 47136  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 47137  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 47138  // `projects.knowledgeBases.documents`.
 47139  //
 47140  //   - name: The name of the document to reload. Format:
 47141  //     `projects//locations//knowledgeBases//documents/`.
 47142  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
 47143  	c := &ProjectsLocationsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47144  	c.name = name
 47145  	c.googleclouddialogflowv2reloaddocumentrequest = googleclouddialogflowv2reloaddocumentrequest
 47146  	return c
 47147  }
 47148  
 47149  // Fields allows partial responses to be retrieved. See
 47150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47151  // details.
 47152  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
 47153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47154  	return c
 47155  }
 47156  
 47157  // Context sets the context to be used in this call's Do method.
 47158  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
 47159  	c.ctx_ = ctx
 47160  	return c
 47161  }
 47162  
 47163  // Header returns a http.Header that can be modified by the caller to add
 47164  // headers to the request.
 47165  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
 47166  	if c.header_ == nil {
 47167  		c.header_ = make(http.Header)
 47168  	}
 47169  	return c.header_
 47170  }
 47171  
 47172  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
 47173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47174  	var body io.Reader = nil
 47175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2reloaddocumentrequest)
 47176  	if err != nil {
 47177  		return nil, err
 47178  	}
 47179  	c.urlParams_.Set("alt", alt)
 47180  	c.urlParams_.Set("prettyPrint", "false")
 47181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:reload")
 47182  	urls += "?" + c.urlParams_.Encode()
 47183  	req, err := http.NewRequest("POST", urls, body)
 47184  	if err != nil {
 47185  		return nil, err
 47186  	}
 47187  	req.Header = reqHeaders
 47188  	googleapi.Expand(req.URL, map[string]string{
 47189  		"name": c.name,
 47190  	})
 47191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47192  }
 47193  
 47194  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call.
 47195  // Any non-2xx status code is an error. Response headers are in either
 47196  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 47197  // returned at all) in error.(*googleapi.Error).Header. Use
 47198  // googleapi.IsNotModified to check whether the returned error was because
 47199  // http.StatusNotModified was returned.
 47200  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 47201  	gensupport.SetOptions(c.urlParams_, opts...)
 47202  	res, err := c.doRequest("json")
 47203  	if res != nil && res.StatusCode == http.StatusNotModified {
 47204  		if res.Body != nil {
 47205  			res.Body.Close()
 47206  		}
 47207  		return nil, gensupport.WrapError(&googleapi.Error{
 47208  			Code:   res.StatusCode,
 47209  			Header: res.Header,
 47210  		})
 47211  	}
 47212  	if err != nil {
 47213  		return nil, err
 47214  	}
 47215  	defer googleapi.CloseBody(res)
 47216  	if err := googleapi.CheckResponse(res); err != nil {
 47217  		return nil, gensupport.WrapError(err)
 47218  	}
 47219  	ret := &GoogleLongrunningOperation{
 47220  		ServerResponse: googleapi.ServerResponse{
 47221  			Header:         res.Header,
 47222  			HTTPStatusCode: res.StatusCode,
 47223  		},
 47224  	}
 47225  	target := &ret
 47226  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47227  		return nil, err
 47228  	}
 47229  	return ret, nil
 47230  }
 47231  
 47232  type ProjectsLocationsOperationsCancelCall struct {
 47233  	s          *Service
 47234  	name       string
 47235  	urlParams_ gensupport.URLParams
 47236  	ctx_       context.Context
 47237  	header_    http.Header
 47238  }
 47239  
 47240  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 47241  // server makes a best effort to cancel the operation, but success is not
 47242  // guaranteed. If the server doesn't support this method, it returns
 47243  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 47244  // other methods to check whether the cancellation succeeded or whether the
 47245  // operation completed despite cancellation. On successful cancellation, the
 47246  // operation is not deleted; instead, it becomes an operation with an
 47247  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 47248  // `Code.CANCELLED`.
 47249  //
 47250  // - name: The name of the operation resource to be cancelled.
 47251  func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
 47252  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47253  	c.name = name
 47254  	return c
 47255  }
 47256  
 47257  // Fields allows partial responses to be retrieved. See
 47258  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47259  // details.
 47260  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 47261  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47262  	return c
 47263  }
 47264  
 47265  // Context sets the context to be used in this call's Do method.
 47266  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 47267  	c.ctx_ = ctx
 47268  	return c
 47269  }
 47270  
 47271  // Header returns a http.Header that can be modified by the caller to add
 47272  // headers to the request.
 47273  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 47274  	if c.header_ == nil {
 47275  		c.header_ = make(http.Header)
 47276  	}
 47277  	return c.header_
 47278  }
 47279  
 47280  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 47281  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47282  	var body io.Reader = nil
 47283  	c.urlParams_.Set("alt", alt)
 47284  	c.urlParams_.Set("prettyPrint", "false")
 47285  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
 47286  	urls += "?" + c.urlParams_.Encode()
 47287  	req, err := http.NewRequest("POST", urls, body)
 47288  	if err != nil {
 47289  		return nil, err
 47290  	}
 47291  	req.Header = reqHeaders
 47292  	googleapi.Expand(req.URL, map[string]string{
 47293  		"name": c.name,
 47294  	})
 47295  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47296  }
 47297  
 47298  // Do executes the "dialogflow.projects.locations.operations.cancel" call.
 47299  // Any non-2xx status code is an error. Response headers are in either
 47300  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 47301  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 47302  // check whether the returned error was because http.StatusNotModified was
 47303  // returned.
 47304  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 47305  	gensupport.SetOptions(c.urlParams_, opts...)
 47306  	res, err := c.doRequest("json")
 47307  	if res != nil && res.StatusCode == http.StatusNotModified {
 47308  		if res.Body != nil {
 47309  			res.Body.Close()
 47310  		}
 47311  		return nil, gensupport.WrapError(&googleapi.Error{
 47312  			Code:   res.StatusCode,
 47313  			Header: res.Header,
 47314  		})
 47315  	}
 47316  	if err != nil {
 47317  		return nil, err
 47318  	}
 47319  	defer googleapi.CloseBody(res)
 47320  	if err := googleapi.CheckResponse(res); err != nil {
 47321  		return nil, gensupport.WrapError(err)
 47322  	}
 47323  	ret := &GoogleProtobufEmpty{
 47324  		ServerResponse: googleapi.ServerResponse{
 47325  			Header:         res.Header,
 47326  			HTTPStatusCode: res.StatusCode,
 47327  		},
 47328  	}
 47329  	target := &ret
 47330  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47331  		return nil, err
 47332  	}
 47333  	return ret, nil
 47334  }
 47335  
 47336  type ProjectsLocationsOperationsGetCall struct {
 47337  	s            *Service
 47338  	name         string
 47339  	urlParams_   gensupport.URLParams
 47340  	ifNoneMatch_ string
 47341  	ctx_         context.Context
 47342  	header_      http.Header
 47343  }
 47344  
 47345  // Get: Gets the latest state of a long-running operation. Clients can use this
 47346  // method to poll the operation result at intervals as recommended by the API
 47347  // service.
 47348  //
 47349  // - name: The name of the operation resource.
 47350  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 47351  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47352  	c.name = name
 47353  	return c
 47354  }
 47355  
 47356  // Fields allows partial responses to be retrieved. See
 47357  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47358  // details.
 47359  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 47360  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47361  	return c
 47362  }
 47363  
 47364  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 47365  // object's ETag matches the given value. This is useful for getting updates
 47366  // only after the object has changed since the last request.
 47367  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 47368  	c.ifNoneMatch_ = entityTag
 47369  	return c
 47370  }
 47371  
 47372  // Context sets the context to be used in this call's Do method.
 47373  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 47374  	c.ctx_ = ctx
 47375  	return c
 47376  }
 47377  
 47378  // Header returns a http.Header that can be modified by the caller to add
 47379  // headers to the request.
 47380  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 47381  	if c.header_ == nil {
 47382  		c.header_ = make(http.Header)
 47383  	}
 47384  	return c.header_
 47385  }
 47386  
 47387  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 47388  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47389  	if c.ifNoneMatch_ != "" {
 47390  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 47391  	}
 47392  	var body io.Reader = nil
 47393  	c.urlParams_.Set("alt", alt)
 47394  	c.urlParams_.Set("prettyPrint", "false")
 47395  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 47396  	urls += "?" + c.urlParams_.Encode()
 47397  	req, err := http.NewRequest("GET", urls, body)
 47398  	if err != nil {
 47399  		return nil, err
 47400  	}
 47401  	req.Header = reqHeaders
 47402  	googleapi.Expand(req.URL, map[string]string{
 47403  		"name": c.name,
 47404  	})
 47405  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47406  }
 47407  
 47408  // Do executes the "dialogflow.projects.locations.operations.get" call.
 47409  // Any non-2xx status code is an error. Response headers are in either
 47410  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 47411  // returned at all) in error.(*googleapi.Error).Header. Use
 47412  // googleapi.IsNotModified to check whether the returned error was because
 47413  // http.StatusNotModified was returned.
 47414  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 47415  	gensupport.SetOptions(c.urlParams_, opts...)
 47416  	res, err := c.doRequest("json")
 47417  	if res != nil && res.StatusCode == http.StatusNotModified {
 47418  		if res.Body != nil {
 47419  			res.Body.Close()
 47420  		}
 47421  		return nil, gensupport.WrapError(&googleapi.Error{
 47422  			Code:   res.StatusCode,
 47423  			Header: res.Header,
 47424  		})
 47425  	}
 47426  	if err != nil {
 47427  		return nil, err
 47428  	}
 47429  	defer googleapi.CloseBody(res)
 47430  	if err := googleapi.CheckResponse(res); err != nil {
 47431  		return nil, gensupport.WrapError(err)
 47432  	}
 47433  	ret := &GoogleLongrunningOperation{
 47434  		ServerResponse: googleapi.ServerResponse{
 47435  			Header:         res.Header,
 47436  			HTTPStatusCode: res.StatusCode,
 47437  		},
 47438  	}
 47439  	target := &ret
 47440  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47441  		return nil, err
 47442  	}
 47443  	return ret, nil
 47444  }
 47445  
 47446  type ProjectsLocationsOperationsListCall struct {
 47447  	s            *Service
 47448  	name         string
 47449  	urlParams_   gensupport.URLParams
 47450  	ifNoneMatch_ string
 47451  	ctx_         context.Context
 47452  	header_      http.Header
 47453  }
 47454  
 47455  // List: Lists operations that match the specified filter in the request. If
 47456  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 47457  //
 47458  // - name: The name of the operation's parent resource.
 47459  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 47460  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47461  	c.name = name
 47462  	return c
 47463  }
 47464  
 47465  // Filter sets the optional parameter "filter": The standard list filter.
 47466  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 47467  	c.urlParams_.Set("filter", filter)
 47468  	return c
 47469  }
 47470  
 47471  // PageSize sets the optional parameter "pageSize": The standard list page
 47472  // size.
 47473  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 47474  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 47475  	return c
 47476  }
 47477  
 47478  // PageToken sets the optional parameter "pageToken": The standard list page
 47479  // token.
 47480  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 47481  	c.urlParams_.Set("pageToken", pageToken)
 47482  	return c
 47483  }
 47484  
 47485  // Fields allows partial responses to be retrieved. See
 47486  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47487  // details.
 47488  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 47489  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47490  	return c
 47491  }
 47492  
 47493  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 47494  // object's ETag matches the given value. This is useful for getting updates
 47495  // only after the object has changed since the last request.
 47496  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 47497  	c.ifNoneMatch_ = entityTag
 47498  	return c
 47499  }
 47500  
 47501  // Context sets the context to be used in this call's Do method.
 47502  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 47503  	c.ctx_ = ctx
 47504  	return c
 47505  }
 47506  
 47507  // Header returns a http.Header that can be modified by the caller to add
 47508  // headers to the request.
 47509  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 47510  	if c.header_ == nil {
 47511  		c.header_ = make(http.Header)
 47512  	}
 47513  	return c.header_
 47514  }
 47515  
 47516  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 47517  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47518  	if c.ifNoneMatch_ != "" {
 47519  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 47520  	}
 47521  	var body io.Reader = nil
 47522  	c.urlParams_.Set("alt", alt)
 47523  	c.urlParams_.Set("prettyPrint", "false")
 47524  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/operations")
 47525  	urls += "?" + c.urlParams_.Encode()
 47526  	req, err := http.NewRequest("GET", urls, body)
 47527  	if err != nil {
 47528  		return nil, err
 47529  	}
 47530  	req.Header = reqHeaders
 47531  	googleapi.Expand(req.URL, map[string]string{
 47532  		"name": c.name,
 47533  	})
 47534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47535  }
 47536  
 47537  // Do executes the "dialogflow.projects.locations.operations.list" call.
 47538  // Any non-2xx status code is an error. Response headers are in either
 47539  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 47540  // response was returned at all) in error.(*googleapi.Error).Header. Use
 47541  // googleapi.IsNotModified to check whether the returned error was because
 47542  // http.StatusNotModified was returned.
 47543  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 47544  	gensupport.SetOptions(c.urlParams_, opts...)
 47545  	res, err := c.doRequest("json")
 47546  	if res != nil && res.StatusCode == http.StatusNotModified {
 47547  		if res.Body != nil {
 47548  			res.Body.Close()
 47549  		}
 47550  		return nil, gensupport.WrapError(&googleapi.Error{
 47551  			Code:   res.StatusCode,
 47552  			Header: res.Header,
 47553  		})
 47554  	}
 47555  	if err != nil {
 47556  		return nil, err
 47557  	}
 47558  	defer googleapi.CloseBody(res)
 47559  	if err := googleapi.CheckResponse(res); err != nil {
 47560  		return nil, gensupport.WrapError(err)
 47561  	}
 47562  	ret := &GoogleLongrunningListOperationsResponse{
 47563  		ServerResponse: googleapi.ServerResponse{
 47564  			Header:         res.Header,
 47565  			HTTPStatusCode: res.StatusCode,
 47566  		},
 47567  	}
 47568  	target := &ret
 47569  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47570  		return nil, err
 47571  	}
 47572  	return ret, nil
 47573  }
 47574  
 47575  // Pages invokes f for each page of results.
 47576  // A non-nil error returned from f will halt the iteration.
 47577  // The provided context supersedes any context provided to the Context method.
 47578  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 47579  	c.ctx_ = ctx
 47580  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 47581  	for {
 47582  		x, err := c.Do()
 47583  		if err != nil {
 47584  			return err
 47585  		}
 47586  		if err := f(x); err != nil {
 47587  			return err
 47588  		}
 47589  		if x.NextPageToken == "" {
 47590  			return nil
 47591  		}
 47592  		c.PageToken(x.NextPageToken)
 47593  	}
 47594  }
 47595  
 47596  type ProjectsLocationsSuggestionsGenerateStatelessSummaryCall struct {
 47597  	s                                                      *Service
 47598  	parent                                                 string
 47599  	googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
 47600  	urlParams_                                             gensupport.URLParams
 47601  	ctx_                                                   context.Context
 47602  	header_                                                http.Header
 47603  }
 47604  
 47605  // GenerateStatelessSummary: Generates and returns a summary for a conversation
 47606  // that does not have a resource created for it.
 47607  //
 47608  //   - parent: The parent resource to charge for the Summary's generation.
 47609  //     Format: `projects//locations/`.
 47610  func (r *ProjectsLocationsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
 47611  	c := &ProjectsLocationsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47612  	c.parent = parent
 47613  	c.googleclouddialogflowv2generatestatelesssummaryrequest = googleclouddialogflowv2generatestatelesssummaryrequest
 47614  	return c
 47615  }
 47616  
 47617  // Fields allows partial responses to be retrieved. See
 47618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47619  // details.
 47620  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
 47621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47622  	return c
 47623  }
 47624  
 47625  // Context sets the context to be used in this call's Do method.
 47626  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
 47627  	c.ctx_ = ctx
 47628  	return c
 47629  }
 47630  
 47631  // Header returns a http.Header that can be modified by the caller to add
 47632  // headers to the request.
 47633  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
 47634  	if c.header_ == nil {
 47635  		c.header_ = make(http.Header)
 47636  	}
 47637  	return c.header_
 47638  }
 47639  
 47640  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
 47641  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47642  	var body io.Reader = nil
 47643  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2generatestatelesssummaryrequest)
 47644  	if err != nil {
 47645  		return nil, err
 47646  	}
 47647  	c.urlParams_.Set("alt", alt)
 47648  	c.urlParams_.Set("prettyPrint", "false")
 47649  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:generateStatelessSummary")
 47650  	urls += "?" + c.urlParams_.Encode()
 47651  	req, err := http.NewRequest("POST", urls, body)
 47652  	if err != nil {
 47653  		return nil, err
 47654  	}
 47655  	req.Header = reqHeaders
 47656  	googleapi.Expand(req.URL, map[string]string{
 47657  		"parent": c.parent,
 47658  	})
 47659  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47660  }
 47661  
 47662  // Do executes the "dialogflow.projects.locations.suggestions.generateStatelessSummary" call.
 47663  // Any non-2xx status code is an error. Response headers are in either
 47664  // *GoogleCloudDialogflowV2GenerateStatelessSummaryResponse.ServerResponse.Heade
 47665  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 47666  // Use googleapi.IsNotModified to check whether the returned error was because
 47667  // http.StatusNotModified was returned.
 47668  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2GenerateStatelessSummaryResponse, error) {
 47669  	gensupport.SetOptions(c.urlParams_, opts...)
 47670  	res, err := c.doRequest("json")
 47671  	if res != nil && res.StatusCode == http.StatusNotModified {
 47672  		if res.Body != nil {
 47673  			res.Body.Close()
 47674  		}
 47675  		return nil, gensupport.WrapError(&googleapi.Error{
 47676  			Code:   res.StatusCode,
 47677  			Header: res.Header,
 47678  		})
 47679  	}
 47680  	if err != nil {
 47681  		return nil, err
 47682  	}
 47683  	defer googleapi.CloseBody(res)
 47684  	if err := googleapi.CheckResponse(res); err != nil {
 47685  		return nil, gensupport.WrapError(err)
 47686  	}
 47687  	ret := &GoogleCloudDialogflowV2GenerateStatelessSummaryResponse{
 47688  		ServerResponse: googleapi.ServerResponse{
 47689  			Header:         res.Header,
 47690  			HTTPStatusCode: res.StatusCode,
 47691  		},
 47692  	}
 47693  	target := &ret
 47694  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47695  		return nil, err
 47696  	}
 47697  	return ret, nil
 47698  }
 47699  
 47700  type ProjectsLocationsSuggestionsSearchKnowledgeCall struct {
 47701  	s                                             *Service
 47702  	parent                                        string
 47703  	googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
 47704  	urlParams_                                    gensupport.URLParams
 47705  	ctx_                                          context.Context
 47706  	header_                                       http.Header
 47707  }
 47708  
 47709  // SearchKnowledge: Get answers for the given query based on knowledge
 47710  // documents.
 47711  //
 47712  //   - parent: The parent resource contains the conversation profile Format:
 47713  //     'projects/' or `projects//locations/`.
 47714  func (r *ProjectsLocationsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
 47715  	c := &ProjectsLocationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47716  	c.parent = parent
 47717  	c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
 47718  	return c
 47719  }
 47720  
 47721  // Fields allows partial responses to be retrieved. See
 47722  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47723  // details.
 47724  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
 47725  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47726  	return c
 47727  }
 47728  
 47729  // Context sets the context to be used in this call's Do method.
 47730  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
 47731  	c.ctx_ = ctx
 47732  	return c
 47733  }
 47734  
 47735  // Header returns a http.Header that can be modified by the caller to add
 47736  // headers to the request.
 47737  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Header() http.Header {
 47738  	if c.header_ == nil {
 47739  		c.header_ = make(http.Header)
 47740  	}
 47741  	return c.header_
 47742  }
 47743  
 47744  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 47745  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 47746  	var body io.Reader = nil
 47747  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
 47748  	if err != nil {
 47749  		return nil, err
 47750  	}
 47751  	c.urlParams_.Set("alt", alt)
 47752  	c.urlParams_.Set("prettyPrint", "false")
 47753  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:searchKnowledge")
 47754  	urls += "?" + c.urlParams_.Encode()
 47755  	req, err := http.NewRequest("POST", urls, body)
 47756  	if err != nil {
 47757  		return nil, err
 47758  	}
 47759  	req.Header = reqHeaders
 47760  	googleapi.Expand(req.URL, map[string]string{
 47761  		"parent": c.parent,
 47762  	})
 47763  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47764  }
 47765  
 47766  // Do executes the "dialogflow.projects.locations.suggestions.searchKnowledge" call.
 47767  // Any non-2xx status code is an error. Response headers are in either
 47768  // *GoogleCloudDialogflowV2SearchKnowledgeResponse.ServerResponse.Header or (if
 47769  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 47770  // googleapi.IsNotModified to check whether the returned error was because
 47771  // http.StatusNotModified was returned.
 47772  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
 47773  	gensupport.SetOptions(c.urlParams_, opts...)
 47774  	res, err := c.doRequest("json")
 47775  	if res != nil && res.StatusCode == http.StatusNotModified {
 47776  		if res.Body != nil {
 47777  			res.Body.Close()
 47778  		}
 47779  		return nil, gensupport.WrapError(&googleapi.Error{
 47780  			Code:   res.StatusCode,
 47781  			Header: res.Header,
 47782  		})
 47783  	}
 47784  	if err != nil {
 47785  		return nil, err
 47786  	}
 47787  	defer googleapi.CloseBody(res)
 47788  	if err := googleapi.CheckResponse(res); err != nil {
 47789  		return nil, gensupport.WrapError(err)
 47790  	}
 47791  	ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
 47792  		ServerResponse: googleapi.ServerResponse{
 47793  			Header:         res.Header,
 47794  			HTTPStatusCode: res.StatusCode,
 47795  		},
 47796  	}
 47797  	target := &ret
 47798  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47799  		return nil, err
 47800  	}
 47801  	return ret, nil
 47802  }
 47803  
 47804  type ProjectsOperationsCancelCall struct {
 47805  	s          *Service
 47806  	name       string
 47807  	urlParams_ gensupport.URLParams
 47808  	ctx_       context.Context
 47809  	header_    http.Header
 47810  }
 47811  
 47812  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 47813  // server makes a best effort to cancel the operation, but success is not
 47814  // guaranteed. If the server doesn't support this method, it returns
 47815  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 47816  // other methods to check whether the cancellation succeeded or whether the
 47817  // operation completed despite cancellation. On successful cancellation, the
 47818  // operation is not deleted; instead, it becomes an operation with an
 47819  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 47820  // `Code.CANCELLED`.
 47821  //
 47822  // - name: The name of the operation resource to be cancelled.
 47823  func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
 47824  	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47825  	c.name = name
 47826  	return c
 47827  }
 47828  
 47829  // Fields allows partial responses to be retrieved. See
 47830  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47831  // details.
 47832  func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
 47833  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47834  	return c
 47835  }
 47836  
 47837  // Context sets the context to be used in this call's Do method.
 47838  func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
 47839  	c.ctx_ = ctx
 47840  	return c
 47841  }
 47842  
 47843  // Header returns a http.Header that can be modified by the caller to add
 47844  // headers to the request.
 47845  func (c *ProjectsOperationsCancelCall) Header() http.Header {
 47846  	if c.header_ == nil {
 47847  		c.header_ = make(http.Header)
 47848  	}
 47849  	return c.header_
 47850  }
 47851  
 47852  func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 47853  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47854  	var body io.Reader = nil
 47855  	c.urlParams_.Set("alt", alt)
 47856  	c.urlParams_.Set("prettyPrint", "false")
 47857  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
 47858  	urls += "?" + c.urlParams_.Encode()
 47859  	req, err := http.NewRequest("POST", urls, body)
 47860  	if err != nil {
 47861  		return nil, err
 47862  	}
 47863  	req.Header = reqHeaders
 47864  	googleapi.Expand(req.URL, map[string]string{
 47865  		"name": c.name,
 47866  	})
 47867  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47868  }
 47869  
 47870  // Do executes the "dialogflow.projects.operations.cancel" call.
 47871  // Any non-2xx status code is an error. Response headers are in either
 47872  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 47873  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 47874  // check whether the returned error was because http.StatusNotModified was
 47875  // returned.
 47876  func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 47877  	gensupport.SetOptions(c.urlParams_, opts...)
 47878  	res, err := c.doRequest("json")
 47879  	if res != nil && res.StatusCode == http.StatusNotModified {
 47880  		if res.Body != nil {
 47881  			res.Body.Close()
 47882  		}
 47883  		return nil, gensupport.WrapError(&googleapi.Error{
 47884  			Code:   res.StatusCode,
 47885  			Header: res.Header,
 47886  		})
 47887  	}
 47888  	if err != nil {
 47889  		return nil, err
 47890  	}
 47891  	defer googleapi.CloseBody(res)
 47892  	if err := googleapi.CheckResponse(res); err != nil {
 47893  		return nil, gensupport.WrapError(err)
 47894  	}
 47895  	ret := &GoogleProtobufEmpty{
 47896  		ServerResponse: googleapi.ServerResponse{
 47897  			Header:         res.Header,
 47898  			HTTPStatusCode: res.StatusCode,
 47899  		},
 47900  	}
 47901  	target := &ret
 47902  	if err := gensupport.DecodeResponse(target, res); err != nil {
 47903  		return nil, err
 47904  	}
 47905  	return ret, nil
 47906  }
 47907  
 47908  type ProjectsOperationsGetCall struct {
 47909  	s            *Service
 47910  	name         string
 47911  	urlParams_   gensupport.URLParams
 47912  	ifNoneMatch_ string
 47913  	ctx_         context.Context
 47914  	header_      http.Header
 47915  }
 47916  
 47917  // Get: Gets the latest state of a long-running operation. Clients can use this
 47918  // method to poll the operation result at intervals as recommended by the API
 47919  // service.
 47920  //
 47921  // - name: The name of the operation resource.
 47922  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 47923  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 47924  	c.name = name
 47925  	return c
 47926  }
 47927  
 47928  // Fields allows partial responses to be retrieved. See
 47929  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 47930  // details.
 47931  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 47932  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 47933  	return c
 47934  }
 47935  
 47936  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 47937  // object's ETag matches the given value. This is useful for getting updates
 47938  // only after the object has changed since the last request.
 47939  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 47940  	c.ifNoneMatch_ = entityTag
 47941  	return c
 47942  }
 47943  
 47944  // Context sets the context to be used in this call's Do method.
 47945  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 47946  	c.ctx_ = ctx
 47947  	return c
 47948  }
 47949  
 47950  // Header returns a http.Header that can be modified by the caller to add
 47951  // headers to the request.
 47952  func (c *ProjectsOperationsGetCall) Header() http.Header {
 47953  	if c.header_ == nil {
 47954  		c.header_ = make(http.Header)
 47955  	}
 47956  	return c.header_
 47957  }
 47958  
 47959  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 47960  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 47961  	if c.ifNoneMatch_ != "" {
 47962  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 47963  	}
 47964  	var body io.Reader = nil
 47965  	c.urlParams_.Set("alt", alt)
 47966  	c.urlParams_.Set("prettyPrint", "false")
 47967  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 47968  	urls += "?" + c.urlParams_.Encode()
 47969  	req, err := http.NewRequest("GET", urls, body)
 47970  	if err != nil {
 47971  		return nil, err
 47972  	}
 47973  	req.Header = reqHeaders
 47974  	googleapi.Expand(req.URL, map[string]string{
 47975  		"name": c.name,
 47976  	})
 47977  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 47978  }
 47979  
 47980  // Do executes the "dialogflow.projects.operations.get" call.
 47981  // Any non-2xx status code is an error. Response headers are in either
 47982  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 47983  // returned at all) in error.(*googleapi.Error).Header. Use
 47984  // googleapi.IsNotModified to check whether the returned error was because
 47985  // http.StatusNotModified was returned.
 47986  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 47987  	gensupport.SetOptions(c.urlParams_, opts...)
 47988  	res, err := c.doRequest("json")
 47989  	if res != nil && res.StatusCode == http.StatusNotModified {
 47990  		if res.Body != nil {
 47991  			res.Body.Close()
 47992  		}
 47993  		return nil, gensupport.WrapError(&googleapi.Error{
 47994  			Code:   res.StatusCode,
 47995  			Header: res.Header,
 47996  		})
 47997  	}
 47998  	if err != nil {
 47999  		return nil, err
 48000  	}
 48001  	defer googleapi.CloseBody(res)
 48002  	if err := googleapi.CheckResponse(res); err != nil {
 48003  		return nil, gensupport.WrapError(err)
 48004  	}
 48005  	ret := &GoogleLongrunningOperation{
 48006  		ServerResponse: googleapi.ServerResponse{
 48007  			Header:         res.Header,
 48008  			HTTPStatusCode: res.StatusCode,
 48009  		},
 48010  	}
 48011  	target := &ret
 48012  	if err := gensupport.DecodeResponse(target, res); err != nil {
 48013  		return nil, err
 48014  	}
 48015  	return ret, nil
 48016  }
 48017  
 48018  type ProjectsOperationsListCall struct {
 48019  	s            *Service
 48020  	name         string
 48021  	urlParams_   gensupport.URLParams
 48022  	ifNoneMatch_ string
 48023  	ctx_         context.Context
 48024  	header_      http.Header
 48025  }
 48026  
 48027  // List: Lists operations that match the specified filter in the request. If
 48028  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 48029  //
 48030  // - name: The name of the operation's parent resource.
 48031  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 48032  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 48033  	c.name = name
 48034  	return c
 48035  }
 48036  
 48037  // Filter sets the optional parameter "filter": The standard list filter.
 48038  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 48039  	c.urlParams_.Set("filter", filter)
 48040  	return c
 48041  }
 48042  
 48043  // PageSize sets the optional parameter "pageSize": The standard list page
 48044  // size.
 48045  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 48046  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 48047  	return c
 48048  }
 48049  
 48050  // PageToken sets the optional parameter "pageToken": The standard list page
 48051  // token.
 48052  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 48053  	c.urlParams_.Set("pageToken", pageToken)
 48054  	return c
 48055  }
 48056  
 48057  // Fields allows partial responses to be retrieved. See
 48058  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 48059  // details.
 48060  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 48061  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 48062  	return c
 48063  }
 48064  
 48065  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 48066  // object's ETag matches the given value. This is useful for getting updates
 48067  // only after the object has changed since the last request.
 48068  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 48069  	c.ifNoneMatch_ = entityTag
 48070  	return c
 48071  }
 48072  
 48073  // Context sets the context to be used in this call's Do method.
 48074  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 48075  	c.ctx_ = ctx
 48076  	return c
 48077  }
 48078  
 48079  // Header returns a http.Header that can be modified by the caller to add
 48080  // headers to the request.
 48081  func (c *ProjectsOperationsListCall) Header() http.Header {
 48082  	if c.header_ == nil {
 48083  		c.header_ = make(http.Header)
 48084  	}
 48085  	return c.header_
 48086  }
 48087  
 48088  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 48089  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 48090  	if c.ifNoneMatch_ != "" {
 48091  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 48092  	}
 48093  	var body io.Reader = nil
 48094  	c.urlParams_.Set("alt", alt)
 48095  	c.urlParams_.Set("prettyPrint", "false")
 48096  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/operations")
 48097  	urls += "?" + c.urlParams_.Encode()
 48098  	req, err := http.NewRequest("GET", urls, body)
 48099  	if err != nil {
 48100  		return nil, err
 48101  	}
 48102  	req.Header = reqHeaders
 48103  	googleapi.Expand(req.URL, map[string]string{
 48104  		"name": c.name,
 48105  	})
 48106  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 48107  }
 48108  
 48109  // Do executes the "dialogflow.projects.operations.list" call.
 48110  // Any non-2xx status code is an error. Response headers are in either
 48111  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 48112  // response was returned at all) in error.(*googleapi.Error).Header. Use
 48113  // googleapi.IsNotModified to check whether the returned error was because
 48114  // http.StatusNotModified was returned.
 48115  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 48116  	gensupport.SetOptions(c.urlParams_, opts...)
 48117  	res, err := c.doRequest("json")
 48118  	if res != nil && res.StatusCode == http.StatusNotModified {
 48119  		if res.Body != nil {
 48120  			res.Body.Close()
 48121  		}
 48122  		return nil, gensupport.WrapError(&googleapi.Error{
 48123  			Code:   res.StatusCode,
 48124  			Header: res.Header,
 48125  		})
 48126  	}
 48127  	if err != nil {
 48128  		return nil, err
 48129  	}
 48130  	defer googleapi.CloseBody(res)
 48131  	if err := googleapi.CheckResponse(res); err != nil {
 48132  		return nil, gensupport.WrapError(err)
 48133  	}
 48134  	ret := &GoogleLongrunningListOperationsResponse{
 48135  		ServerResponse: googleapi.ServerResponse{
 48136  			Header:         res.Header,
 48137  			HTTPStatusCode: res.StatusCode,
 48138  		},
 48139  	}
 48140  	target := &ret
 48141  	if err := gensupport.DecodeResponse(target, res); err != nil {
 48142  		return nil, err
 48143  	}
 48144  	return ret, nil
 48145  }
 48146  
 48147  // Pages invokes f for each page of results.
 48148  // A non-nil error returned from f will halt the iteration.
 48149  // The provided context supersedes any context provided to the Context method.
 48150  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 48151  	c.ctx_ = ctx
 48152  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 48153  	for {
 48154  		x, err := c.Do()
 48155  		if err != nil {
 48156  			return err
 48157  		}
 48158  		if err := f(x); err != nil {
 48159  			return err
 48160  		}
 48161  		if x.NextPageToken == "" {
 48162  			return nil
 48163  		}
 48164  		c.PageToken(x.NextPageToken)
 48165  	}
 48166  }
 48167  
 48168  type ProjectsSuggestionsGenerateStatelessSummaryCall struct {
 48169  	s                                                      *Service
 48170  	parent                                                 string
 48171  	googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
 48172  	urlParams_                                             gensupport.URLParams
 48173  	ctx_                                                   context.Context
 48174  	header_                                                http.Header
 48175  }
 48176  
 48177  // GenerateStatelessSummary: Generates and returns a summary for a conversation
 48178  // that does not have a resource created for it.
 48179  //
 48180  //   - parent: The parent resource to charge for the Summary's generation.
 48181  //     Format: `projects//locations/`.
 48182  func (r *ProjectsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest) *ProjectsSuggestionsGenerateStatelessSummaryCall {
 48183  	c := &ProjectsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 48184  	c.parent = parent
 48185  	c.googleclouddialogflowv2generatestatelesssummaryrequest = googleclouddialogflowv2generatestatelesssummaryrequest
 48186  	return c
 48187  }
 48188  
 48189  // Fields allows partial responses to be retrieved. See
 48190  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 48191  // details.
 48192  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsGenerateStatelessSummaryCall {
 48193  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 48194  	return c
 48195  }
 48196  
 48197  // Context sets the context to be used in this call's Do method.
 48198  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsSuggestionsGenerateStatelessSummaryCall {
 48199  	c.ctx_ = ctx
 48200  	return c
 48201  }
 48202  
 48203  // Header returns a http.Header that can be modified by the caller to add
 48204  // headers to the request.
 48205  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
 48206  	if c.header_ == nil {
 48207  		c.header_ = make(http.Header)
 48208  	}
 48209  	return c.header_
 48210  }
 48211  
 48212  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
 48213  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 48214  	var body io.Reader = nil
 48215  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2generatestatelesssummaryrequest)
 48216  	if err != nil {
 48217  		return nil, err
 48218  	}
 48219  	c.urlParams_.Set("alt", alt)
 48220  	c.urlParams_.Set("prettyPrint", "false")
 48221  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:generateStatelessSummary")
 48222  	urls += "?" + c.urlParams_.Encode()
 48223  	req, err := http.NewRequest("POST", urls, body)
 48224  	if err != nil {
 48225  		return nil, err
 48226  	}
 48227  	req.Header = reqHeaders
 48228  	googleapi.Expand(req.URL, map[string]string{
 48229  		"parent": c.parent,
 48230  	})
 48231  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 48232  }
 48233  
 48234  // Do executes the "dialogflow.projects.suggestions.generateStatelessSummary" call.
 48235  // Any non-2xx status code is an error. Response headers are in either
 48236  // *GoogleCloudDialogflowV2GenerateStatelessSummaryResponse.ServerResponse.Heade
 48237  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 48238  // Use googleapi.IsNotModified to check whether the returned error was because
 48239  // http.StatusNotModified was returned.
 48240  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2GenerateStatelessSummaryResponse, error) {
 48241  	gensupport.SetOptions(c.urlParams_, opts...)
 48242  	res, err := c.doRequest("json")
 48243  	if res != nil && res.StatusCode == http.StatusNotModified {
 48244  		if res.Body != nil {
 48245  			res.Body.Close()
 48246  		}
 48247  		return nil, gensupport.WrapError(&googleapi.Error{
 48248  			Code:   res.StatusCode,
 48249  			Header: res.Header,
 48250  		})
 48251  	}
 48252  	if err != nil {
 48253  		return nil, err
 48254  	}
 48255  	defer googleapi.CloseBody(res)
 48256  	if err := googleapi.CheckResponse(res); err != nil {
 48257  		return nil, gensupport.WrapError(err)
 48258  	}
 48259  	ret := &GoogleCloudDialogflowV2GenerateStatelessSummaryResponse{
 48260  		ServerResponse: googleapi.ServerResponse{
 48261  			Header:         res.Header,
 48262  			HTTPStatusCode: res.StatusCode,
 48263  		},
 48264  	}
 48265  	target := &ret
 48266  	if err := gensupport.DecodeResponse(target, res); err != nil {
 48267  		return nil, err
 48268  	}
 48269  	return ret, nil
 48270  }
 48271  
 48272  type ProjectsSuggestionsSearchKnowledgeCall struct {
 48273  	s                                             *Service
 48274  	parent                                        string
 48275  	googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
 48276  	urlParams_                                    gensupport.URLParams
 48277  	ctx_                                          context.Context
 48278  	header_                                       http.Header
 48279  }
 48280  
 48281  // SearchKnowledge: Get answers for the given query based on knowledge
 48282  // documents.
 48283  //
 48284  //   - parent: The parent resource contains the conversation profile Format:
 48285  //     'projects/' or `projects//locations/`.
 48286  func (r *ProjectsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsSuggestionsSearchKnowledgeCall {
 48287  	c := &ProjectsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 48288  	c.parent = parent
 48289  	c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
 48290  	return c
 48291  }
 48292  
 48293  // Fields allows partial responses to be retrieved. See
 48294  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 48295  // details.
 48296  func (c *ProjectsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsSearchKnowledgeCall {
 48297  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 48298  	return c
 48299  }
 48300  
 48301  // Context sets the context to be used in this call's Do method.
 48302  func (c *ProjectsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsSuggestionsSearchKnowledgeCall {
 48303  	c.ctx_ = ctx
 48304  	return c
 48305  }
 48306  
 48307  // Header returns a http.Header that can be modified by the caller to add
 48308  // headers to the request.
 48309  func (c *ProjectsSuggestionsSearchKnowledgeCall) Header() http.Header {
 48310  	if c.header_ == nil {
 48311  		c.header_ = make(http.Header)
 48312  	}
 48313  	return c.header_
 48314  }
 48315  
 48316  func (c *ProjectsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 48317  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 48318  	var body io.Reader = nil
 48319  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
 48320  	if err != nil {
 48321  		return nil, err
 48322  	}
 48323  	c.urlParams_.Set("alt", alt)
 48324  	c.urlParams_.Set("prettyPrint", "false")
 48325  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:searchKnowledge")
 48326  	urls += "?" + c.urlParams_.Encode()
 48327  	req, err := http.NewRequest("POST", urls, body)
 48328  	if err != nil {
 48329  		return nil, err
 48330  	}
 48331  	req.Header = reqHeaders
 48332  	googleapi.Expand(req.URL, map[string]string{
 48333  		"parent": c.parent,
 48334  	})
 48335  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 48336  }
 48337  
 48338  // Do executes the "dialogflow.projects.suggestions.searchKnowledge" call.
 48339  // Any non-2xx status code is an error. Response headers are in either
 48340  // *GoogleCloudDialogflowV2SearchKnowledgeResponse.ServerResponse.Header or (if
 48341  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 48342  // googleapi.IsNotModified to check whether the returned error was because
 48343  // http.StatusNotModified was returned.
 48344  func (c *ProjectsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
 48345  	gensupport.SetOptions(c.urlParams_, opts...)
 48346  	res, err := c.doRequest("json")
 48347  	if res != nil && res.StatusCode == http.StatusNotModified {
 48348  		if res.Body != nil {
 48349  			res.Body.Close()
 48350  		}
 48351  		return nil, gensupport.WrapError(&googleapi.Error{
 48352  			Code:   res.StatusCode,
 48353  			Header: res.Header,
 48354  		})
 48355  	}
 48356  	if err != nil {
 48357  		return nil, err
 48358  	}
 48359  	defer googleapi.CloseBody(res)
 48360  	if err := googleapi.CheckResponse(res); err != nil {
 48361  		return nil, gensupport.WrapError(err)
 48362  	}
 48363  	ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
 48364  		ServerResponse: googleapi.ServerResponse{
 48365  			Header:         res.Header,
 48366  			HTTPStatusCode: res.StatusCode,
 48367  		},
 48368  	}
 48369  	target := &ret
 48370  	if err := gensupport.DecodeResponse(target, res); err != nil {
 48371  		return nil, err
 48372  	}
 48373  	return ret, nil
 48374  }
 48375  

View as plain text