...

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

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

     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/v2beta1"
    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/v2beta1"
    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:v2beta1"
    97  const apiName = "dialogflow"
    98  const apiVersion = "v2beta1"
    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.ConversationProfiles = NewProjectsConversationProfilesService(s)
   173  	rs.Conversations = NewProjectsConversationsService(s)
   174  	rs.KnowledgeBases = NewProjectsKnowledgeBasesService(s)
   175  	rs.Locations = NewProjectsLocationsService(s)
   176  	rs.Operations = NewProjectsOperationsService(s)
   177  	rs.Suggestions = NewProjectsSuggestionsService(s)
   178  	return rs
   179  }
   180  
   181  type ProjectsService struct {
   182  	s *Service
   183  
   184  	Agent *ProjectsAgentService
   185  
   186  	AnswerRecords *ProjectsAnswerRecordsService
   187  
   188  	ConversationProfiles *ProjectsConversationProfilesService
   189  
   190  	Conversations *ProjectsConversationsService
   191  
   192  	KnowledgeBases *ProjectsKnowledgeBasesService
   193  
   194  	Locations *ProjectsLocationsService
   195  
   196  	Operations *ProjectsOperationsService
   197  
   198  	Suggestions *ProjectsSuggestionsService
   199  }
   200  
   201  func NewProjectsAgentService(s *Service) *ProjectsAgentService {
   202  	rs := &ProjectsAgentService{s: s}
   203  	rs.EntityTypes = NewProjectsAgentEntityTypesService(s)
   204  	rs.Environments = NewProjectsAgentEnvironmentsService(s)
   205  	rs.Intents = NewProjectsAgentIntentsService(s)
   206  	rs.KnowledgeBases = NewProjectsAgentKnowledgeBasesService(s)
   207  	rs.Sessions = NewProjectsAgentSessionsService(s)
   208  	rs.Versions = NewProjectsAgentVersionsService(s)
   209  	return rs
   210  }
   211  
   212  type ProjectsAgentService struct {
   213  	s *Service
   214  
   215  	EntityTypes *ProjectsAgentEntityTypesService
   216  
   217  	Environments *ProjectsAgentEnvironmentsService
   218  
   219  	Intents *ProjectsAgentIntentsService
   220  
   221  	KnowledgeBases *ProjectsAgentKnowledgeBasesService
   222  
   223  	Sessions *ProjectsAgentSessionsService
   224  
   225  	Versions *ProjectsAgentVersionsService
   226  }
   227  
   228  func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService {
   229  	rs := &ProjectsAgentEntityTypesService{s: s}
   230  	rs.Entities = NewProjectsAgentEntityTypesEntitiesService(s)
   231  	return rs
   232  }
   233  
   234  type ProjectsAgentEntityTypesService struct {
   235  	s *Service
   236  
   237  	Entities *ProjectsAgentEntityTypesEntitiesService
   238  }
   239  
   240  func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService {
   241  	rs := &ProjectsAgentEntityTypesEntitiesService{s: s}
   242  	return rs
   243  }
   244  
   245  type ProjectsAgentEntityTypesEntitiesService struct {
   246  	s *Service
   247  }
   248  
   249  func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService {
   250  	rs := &ProjectsAgentEnvironmentsService{s: s}
   251  	rs.Intents = NewProjectsAgentEnvironmentsIntentsService(s)
   252  	rs.Users = NewProjectsAgentEnvironmentsUsersService(s)
   253  	return rs
   254  }
   255  
   256  type ProjectsAgentEnvironmentsService struct {
   257  	s *Service
   258  
   259  	Intents *ProjectsAgentEnvironmentsIntentsService
   260  
   261  	Users *ProjectsAgentEnvironmentsUsersService
   262  }
   263  
   264  func NewProjectsAgentEnvironmentsIntentsService(s *Service) *ProjectsAgentEnvironmentsIntentsService {
   265  	rs := &ProjectsAgentEnvironmentsIntentsService{s: s}
   266  	return rs
   267  }
   268  
   269  type ProjectsAgentEnvironmentsIntentsService struct {
   270  	s *Service
   271  }
   272  
   273  func NewProjectsAgentEnvironmentsUsersService(s *Service) *ProjectsAgentEnvironmentsUsersService {
   274  	rs := &ProjectsAgentEnvironmentsUsersService{s: s}
   275  	rs.Sessions = NewProjectsAgentEnvironmentsUsersSessionsService(s)
   276  	return rs
   277  }
   278  
   279  type ProjectsAgentEnvironmentsUsersService struct {
   280  	s *Service
   281  
   282  	Sessions *ProjectsAgentEnvironmentsUsersSessionsService
   283  }
   284  
   285  func NewProjectsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsService {
   286  	rs := &ProjectsAgentEnvironmentsUsersSessionsService{s: s}
   287  	rs.Contexts = NewProjectsAgentEnvironmentsUsersSessionsContextsService(s)
   288  	rs.EntityTypes = NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s)
   289  	return rs
   290  }
   291  
   292  type ProjectsAgentEnvironmentsUsersSessionsService struct {
   293  	s *Service
   294  
   295  	Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsService
   296  
   297  	EntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
   298  }
   299  
   300  func NewProjectsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsContextsService {
   301  	rs := &ProjectsAgentEnvironmentsUsersSessionsContextsService{s: s}
   302  	return rs
   303  }
   304  
   305  type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {
   306  	s *Service
   307  }
   308  
   309  func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService {
   310  	rs := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
   311  	return rs
   312  }
   313  
   314  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {
   315  	s *Service
   316  }
   317  
   318  func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService {
   319  	rs := &ProjectsAgentIntentsService{s: s}
   320  	return rs
   321  }
   322  
   323  type ProjectsAgentIntentsService struct {
   324  	s *Service
   325  }
   326  
   327  func NewProjectsAgentKnowledgeBasesService(s *Service) *ProjectsAgentKnowledgeBasesService {
   328  	rs := &ProjectsAgentKnowledgeBasesService{s: s}
   329  	rs.Documents = NewProjectsAgentKnowledgeBasesDocumentsService(s)
   330  	return rs
   331  }
   332  
   333  type ProjectsAgentKnowledgeBasesService struct {
   334  	s *Service
   335  
   336  	Documents *ProjectsAgentKnowledgeBasesDocumentsService
   337  }
   338  
   339  func NewProjectsAgentKnowledgeBasesDocumentsService(s *Service) *ProjectsAgentKnowledgeBasesDocumentsService {
   340  	rs := &ProjectsAgentKnowledgeBasesDocumentsService{s: s}
   341  	return rs
   342  }
   343  
   344  type ProjectsAgentKnowledgeBasesDocumentsService struct {
   345  	s *Service
   346  }
   347  
   348  func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService {
   349  	rs := &ProjectsAgentSessionsService{s: s}
   350  	rs.Contexts = NewProjectsAgentSessionsContextsService(s)
   351  	rs.EntityTypes = NewProjectsAgentSessionsEntityTypesService(s)
   352  	return rs
   353  }
   354  
   355  type ProjectsAgentSessionsService struct {
   356  	s *Service
   357  
   358  	Contexts *ProjectsAgentSessionsContextsService
   359  
   360  	EntityTypes *ProjectsAgentSessionsEntityTypesService
   361  }
   362  
   363  func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService {
   364  	rs := &ProjectsAgentSessionsContextsService{s: s}
   365  	return rs
   366  }
   367  
   368  type ProjectsAgentSessionsContextsService struct {
   369  	s *Service
   370  }
   371  
   372  func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService {
   373  	rs := &ProjectsAgentSessionsEntityTypesService{s: s}
   374  	return rs
   375  }
   376  
   377  type ProjectsAgentSessionsEntityTypesService struct {
   378  	s *Service
   379  }
   380  
   381  func NewProjectsAgentVersionsService(s *Service) *ProjectsAgentVersionsService {
   382  	rs := &ProjectsAgentVersionsService{s: s}
   383  	return rs
   384  }
   385  
   386  type ProjectsAgentVersionsService struct {
   387  	s *Service
   388  }
   389  
   390  func NewProjectsAnswerRecordsService(s *Service) *ProjectsAnswerRecordsService {
   391  	rs := &ProjectsAnswerRecordsService{s: s}
   392  	return rs
   393  }
   394  
   395  type ProjectsAnswerRecordsService struct {
   396  	s *Service
   397  }
   398  
   399  func NewProjectsConversationProfilesService(s *Service) *ProjectsConversationProfilesService {
   400  	rs := &ProjectsConversationProfilesService{s: s}
   401  	return rs
   402  }
   403  
   404  type ProjectsConversationProfilesService struct {
   405  	s *Service
   406  }
   407  
   408  func NewProjectsConversationsService(s *Service) *ProjectsConversationsService {
   409  	rs := &ProjectsConversationsService{s: s}
   410  	rs.Messages = NewProjectsConversationsMessagesService(s)
   411  	rs.Participants = NewProjectsConversationsParticipantsService(s)
   412  	rs.Suggestions = NewProjectsConversationsSuggestionsService(s)
   413  	return rs
   414  }
   415  
   416  type ProjectsConversationsService struct {
   417  	s *Service
   418  
   419  	Messages *ProjectsConversationsMessagesService
   420  
   421  	Participants *ProjectsConversationsParticipantsService
   422  
   423  	Suggestions *ProjectsConversationsSuggestionsService
   424  }
   425  
   426  func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService {
   427  	rs := &ProjectsConversationsMessagesService{s: s}
   428  	return rs
   429  }
   430  
   431  type ProjectsConversationsMessagesService struct {
   432  	s *Service
   433  }
   434  
   435  func NewProjectsConversationsParticipantsService(s *Service) *ProjectsConversationsParticipantsService {
   436  	rs := &ProjectsConversationsParticipantsService{s: s}
   437  	rs.Suggestions = NewProjectsConversationsParticipantsSuggestionsService(s)
   438  	return rs
   439  }
   440  
   441  type ProjectsConversationsParticipantsService struct {
   442  	s *Service
   443  
   444  	Suggestions *ProjectsConversationsParticipantsSuggestionsService
   445  }
   446  
   447  func NewProjectsConversationsParticipantsSuggestionsService(s *Service) *ProjectsConversationsParticipantsSuggestionsService {
   448  	rs := &ProjectsConversationsParticipantsSuggestionsService{s: s}
   449  	return rs
   450  }
   451  
   452  type ProjectsConversationsParticipantsSuggestionsService struct {
   453  	s *Service
   454  }
   455  
   456  func NewProjectsConversationsSuggestionsService(s *Service) *ProjectsConversationsSuggestionsService {
   457  	rs := &ProjectsConversationsSuggestionsService{s: s}
   458  	return rs
   459  }
   460  
   461  type ProjectsConversationsSuggestionsService struct {
   462  	s *Service
   463  }
   464  
   465  func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService {
   466  	rs := &ProjectsKnowledgeBasesService{s: s}
   467  	rs.Documents = NewProjectsKnowledgeBasesDocumentsService(s)
   468  	return rs
   469  }
   470  
   471  type ProjectsKnowledgeBasesService struct {
   472  	s *Service
   473  
   474  	Documents *ProjectsKnowledgeBasesDocumentsService
   475  }
   476  
   477  func NewProjectsKnowledgeBasesDocumentsService(s *Service) *ProjectsKnowledgeBasesDocumentsService {
   478  	rs := &ProjectsKnowledgeBasesDocumentsService{s: s}
   479  	return rs
   480  }
   481  
   482  type ProjectsKnowledgeBasesDocumentsService struct {
   483  	s *Service
   484  }
   485  
   486  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   487  	rs := &ProjectsLocationsService{s: s}
   488  	rs.Agent = NewProjectsLocationsAgentService(s)
   489  	rs.AnswerRecords = NewProjectsLocationsAnswerRecordsService(s)
   490  	rs.ConversationProfiles = NewProjectsLocationsConversationProfilesService(s)
   491  	rs.Conversations = NewProjectsLocationsConversationsService(s)
   492  	rs.KnowledgeBases = NewProjectsLocationsKnowledgeBasesService(s)
   493  	rs.Operations = NewProjectsLocationsOperationsService(s)
   494  	rs.Suggestions = NewProjectsLocationsSuggestionsService(s)
   495  	return rs
   496  }
   497  
   498  type ProjectsLocationsService struct {
   499  	s *Service
   500  
   501  	Agent *ProjectsLocationsAgentService
   502  
   503  	AnswerRecords *ProjectsLocationsAnswerRecordsService
   504  
   505  	ConversationProfiles *ProjectsLocationsConversationProfilesService
   506  
   507  	Conversations *ProjectsLocationsConversationsService
   508  
   509  	KnowledgeBases *ProjectsLocationsKnowledgeBasesService
   510  
   511  	Operations *ProjectsLocationsOperationsService
   512  
   513  	Suggestions *ProjectsLocationsSuggestionsService
   514  }
   515  
   516  func NewProjectsLocationsAgentService(s *Service) *ProjectsLocationsAgentService {
   517  	rs := &ProjectsLocationsAgentService{s: s}
   518  	rs.EntityTypes = NewProjectsLocationsAgentEntityTypesService(s)
   519  	rs.Environments = NewProjectsLocationsAgentEnvironmentsService(s)
   520  	rs.Intents = NewProjectsLocationsAgentIntentsService(s)
   521  	rs.Sessions = NewProjectsLocationsAgentSessionsService(s)
   522  	rs.Versions = NewProjectsLocationsAgentVersionsService(s)
   523  	return rs
   524  }
   525  
   526  type ProjectsLocationsAgentService struct {
   527  	s *Service
   528  
   529  	EntityTypes *ProjectsLocationsAgentEntityTypesService
   530  
   531  	Environments *ProjectsLocationsAgentEnvironmentsService
   532  
   533  	Intents *ProjectsLocationsAgentIntentsService
   534  
   535  	Sessions *ProjectsLocationsAgentSessionsService
   536  
   537  	Versions *ProjectsLocationsAgentVersionsService
   538  }
   539  
   540  func NewProjectsLocationsAgentEntityTypesService(s *Service) *ProjectsLocationsAgentEntityTypesService {
   541  	rs := &ProjectsLocationsAgentEntityTypesService{s: s}
   542  	rs.Entities = NewProjectsLocationsAgentEntityTypesEntitiesService(s)
   543  	return rs
   544  }
   545  
   546  type ProjectsLocationsAgentEntityTypesService struct {
   547  	s *Service
   548  
   549  	Entities *ProjectsLocationsAgentEntityTypesEntitiesService
   550  }
   551  
   552  func NewProjectsLocationsAgentEntityTypesEntitiesService(s *Service) *ProjectsLocationsAgentEntityTypesEntitiesService {
   553  	rs := &ProjectsLocationsAgentEntityTypesEntitiesService{s: s}
   554  	return rs
   555  }
   556  
   557  type ProjectsLocationsAgentEntityTypesEntitiesService struct {
   558  	s *Service
   559  }
   560  
   561  func NewProjectsLocationsAgentEnvironmentsService(s *Service) *ProjectsLocationsAgentEnvironmentsService {
   562  	rs := &ProjectsLocationsAgentEnvironmentsService{s: s}
   563  	rs.Intents = NewProjectsLocationsAgentEnvironmentsIntentsService(s)
   564  	rs.Users = NewProjectsLocationsAgentEnvironmentsUsersService(s)
   565  	return rs
   566  }
   567  
   568  type ProjectsLocationsAgentEnvironmentsService struct {
   569  	s *Service
   570  
   571  	Intents *ProjectsLocationsAgentEnvironmentsIntentsService
   572  
   573  	Users *ProjectsLocationsAgentEnvironmentsUsersService
   574  }
   575  
   576  func NewProjectsLocationsAgentEnvironmentsIntentsService(s *Service) *ProjectsLocationsAgentEnvironmentsIntentsService {
   577  	rs := &ProjectsLocationsAgentEnvironmentsIntentsService{s: s}
   578  	return rs
   579  }
   580  
   581  type ProjectsLocationsAgentEnvironmentsIntentsService struct {
   582  	s *Service
   583  }
   584  
   585  func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService {
   586  	rs := &ProjectsLocationsAgentEnvironmentsUsersService{s: s}
   587  	rs.Sessions = NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s)
   588  	return rs
   589  }
   590  
   591  type ProjectsLocationsAgentEnvironmentsUsersService struct {
   592  	s *Service
   593  
   594  	Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService
   595  }
   596  
   597  func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService {
   598  	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsService{s: s}
   599  	rs.Contexts = NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s)
   600  	rs.EntityTypes = NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s)
   601  	return rs
   602  }
   603  
   604  type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {
   605  	s *Service
   606  
   607  	Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService
   608  
   609  	EntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService
   610  }
   611  
   612  func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService {
   613  	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService{s: s}
   614  	return rs
   615  }
   616  
   617  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {
   618  	s *Service
   619  }
   620  
   621  func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService {
   622  	rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
   623  	return rs
   624  }
   625  
   626  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {
   627  	s *Service
   628  }
   629  
   630  func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService {
   631  	rs := &ProjectsLocationsAgentIntentsService{s: s}
   632  	return rs
   633  }
   634  
   635  type ProjectsLocationsAgentIntentsService struct {
   636  	s *Service
   637  }
   638  
   639  func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService {
   640  	rs := &ProjectsLocationsAgentSessionsService{s: s}
   641  	rs.Contexts = NewProjectsLocationsAgentSessionsContextsService(s)
   642  	rs.EntityTypes = NewProjectsLocationsAgentSessionsEntityTypesService(s)
   643  	return rs
   644  }
   645  
   646  type ProjectsLocationsAgentSessionsService struct {
   647  	s *Service
   648  
   649  	Contexts *ProjectsLocationsAgentSessionsContextsService
   650  
   651  	EntityTypes *ProjectsLocationsAgentSessionsEntityTypesService
   652  }
   653  
   654  func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService {
   655  	rs := &ProjectsLocationsAgentSessionsContextsService{s: s}
   656  	return rs
   657  }
   658  
   659  type ProjectsLocationsAgentSessionsContextsService struct {
   660  	s *Service
   661  }
   662  
   663  func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService {
   664  	rs := &ProjectsLocationsAgentSessionsEntityTypesService{s: s}
   665  	return rs
   666  }
   667  
   668  type ProjectsLocationsAgentSessionsEntityTypesService struct {
   669  	s *Service
   670  }
   671  
   672  func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService {
   673  	rs := &ProjectsLocationsAgentVersionsService{s: s}
   674  	return rs
   675  }
   676  
   677  type ProjectsLocationsAgentVersionsService struct {
   678  	s *Service
   679  }
   680  
   681  func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService {
   682  	rs := &ProjectsLocationsAnswerRecordsService{s: s}
   683  	return rs
   684  }
   685  
   686  type ProjectsLocationsAnswerRecordsService struct {
   687  	s *Service
   688  }
   689  
   690  func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService {
   691  	rs := &ProjectsLocationsConversationProfilesService{s: s}
   692  	return rs
   693  }
   694  
   695  type ProjectsLocationsConversationProfilesService struct {
   696  	s *Service
   697  }
   698  
   699  func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
   700  	rs := &ProjectsLocationsConversationsService{s: s}
   701  	rs.Messages = NewProjectsLocationsConversationsMessagesService(s)
   702  	rs.Participants = NewProjectsLocationsConversationsParticipantsService(s)
   703  	rs.Suggestions = NewProjectsLocationsConversationsSuggestionsService(s)
   704  	return rs
   705  }
   706  
   707  type ProjectsLocationsConversationsService struct {
   708  	s *Service
   709  
   710  	Messages *ProjectsLocationsConversationsMessagesService
   711  
   712  	Participants *ProjectsLocationsConversationsParticipantsService
   713  
   714  	Suggestions *ProjectsLocationsConversationsSuggestionsService
   715  }
   716  
   717  func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService {
   718  	rs := &ProjectsLocationsConversationsMessagesService{s: s}
   719  	return rs
   720  }
   721  
   722  type ProjectsLocationsConversationsMessagesService struct {
   723  	s *Service
   724  }
   725  
   726  func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService {
   727  	rs := &ProjectsLocationsConversationsParticipantsService{s: s}
   728  	rs.Suggestions = NewProjectsLocationsConversationsParticipantsSuggestionsService(s)
   729  	return rs
   730  }
   731  
   732  type ProjectsLocationsConversationsParticipantsService struct {
   733  	s *Service
   734  
   735  	Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService
   736  }
   737  
   738  func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService {
   739  	rs := &ProjectsLocationsConversationsParticipantsSuggestionsService{s: s}
   740  	return rs
   741  }
   742  
   743  type ProjectsLocationsConversationsParticipantsSuggestionsService struct {
   744  	s *Service
   745  }
   746  
   747  func NewProjectsLocationsConversationsSuggestionsService(s *Service) *ProjectsLocationsConversationsSuggestionsService {
   748  	rs := &ProjectsLocationsConversationsSuggestionsService{s: s}
   749  	return rs
   750  }
   751  
   752  type ProjectsLocationsConversationsSuggestionsService struct {
   753  	s *Service
   754  }
   755  
   756  func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService {
   757  	rs := &ProjectsLocationsKnowledgeBasesService{s: s}
   758  	rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s)
   759  	return rs
   760  }
   761  
   762  type ProjectsLocationsKnowledgeBasesService struct {
   763  	s *Service
   764  
   765  	Documents *ProjectsLocationsKnowledgeBasesDocumentsService
   766  }
   767  
   768  func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService {
   769  	rs := &ProjectsLocationsKnowledgeBasesDocumentsService{s: s}
   770  	return rs
   771  }
   772  
   773  type ProjectsLocationsKnowledgeBasesDocumentsService struct {
   774  	s *Service
   775  }
   776  
   777  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   778  	rs := &ProjectsLocationsOperationsService{s: s}
   779  	return rs
   780  }
   781  
   782  type ProjectsLocationsOperationsService struct {
   783  	s *Service
   784  }
   785  
   786  func NewProjectsLocationsSuggestionsService(s *Service) *ProjectsLocationsSuggestionsService {
   787  	rs := &ProjectsLocationsSuggestionsService{s: s}
   788  	return rs
   789  }
   790  
   791  type ProjectsLocationsSuggestionsService struct {
   792  	s *Service
   793  }
   794  
   795  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   796  	rs := &ProjectsOperationsService{s: s}
   797  	return rs
   798  }
   799  
   800  type ProjectsOperationsService struct {
   801  	s *Service
   802  }
   803  
   804  func NewProjectsSuggestionsService(s *Service) *ProjectsSuggestionsService {
   805  	rs := &ProjectsSuggestionsService{s: s}
   806  	return rs
   807  }
   808  
   809  type ProjectsSuggestionsService struct {
   810  	s *Service
   811  }
   812  
   813  // GoogleCloudDialogflowCxV3AdvancedSettings: Hierarchical advanced settings
   814  // for agent/flow/page/fulfillment/parameter. Settings exposed at lower level
   815  // overrides the settings exposed at higher level. Overriding occurs at the
   816  // sub-setting level. For example, the playback_interruption_settings at
   817  // fulfillment level only overrides the playback_interruption_settings at the
   818  // agent level, leaving other settings at the agent level unchanged. DTMF
   819  // settings does not override each other. DTMF settings set at different levels
   820  // define DTMF detections running in parallel. Hierarchy:
   821  // Agent->Flow->Page->Fulfillment/Parameter.
   822  type GoogleCloudDialogflowCxV3AdvancedSettings struct {
   823  	// AudioExportGcsDestination: If present, incoming audio is exported by
   824  	// Dialogflow to the configured Google Cloud Storage destination. Exposed at
   825  	// the following levels: - Agent level - Flow level
   826  	AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
   827  	// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent
   828  	// level - Flow level - Page level - Parameter level.
   829  	DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
   830  	// LoggingSettings: Settings for logging. Settings for Dialogflow History,
   831  	// Contact Center messages, StackDriver logs, and speech logging. Exposed at
   832  	// the following levels: - Agent level.
   833  	LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
   834  	// SpeechSettings: Settings for speech to text detection. Exposed at the
   835  	// following levels: - Agent level - Flow level - Page level - Parameter level
   836  	SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
   837  	// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")
   838  	// to unconditionally include in API requests. By default, fields with empty or
   839  	// default values are omitted from API requests. See
   840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   841  	// details.
   842  	ForceSendFields []string `json:"-"`
   843  	// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to
   844  	// include in API requests with the JSON null value. By default, fields with
   845  	// empty values are omitted from API requests. See
   846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   847  	NullFields []string `json:"-"`
   848  }
   849  
   850  func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
   851  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
   852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   853  }
   854  
   855  // GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings: Define behaviors for
   856  // DTMF (dual tone multi frequency).
   857  type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
   858  	// Enabled: If true, incoming audio is processed for DTMF (dual tone multi
   859  	// frequency) events. For example, if the caller presses a button on their
   860  	// telephone keypad and DTMF processing is enabled, Dialogflow will detect the
   861  	// event (e.g. a "3" was pressed) in the incoming audio and pass the event to
   862  	// the bot to drive business logic (e.g. when 3 is pressed, return the account
   863  	// balance).
   864  	Enabled bool `json:"enabled,omitempty"`
   865  	// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input
   866  	// to regex.
   867  	EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
   868  	// FinishDigit: The digit that terminates a DTMF digit sequence.
   869  	FinishDigit string `json:"finishDigit,omitempty"`
   870  	// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf
   871  	// input to regex.
   872  	InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
   873  	// MaxDigits: Max length of DTMF digits.
   874  	MaxDigits int64 `json:"maxDigits,omitempty"`
   875  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
   876  	// include in API requests. By default, fields with empty or default values are
   877  	// omitted from API requests. See
   878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   879  	// details.
   880  	ForceSendFields []string `json:"-"`
   881  	// NullFields is a list of field names (e.g. "Enabled") to include in API
   882  	// requests with the JSON null value. By default, fields with empty values are
   883  	// omitted from API requests. See
   884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   885  	NullFields []string `json:"-"`
   886  }
   887  
   888  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
   889  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
   890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   891  }
   892  
   893  // GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviors
   894  // on logging.
   895  type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
   896  	// EnableInteractionLogging: If true, DF Interaction logging is currently
   897  	// enabled.
   898  	EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
   899  	// EnableStackdriverLogging: If true, StackDriver logging is currently enabled.
   900  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
   901  	// ForceSendFields is a list of field names (e.g. "EnableInteractionLogging")
   902  	// to unconditionally include in API requests. By default, fields with empty or
   903  	// default values are omitted from API requests. See
   904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   905  	// details.
   906  	ForceSendFields []string `json:"-"`
   907  	// NullFields is a list of field names (e.g. "EnableInteractionLogging") to
   908  	// include in API requests with the JSON null value. By default, fields with
   909  	// empty values are omitted from API requests. See
   910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   911  	NullFields []string `json:"-"`
   912  }
   913  
   914  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
   915  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
   916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   917  }
   918  
   919  // GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings: Define behaviors of
   920  // speech to text detection.
   921  type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
   922  	// EndpointerSensitivity: Sensitivity of the speech model that detects the end
   923  	// of speech. Scale from 0 to 100.
   924  	EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
   925  	// Models: Mapping from language to Speech-to-Text model. The mapped
   926  	// Speech-to-Text model will be selected for requests from its corresponding
   927  	// language. For more information, see Speech models
   928  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
   929  	Models map[string]string `json:"models,omitempty"`
   930  	// NoSpeechTimeout: Timeout before detecting no speech.
   931  	NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
   932  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
   933  	// endpointer sensitivy as seconds of timeout value.
   934  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
   935  	// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to
   936  	// unconditionally include in API requests. By default, fields with empty or
   937  	// default values are omitted from API requests. See
   938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   939  	// details.
   940  	ForceSendFields []string `json:"-"`
   941  	// NullFields is a list of field names (e.g. "EndpointerSensitivity") to
   942  	// include in API requests with the JSON null value. By default, fields with
   943  	// empty values are omitted from API requests. See
   944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   945  	NullFields []string `json:"-"`
   946  }
   947  
   948  func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
   949  	type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
   950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   951  }
   952  
   953  // GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech audio to
   954  // be processed.
   955  type GoogleCloudDialogflowCxV3AudioInput struct {
   956  	// Audio: The natural language speech audio to be processed. A single request
   957  	// can contain up to 2 minutes of speech audio data. The transcribed text
   958  	// cannot contain more than 256 bytes. For non-streaming audio detect intent,
   959  	// both `config` and `audio` must be provided. For streaming audio detect
   960  	// intent, `config` must be provided in the first request and `audio` must be
   961  	// provided in all following requests.
   962  	Audio string `json:"audio,omitempty"`
   963  	// Config: Required. Instructs the speech recognizer how to process the speech
   964  	// audio.
   965  	Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
   966  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
   967  	// include in API requests. By default, fields with empty or default values are
   968  	// omitted from API requests. See
   969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   970  	// details.
   971  	ForceSendFields []string `json:"-"`
   972  	// NullFields is a list of field names (e.g. "Audio") to include in API
   973  	// requests with the JSON null value. By default, fields with empty values are
   974  	// omitted from API requests. See
   975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   976  	NullFields []string `json:"-"`
   977  }
   978  
   979  func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
   980  	type NoMethod GoogleCloudDialogflowCxV3AudioInput
   981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   982  }
   983  
   984  // GoogleCloudDialogflowCxV3BargeInConfig: Configuration of the barge-in
   985  // behavior. Barge-in instructs the API to return a detected utterance at a
   986  // proper time while the client is playing back the response audio from a
   987  // previous request. When the client sees the utterance, it should stop the
   988  // playback and immediately get ready for receiving the responses for the
   989  // current request. The barge-in handling requires the client to start
   990  // streaming audio input as soon as it starts playing back the audio from the
   991  // previous response. The playback is modeled into two phases: * No barge-in
   992  // phase: which goes first and during which speech detection should not be
   993  // carried out. * Barge-in phase: which follows the no barge-in phase and
   994  // during which the API starts speech detection and may inform the client that
   995  // an utterance has been detected. Note that no-speech event is not expected in
   996  // this phase. The client provides this configuration in terms of the durations
   997  // of those two phases. The durations are measured in terms of the audio length
   998  // from the the start of the input audio. No-speech event is a response with
   999  // END_OF_UTTERANCE without any transcript following up.
  1000  type GoogleCloudDialogflowCxV3BargeInConfig struct {
  1001  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
  1002  	// beginning of the input audio.
  1003  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
  1004  	// TotalDuration: Total duration for the playback at the beginning of the input
  1005  	// audio.
  1006  	TotalDuration string `json:"totalDuration,omitempty"`
  1007  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") 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. "NoBargeInDuration") to include in
  1014  	// API requests with the JSON null value. By default, fields with empty values
  1015  	// 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 *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
  1021  	type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
  1022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1023  }
  1024  
  1025  // GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned for
  1026  // the TestCases.BatchRunTestCases long running operation.
  1027  type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
  1028  	// Errors: The test errors.
  1029  	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
  1030  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  1031  	// include in API requests. By default, fields with empty or default values are
  1032  	// omitted from API requests. See
  1033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1034  	// details.
  1035  	ForceSendFields []string `json:"-"`
  1036  	// NullFields is a list of field names (e.g. "Errors") to include in API
  1037  	// requests with the JSON null value. By default, fields with empty values are
  1038  	// omitted from API requests. See
  1039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1040  	NullFields []string `json:"-"`
  1041  }
  1042  
  1043  func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
  1044  	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
  1045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1046  }
  1047  
  1048  // GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response message for
  1049  // TestCases.BatchRunTestCases.
  1050  type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
  1051  	// Results: The test case results. The detailed conversation turns are empty in
  1052  	// this response.
  1053  	Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
  1054  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
  1055  	// include in API requests. By default, fields with empty or default values are
  1056  	// omitted from API requests. See
  1057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1058  	// details.
  1059  	ForceSendFields []string `json:"-"`
  1060  	// NullFields is a list of field names (e.g. "Results") to include in API
  1061  	// requests with the JSON null value. By default, fields with empty values are
  1062  	// omitted from API requests. See
  1063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1064  	NullFields []string `json:"-"`
  1065  }
  1066  
  1067  func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
  1068  	type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
  1069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1070  }
  1071  
  1072  // GoogleCloudDialogflowCxV3ContinuousTestResult: Represents a result from
  1073  // running a test case in an agent environment.
  1074  type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
  1075  	// Name: The resource name for the continuous test result. Format:
  1076  	// `projects//locations//agents//environments//continuousTestResults/`.
  1077  	Name string `json:"name,omitempty"`
  1078  	// Result: The result of this continuous test run, i.e. whether all the tests
  1079  	// in this continuous test run pass or not.
  1080  	//
  1081  	// Possible values:
  1082  	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be
  1083  	// used.
  1084  	//   "PASSED" - All the tests passed.
  1085  	//   "FAILED" - At least one test did not pass.
  1086  	Result string `json:"result,omitempty"`
  1087  	// RunTime: Time when the continuous testing run starts.
  1088  	RunTime string `json:"runTime,omitempty"`
  1089  	// TestCaseResults: A list of individual test case results names in this
  1090  	// continuous test run.
  1091  	TestCaseResults []string `json:"testCaseResults,omitempty"`
  1092  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1093  	// include in API requests. By default, fields with empty or default values are
  1094  	// omitted from API requests. See
  1095  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1096  	// details.
  1097  	ForceSendFields []string `json:"-"`
  1098  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1099  	// with the JSON null value. By default, fields with empty values are omitted
  1100  	// from API requests. See
  1101  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1102  	NullFields []string `json:"-"`
  1103  }
  1104  
  1105  func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
  1106  	type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
  1107  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1108  }
  1109  
  1110  // GoogleCloudDialogflowCxV3ConversationSignals: This message is used to hold
  1111  // all the Conversation Signals data, which will be converted to JSON and
  1112  // exported to BigQuery.
  1113  type GoogleCloudDialogflowCxV3ConversationSignals struct {
  1114  	// TurnSignals: Required. Turn signals for the current turn.
  1115  	TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
  1116  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
  1117  	// unconditionally include in API requests. By default, fields with empty or
  1118  	// default values are omitted from API requests. See
  1119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1120  	// details.
  1121  	ForceSendFields []string `json:"-"`
  1122  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
  1123  	// requests with the JSON null value. By default, fields with empty values are
  1124  	// omitted from API requests. See
  1125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1126  	NullFields []string `json:"-"`
  1127  }
  1128  
  1129  func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
  1130  	type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
  1131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1132  }
  1133  
  1134  // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a human
  1135  // and virtual agent. The human provides some input and the virtual agent
  1136  // provides a response.
  1137  type GoogleCloudDialogflowCxV3ConversationTurn struct {
  1138  	// UserInput: The user input.
  1139  	UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
  1140  	// VirtualAgentOutput: The virtual agent output.
  1141  	VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
  1142  	// ForceSendFields is a list of field names (e.g. "UserInput") to
  1143  	// unconditionally include in API requests. By default, fields with empty or
  1144  	// default values are omitted from API requests. See
  1145  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1146  	// details.
  1147  	ForceSendFields []string `json:"-"`
  1148  	// NullFields is a list of field names (e.g. "UserInput") to include in API
  1149  	// requests with the JSON null value. By default, fields with empty values are
  1150  	// omitted from API requests. See
  1151  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1152  	NullFields []string `json:"-"`
  1153  }
  1154  
  1155  func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
  1156  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
  1157  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1158  }
  1159  
  1160  // GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from the human
  1161  // user.
  1162  type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
  1163  	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
  1164  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
  1165  	// InjectedParameters: Parameters that need to be injected into the
  1166  	// conversation during intent detection.
  1167  	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
  1168  	// Input: Supports text input, event input, dtmf input in the test case.
  1169  	Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
  1170  	// IsWebhookEnabled: If webhooks should be allowed to trigger in response to
  1171  	// the user utterance. Often if parameters are injected, webhooks should not be
  1172  	// enabled.
  1173  	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
  1174  	// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  1175  	// unconditionally include in API requests. By default, fields with empty or
  1176  	// default values are omitted from API requests. See
  1177  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1178  	// details.
  1179  	ForceSendFields []string `json:"-"`
  1180  	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  1181  	// include in API requests with the JSON null value. By default, fields with
  1182  	// empty values are omitted from API requests. See
  1183  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1184  	NullFields []string `json:"-"`
  1185  }
  1186  
  1187  func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
  1188  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
  1189  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1190  }
  1191  
  1192  // GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The output from
  1193  // the virtual agent.
  1194  type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
  1195  	// CurrentPage: The Page on which the utterance was spoken. Only name and
  1196  	// displayName will be set.
  1197  	CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
  1198  	// DiagnosticInfo: Required. Input only. The diagnostic info output for the
  1199  	// turn. Required to calculate the testing coverage.
  1200  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  1201  	// Differences: Output only. If this is part of a result conversation turn, the
  1202  	// list of differences between the original run and the replay for this output,
  1203  	// if any.
  1204  	Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
  1205  	// SessionParameters: The session parameters available to the bot at this
  1206  	// point.
  1207  	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
  1208  	// Status: Response error from the agent in the test result. If set, other
  1209  	// output is empty.
  1210  	Status *GoogleRpcStatus `json:"status,omitempty"`
  1211  	// TextResponses: The text responses from the agent for the turn.
  1212  	TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
  1213  	// TriggeredIntent: The Intent that triggered the response. Only name and
  1214  	// displayName will be set.
  1215  	TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
  1216  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  1217  	// unconditionally include in API requests. By default, fields with empty or
  1218  	// default values are omitted from API requests. See
  1219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1220  	// details.
  1221  	ForceSendFields []string `json:"-"`
  1222  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  1223  	// requests with the JSON null value. By default, fields with empty values are
  1224  	// omitted from API requests. See
  1225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1226  	NullFields []string `json:"-"`
  1227  }
  1228  
  1229  func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
  1230  	type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
  1231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1232  }
  1233  
  1234  // GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata: Metadata for
  1235  // CreateDocument operation.
  1236  type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
  1237  	// GenericMetadata: The generic information of the operation.
  1238  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  1239  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  1240  	// unconditionally include in API requests. By default, fields with empty or
  1241  	// default values are omitted from API requests. See
  1242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1243  	// details.
  1244  	ForceSendFields []string `json:"-"`
  1245  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  1246  	// API requests with the JSON null value. By default, fields with empty values
  1247  	// are omitted from API requests. See
  1248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1249  	NullFields []string `json:"-"`
  1250  }
  1251  
  1252  func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  1253  	type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
  1254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1255  }
  1256  
  1257  // GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata associated
  1258  // with the long running operation for Versions.CreateVersion.
  1259  type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
  1260  	// Version: Name of the created version. Format:
  1261  	// `projects//locations//agents//flows//versions/`.
  1262  	Version string `json:"version,omitempty"`
  1263  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  1264  	// include in API requests. By default, fields with empty or default values are
  1265  	// omitted from API requests. See
  1266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1267  	// details.
  1268  	ForceSendFields []string `json:"-"`
  1269  	// NullFields is a list of field names (e.g. "Version") to include in API
  1270  	// requests with the JSON null value. By default, fields with empty values are
  1271  	// omitted from API requests. See
  1272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1273  	NullFields []string `json:"-"`
  1274  }
  1275  
  1276  func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
  1277  	type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
  1278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1279  }
  1280  
  1281  // GoogleCloudDialogflowCxV3DataStoreConnection: A data store connection. It
  1282  // represents a data store in Discovery Engine and the type of the contents it
  1283  // contains.
  1284  type GoogleCloudDialogflowCxV3DataStoreConnection struct {
  1285  	// DataStore: The full name of the referenced data store. Formats:
  1286  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  1287  	// {data_store}`
  1288  	// `projects/{project}/locations/{location}/dataStores/{data_store}`
  1289  	DataStore string `json:"dataStore,omitempty"`
  1290  	// DataStoreType: The type of the connected data store.
  1291  	//
  1292  	// Possible values:
  1293  	//   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
  1294  	// the data store type is not specified, so it will not be used during search.
  1295  	//   "PUBLIC_WEB" - A data store that contains public web content.
  1296  	//   "UNSTRUCTURED" - A data store that contains unstructured private data.
  1297  	//   "STRUCTURED" - A data store that contains structured data (for example
  1298  	// FAQ).
  1299  	DataStoreType string `json:"dataStoreType,omitempty"`
  1300  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  1301  	// unconditionally include in API requests. By default, fields with empty or
  1302  	// default values are omitted from API requests. See
  1303  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1304  	// details.
  1305  	ForceSendFields []string `json:"-"`
  1306  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  1307  	// requests with the JSON null value. By default, fields with empty values are
  1308  	// omitted from API requests. See
  1309  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1310  	NullFields []string `json:"-"`
  1311  }
  1312  
  1313  func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
  1314  	type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
  1315  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1316  }
  1317  
  1318  // GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata: Metadata for
  1319  // DeleteDocument operation.
  1320  type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
  1321  	// GenericMetadata: The generic information of the operation.
  1322  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  1323  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  1324  	// unconditionally include in API requests. By default, fields with empty or
  1325  	// default values are omitted from API requests. See
  1326  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1327  	// details.
  1328  	ForceSendFields []string `json:"-"`
  1329  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  1330  	// API requests with the JSON null value. By default, fields with empty values
  1331  	// are omitted from API requests. See
  1332  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1333  	NullFields []string `json:"-"`
  1334  }
  1335  
  1336  func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  1337  	type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
  1338  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1339  }
  1340  
  1341  // GoogleCloudDialogflowCxV3DeployFlowMetadata: Metadata returned for the
  1342  // Environments.DeployFlow long running operation.
  1343  type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
  1344  	// TestErrors: Errors of running deployment tests.
  1345  	TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
  1346  	// ForceSendFields is a list of field names (e.g. "TestErrors") to
  1347  	// unconditionally include in API requests. By default, fields with empty or
  1348  	// default values are omitted from API requests. See
  1349  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1350  	// details.
  1351  	ForceSendFields []string `json:"-"`
  1352  	// NullFields is a list of field names (e.g. "TestErrors") to include in API
  1353  	// requests with the JSON null value. By default, fields with empty values are
  1354  	// omitted from API requests. See
  1355  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1356  	NullFields []string `json:"-"`
  1357  }
  1358  
  1359  func (s *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
  1360  	type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
  1361  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1362  }
  1363  
  1364  // GoogleCloudDialogflowCxV3DeployFlowResponse: The response message for
  1365  // Environments.DeployFlow.
  1366  type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
  1367  	// Deployment: The name of the flow version Deployment. Format:
  1368  	// `projects//locations//agents// environments//deployments/`.
  1369  	Deployment string `json:"deployment,omitempty"`
  1370  	// Environment: The updated environment where the flow is deployed.
  1371  	Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
  1372  	// ForceSendFields is a list of field names (e.g. "Deployment") 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. "Deployment") 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 *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
  1386  	type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
  1387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1388  }
  1389  
  1390  // GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf event.
  1391  type GoogleCloudDialogflowCxV3DtmfInput struct {
  1392  	// Digits: The dtmf digits.
  1393  	Digits string `json:"digits,omitempty"`
  1394  	// FinishDigit: The finish digit (if any).
  1395  	FinishDigit string `json:"finishDigit,omitempty"`
  1396  	// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally
  1397  	// include in API requests. By default, fields with empty or default values are
  1398  	// omitted from API requests. See
  1399  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1400  	// details.
  1401  	ForceSendFields []string `json:"-"`
  1402  	// NullFields is a list of field names (e.g. "Digits") to include in API
  1403  	// requests with the JSON null value. By default, fields with empty values are
  1404  	// omitted from API requests. See
  1405  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1406  	NullFields []string `json:"-"`
  1407  }
  1408  
  1409  func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
  1410  	type NoMethod GoogleCloudDialogflowCxV3DtmfInput
  1411  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1412  }
  1413  
  1414  // GoogleCloudDialogflowCxV3Environment: Represents an environment for an
  1415  // agent. You can create multiple versions of your agent and publish them to
  1416  // separate environments. When you edit an agent, you are editing the draft
  1417  // agent. At any point, you can save the draft agent as an agent version, which
  1418  // is an immutable snapshot of your agent. When you save the draft agent, it is
  1419  // published to the default environment. When you create agent versions, you
  1420  // can publish them to custom environments. You can create a variety of custom
  1421  // environments for testing, development, production, etc.
  1422  type GoogleCloudDialogflowCxV3Environment struct {
  1423  	// Description: The human-readable description of the environment. The maximum
  1424  	// length is 500 characters. If exceeded, the request is rejected.
  1425  	Description string `json:"description,omitempty"`
  1426  	// DisplayName: Required. The human-readable name of the environment (unique in
  1427  	// an agent). Limit of 64 characters.
  1428  	DisplayName string `json:"displayName,omitempty"`
  1429  	// Name: The name of the environment. Format:
  1430  	// `projects//locations//agents//environments/`.
  1431  	Name string `json:"name,omitempty"`
  1432  	// TestCasesConfig: The test cases config for continuous tests of this
  1433  	// environment.
  1434  	TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
  1435  	// UpdateTime: Output only. Update time of this environment.
  1436  	UpdateTime string `json:"updateTime,omitempty"`
  1437  	// VersionConfigs: A list of configurations for flow versions. You should
  1438  	// include version configs for all flows that are reachable from `Start Flow`
  1439  	// in the agent. Otherwise, an error will be returned.
  1440  	VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
  1441  	// WebhookConfig: The webhook configuration for this environment.
  1442  	WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
  1443  	// ForceSendFields is a list of field names (e.g. "Description") to
  1444  	// unconditionally include in API requests. By default, fields with empty or
  1445  	// default values are omitted from API requests. See
  1446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1447  	// details.
  1448  	ForceSendFields []string `json:"-"`
  1449  	// NullFields is a list of field names (e.g. "Description") to include in API
  1450  	// requests with the JSON null value. By default, fields with empty values are
  1451  	// omitted from API requests. See
  1452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1453  	NullFields []string `json:"-"`
  1454  }
  1455  
  1456  func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
  1457  	type NoMethod GoogleCloudDialogflowCxV3Environment
  1458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1459  }
  1460  
  1461  // GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig: The configuration for
  1462  // continuous tests.
  1463  type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
  1464  	// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases
  1465  	// periodically. Default false. If set to true, run once a day.
  1466  	EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
  1467  	// EnablePredeploymentRun: Whether to run test cases in
  1468  	// TestCasesConfig.test_cases before deploying a flow version to the
  1469  	// environment. Default false.
  1470  	EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
  1471  	// TestCases: A list of test case names to run. They should be under the same
  1472  	// agent. Format of each test case name: `projects//locations/
  1473  	// /agents//testCases/`
  1474  	TestCases []string `json:"testCases,omitempty"`
  1475  	// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to
  1476  	// unconditionally include in API requests. By default, fields with empty or
  1477  	// default values are omitted from API requests. See
  1478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1479  	// details.
  1480  	ForceSendFields []string `json:"-"`
  1481  	// NullFields is a list of field names (e.g. "EnableContinuousRun") to include
  1482  	// in API requests with the JSON null value. By default, fields with empty
  1483  	// values are omitted from API requests. See
  1484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1485  	NullFields []string `json:"-"`
  1486  }
  1487  
  1488  func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
  1489  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
  1490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1491  }
  1492  
  1493  // GoogleCloudDialogflowCxV3EnvironmentVersionConfig: Configuration for the
  1494  // version.
  1495  type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
  1496  	// Version: Required. Format: projects//locations//agents//flows//versions/.
  1497  	Version string `json:"version,omitempty"`
  1498  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  1499  	// include in API requests. By default, fields with empty or default values are
  1500  	// omitted from API requests. See
  1501  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1502  	// details.
  1503  	ForceSendFields []string `json:"-"`
  1504  	// NullFields is a list of field names (e.g. "Version") to include in API
  1505  	// requests with the JSON null value. By default, fields with empty values are
  1506  	// omitted from API requests. See
  1507  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1508  	NullFields []string `json:"-"`
  1509  }
  1510  
  1511  func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
  1512  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
  1513  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1514  }
  1515  
  1516  // GoogleCloudDialogflowCxV3EnvironmentWebhookConfig: Configuration for
  1517  // webhooks.
  1518  type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
  1519  	// WebhookOverrides: The list of webhooks to override for the agent
  1520  	// environment. The webhook must exist in the agent. You can override fields in
  1521  	// `generic_web_service` and `service_directory`.
  1522  	WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
  1523  	// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to
  1524  	// unconditionally include in API requests. By default, fields with empty or
  1525  	// default values are omitted from API requests. See
  1526  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1527  	// details.
  1528  	ForceSendFields []string `json:"-"`
  1529  	// NullFields is a list of field names (e.g. "WebhookOverrides") to include in
  1530  	// API requests with the JSON null value. By default, fields with empty values
  1531  	// are omitted from API requests. See
  1532  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1533  	NullFields []string `json:"-"`
  1534  }
  1535  
  1536  func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
  1537  	type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
  1538  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1539  }
  1540  
  1541  // GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an event
  1542  // that can be handled during a session. When the specified event happens, the
  1543  // following actions are taken in order: * If there is a `trigger_fulfillment`
  1544  // associated with the event, it will be called. * If there is a `target_page`
  1545  // associated with the event, the session will transition into the specified
  1546  // page. * If there is a `target_flow` associated with the event, the session
  1547  // will transition into the specified flow.
  1548  type GoogleCloudDialogflowCxV3EventHandler struct {
  1549  	// Event: Required. The name of the event to handle.
  1550  	Event string `json:"event,omitempty"`
  1551  	// Name: Output only. The unique identifier of this event handler.
  1552  	Name string `json:"name,omitempty"`
  1553  	// TargetFlow: The target flow to transition to. Format:
  1554  	// `projects//locations//agents//flows/`.
  1555  	TargetFlow string `json:"targetFlow,omitempty"`
  1556  	// TargetPage: The target page to transition to. Format:
  1557  	// `projects//locations//agents//flows//pages/`.
  1558  	TargetPage string `json:"targetPage,omitempty"`
  1559  	// TriggerFulfillment: The fulfillment to call when the event occurs. Handling
  1560  	// webhook errors with a fulfillment enabled with webhook could cause infinite
  1561  	// loop. It is invalid to specify such fulfillment for a handler handling
  1562  	// webhooks.
  1563  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  1564  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  1565  	// include in API requests. By default, fields with empty or default values are
  1566  	// omitted from API requests. See
  1567  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1568  	// details.
  1569  	ForceSendFields []string `json:"-"`
  1570  	// NullFields is a list of field names (e.g. "Event") to include in API
  1571  	// requests with the JSON null value. By default, fields with empty values are
  1572  	// omitted from API requests. See
  1573  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1574  	NullFields []string `json:"-"`
  1575  }
  1576  
  1577  func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
  1578  	type NoMethod GoogleCloudDialogflowCxV3EventHandler
  1579  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1580  }
  1581  
  1582  // GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.
  1583  type GoogleCloudDialogflowCxV3EventInput struct {
  1584  	// Event: Name of the event.
  1585  	Event string `json:"event,omitempty"`
  1586  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  1587  	// include in API requests. By default, fields with empty or default values are
  1588  	// omitted from API requests. See
  1589  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1590  	// details.
  1591  	ForceSendFields []string `json:"-"`
  1592  	// NullFields is a list of field names (e.g. "Event") to include in API
  1593  	// requests with the JSON null value. By default, fields with empty values are
  1594  	// omitted from API requests. See
  1595  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1596  	NullFields []string `json:"-"`
  1597  }
  1598  
  1599  func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
  1600  	type NoMethod GoogleCloudDialogflowCxV3EventInput
  1601  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1602  }
  1603  
  1604  // GoogleCloudDialogflowCxV3ExportAgentResponse: The response message for
  1605  // Agents.ExportAgent.
  1606  type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
  1607  	// AgentContent: Uncompressed raw byte content for agent. This field is
  1608  	// populated if none of `agent_uri` and `git_destination` are specified in
  1609  	// ExportAgentRequest.
  1610  	AgentContent string `json:"agentContent,omitempty"`
  1611  	// AgentUri: The URI to a file containing the exported agent. This field is
  1612  	// populated if `agent_uri` is specified in ExportAgentRequest.
  1613  	AgentUri string `json:"agentUri,omitempty"`
  1614  	// CommitSha: Commit SHA of the git push. This field is populated if
  1615  	// `git_destination` is specified in ExportAgentRequest.
  1616  	CommitSha string `json:"commitSha,omitempty"`
  1617  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  1618  	// unconditionally include in API requests. By default, fields with empty or
  1619  	// default values are omitted from API requests. See
  1620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1621  	// details.
  1622  	ForceSendFields []string `json:"-"`
  1623  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  1624  	// requests with the JSON null value. By default, fields with empty values are
  1625  	// omitted from API requests. See
  1626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1627  	NullFields []string `json:"-"`
  1628  }
  1629  
  1630  func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
  1631  	type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
  1632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1633  }
  1634  
  1635  // GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned for
  1636  // the EntityTypes.ExportEntityTypes long running operation.
  1637  type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
  1638  }
  1639  
  1640  // GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response message for
  1641  // EntityTypes.ExportEntityTypes.
  1642  type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
  1643  	// EntityTypesContent: Uncompressed byte content for entity types. This field
  1644  	// is populated only if `entity_types_content_inline` is set to true in
  1645  	// ExportEntityTypesRequest.
  1646  	EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
  1647  	// EntityTypesUri: The URI to a file containing the exported entity types. This
  1648  	// field is populated only if `entity_types_uri` is specified in
  1649  	// ExportEntityTypesRequest.
  1650  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  1651  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  1652  	// unconditionally include in API requests. By default, fields with empty or
  1653  	// default values are omitted from API requests. See
  1654  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1655  	// details.
  1656  	ForceSendFields []string `json:"-"`
  1657  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  1658  	// in API requests with the JSON null value. By default, fields with empty
  1659  	// values are omitted from API requests. See
  1660  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1661  	NullFields []string `json:"-"`
  1662  }
  1663  
  1664  func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  1665  	type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
  1666  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1667  }
  1668  
  1669  // GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for
  1670  // Flows.ExportFlow.
  1671  type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
  1672  	// FlowContent: Uncompressed raw byte content for flow.
  1673  	FlowContent string `json:"flowContent,omitempty"`
  1674  	// FlowUri: The URI to a file containing the exported flow. This field is
  1675  	// populated only if `flow_uri` is specified in ExportFlowRequest.
  1676  	FlowUri string `json:"flowUri,omitempty"`
  1677  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  1678  	// unconditionally include in API requests. By default, fields with empty or
  1679  	// default values are omitted from API requests. See
  1680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1681  	// details.
  1682  	ForceSendFields []string `json:"-"`
  1683  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  1684  	// requests with the JSON null value. By default, fields with empty values are
  1685  	// omitted from API requests. See
  1686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1687  	NullFields []string `json:"-"`
  1688  }
  1689  
  1690  func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
  1691  	type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
  1692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1693  }
  1694  
  1695  // GoogleCloudDialogflowCxV3ExportIntentsMetadata: Metadata returned for the
  1696  // Intents.ExportIntents long running operation.
  1697  type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
  1698  }
  1699  
  1700  // GoogleCloudDialogflowCxV3ExportIntentsResponse: The response message for
  1701  // Intents.ExportIntents.
  1702  type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
  1703  	// IntentsContent: Uncompressed byte content for intents. This field is
  1704  	// populated only if `intents_content_inline` is set to true in
  1705  	// ExportIntentsRequest.
  1706  	IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
  1707  	// IntentsUri: The URI to a file containing the exported intents. This field is
  1708  	// populated only if `intents_uri` is specified in ExportIntentsRequest.
  1709  	IntentsUri string `json:"intentsUri,omitempty"`
  1710  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  1711  	// unconditionally include in API requests. By default, fields with empty or
  1712  	// default values are omitted from API requests. See
  1713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1714  	// details.
  1715  	ForceSendFields []string `json:"-"`
  1716  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  1717  	// API requests with the JSON null value. By default, fields with empty values
  1718  	// are omitted from API requests. See
  1719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1720  	NullFields []string `json:"-"`
  1721  }
  1722  
  1723  func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
  1724  	type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
  1725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1726  }
  1727  
  1728  // GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned for the
  1729  // TestCases.ExportTestCases long running operation. This message currently has
  1730  // no fields.
  1731  type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
  1732  }
  1733  
  1734  // GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response message for
  1735  // TestCases.ExportTestCases.
  1736  type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
  1737  	// Content: Uncompressed raw byte content for test cases.
  1738  	Content string `json:"content,omitempty"`
  1739  	// GcsUri: The URI to a file containing the exported test cases. This field is
  1740  	// populated only if `gcs_uri` is specified in ExportTestCasesRequest.
  1741  	GcsUri string `json:"gcsUri,omitempty"`
  1742  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  1743  	// include in API requests. By default, fields with empty or default values are
  1744  	// omitted from API requests. See
  1745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1746  	// details.
  1747  	ForceSendFields []string `json:"-"`
  1748  	// NullFields is a list of field names (e.g. "Content") to include in API
  1749  	// requests with the JSON null value. By default, fields with empty values are
  1750  	// omitted from API requests. See
  1751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1752  	NullFields []string `json:"-"`
  1753  }
  1754  
  1755  func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
  1756  	type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
  1757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1758  }
  1759  
  1760  // GoogleCloudDialogflowCxV3Form: A form is a data model that groups related
  1761  // parameters that can be collected from the user. The process in which the
  1762  // agent prompts the user and collects parameter values from the user is called
  1763  // form filling. A form can be added to a page. When form filling is done, the
  1764  // filled parameters will be written to the session.
  1765  type GoogleCloudDialogflowCxV3Form struct {
  1766  	// Parameters: Parameters to collect from the user.
  1767  	Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
  1768  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  1769  	// unconditionally include in API requests. By default, fields with empty or
  1770  	// default values are omitted from API requests. See
  1771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1772  	// details.
  1773  	ForceSendFields []string `json:"-"`
  1774  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  1775  	// requests with the JSON null value. By default, fields with empty values are
  1776  	// omitted from API requests. See
  1777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1778  	NullFields []string `json:"-"`
  1779  }
  1780  
  1781  func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
  1782  	type NoMethod GoogleCloudDialogflowCxV3Form
  1783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1784  }
  1785  
  1786  // GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.
  1787  type GoogleCloudDialogflowCxV3FormParameter struct {
  1788  	// AdvancedSettings: Hierarchical advanced settings for this parameter. The
  1789  	// settings exposed at the lower level overrides the settings exposed at the
  1790  	// higher level.
  1791  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  1792  	// DefaultValue: The default value of an optional parameter. If the parameter
  1793  	// is required, the default value will be ignored.
  1794  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  1795  	// DisplayName: Required. The human-readable name of the parameter, unique
  1796  	// within the form.
  1797  	DisplayName string `json:"displayName,omitempty"`
  1798  	// EntityType: Required. The entity type of the parameter. Format:
  1799  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  1800  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  1801  	// `projects//locations//agents//entityTypes/` for developer entity types.
  1802  	EntityType string `json:"entityType,omitempty"`
  1803  	// FillBehavior: Required. Defines fill behavior for the parameter.
  1804  	FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
  1805  	// IsList: Indicates whether the parameter represents a list of values.
  1806  	IsList bool `json:"isList,omitempty"`
  1807  	// Redact: Indicates whether the parameter content should be redacted in log.
  1808  	// If redaction is enabled, the parameter content will be replaced by parameter
  1809  	// name during logging. Note: the parameter content is subject to redaction if
  1810  	// either parameter level redaction or entity type level redaction is enabled.
  1811  	Redact bool `json:"redact,omitempty"`
  1812  	// Required: Indicates whether the parameter is required. Optional parameters
  1813  	// will not trigger prompts; however, they are filled if the user specifies
  1814  	// them. Required parameters must be filled before form filling concludes.
  1815  	Required bool `json:"required,omitempty"`
  1816  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  1817  	// unconditionally include in API requests. By default, fields with empty or
  1818  	// default values are omitted from API requests. See
  1819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1820  	// details.
  1821  	ForceSendFields []string `json:"-"`
  1822  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  1823  	// API requests with the JSON null value. By default, fields with empty values
  1824  	// are omitted from API requests. See
  1825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1826  	NullFields []string `json:"-"`
  1827  }
  1828  
  1829  func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
  1830  	type NoMethod GoogleCloudDialogflowCxV3FormParameter
  1831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1832  }
  1833  
  1834  // GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for how
  1835  // the filling of a parameter should be handled.
  1836  type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
  1837  	// InitialPromptFulfillment: Required. The fulfillment to provide the initial
  1838  	// prompt that the agent can present to the user in order to fill the
  1839  	// parameter.
  1840  	InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
  1841  	// RepromptEventHandlers: The handlers for parameter-level events, used to
  1842  	// provide reprompt for the parameter or transition to a different page/flow.
  1843  	// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *
  1844  	// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *
  1845  	// `sys.no-input-default` * `sys.invalid-parameter`
  1846  	// `initial_prompt_fulfillment` provides the first prompt for the parameter. If
  1847  	// the user's response does not fill the parameter, a no-match/no-input event
  1848  	// will be triggered, and the fulfillment associated with the
  1849  	// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to
  1850  	// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)
  1851  	// will respond to the next no-match/no-input event, and so on. A
  1852  	// `sys.no-match-default` or `sys.no-input-default` handler will be used to
  1853  	// handle all following no-match/no-input events after all numbered
  1854  	// no-match/no-input handlers for the parameter are consumed. A
  1855  	// `sys.invalid-parameter` handler can be defined to handle the case where the
  1856  	// parameter values have been `invalidated` by webhook. For example, if the
  1857  	// user's response fill the parameter, however the parameter was invalidated by
  1858  	// webhook, the fulfillment associated with the `sys.invalid-parameter` handler
  1859  	// (if defined) will be called to provide a prompt. If the event handler for
  1860  	// the corresponding event can't be found on the parameter,
  1861  	// `initial_prompt_fulfillment` will be re-prompted.
  1862  	RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
  1863  	// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")
  1864  	// to unconditionally include in API requests. By default, fields with empty or
  1865  	// default values are omitted from API requests. See
  1866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1867  	// details.
  1868  	ForceSendFields []string `json:"-"`
  1869  	// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to
  1870  	// include in API requests with the JSON null value. By default, fields with
  1871  	// empty values are omitted from API requests. See
  1872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1873  	NullFields []string `json:"-"`
  1874  }
  1875  
  1876  func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
  1877  	type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
  1878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1879  }
  1880  
  1881  // GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or more of
  1882  // the following actions at the same time: * Generate rich message responses. *
  1883  // Set parameter values. * Call the webhook. Fulfillments can be called at
  1884  // various stages in the Page or Form lifecycle. For example, when a
  1885  // DetectIntentRequest drives a session to enter a new page, the page's entry
  1886  // fulfillment can add a static response to the QueryResult in the returning
  1887  // DetectIntentResponse, call the webhook (for example, to load user data from
  1888  // a database), or both.
  1889  type GoogleCloudDialogflowCxV3Fulfillment struct {
  1890  	// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The
  1891  	// settings exposed at the lower level overrides the settings exposed at the
  1892  	// higher level.
  1893  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  1894  	// ConditionalCases: Conditional cases for this fulfillment.
  1895  	ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
  1896  	// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to
  1897  	// generate a text response. If LLM generation fails, the defined responses in
  1898  	// the fulfillment will be respected. This flag is only useful for fulfillments
  1899  	// associated with no-match event handlers.
  1900  	EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
  1901  	// Messages: The list of rich message responses to present to the user.
  1902  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  1903  	// ReturnPartialResponses: Whether Dialogflow should return currently queued
  1904  	// fulfillment response messages in streaming APIs. If a webhook is specified,
  1905  	// it happens before Dialogflow invokes webhook. Warning: 1) This flag only
  1906  	// affects streaming API. Responses are still queued and returned once in
  1907  	// non-streaming API. 2) The flag can be enabled in any fulfillment but only
  1908  	// the first 3 partial responses will be returned. You may only want to apply
  1909  	// it to fulfillments that have slow webhooks.
  1910  	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
  1911  	// SetParameterActions: Set parameter values before executing the webhook.
  1912  	SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
  1913  	// Tag: The value of this field will be populated in the WebhookRequest
  1914  	// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
  1915  	// called. The tag is typically used by the webhook service to identify which
  1916  	// fulfillment is being called, but it could be used for other purposes. This
  1917  	// field is required if `webhook` is specified.
  1918  	Tag string `json:"tag,omitempty"`
  1919  	// Webhook: The webhook to call. Format:
  1920  	// `projects//locations//agents//webhooks/`.
  1921  	Webhook string `json:"webhook,omitempty"`
  1922  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  1923  	// unconditionally include in API requests. By default, fields with empty or
  1924  	// default values are omitted from API requests. See
  1925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1926  	// details.
  1927  	ForceSendFields []string `json:"-"`
  1928  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  1929  	// API requests with the JSON null value. By default, fields with empty values
  1930  	// are omitted from API requests. See
  1931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1932  	NullFields []string `json:"-"`
  1933  }
  1934  
  1935  func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
  1936  	type NoMethod GoogleCloudDialogflowCxV3Fulfillment
  1937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1938  }
  1939  
  1940  // GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of cascading
  1941  // if-else conditions. Cases are mutually exclusive. The first one with a
  1942  // matching condition is selected, all the rest ignored.
  1943  type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
  1944  	// Cases: A list of cascading if-else conditions.
  1945  	Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
  1946  	// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally
  1947  	// include in API requests. By default, fields with empty or default values are
  1948  	// omitted from API requests. See
  1949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1950  	// details.
  1951  	ForceSendFields []string `json:"-"`
  1952  	// NullFields is a list of field names (e.g. "Cases") to include in API
  1953  	// requests with the JSON null value. By default, fields with empty values are
  1954  	// omitted from API requests. See
  1955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1956  	NullFields []string `json:"-"`
  1957  }
  1958  
  1959  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
  1960  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
  1961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1962  }
  1963  
  1964  // GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case has a
  1965  // Boolean condition. When it is evaluated to be True, the corresponding
  1966  // messages will be selected and evaluated recursively.
  1967  type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
  1968  	// CaseContent: A list of case content.
  1969  	CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
  1970  	// Condition: The condition to activate and select this case. Empty means the
  1971  	// condition is always true. The condition is evaluated against form parameters
  1972  	// or session parameters. See the conditions reference
  1973  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  1974  	Condition string `json:"condition,omitempty"`
  1975  	// ForceSendFields is a list of field names (e.g. "CaseContent") to
  1976  	// unconditionally include in API requests. By default, fields with empty or
  1977  	// default values are omitted from API requests. See
  1978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1979  	// details.
  1980  	ForceSendFields []string `json:"-"`
  1981  	// NullFields is a list of field names (e.g. "CaseContent") to include in API
  1982  	// requests with the JSON null value. By default, fields with empty values are
  1983  	// omitted from API requests. See
  1984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1985  	NullFields []string `json:"-"`
  1986  }
  1987  
  1988  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
  1989  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
  1990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1991  }
  1992  
  1993  // GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent: The
  1994  // list of messages or conditional cases to activate for this case.
  1995  type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
  1996  	// AdditionalCases: Additional cases to be evaluated.
  1997  	AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
  1998  	// Message: Returned message.
  1999  	Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
  2000  	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
  2001  	// unconditionally include in API requests. By default, fields with empty or
  2002  	// default values are omitted from API requests. See
  2003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2004  	// details.
  2005  	ForceSendFields []string `json:"-"`
  2006  	// NullFields is a list of field names (e.g. "AdditionalCases") to include in
  2007  	// API requests with the JSON null value. By default, fields with empty values
  2008  	// are omitted from API requests. See
  2009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2010  	NullFields []string `json:"-"`
  2011  }
  2012  
  2013  func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
  2014  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
  2015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2016  }
  2017  
  2018  // GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a parameter
  2019  // value.
  2020  type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
  2021  	// Parameter: Display name of the parameter.
  2022  	Parameter string `json:"parameter,omitempty"`
  2023  	// Value: The new value of the parameter. A null value clears the parameter.
  2024  	Value interface{} `json:"value,omitempty"`
  2025  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  2026  	// unconditionally include in API requests. By default, fields with empty or
  2027  	// default values are omitted from API requests. See
  2028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2029  	// details.
  2030  	ForceSendFields []string `json:"-"`
  2031  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  2032  	// requests with the JSON null value. By default, fields with empty values are
  2033  	// omitted from API requests. See
  2034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2035  	NullFields []string `json:"-"`
  2036  }
  2037  
  2038  func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
  2039  	type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
  2040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2041  }
  2042  
  2043  // GoogleCloudDialogflowCxV3GcsDestination: Google Cloud Storage location for a
  2044  // Dialogflow operation that writes or exports objects (e.g. exported agent or
  2045  // transcripts) outside of Dialogflow.
  2046  type GoogleCloudDialogflowCxV3GcsDestination struct {
  2047  	// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI
  2048  	// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object
  2049  	// name, or just a prefix, its usage depends on the Dialogflow operation.
  2050  	Uri string `json:"uri,omitempty"`
  2051  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  2052  	// include in API requests. By default, fields with empty or default values are
  2053  	// omitted from API requests. See
  2054  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2055  	// details.
  2056  	ForceSendFields []string `json:"-"`
  2057  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  2058  	// with the JSON null value. By default, fields with empty values are omitted
  2059  	// from API requests. See
  2060  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2061  	NullFields []string `json:"-"`
  2062  }
  2063  
  2064  func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
  2065  	type NoMethod GoogleCloudDialogflowCxV3GcsDestination
  2066  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2067  }
  2068  
  2069  // GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata: Metadata in
  2070  // google::longrunning::Operation for Knowledge operations.
  2071  type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
  2072  	// State: Required. Output only. The current state of this operation.
  2073  	//
  2074  	// Possible values:
  2075  	//   "STATE_UNSPECIFIED" - State unspecified.
  2076  	//   "PENDING" - The operation has been created.
  2077  	//   "RUNNING" - The operation is currently running.
  2078  	//   "DONE" - The operation is done, either cancelled or completed.
  2079  	State string `json:"state,omitempty"`
  2080  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  2081  	// include in API requests. By default, fields with empty or default values are
  2082  	// omitted from API requests. See
  2083  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2084  	// details.
  2085  	ForceSendFields []string `json:"-"`
  2086  	// NullFields is a list of field names (e.g. "State") to include in API
  2087  	// requests with the JSON null value. By default, fields with empty values are
  2088  	// omitted from API requests. See
  2089  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2090  	NullFields []string `json:"-"`
  2091  }
  2092  
  2093  func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  2094  	type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
  2095  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2096  }
  2097  
  2098  // GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata: Metadata for
  2099  // ImportDocuments operation.
  2100  type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
  2101  	// GenericMetadata: The generic information of the operation.
  2102  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  2103  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  2104  	// unconditionally include in API requests. By default, fields with empty or
  2105  	// default values are omitted from API requests. See
  2106  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2107  	// details.
  2108  	ForceSendFields []string `json:"-"`
  2109  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  2110  	// API requests with the JSON null value. By default, fields with empty values
  2111  	// are omitted from API requests. See
  2112  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2113  	NullFields []string `json:"-"`
  2114  }
  2115  
  2116  func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
  2117  	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
  2118  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2119  }
  2120  
  2121  // GoogleCloudDialogflowCxV3ImportDocumentsResponse: Response message for
  2122  // Documents.ImportDocuments.
  2123  type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
  2124  	// Warnings: Includes details about skipped documents or any other warnings.
  2125  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  2126  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  2127  	// unconditionally include in API requests. By default, fields with empty or
  2128  	// default values are omitted from API requests. See
  2129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2130  	// details.
  2131  	ForceSendFields []string `json:"-"`
  2132  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  2133  	// requests with the JSON null value. By default, fields with empty values are
  2134  	// omitted from API requests. See
  2135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2136  	NullFields []string `json:"-"`
  2137  }
  2138  
  2139  func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  2140  	type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
  2141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2142  }
  2143  
  2144  // GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned for
  2145  // the EntityTypes.ImportEntityTypes long running operation.
  2146  type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
  2147  }
  2148  
  2149  // GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response message for
  2150  // EntityTypes.ImportEntityTypes.
  2151  type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
  2152  	// ConflictingResources: Info which resources have conflicts when
  2153  	// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.
  2154  	ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
  2155  	// EntityTypes: The unique identifier of the imported entity types. Format:
  2156  	// `projects//locations//agents//entity_types/`.
  2157  	EntityTypes []string `json:"entityTypes,omitempty"`
  2158  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  2159  	// unconditionally include in API requests. By default, fields with empty or
  2160  	// default values are omitted from API requests. See
  2161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2162  	// details.
  2163  	ForceSendFields []string `json:"-"`
  2164  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  2165  	// in API requests with the JSON null value. By default, fields with empty
  2166  	// values are omitted from API requests. See
  2167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2168  	NullFields []string `json:"-"`
  2169  }
  2170  
  2171  func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  2172  	type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
  2173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2174  }
  2175  
  2176  // GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources:
  2177  // Conflicting resources detected during the import process. Only filled when
  2178  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  2179  // names.
  2180  type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
  2181  	// EntityDisplayNames: Display names of conflicting entities.
  2182  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  2183  	// EntityTypeDisplayNames: Display names of conflicting entity types.
  2184  	EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
  2185  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  2186  	// unconditionally include in API requests. By default, fields with empty or
  2187  	// default values are omitted from API requests. See
  2188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2189  	// details.
  2190  	ForceSendFields []string `json:"-"`
  2191  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  2192  	// in API requests with the JSON null value. By default, fields with empty
  2193  	// values are omitted from API requests. See
  2194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2195  	NullFields []string `json:"-"`
  2196  }
  2197  
  2198  func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
  2199  	type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
  2200  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2201  }
  2202  
  2203  // GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for
  2204  // Flows.ImportFlow.
  2205  type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
  2206  	// Flow: The unique identifier of the new flow. Format:
  2207  	// `projects//locations//agents//flows/`.
  2208  	Flow string `json:"flow,omitempty"`
  2209  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  2210  	// include in API requests. By default, fields with empty or default values are
  2211  	// omitted from API requests. See
  2212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2213  	// details.
  2214  	ForceSendFields []string `json:"-"`
  2215  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  2216  	// with the JSON null value. By default, fields with empty values are omitted
  2217  	// from API requests. See
  2218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2219  	NullFields []string `json:"-"`
  2220  }
  2221  
  2222  func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
  2223  	type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
  2224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2225  }
  2226  
  2227  // GoogleCloudDialogflowCxV3ImportIntentsMetadata: Metadata returned for the
  2228  // Intents.ImportIntents long running operation.
  2229  type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
  2230  }
  2231  
  2232  // GoogleCloudDialogflowCxV3ImportIntentsResponse: The response message for
  2233  // Intents.ImportIntents.
  2234  type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
  2235  	// ConflictingResources: Info which resources have conflicts when
  2236  	// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.
  2237  	ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
  2238  	// Intents: The unique identifier of the imported intents. Format:
  2239  	// `projects//locations//agents//intents/`.
  2240  	Intents []string `json:"intents,omitempty"`
  2241  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  2242  	// unconditionally include in API requests. By default, fields with empty or
  2243  	// default values are omitted from API requests. See
  2244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2245  	// details.
  2246  	ForceSendFields []string `json:"-"`
  2247  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  2248  	// in API requests with the JSON null value. By default, fields with empty
  2249  	// values are omitted from API requests. See
  2250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2251  	NullFields []string `json:"-"`
  2252  }
  2253  
  2254  func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
  2255  	type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
  2256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2257  }
  2258  
  2259  // GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources:
  2260  // Conflicting resources detected during the import process. Only filled when
  2261  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  2262  // names.
  2263  type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
  2264  	// EntityDisplayNames: Display names of conflicting entities.
  2265  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  2266  	// IntentDisplayNames: Display names of conflicting intents.
  2267  	IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
  2268  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  2269  	// unconditionally include in API requests. By default, fields with empty or
  2270  	// default values are omitted from API requests. See
  2271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2272  	// details.
  2273  	ForceSendFields []string `json:"-"`
  2274  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  2275  	// in API requests with the JSON null value. By default, fields with empty
  2276  	// values are omitted from API requests. See
  2277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2278  	NullFields []string `json:"-"`
  2279  }
  2280  
  2281  func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
  2282  	type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
  2283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2284  }
  2285  
  2286  // GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned for the
  2287  // TestCases.ImportTestCases long running operation.
  2288  type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
  2289  	// Errors: Errors for failed test cases.
  2290  	Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
  2291  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  2292  	// include in API requests. By default, fields with empty or default values are
  2293  	// omitted from API requests. See
  2294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2295  	// details.
  2296  	ForceSendFields []string `json:"-"`
  2297  	// NullFields is a list of field names (e.g. "Errors") to include in API
  2298  	// requests with the JSON null value. By default, fields with empty values are
  2299  	// omitted from API requests. See
  2300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2301  	NullFields []string `json:"-"`
  2302  }
  2303  
  2304  func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
  2305  	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
  2306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2307  }
  2308  
  2309  // GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response message for
  2310  // TestCases.ImportTestCases.
  2311  type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
  2312  	// Names: The unique identifiers of the new test cases. Format:
  2313  	// `projects//locations//agents//testCases/`.
  2314  	Names []string `json:"names,omitempty"`
  2315  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  2316  	// include in API requests. By default, fields with empty or default values are
  2317  	// omitted from API requests. See
  2318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2319  	// details.
  2320  	ForceSendFields []string `json:"-"`
  2321  	// NullFields is a list of field names (e.g. "Names") to include in API
  2322  	// requests with the JSON null value. By default, fields with empty values are
  2323  	// omitted from API requests. See
  2324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2325  	NullFields []string `json:"-"`
  2326  }
  2327  
  2328  func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
  2329  	type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
  2330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2331  }
  2332  
  2333  // GoogleCloudDialogflowCxV3InlineDestination: Inline destination for a
  2334  // Dialogflow operation that writes or exports objects (e.g. intents) outside
  2335  // of Dialogflow.
  2336  type GoogleCloudDialogflowCxV3InlineDestination struct {
  2337  	// Content: Output only. The uncompressed byte content for the objects. Only
  2338  	// populated in responses.
  2339  	Content string `json:"content,omitempty"`
  2340  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2341  	// include in API requests. By default, fields with empty or default values are
  2342  	// 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. "Content") to include in API
  2347  	// requests with the JSON null value. By default, fields with empty values are
  2348  	// 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 *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
  2354  	type NoMethod GoogleCloudDialogflowCxV3InlineDestination
  2355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2356  }
  2357  
  2358  // GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech recognizer
  2359  // on how to process the audio content.
  2360  type GoogleCloudDialogflowCxV3InputAudioConfig struct {
  2361  	// AudioEncoding: Required. Audio encoding of the audio content to process.
  2362  	//
  2363  	// Possible values:
  2364  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  2365  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
  2366  	// samples (Linear PCM).
  2367  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
  2368  	// (Free Lossless Audio Codec) is the recommended encoding because it is
  2369  	// lossless (therefore recognition is not compromised) and requires only about
  2370  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
  2371  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
  2372  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
  2373  	// using G.711 PCMU/mu-law.
  2374  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
  2375  	// `sample_rate_hertz` must be 8000.
  2376  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
  2377  	// `sample_rate_hertz` must be 16000.
  2378  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
  2379  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
  2380  	// 16000.
  2381  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
  2382  	// encodings is not recommended, if a very low bitrate encoding is required,
  2383  	// `OGG_OPUS` is highly preferred over Speex encoding. The
  2384  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
  2385  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
  2386  	// It is a variant of the RTP Speex encoding defined in [RFC
  2387  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
  2388  	// blocks, one block per RTP packet. Each block starts with a byte containing
  2389  	// the length of the block, in bytes, followed by one or more frames of Speex
  2390  	// data, padded to an integral number of bytes (octets) as specified in RFC
  2391  	// 5574. In other words, each RTP header is replaced with a single byte
  2392  	// containing the block length. Only Speex wideband is supported.
  2393  	// `sample_rate_hertz` must be 16000.
  2394  	AudioEncoding string `json:"audioEncoding,omitempty"`
  2395  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
  2396  	// input audio.
  2397  	BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
  2398  	// EnableWordInfo: Optional. If `true`, Dialogflow returns SpeechWordInfo in
  2399  	// StreamingRecognitionResult with information about the recognized speech
  2400  	// words, e.g. start and end time offsets. If false or unspecified, Speech
  2401  	// doesn't return any word-level information.
  2402  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
  2403  	// Model: Optional. Which Speech model to select for the given request. For
  2404  	// more information, see Speech models
  2405  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  2406  	Model string `json:"model,omitempty"`
  2407  	// ModelVariant: Optional. Which variant of the Speech model to use.
  2408  	//
  2409  	// Possible values:
  2410  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
  2411  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
  2412  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
  2413  	// that the caller is eligible for.
  2414  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
  2415  	// available. See the [Cloud Speech
  2416  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  2417  	// for details about enhanced models.
  2418  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
  2419  	// does not exist for the given model and request language, Dialogflow falls
  2420  	// back to the standard variant. The [Cloud Speech
  2421  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  2422  	// describes which models have enhanced variants.
  2423  	ModelVariant string `json:"modelVariant,omitempty"`
  2424  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
  2425  	// conformer model migration. This field will be deprecated once force
  2426  	// migration takes place in June 2024. Please refer to Dialogflow CX Speech
  2427  	// model migration
  2428  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
  2429  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
  2430  	// PhraseHints: Optional. A list of strings containing words and phrases that
  2431  	// the speech recognizer should recognize with higher likelihood. See the Cloud
  2432  	// Speech documentation
  2433  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
  2434  	// details.
  2435  	PhraseHints []string `json:"phraseHints,omitempty"`
  2436  	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in the
  2437  	// query. Refer to Cloud Speech API documentation
  2438  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
  2439  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  2440  	// SingleUtterance: Optional. If `false` (default), recognition does not cease
  2441  	// until the client closes the stream. If `true`, the recognizer will detect a
  2442  	// single spoken utterance in input audio. Recognition ceases when it detects
  2443  	// the audio's voice has stopped or paused. In this case, once a detected
  2444  	// intent is received, the client should close the stream and start a new
  2445  	// request with a new stream as needed. Note: This setting is relevant only for
  2446  	// streaming methods.
  2447  	SingleUtterance bool `json:"singleUtterance,omitempty"`
  2448  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  2449  	// unconditionally include in API requests. By default, fields with empty or
  2450  	// default values are omitted from API requests. See
  2451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2452  	// details.
  2453  	ForceSendFields []string `json:"-"`
  2454  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  2455  	// requests with the JSON null value. By default, fields with empty values are
  2456  	// omitted from API requests. See
  2457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2458  	NullFields []string `json:"-"`
  2459  }
  2460  
  2461  func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
  2462  	type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
  2463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2464  }
  2465  
  2466  // GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent to
  2467  // interact with a conversational agent. You can provide information for the
  2468  // Dialogflow API to use to match user input to an intent by adding training
  2469  // phrases (i.e., examples of user input) to your intent.
  2470  type GoogleCloudDialogflowCxV3Intent struct {
  2471  	// Description: Human readable description for better understanding an intent
  2472  	// like its scope, content, result etc. Maximum character limit: 140
  2473  	// characters.
  2474  	Description string `json:"description,omitempty"`
  2475  	// DisplayName: Required. The human-readable name of the intent, unique within
  2476  	// the agent.
  2477  	DisplayName string `json:"displayName,omitempty"`
  2478  	// IsFallback: Indicates whether this is a fallback intent. Currently only
  2479  	// default fallback intent is allowed in the agent, which is added upon agent
  2480  	// creation. Adding training phrases to fallback intent is useful in the case
  2481  	// of requests that are mistakenly matched, since training phrases assigned to
  2482  	// fallback intents act as negative examples that triggers no-match event.
  2483  	IsFallback bool `json:"isFallback,omitempty"`
  2484  	// Labels: The key/value metadata to label an intent. Labels can contain
  2485  	// lowercase letters, digits and the symbols '-' and '_'. International
  2486  	// characters are allowed, including letters from unicase alphabets. Keys must
  2487  	// start with a letter. Keys and values can be no longer than 63 characters and
  2488  	// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
  2489  	// labels. Currently allowed Dialogflow defined labels include: * sys-head *
  2490  	// sys-contextual The above labels do not require value. "sys-head" means the
  2491  	// intent is a head intent. "sys.contextual" means the intent is a contextual
  2492  	// intent.
  2493  	Labels map[string]string `json:"labels,omitempty"`
  2494  	// Name: The unique identifier of the intent. Required for the
  2495  	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
  2496  	// automatically. Format: `projects//locations//agents//intents/`.
  2497  	Name string `json:"name,omitempty"`
  2498  	// Parameters: The collection of parameters associated with the intent.
  2499  	Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
  2500  	// Priority: The priority of this intent. Higher numbers represent higher
  2501  	// priorities. - If the supplied value is unspecified or 0, the service
  2502  	// translates the value to 500,000, which corresponds to the `Normal` priority
  2503  	// in the console. - If the supplied value is negative, the intent is ignored
  2504  	// in runtime detect intent requests.
  2505  	Priority int64 `json:"priority,omitempty"`
  2506  	// TrainingPhrases: The collection of training phrases the agent is trained on
  2507  	// to identify the intent.
  2508  	TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  2509  	// ForceSendFields is a list of field names (e.g. "Description") to
  2510  	// unconditionally include in API requests. By default, fields with empty or
  2511  	// default values are omitted from API requests. See
  2512  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2513  	// details.
  2514  	ForceSendFields []string `json:"-"`
  2515  	// NullFields is a list of field names (e.g. "Description") to include in API
  2516  	// requests with the JSON null value. By default, fields with empty values are
  2517  	// omitted from API requests. See
  2518  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2519  	NullFields []string `json:"-"`
  2520  }
  2521  
  2522  func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
  2523  	type NoMethod GoogleCloudDialogflowCxV3Intent
  2524  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2525  }
  2526  
  2527  // GoogleCloudDialogflowCxV3IntentInput: Represents the intent to trigger
  2528  // programmatically rather than as a result of natural language processing.
  2529  type GoogleCloudDialogflowCxV3IntentInput struct {
  2530  	// Intent: Required. The unique identifier of the intent. Format:
  2531  	// `projects//locations//agents//intents/`.
  2532  	Intent string `json:"intent,omitempty"`
  2533  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
  2534  	// include in API requests. By default, fields with empty or default values are
  2535  	// omitted from API requests. See
  2536  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2537  	// details.
  2538  	ForceSendFields []string `json:"-"`
  2539  	// NullFields is a list of field names (e.g. "Intent") to include in API
  2540  	// requests with the JSON null value. By default, fields with empty values are
  2541  	// omitted from API requests. See
  2542  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2543  	NullFields []string `json:"-"`
  2544  }
  2545  
  2546  func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
  2547  	type NoMethod GoogleCloudDialogflowCxV3IntentInput
  2548  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2549  }
  2550  
  2551  // GoogleCloudDialogflowCxV3IntentParameter: Represents an intent parameter.
  2552  type GoogleCloudDialogflowCxV3IntentParameter struct {
  2553  	// EntityType: Required. The entity type of the parameter. Format:
  2554  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  2555  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  2556  	// `projects//locations//agents//entityTypes/` for developer entity types.
  2557  	EntityType string `json:"entityType,omitempty"`
  2558  	// Id: Required. The unique identifier of the parameter. This field is used by
  2559  	// training phrases to annotate their parts.
  2560  	Id string `json:"id,omitempty"`
  2561  	// IsList: Indicates whether the parameter represents a list of values.
  2562  	IsList bool `json:"isList,omitempty"`
  2563  	// Redact: Indicates whether the parameter content should be redacted in log.
  2564  	// If redaction is enabled, the parameter content will be replaced by parameter
  2565  	// name during logging. Note: the parameter content is subject to redaction if
  2566  	// either parameter level redaction or entity type level redaction is enabled.
  2567  	Redact bool `json:"redact,omitempty"`
  2568  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  2569  	// unconditionally include in API requests. By default, fields with empty or
  2570  	// default values are omitted from API requests. See
  2571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2572  	// details.
  2573  	ForceSendFields []string `json:"-"`
  2574  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  2575  	// requests with the JSON null value. By default, fields with empty values are
  2576  	// omitted from API requests. See
  2577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2578  	NullFields []string `json:"-"`
  2579  }
  2580  
  2581  func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
  2582  	type NoMethod GoogleCloudDialogflowCxV3IntentParameter
  2583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2584  }
  2585  
  2586  // GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example that
  2587  // the agent is trained on to identify the intent.
  2588  type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
  2589  	// Id: Output only. The unique identifier of the training phrase.
  2590  	Id string `json:"id,omitempty"`
  2591  	// Parts: Required. The ordered list of training phrase parts. The parts are
  2592  	// concatenated in order to form the training phrase. Note: The API does not
  2593  	// automatically annotate training phrases like the Dialogflow Console does.
  2594  	// Note: Do not forget to include whitespace at part boundaries, so the
  2595  	// training phrase is well formatted when the parts are concatenated. If the
  2596  	// training phrase does not need to be annotated with parameters, you just need
  2597  	// a single part with only the Part.text field set. If you want to annotate the
  2598  	// training phrase, you must create multiple parts, where the fields of each
  2599  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  2600  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  2601  	// that you want to annotate, and the `parameter_id` field is set.
  2602  	Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
  2603  	// RepeatCount: Indicates how many times this example was added to the intent.
  2604  	RepeatCount int64 `json:"repeatCount,omitempty"`
  2605  	// ForceSendFields is a list of field names (e.g. "Id") 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. "Id") to include in API requests
  2612  	// with the JSON null value. By default, fields with empty values are omitted
  2613  	// 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 *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  2619  	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
  2620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2621  }
  2622  
  2623  // GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part of a
  2624  // training phrase.
  2625  type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
  2626  	// ParameterId: The parameter used to annotate this part of the training
  2627  	// phrase. This field is required for annotated parts of the training phrase.
  2628  	ParameterId string `json:"parameterId,omitempty"`
  2629  	// Text: Required. The text for this part.
  2630  	Text string `json:"text,omitempty"`
  2631  	// ForceSendFields is a list of field names (e.g. "ParameterId") to
  2632  	// unconditionally include in API requests. By default, fields with empty or
  2633  	// default values are omitted from API requests. See
  2634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2635  	// details.
  2636  	ForceSendFields []string `json:"-"`
  2637  	// NullFields is a list of field names (e.g. "ParameterId") to include in API
  2638  	// requests with the JSON null value. By default, fields with empty values are
  2639  	// omitted from API requests. See
  2640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2641  	NullFields []string `json:"-"`
  2642  }
  2643  
  2644  func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  2645  	type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
  2646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2647  }
  2648  
  2649  // GoogleCloudDialogflowCxV3KnowledgeConnectorSettings: The Knowledge Connector
  2650  // settings for this page or flow. This includes information such as the
  2651  // attached Knowledge Bases, and the way to execute fulfillment.
  2652  type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
  2653  	// DataStoreConnections: Optional. List of related data store connections.
  2654  	DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
  2655  	// Enabled: Whether Knowledge Connector is enabled or not.
  2656  	Enabled bool `json:"enabled,omitempty"`
  2657  	// TargetFlow: The target flow to transition to. Format:
  2658  	// `projects//locations//agents//flows/`.
  2659  	TargetFlow string `json:"targetFlow,omitempty"`
  2660  	// TargetPage: The target page to transition to. Format:
  2661  	// `projects//locations//agents//flows//pages/`.
  2662  	TargetPage string `json:"targetPage,omitempty"`
  2663  	// TriggerFulfillment: The fulfillment to be triggered. When the answers from
  2664  	// the Knowledge Connector are selected by Dialogflow, you can utitlize the
  2665  	// request scoped parameter `$request.knowledge.answers` (contains up to the 5
  2666  	// highest confidence answers) and `$request.knowledge.questions` (contains the
  2667  	// corresponding questions) to construct the fulfillment.
  2668  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  2669  	// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to
  2670  	// unconditionally include in API requests. By default, fields with empty or
  2671  	// default values are omitted from API requests. See
  2672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2673  	// details.
  2674  	ForceSendFields []string `json:"-"`
  2675  	// NullFields is a list of field names (e.g. "DataStoreConnections") to include
  2676  	// in API requests with the JSON null value. By default, fields with empty
  2677  	// values are omitted from API requests. See
  2678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2679  	NullFields []string `json:"-"`
  2680  }
  2681  
  2682  func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  2683  	type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
  2684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2685  }
  2686  
  2687  // GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information
  2688  // of the request.
  2689  type GoogleCloudDialogflowCxV3LanguageInfo struct {
  2690  	// ConfidenceScore: The confidence score of the detected language between 0 and
  2691  	// 1.
  2692  	ConfidenceScore float64 `json:"confidenceScore,omitempty"`
  2693  	// InputLanguageCode: The language code specified in the original request.
  2694  	InputLanguageCode string `json:"inputLanguageCode,omitempty"`
  2695  	// ResolvedLanguageCode: The language code detected for this request based on
  2696  	// the user conversation.
  2697  	ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
  2698  	// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to
  2699  	// unconditionally include in API requests. By default, fields with empty or
  2700  	// default values are omitted from API requests. See
  2701  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2702  	// details.
  2703  	ForceSendFields []string `json:"-"`
  2704  	// NullFields is a list of field names (e.g. "ConfidenceScore") to include in
  2705  	// API requests with the JSON null value. By default, fields with empty values
  2706  	// are omitted from API requests. See
  2707  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2708  	NullFields []string `json:"-"`
  2709  }
  2710  
  2711  func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
  2712  	type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
  2713  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2714  }
  2715  
  2716  func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
  2717  	type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
  2718  	var s1 struct {
  2719  		ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
  2720  		*NoMethod
  2721  	}
  2722  	s1.NoMethod = (*NoMethod)(s)
  2723  	if err := json.Unmarshal(data, &s1); err != nil {
  2724  		return err
  2725  	}
  2726  	s.ConfidenceScore = float64(s1.ConfidenceScore)
  2727  	return nil
  2728  }
  2729  
  2730  // GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can be
  2731  // described and visualized as a state machine. The states of a CX session are
  2732  // represented by pages. For each flow, you define many pages, where your
  2733  // combined pages can handle a complete conversation on the topics the flow is
  2734  // designed for. At any given moment, exactly one page is the current page, the
  2735  // current page is considered active, and the flow associated with that page is
  2736  // considered active. Every flow has a special start page. When a flow
  2737  // initially becomes active, the start page page becomes the current page. For
  2738  // each conversational turn, the current page will either stay the same or
  2739  // transition to another page. You configure each page to collect information
  2740  // from the end-user that is relevant for the conversational state represented
  2741  // by the page. For more information, see the Page guide
  2742  // (https://cloud.google.com/dialogflow/cx/docs/concept/page).
  2743  type GoogleCloudDialogflowCxV3Page struct {
  2744  	// AdvancedSettings: Hierarchical advanced settings for this page. The settings
  2745  	// exposed at the lower level overrides the settings exposed at the higher
  2746  	// level.
  2747  	AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
  2748  	// Description: The description of the page. The maximum length is 500
  2749  	// characters.
  2750  	Description string `json:"description,omitempty"`
  2751  	// DisplayName: Required. The human-readable name of the page, unique within
  2752  	// the flow.
  2753  	DisplayName string `json:"displayName,omitempty"`
  2754  	// EntryFulfillment: The fulfillment to call when the session is entering the
  2755  	// page.
  2756  	EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
  2757  	// EventHandlers: Handlers associated with the page to handle events such as
  2758  	// webhook errors, no match or no input.
  2759  	EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
  2760  	// Form: The form associated with the page, used for collecting parameters
  2761  	// relevant to the page.
  2762  	Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
  2763  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  2764  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  2765  	// Name: The unique identifier of the page. Required for the Pages.UpdatePage
  2766  	// method. Pages.CreatePage populates the name automatically. Format:
  2767  	// `projects//locations//agents//flows//pages/`.
  2768  	Name string `json:"name,omitempty"`
  2769  	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the
  2770  	// page. Transition route groups must be unique within a page. If the page
  2771  	// links both flow-level transition route groups and agent-level transition
  2772  	// route groups, the flow-level ones will have higher priority and will be put
  2773  	// before the agent-level ones. * If multiple transition routes within a page
  2774  	// scope refer to the same intent, then the precedence order is: page's
  2775  	// transition route -> page's transition route group -> flow's transition
  2776  	// routes. * If multiple transition route groups within a page contain the same
  2777  	// intent, then the first group in the ordered list takes precedence.
  2778  	// Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  2779  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  2780  	// groups.
  2781  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  2782  	// TransitionRoutes: A list of transitions for the transition rules of this
  2783  	// page. They route the conversation to another page in the same flow, or
  2784  	// another flow. When we are in a certain page, the TransitionRoutes are
  2785  	// evalauted in the following order: * TransitionRoutes defined in the page
  2786  	// with intent specified. * TransitionRoutes defined in the transition route
  2787  	// groups with intent specified. * TransitionRoutes defined in flow with intent
  2788  	// specified. * TransitionRoutes defined in the transition route groups with
  2789  	// intent specified. * TransitionRoutes defined in the page with only condition
  2790  	// specified. * TransitionRoutes defined in the transition route groups with
  2791  	// only condition specified.
  2792  	TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
  2793  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  2794  	// unconditionally include in API requests. By default, fields with empty or
  2795  	// default values are omitted from API requests. See
  2796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2797  	// details.
  2798  	ForceSendFields []string `json:"-"`
  2799  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  2800  	// API requests with the JSON null value. By default, fields with empty values
  2801  	// are omitted from API requests. See
  2802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2803  	NullFields []string `json:"-"`
  2804  }
  2805  
  2806  func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
  2807  	type NoMethod GoogleCloudDialogflowCxV3Page
  2808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2809  }
  2810  
  2811  // GoogleCloudDialogflowCxV3PageInfo: Represents page information communicated
  2812  // to and from the webhook.
  2813  type GoogleCloudDialogflowCxV3PageInfo struct {
  2814  	// CurrentPage: Always present for WebhookRequest. Ignored for WebhookResponse.
  2815  	// The unique identifier of the current page. Format:
  2816  	// `projects//locations//agents//flows//pages/`.
  2817  	CurrentPage string `json:"currentPage,omitempty"`
  2818  	// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.
  2819  	// The display name of the current page.
  2820  	DisplayName string `json:"displayName,omitempty"`
  2821  	// FormInfo: Optional for both WebhookRequest and WebhookResponse. Information
  2822  	// about the form.
  2823  	FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
  2824  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  2825  	// unconditionally include in API requests. By default, fields with empty or
  2826  	// default values are omitted from API requests. See
  2827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2828  	// details.
  2829  	ForceSendFields []string `json:"-"`
  2830  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  2831  	// requests with the JSON null value. By default, fields with empty values are
  2832  	// omitted from API requests. See
  2833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2834  	NullFields []string `json:"-"`
  2835  }
  2836  
  2837  func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
  2838  	type NoMethod GoogleCloudDialogflowCxV3PageInfo
  2839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2840  }
  2841  
  2842  // GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form information.
  2843  type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
  2844  	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse. The
  2845  	// parameters contained in the form. Note that the webhook cannot add or remove
  2846  	// any form parameter.
  2847  	ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
  2848  	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
  2849  	// unconditionally include in API requests. By default, fields with empty or
  2850  	// default values are omitted from API requests. See
  2851  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2852  	// details.
  2853  	ForceSendFields []string `json:"-"`
  2854  	// NullFields is a list of field names (e.g. "ParameterInfo") to include in API
  2855  	// requests with the JSON null value. By default, fields with empty values are
  2856  	// omitted from API requests. See
  2857  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2858  	NullFields []string `json:"-"`
  2859  }
  2860  
  2861  func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
  2862  	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
  2863  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2864  }
  2865  
  2866  // GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents parameter
  2867  // information.
  2868  type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
  2869  	// DisplayName: Always present for WebhookRequest. Required for
  2870  	// WebhookResponse. The human-readable name of the parameter, unique within the
  2871  	// form. This field cannot be modified by the webhook.
  2872  	DisplayName string `json:"displayName,omitempty"`
  2873  	// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.
  2874  	// Indicates if the parameter value was just collected on the last conversation
  2875  	// turn.
  2876  	JustCollected bool `json:"justCollected,omitempty"`
  2877  	// Required: Optional for both WebhookRequest and WebhookResponse. Indicates
  2878  	// whether the parameter is required. Optional parameters will not trigger
  2879  	// prompts; however, they are filled if the user specifies them. Required
  2880  	// parameters must be filled before form filling concludes.
  2881  	Required bool `json:"required,omitempty"`
  2882  	// State: Always present for WebhookRequest. Required for WebhookResponse. The
  2883  	// state of the parameter. This field can be set to INVALID by the webhook to
  2884  	// invalidate the parameter; other values set by the webhook will be ignored.
  2885  	//
  2886  	// Possible values:
  2887  	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never
  2888  	// used.
  2889  	//   "EMPTY" - Indicates that the parameter does not have a value.
  2890  	//   "INVALID" - Indicates that the parameter value is invalid. This field can
  2891  	// be used by the webhook to invalidate the parameter and ask the server to
  2892  	// collect it from the user again.
  2893  	//   "FILLED" - Indicates that the parameter has a value.
  2894  	State string `json:"state,omitempty"`
  2895  	// Value: Optional for both WebhookRequest and WebhookResponse. The value of
  2896  	// the parameter. This field can be set by the webhook to change the parameter
  2897  	// value.
  2898  	Value interface{} `json:"value,omitempty"`
  2899  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2900  	// unconditionally include in API requests. By default, fields with empty or
  2901  	// default values are omitted from API requests. See
  2902  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2903  	// details.
  2904  	ForceSendFields []string `json:"-"`
  2905  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2906  	// requests with the JSON null value. By default, fields with empty values are
  2907  	// omitted from API requests. See
  2908  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2909  	NullFields []string `json:"-"`
  2910  }
  2911  
  2912  func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
  2913  	type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
  2914  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2915  }
  2916  
  2917  // GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It can
  2918  // contain one of: 1. A conversational query in the form of text. 2. An intent
  2919  // query that specifies which intent to trigger. 3. Natural language speech
  2920  // audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke
  2921  // an intent and fill in parameter value. 6. The results of a tool executed by
  2922  // the client.
  2923  type GoogleCloudDialogflowCxV3QueryInput struct {
  2924  	// Audio: The natural language speech audio to be processed.
  2925  	Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
  2926  	// Dtmf: The DTMF event to be handled.
  2927  	Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
  2928  	// Event: The event to be triggered.
  2929  	Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
  2930  	// Intent: The intent to be triggered.
  2931  	Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
  2932  	// LanguageCode: Required. The language of the input. See Language Support
  2933  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  2934  	// of the currently supported language codes. Note that queries in the same
  2935  	// session do not necessarily need to specify the same language.
  2936  	LanguageCode string `json:"languageCode,omitempty"`
  2937  	// Text: The natural language text to be processed.
  2938  	Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
  2939  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  2940  	// include in API requests. By default, fields with empty or default values are
  2941  	// omitted from API requests. See
  2942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2943  	// details.
  2944  	ForceSendFields []string `json:"-"`
  2945  	// NullFields is a list of field names (e.g. "Audio") to include in API
  2946  	// requests with the JSON null value. By default, fields with empty values are
  2947  	// omitted from API requests. See
  2948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2949  	NullFields []string `json:"-"`
  2950  }
  2951  
  2952  func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
  2953  	type NoMethod GoogleCloudDialogflowCxV3QueryInput
  2954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2955  }
  2956  
  2957  // GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata: Metadata for
  2958  // ReloadDocument operation.
  2959  type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
  2960  	// GenericMetadata: The generic information of the operation.
  2961  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  2962  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  2963  	// unconditionally include in API requests. By default, fields with empty or
  2964  	// default values are omitted from API requests. See
  2965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2966  	// details.
  2967  	ForceSendFields []string `json:"-"`
  2968  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  2969  	// API requests with the JSON null value. By default, fields with empty values
  2970  	// are omitted from API requests. See
  2971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2972  	NullFields []string `json:"-"`
  2973  }
  2974  
  2975  func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  2976  	type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
  2977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2978  }
  2979  
  2980  // GoogleCloudDialogflowCxV3ResponseMessage: Represents a response message that
  2981  // can be returned by a conversational agent. Response messages are also used
  2982  // for output audio synthesis. The approach is as follows: * If at least one
  2983  // OutputAudioText response is present, then all OutputAudioText responses are
  2984  // linearly concatenated, and the result is used for output audio synthesis. *
  2985  // If the OutputAudioText responses are a mixture of text and SSML, then the
  2986  // concatenated result is treated as SSML; otherwise, the result is treated as
  2987  // either text or SSML as appropriate. The agent designer should ideally use
  2988  // either text or SSML consistently throughout the bot design. * Otherwise, all
  2989  // Text responses are linearly concatenated, and the result is used for output
  2990  // audio synthesis. This approach allows for more sophisticated user experience
  2991  // scenarios, where the text displayed to the user may differ from what is
  2992  // heard.
  2993  type GoogleCloudDialogflowCxV3ResponseMessage struct {
  2994  	// Channel: The channel which the response is associated with. Clients can
  2995  	// specify the channel via QueryParameters.channel, and only associated channel
  2996  	// response will be returned.
  2997  	Channel string `json:"channel,omitempty"`
  2998  	// ConversationSuccess: Indicates that the conversation succeeded.
  2999  	ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
  3000  	// EndInteraction: Output only. A signal that indicates the interaction with
  3001  	// the Dialogflow agent has ended. This message is generated by Dialogflow only
  3002  	// when the conversation reaches `END_SESSION` page. It is not supposed to be
  3003  	// defined by the user. It's guaranteed that there is at most one such message
  3004  	// in each response.
  3005  	EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
  3006  	// KnowledgeInfoCard: Represents info card for knowledge answers, to be better
  3007  	// rendered in Dialogflow Messenger.
  3008  	KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
  3009  	// LiveAgentHandoff: Hands off conversation to a human agent.
  3010  	LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
  3011  	// MixedAudio: Output only. An audio response message composed of both the
  3012  	// synthesized Dialogflow agent responses and responses defined via play_audio.
  3013  	// This message is generated by Dialogflow only and not supposed to be defined
  3014  	// by the user.
  3015  	MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
  3016  	// OutputAudioText: A text or ssml response that is preferentially used for TTS
  3017  	// output audio synthesis, as described in the comment on the ResponseMessage
  3018  	// message.
  3019  	OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
  3020  	// Payload: Returns a response containing a custom, platform-specific payload.
  3021  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  3022  	// PlayAudio: Signal that the client should play an audio clip hosted at a
  3023  	// client-specific URI. Dialogflow uses this to construct mixed_audio. However,
  3024  	// Dialogflow itself does not try to read or process the URI in any way.
  3025  	PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
  3026  	// ResponseType: Response type.
  3027  	//
  3028  	// Possible values:
  3029  	//   "RESPONSE_TYPE_UNSPECIFIED" - Not specified.
  3030  	//   "ENTRY_PROMPT" - The response is from an entry prompt in the page.
  3031  	//   "PARAMETER_PROMPT" - The response is from form-filling prompt in the page.
  3032  	//   "HANDLER_PROMPT" - The response is from a transition route or an event
  3033  	// handler in the page or flow or transition route group.
  3034  	ResponseType string `json:"responseType,omitempty"`
  3035  	// TelephonyTransferCall: A signal that the client should transfer the phone
  3036  	// call connected to this agent to a third-party endpoint.
  3037  	TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
  3038  	// Text: Returns a text response.
  3039  	Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
  3040  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  3041  	// include in API requests. By default, fields with empty or default values are
  3042  	// omitted from API requests. See
  3043  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3044  	// details.
  3045  	ForceSendFields []string `json:"-"`
  3046  	// NullFields is a list of field names (e.g. "Channel") to include in API
  3047  	// requests with the JSON null value. By default, fields with empty values are
  3048  	// omitted from API requests. See
  3049  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3050  	NullFields []string `json:"-"`
  3051  }
  3052  
  3053  func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
  3054  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
  3055  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3056  }
  3057  
  3058  // GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess: Indicates that
  3059  // the conversation succeeded, i.e., the bot handled the issue that the
  3060  // customer talked to it about. Dialogflow only uses this to determine which
  3061  // conversations should be counted as successful and doesn't process the
  3062  // metadata in this message in any way. Note that Dialogflow also considers
  3063  // conversations that get to the conversation end page as successful even if
  3064  // they don't return ConversationSuccess. You may set this, for example: * In
  3065  // the entry_fulfillment of a Page if entering the page indicates that the
  3066  // conversation succeeded. * In a webhook response when you determine that you
  3067  // handled the customer issue.
  3068  type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
  3069  	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.
  3070  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3071  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  3072  	// unconditionally include in API requests. By default, fields with empty or
  3073  	// default values are omitted from API requests. See
  3074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3075  	// details.
  3076  	ForceSendFields []string `json:"-"`
  3077  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  3078  	// requests with the JSON null value. By default, fields with empty values are
  3079  	// omitted from API requests. See
  3080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3081  	NullFields []string `json:"-"`
  3082  }
  3083  
  3084  func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
  3085  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
  3086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3087  }
  3088  
  3089  // GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates that
  3090  // interaction with the Dialogflow agent has ended. This message is generated
  3091  // by Dialogflow only and not supposed to be defined by the user.
  3092  type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
  3093  }
  3094  
  3095  // GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard: Represents info
  3096  // card response. If the response contains generative knowledge prediction,
  3097  // Dialogflow will return a payload with Infobot Messenger compatible info
  3098  // card. Otherwise, the info card response is skipped.
  3099  type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
  3100  }
  3101  
  3102  // GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates that the
  3103  // conversation should be handed off to a live agent. Dialogflow only uses this
  3104  // to determine which conversations were handed off to a human agent for
  3105  // measurement purposes. What else to do with this signal is up to you and your
  3106  // handoff procedures. You may set this, for example: * In the
  3107  // entry_fulfillment of a Page if entering the page indicates something went
  3108  // extremely wrong in the conversation. * In a webhook response when you
  3109  // determine that the customer issue can only be handled by a human.
  3110  type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
  3111  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
  3112  	// impose any structure on this.
  3113  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3114  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  3115  	// unconditionally include in API requests. By default, fields with empty or
  3116  	// default values are omitted from API requests. See
  3117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3118  	// details.
  3119  	ForceSendFields []string `json:"-"`
  3120  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  3121  	// requests with the JSON null value. By default, fields with empty values are
  3122  	// omitted from API requests. See
  3123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3124  	NullFields []string `json:"-"`
  3125  }
  3126  
  3127  func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
  3128  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
  3129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3130  }
  3131  
  3132  // GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an audio
  3133  // message that is composed of both segments synthesized from the Dialogflow
  3134  // agent prompts and ones hosted externally at the specified URIs. The external
  3135  // URIs are specified via play_audio. This message is generated by Dialogflow
  3136  // only and not supposed to be defined by the user.
  3137  type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
  3138  	// Segments: Segments this audio response is composed of.
  3139  	Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
  3140  	// ForceSendFields is a list of field names (e.g. "Segments") to
  3141  	// unconditionally include in API requests. By default, fields with empty or
  3142  	// default values are omitted from API requests. See
  3143  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3144  	// details.
  3145  	ForceSendFields []string `json:"-"`
  3146  	// NullFields is a list of field names (e.g. "Segments") to include in API
  3147  	// requests with the JSON null value. By default, fields with empty values are
  3148  	// omitted from API requests. See
  3149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3150  	NullFields []string `json:"-"`
  3151  }
  3152  
  3153  func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
  3154  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
  3155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3156  }
  3157  
  3158  // GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents one
  3159  // segment of audio.
  3160  type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
  3161  	// AllowPlaybackInterruption: Output only. Whether the playback of this segment
  3162  	// can be interrupted by the end user's speech and the client should then start
  3163  	// the next Dialogflow request.
  3164  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3165  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
  3166  	// output config specified in the request.
  3167  	Audio string `json:"audio,omitempty"`
  3168  	// Uri: Client-specific URI that points to an audio clip accessible to the
  3169  	// client. Dialogflow does not impose any validation on it.
  3170  	Uri string `json:"uri,omitempty"`
  3171  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3172  	// to unconditionally include in API requests. By default, fields with empty or
  3173  	// default values are omitted from API requests. See
  3174  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3175  	// details.
  3176  	ForceSendFields []string `json:"-"`
  3177  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3178  	// include in API requests with the JSON null value. By default, fields with
  3179  	// empty values are omitted from API requests. See
  3180  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3181  	NullFields []string `json:"-"`
  3182  }
  3183  
  3184  func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
  3185  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
  3186  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3187  }
  3188  
  3189  // GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or ssml
  3190  // response that is preferentially used for TTS output audio synthesis, as
  3191  // described in the comment on the ResponseMessage message.
  3192  type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
  3193  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  3194  	// can be interrupted by the end user's speech and the client can then starts
  3195  	// the next Dialogflow request.
  3196  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3197  	// Ssml: The SSML text to be synthesized. For more information, see SSML
  3198  	// (/speech/text-to-speech/docs/ssml).
  3199  	Ssml string `json:"ssml,omitempty"`
  3200  	// Text: The raw text to be synthesized.
  3201  	Text string `json:"text,omitempty"`
  3202  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3203  	// to unconditionally include in API requests. By default, fields with empty or
  3204  	// default values are omitted from API requests. See
  3205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3206  	// details.
  3207  	ForceSendFields []string `json:"-"`
  3208  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3209  	// include in API requests with the JSON null value. By default, fields with
  3210  	// empty values are omitted from API requests. See
  3211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3212  	NullFields []string `json:"-"`
  3213  }
  3214  
  3215  func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
  3216  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
  3217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3218  }
  3219  
  3220  // GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio clip
  3221  // to be played by the client as part of the response.
  3222  type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
  3223  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  3224  	// can be interrupted by the end user's speech and the client can then starts
  3225  	// the next Dialogflow request.
  3226  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3227  	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose any
  3228  	// validation on this value. It is specific to the client that reads it.
  3229  	AudioUri string `json:"audioUri,omitempty"`
  3230  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3231  	// to unconditionally include in API requests. By default, fields with empty or
  3232  	// default values are omitted from API requests. See
  3233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3234  	// details.
  3235  	ForceSendFields []string `json:"-"`
  3236  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3237  	// include in API requests with the JSON null value. By default, fields with
  3238  	// empty values are omitted from API requests. See
  3239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3240  	NullFields []string `json:"-"`
  3241  }
  3242  
  3243  func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
  3244  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
  3245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3246  }
  3247  
  3248  // GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall: Represents
  3249  // the signal that telles the client to transfer the phone call connected to
  3250  // the agent to a third-party endpoint.
  3251  type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
  3252  	// PhoneNumber: Transfer the call to a phone number in E.164 format
  3253  	// (https://en.wikipedia.org/wiki/E.164).
  3254  	PhoneNumber string `json:"phoneNumber,omitempty"`
  3255  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  3256  	// unconditionally include in API requests. By default, fields with empty or
  3257  	// default values are omitted from API requests. See
  3258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3259  	// details.
  3260  	ForceSendFields []string `json:"-"`
  3261  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  3262  	// requests with the JSON null value. By default, fields with empty values are
  3263  	// omitted from API requests. See
  3264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3265  	NullFields []string `json:"-"`
  3266  }
  3267  
  3268  func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
  3269  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
  3270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3271  }
  3272  
  3273  // GoogleCloudDialogflowCxV3ResponseMessageText: The text response message.
  3274  type GoogleCloudDialogflowCxV3ResponseMessageText struct {
  3275  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  3276  	// can be interrupted by the end user's speech and the client can then starts
  3277  	// the next Dialogflow request.
  3278  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  3279  	// Text: Required. A collection of text responses.
  3280  	Text []string `json:"text,omitempty"`
  3281  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  3282  	// to unconditionally include in API requests. By default, fields with empty or
  3283  	// default values are omitted from API requests. See
  3284  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3285  	// details.
  3286  	ForceSendFields []string `json:"-"`
  3287  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  3288  	// include in API requests with the JSON null value. By default, fields with
  3289  	// empty values are omitted from API requests. See
  3290  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3291  	NullFields []string `json:"-"`
  3292  }
  3293  
  3294  func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
  3295  	type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
  3296  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3297  }
  3298  
  3299  // GoogleCloudDialogflowCxV3RunContinuousTestMetadata: Metadata returned for
  3300  // the Environments.RunContinuousTest long running operation.
  3301  type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
  3302  	// Errors: The test errors.
  3303  	Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
  3304  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  3305  	// include in API requests. By default, fields with empty or default values are
  3306  	// omitted from API requests. See
  3307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3308  	// details.
  3309  	ForceSendFields []string `json:"-"`
  3310  	// NullFields is a list of field names (e.g. "Errors") to include in API
  3311  	// requests with the JSON null value. By default, fields with empty values are
  3312  	// omitted from API requests. See
  3313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3314  	NullFields []string `json:"-"`
  3315  }
  3316  
  3317  func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
  3318  	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
  3319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3320  }
  3321  
  3322  // GoogleCloudDialogflowCxV3RunContinuousTestResponse: The response message for
  3323  // Environments.RunContinuousTest.
  3324  type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
  3325  	// ContinuousTestResult: The result for a continuous test run.
  3326  	ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
  3327  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") 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. "ContinuousTestResult") to include
  3334  	// in API requests with the JSON null value. By default, fields with empty
  3335  	// values are 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 *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
  3341  	type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
  3342  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3343  }
  3344  
  3345  // GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for the
  3346  // TestCases.RunTestCase long running operation. This message currently has no
  3347  // fields.
  3348  type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
  3349  }
  3350  
  3351  // GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message for
  3352  // TestCases.RunTestCase.
  3353  type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
  3354  	// Result: The result.
  3355  	Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
  3356  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
  3357  	// include in API requests. By default, fields with empty or default values are
  3358  	// omitted from API requests. See
  3359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3360  	// details.
  3361  	ForceSendFields []string `json:"-"`
  3362  	// NullFields is a list of field names (e.g. "Result") to include in API
  3363  	// requests with the JSON null value. By default, fields with empty values are
  3364  	// omitted from API requests. See
  3365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3366  	NullFields []string `json:"-"`
  3367  }
  3368  
  3369  func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
  3370  	type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
  3371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3372  }
  3373  
  3374  // GoogleCloudDialogflowCxV3SessionInfo: Represents session information
  3375  // communicated to and from the webhook.
  3376  type GoogleCloudDialogflowCxV3SessionInfo struct {
  3377  	// Parameters: Optional for WebhookRequest. Optional for WebhookResponse. All
  3378  	// parameters collected from forms and intents during the session. Parameters
  3379  	// can be created, updated, or removed by the webhook. To remove a parameter
  3380  	// from the session, the webhook should explicitly set the parameter value to
  3381  	// null in WebhookResponse. The map is keyed by parameters' display names.
  3382  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  3383  	// Session: Always present for WebhookRequest. Ignored for WebhookResponse. The
  3384  	// unique identifier of the session. This field can be used by the webhook to
  3385  	// identify a session. Format: `projects//locations//agents//sessions/` or
  3386  	// `projects//locations//agents//environments//sessions/` if environment is
  3387  	// specified.
  3388  	Session string `json:"session,omitempty"`
  3389  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  3390  	// unconditionally include in API requests. By default, fields with empty or
  3391  	// default values are omitted from API requests. See
  3392  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3393  	// details.
  3394  	ForceSendFields []string `json:"-"`
  3395  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  3396  	// requests with the JSON null value. By default, fields with empty values are
  3397  	// omitted from API requests. See
  3398  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3399  	NullFields []string `json:"-"`
  3400  }
  3401  
  3402  func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
  3403  	type NoMethod GoogleCloudDialogflowCxV3SessionInfo
  3404  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3405  }
  3406  
  3407  // GoogleCloudDialogflowCxV3TestCase: Represents a test case.
  3408  type GoogleCloudDialogflowCxV3TestCase struct {
  3409  	// CreationTime: Output only. When the test was created.
  3410  	CreationTime string `json:"creationTime,omitempty"`
  3411  	// DisplayName: Required. The human-readable name of the test case, unique
  3412  	// within the agent. Limit of 200 characters.
  3413  	DisplayName string `json:"displayName,omitempty"`
  3414  	// LastTestResult: The latest test result.
  3415  	LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
  3416  	// Name: The unique identifier of the test case. TestCases.CreateTestCase will
  3417  	// populate the name automatically. Otherwise use format:
  3418  	// `projects//locations//agents/ /testCases/`.
  3419  	Name string `json:"name,omitempty"`
  3420  	// Notes: Additional freeform notes about the test case. Limit of 400
  3421  	// characters.
  3422  	Notes string `json:"notes,omitempty"`
  3423  	// Tags: Tags are short descriptions that users may apply to test cases for
  3424  	// organizational and filtering purposes. Each tag should start with "#" and
  3425  	// has a limit of 30 characters.
  3426  	Tags []string `json:"tags,omitempty"`
  3427  	// TestCaseConversationTurns: The conversation turns uttered when the test case
  3428  	// was created, in chronological order. These include the canonical set of
  3429  	// agent utterances that should occur when the agent is working properly.
  3430  	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
  3431  	// TestConfig: Config for the test case.
  3432  	TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
  3433  	// ForceSendFields is a list of field names (e.g. "CreationTime") to
  3434  	// unconditionally include in API requests. By default, fields with empty or
  3435  	// default values are omitted from API requests. See
  3436  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3437  	// details.
  3438  	ForceSendFields []string `json:"-"`
  3439  	// NullFields is a list of field names (e.g. "CreationTime") to include in API
  3440  	// requests with the JSON null value. By default, fields with empty values are
  3441  	// omitted from API requests. See
  3442  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3443  	NullFields []string `json:"-"`
  3444  }
  3445  
  3446  func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
  3447  	type NoMethod GoogleCloudDialogflowCxV3TestCase
  3448  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3449  }
  3450  
  3451  // GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a test.
  3452  type GoogleCloudDialogflowCxV3TestCaseError struct {
  3453  	// Status: The status associated with the test case.
  3454  	Status *GoogleRpcStatus `json:"status,omitempty"`
  3455  	// TestCase: The test case.
  3456  	TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
  3457  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3458  	// include in API requests. By default, fields with empty or default values are
  3459  	// omitted from API requests. See
  3460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3461  	// details.
  3462  	ForceSendFields []string `json:"-"`
  3463  	// NullFields is a list of field names (e.g. "Status") to include in API
  3464  	// requests with the JSON null value. By default, fields with empty values are
  3465  	// omitted from API requests. See
  3466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3467  	NullFields []string `json:"-"`
  3468  }
  3469  
  3470  func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
  3471  	type NoMethod GoogleCloudDialogflowCxV3TestCaseError
  3472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3473  }
  3474  
  3475  // GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from running a
  3476  // test case in an agent environment.
  3477  type GoogleCloudDialogflowCxV3TestCaseResult struct {
  3478  	// ConversationTurns: The conversation turns uttered during the test case
  3479  	// replay in chronological order.
  3480  	ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
  3481  	// Environment: Environment where the test was run. If not set, it indicates
  3482  	// the draft environment.
  3483  	Environment string `json:"environment,omitempty"`
  3484  	// Name: The resource name for the test case result. Format:
  3485  	// `projects//locations//agents//testCases/ /results/`.
  3486  	Name string `json:"name,omitempty"`
  3487  	// TestResult: Whether the test case passed in the agent environment.
  3488  	//
  3489  	// Possible values:
  3490  	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
  3491  	//   "PASSED" - The test passed.
  3492  	//   "FAILED" - The test did not pass.
  3493  	TestResult string `json:"testResult,omitempty"`
  3494  	// TestTime: The time that the test was run.
  3495  	TestTime string `json:"testTime,omitempty"`
  3496  	// ForceSendFields is a list of field names (e.g. "ConversationTurns") to
  3497  	// unconditionally include in API requests. By default, fields with empty or
  3498  	// default values are omitted from API requests. See
  3499  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3500  	// details.
  3501  	ForceSendFields []string `json:"-"`
  3502  	// NullFields is a list of field names (e.g. "ConversationTurns") to include in
  3503  	// API requests with the JSON null value. By default, fields with empty values
  3504  	// are omitted from API requests. See
  3505  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3506  	NullFields []string `json:"-"`
  3507  }
  3508  
  3509  func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
  3510  	type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
  3511  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3512  }
  3513  
  3514  // GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a test
  3515  // case.
  3516  type GoogleCloudDialogflowCxV3TestConfig struct {
  3517  	// Flow: Flow name to start the test case with. Format:
  3518  	// `projects//locations//agents//flows/`. Only one of `flow` and `page` should
  3519  	// be set to indicate the starting point of the test case. If both are set,
  3520  	// `page` takes precedence over `flow`. If neither is set, the test case will
  3521  	// start with start page on the default start flow.
  3522  	Flow string `json:"flow,omitempty"`
  3523  	// Page: The page to start the test case with. Format:
  3524  	// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`
  3525  	// should be set to indicate the starting point of the test case. If both are
  3526  	// set, `page` takes precedence over `flow`. If neither is set, the test case
  3527  	// will start with start page on the default start flow.
  3528  	Page string `json:"page,omitempty"`
  3529  	// TrackingParameters: Session parameters to be compared when calculating
  3530  	// differences.
  3531  	TrackingParameters []string `json:"trackingParameters,omitempty"`
  3532  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  3533  	// include in API requests. By default, fields with empty or default values are
  3534  	// omitted from API requests. See
  3535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3536  	// details.
  3537  	ForceSendFields []string `json:"-"`
  3538  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  3539  	// with the JSON null value. By default, fields with empty values are omitted
  3540  	// from API requests. See
  3541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3542  	NullFields []string `json:"-"`
  3543  }
  3544  
  3545  func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
  3546  	type NoMethod GoogleCloudDialogflowCxV3TestConfig
  3547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3548  }
  3549  
  3550  // GoogleCloudDialogflowCxV3TestError: Error info for running a test.
  3551  type GoogleCloudDialogflowCxV3TestError struct {
  3552  	// Status: The status associated with the test.
  3553  	Status *GoogleRpcStatus `json:"status,omitempty"`
  3554  	// TestCase: The test case resource name.
  3555  	TestCase string `json:"testCase,omitempty"`
  3556  	// TestTime: The timestamp when the test was completed.
  3557  	TestTime string `json:"testTime,omitempty"`
  3558  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  3559  	// include in API requests. By default, fields with empty or default values are
  3560  	// omitted from API requests. See
  3561  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3562  	// details.
  3563  	ForceSendFields []string `json:"-"`
  3564  	// NullFields is a list of field names (e.g. "Status") to include in API
  3565  	// requests with the JSON null value. By default, fields with empty values are
  3566  	// omitted from API requests. See
  3567  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3568  	NullFields []string `json:"-"`
  3569  }
  3570  
  3571  func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
  3572  	type NoMethod GoogleCloudDialogflowCxV3TestError
  3573  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3574  }
  3575  
  3576  // GoogleCloudDialogflowCxV3TestRunDifference: The description of differences
  3577  // between original and replayed agent output.
  3578  type GoogleCloudDialogflowCxV3TestRunDifference struct {
  3579  	// Description: A human readable description of the diff, showing the actual
  3580  	// output vs expected output.
  3581  	Description string `json:"description,omitempty"`
  3582  	// Type: The type of diff.
  3583  	//
  3584  	// Possible values:
  3585  	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
  3586  	//   "INTENT" - The intent.
  3587  	//   "PAGE" - The page.
  3588  	//   "PARAMETERS" - The parameters.
  3589  	//   "UTTERANCE" - The message utterance.
  3590  	//   "FLOW" - The flow.
  3591  	Type string `json:"type,omitempty"`
  3592  	// ForceSendFields is a list of field names (e.g. "Description") to
  3593  	// unconditionally include in API requests. By default, fields with empty or
  3594  	// default values are omitted from API requests. See
  3595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3596  	// details.
  3597  	ForceSendFields []string `json:"-"`
  3598  	// NullFields is a list of field names (e.g. "Description") to include in API
  3599  	// requests with the JSON null value. By default, fields with empty values are
  3600  	// omitted from API requests. See
  3601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3602  	NullFields []string `json:"-"`
  3603  }
  3604  
  3605  func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
  3606  	type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
  3607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3608  }
  3609  
  3610  // GoogleCloudDialogflowCxV3TextInput: Represents the natural language text to
  3611  // be processed.
  3612  type GoogleCloudDialogflowCxV3TextInput struct {
  3613  	// Text: Required. The UTF-8 encoded natural language text to be processed.
  3614  	Text string `json:"text,omitempty"`
  3615  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  3616  	// include in API requests. By default, fields with empty or default values are
  3617  	// omitted from API requests. See
  3618  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3619  	// details.
  3620  	ForceSendFields []string `json:"-"`
  3621  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  3622  	// with the JSON null value. By default, fields with empty values are omitted
  3623  	// from API requests. See
  3624  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3625  	NullFields []string `json:"-"`
  3626  }
  3627  
  3628  func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
  3629  	type NoMethod GoogleCloudDialogflowCxV3TextInput
  3630  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3631  }
  3632  
  3633  // GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a
  3634  // intent that can be matched and/or a data condition that can be evaluated
  3635  // during a session. When a specified transition is matched, the following
  3636  // actions are taken in order: * If there is a `trigger_fulfillment` associated
  3637  // with the transition, it will be called. * If there is a `target_page`
  3638  // associated with the transition, the session will transition into the
  3639  // specified page. * If there is a `target_flow` associated with the
  3640  // transition, the session will transition into the specified flow.
  3641  type GoogleCloudDialogflowCxV3TransitionRoute struct {
  3642  	// Condition: The condition to evaluate against form parameters or session
  3643  	// parameters. See the conditions reference
  3644  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least
  3645  	// one of `intent` or `condition` must be specified. When both `intent` and
  3646  	// `condition` are specified, the transition can only happen when both are
  3647  	// fulfilled.
  3648  	Condition string `json:"condition,omitempty"`
  3649  	// Description: Optional. The description of the transition route. The maximum
  3650  	// length is 500 characters.
  3651  	Description string `json:"description,omitempty"`
  3652  	// Intent: The unique identifier of an Intent. Format:
  3653  	// `projects//locations//agents//intents/`. Indicates that the transition can
  3654  	// only happen when the given intent is matched. At least one of `intent` or
  3655  	// `condition` must be specified. When both `intent` and `condition` are
  3656  	// specified, the transition can only happen when both are fulfilled.
  3657  	Intent string `json:"intent,omitempty"`
  3658  	// Name: Output only. The unique identifier of this transition route.
  3659  	Name string `json:"name,omitempty"`
  3660  	// TargetFlow: The target flow to transition to. Format:
  3661  	// `projects//locations//agents//flows/`.
  3662  	TargetFlow string `json:"targetFlow,omitempty"`
  3663  	// TargetPage: The target page to transition to. Format:
  3664  	// `projects//locations//agents//flows//pages/`.
  3665  	TargetPage string `json:"targetPage,omitempty"`
  3666  	// TriggerFulfillment: The fulfillment to call when the condition is satisfied.
  3667  	// At least one of `trigger_fulfillment` and `target` must be specified. When
  3668  	// both are defined, `trigger_fulfillment` is executed first.
  3669  	TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
  3670  	// ForceSendFields is a list of field names (e.g. "Condition") to
  3671  	// unconditionally include in API requests. By default, fields with empty or
  3672  	// default values are omitted from API requests. See
  3673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3674  	// details.
  3675  	ForceSendFields []string `json:"-"`
  3676  	// NullFields is a list of field names (e.g. "Condition") to include in API
  3677  	// requests with the JSON null value. By default, fields with empty values are
  3678  	// omitted from API requests. See
  3679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3680  	NullFields []string `json:"-"`
  3681  }
  3682  
  3683  func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
  3684  	type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
  3685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3686  }
  3687  
  3688  // GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that were
  3689  // extracted for a single turn of the conversation.
  3690  type GoogleCloudDialogflowCxV3TurnSignals struct {
  3691  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
  3692  	AgentEscalated bool `json:"agentEscalated,omitempty"`
  3693  	// DtmfUsed: Whether user was using DTMF input.
  3694  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
  3695  	// FailureReasons: Failure reasons of the turn.
  3696  	//
  3697  	// Possible values:
  3698  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
  3699  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
  3700  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
  3701  	FailureReasons []string `json:"failureReasons,omitempty"`
  3702  	// NoMatch: Whether NLU predicted NO_MATCH.
  3703  	NoMatch bool `json:"noMatch,omitempty"`
  3704  	// NoUserInput: Whether user provided no input.
  3705  	NoUserInput bool `json:"noUserInput,omitempty"`
  3706  	// ReachedEndPage: Whether turn resulted in End Session page.
  3707  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
  3708  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
  3709  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  3710  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
  3711  	// SentimentScore: Sentiment score of the user utterance if sentiment
  3712  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  3713  	SentimentScore float64 `json:"sentimentScore,omitempty"`
  3714  	// UserEscalated: Whether user was specifically asking for a live agent.
  3715  	UserEscalated bool `json:"userEscalated,omitempty"`
  3716  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
  3717  	// this turn.
  3718  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
  3719  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
  3720  	// unconditionally include in API requests. By default, fields with empty or
  3721  	// default values are omitted from API requests. See
  3722  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3723  	// details.
  3724  	ForceSendFields []string `json:"-"`
  3725  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
  3726  	// API requests with the JSON null value. By default, fields with empty values
  3727  	// are omitted from API requests. See
  3728  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3729  	NullFields []string `json:"-"`
  3730  }
  3731  
  3732  func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
  3733  	type NoMethod GoogleCloudDialogflowCxV3TurnSignals
  3734  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3735  }
  3736  
  3737  func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
  3738  	type NoMethod GoogleCloudDialogflowCxV3TurnSignals
  3739  	var s1 struct {
  3740  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
  3741  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
  3742  		*NoMethod
  3743  	}
  3744  	s1.NoMethod = (*NoMethod)(s)
  3745  	if err := json.Unmarshal(data, &s1); err != nil {
  3746  		return err
  3747  	}
  3748  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
  3749  	s.SentimentScore = float64(s1.SentimentScore)
  3750  	return nil
  3751  }
  3752  
  3753  // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata for
  3754  // UpdateDocument operation.
  3755  type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
  3756  	// GenericMetadata: The generic information of the operation.
  3757  	GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  3758  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  3759  	// unconditionally include in API requests. By default, fields with empty or
  3760  	// default values are omitted from API requests. See
  3761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3762  	// details.
  3763  	ForceSendFields []string `json:"-"`
  3764  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  3765  	// API requests with the JSON null value. By default, fields with empty values
  3766  	// are omitted from API requests. See
  3767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3768  	NullFields []string `json:"-"`
  3769  }
  3770  
  3771  func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  3772  	type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
  3773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3774  }
  3775  
  3776  // GoogleCloudDialogflowCxV3Webhook: Webhooks host the developer's business
  3777  // logic. During a session, webhooks allow the developer to use the data
  3778  // extracted by Dialogflow's natural language processing to generate dynamic
  3779  // responses, validate collected data, or trigger actions on the backend.
  3780  type GoogleCloudDialogflowCxV3Webhook struct {
  3781  	// Disabled: Indicates whether the webhook is disabled.
  3782  	Disabled bool `json:"disabled,omitempty"`
  3783  	// DisplayName: Required. The human-readable name of the webhook, unique within
  3784  	// the agent.
  3785  	DisplayName string `json:"displayName,omitempty"`
  3786  	// GenericWebService: Configuration for a generic web service.
  3787  	GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
  3788  	// Name: The unique identifier of the webhook. Required for the
  3789  	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
  3790  	// automatically. Format: `projects//locations//agents//webhooks/`.
  3791  	Name string `json:"name,omitempty"`
  3792  	// ServiceDirectory: Configuration for a Service Directory
  3793  	// (https://cloud.google.com/service-directory) service.
  3794  	ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
  3795  	// Timeout: Webhook execution timeout. Execution is considered failed if
  3796  	// Dialogflow doesn't receive a response from webhook at the end of the timeout
  3797  	// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
  3798  	Timeout string `json:"timeout,omitempty"`
  3799  	// ForceSendFields is a list of field names (e.g. "Disabled") to
  3800  	// unconditionally include in API requests. By default, fields with empty or
  3801  	// default values are omitted from API requests. See
  3802  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3803  	// details.
  3804  	ForceSendFields []string `json:"-"`
  3805  	// NullFields is a list of field names (e.g. "Disabled") to include in API
  3806  	// requests with the JSON null value. By default, fields with empty values are
  3807  	// omitted from API requests. See
  3808  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3809  	NullFields []string `json:"-"`
  3810  }
  3811  
  3812  func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
  3813  	type NoMethod GoogleCloudDialogflowCxV3Webhook
  3814  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3815  }
  3816  
  3817  // GoogleCloudDialogflowCxV3WebhookGenericWebService: Represents configuration
  3818  // for a generic web service.
  3819  type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
  3820  	// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates
  3821  	// (in DER format) for HTTPS verification. This overrides the default SSL trust
  3822  	// store. If this is empty or unspecified, Dialogflow will use Google's default
  3823  	// trust store to verify certificates. N.B. Make sure the HTTPS server
  3824  	// certificates are signed with "subject alt name". For instance a certificate
  3825  	// can be self-signed using the following command, ``` openssl x509 -req -days
  3826  	// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \
  3827  	// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") ```
  3828  	AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
  3829  	// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard
  3830  	// webhook always uses POST.
  3831  	//
  3832  	// Possible values:
  3833  	//   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.
  3834  	//   "POST" - HTTP POST Method.
  3835  	//   "GET" - HTTP GET Method.
  3836  	//   "HEAD" - HTTP HEAD Method.
  3837  	//   "PUT" - HTTP PUT Method.
  3838  	//   "DELETE" - HTTP DELETE Method.
  3839  	//   "PATCH" - HTTP PATCH Method.
  3840  	//   "OPTIONS" - HTTP OPTIONS Method.
  3841  	HttpMethod string `json:"httpMethod,omitempty"`
  3842  	// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,
  3843  	// Dialogflow will initiate the OAuth client credential flow to exchange an
  3844  	// access token from the 3rd party platform and put it in the auth header.
  3845  	OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
  3846  	// ParameterMapping: Optional. Maps the values extracted from specific fields
  3847  	// of the flexible webhook response into session parameters. - Key: session
  3848  	// parameter name - Value: field path in the webhook response
  3849  	ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
  3850  	// Password: The password for HTTP Basic authentication.
  3851  	Password string `json:"password,omitempty"`
  3852  	// RequestBody: Optional. Defines a custom JSON object as request body to send
  3853  	// to flexible webhook.
  3854  	RequestBody string `json:"requestBody,omitempty"`
  3855  	// RequestHeaders: The HTTP request headers to send together with webhook
  3856  	// requests.
  3857  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
  3858  	// ServiceAgentAuth: Optional. Indicate the auth token type generated from the
  3859  	// Diglogflow service agent
  3860  	// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
  3861  	// The generated token is sent in the Authorization header.
  3862  	//
  3863  	// Possible values:
  3864  	//   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.
  3865  	// Default to ID_TOKEN.
  3866  	//   "NONE" - No token used.
  3867  	//   "ID_TOKEN" - Use [ID
  3868  	// token](https://cloud.google.com/docs/authentication/token-types#id)
  3869  	// generated from service agent. This can be used to access Cloud Function and
  3870  	// Cloud Run after you grant Invoker role to
  3871  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  3872  	//   "ACCESS_TOKEN" - Use [access
  3873  	// token](https://cloud.google.com/docs/authentication/token-types#access)
  3874  	// generated from service agent. This can be used to access other Google Cloud
  3875  	// APIs after you grant required roles to
  3876  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  3877  	ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
  3878  	// Uri: Required. The webhook URI for receiving POST requests. It must use
  3879  	// https protocol.
  3880  	Uri string `json:"uri,omitempty"`
  3881  	// Username: The user name for HTTP Basic authentication.
  3882  	Username string `json:"username,omitempty"`
  3883  	// WebhookType: Optional. Type of the webhook.
  3884  	//
  3885  	// Possible values:
  3886  	//   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.
  3887  	//   "STANDARD" - Represents a standard webhook.
  3888  	//   "FLEXIBLE" - Represents a flexible webhook.
  3889  	WebhookType string `json:"webhookType,omitempty"`
  3890  	// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to
  3891  	// unconditionally include in API requests. By default, fields with empty or
  3892  	// default values are omitted from API requests. See
  3893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3894  	// details.
  3895  	ForceSendFields []string `json:"-"`
  3896  	// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in
  3897  	// API requests with the JSON null value. By default, fields with empty values
  3898  	// are omitted from API requests. See
  3899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3900  	NullFields []string `json:"-"`
  3901  }
  3902  
  3903  func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
  3904  	type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
  3905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3906  }
  3907  
  3908  // GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig: Represents
  3909  // configuration of OAuth client credential flow for 3rd party API
  3910  // authentication.
  3911  type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
  3912  	// ClientId: Required. The client ID provided by the 3rd party platform.
  3913  	ClientId string `json:"clientId,omitempty"`
  3914  	// ClientSecret: Required. The client secret provided by the 3rd party
  3915  	// platform.
  3916  	ClientSecret string `json:"clientSecret,omitempty"`
  3917  	// Scopes: Optional. The OAuth scopes to grant.
  3918  	Scopes []string `json:"scopes,omitempty"`
  3919  	// TokenEndpoint: Required. The token endpoint provided by the 3rd party
  3920  	// platform to exchange an access token.
  3921  	TokenEndpoint string `json:"tokenEndpoint,omitempty"`
  3922  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  3923  	// unconditionally include in API requests. By default, fields with empty or
  3924  	// default values are omitted from API requests. See
  3925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3926  	// details.
  3927  	ForceSendFields []string `json:"-"`
  3928  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  3929  	// requests with the JSON null value. By default, fields with empty values are
  3930  	// omitted from API requests. See
  3931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3932  	NullFields []string `json:"-"`
  3933  }
  3934  
  3935  func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
  3936  	type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
  3937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3938  }
  3939  
  3940  // GoogleCloudDialogflowCxV3WebhookRequest: The request message for a webhook
  3941  // call. The request is sent as a JSON object and the field names will be
  3942  // presented in camel cases. You may see undocumented fields in an actual
  3943  // request. These fields are used internally by Dialogflow and should be
  3944  // ignored.
  3945  type GoogleCloudDialogflowCxV3WebhookRequest struct {
  3946  	// DetectIntentResponseId: Always present. The unique identifier of the
  3947  	// DetectIntentResponse that will be returned to the API caller.
  3948  	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
  3949  	// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF
  3950  	// digits.
  3951  	DtmfDigits string `json:"dtmfDigits,omitempty"`
  3952  	// FulfillmentInfo: Always present. Information about the fulfillment that
  3953  	// triggered this webhook call.
  3954  	FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
  3955  	// IntentInfo: Information about the last matched intent.
  3956  	IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
  3957  	// LanguageCode: The language code specified in the original request.
  3958  	LanguageCode string `json:"languageCode,omitempty"`
  3959  	// LanguageInfo: Information about the language of the request.
  3960  	LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
  3961  	// Messages: The list of rich message responses to present to the user. Webhook
  3962  	// can choose to append or replace this list in
  3963  	// WebhookResponse.fulfillment_response;
  3964  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  3965  	// PageInfo: Information about page status.
  3966  	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
  3967  	// Payload: Custom data set in QueryParameters.payload.
  3968  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  3969  	// SentimentAnalysisResult: The sentiment analysis result of the current user
  3970  	// request. The field is filled when sentiment analysis is configured to be
  3971  	// enabled for the request.
  3972  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  3973  	// SessionInfo: Information about session status.
  3974  	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
  3975  	// Text: If natural language text was provided as input, this field will
  3976  	// contain a copy of the text.
  3977  	Text string `json:"text,omitempty"`
  3978  	// Transcript: If natural language speech audio was provided as input, this
  3979  	// field will contain the transcript for the audio.
  3980  	Transcript string `json:"transcript,omitempty"`
  3981  	// TriggerEvent: If an event was provided as input, this field will contain the
  3982  	// name of the event.
  3983  	TriggerEvent string `json:"triggerEvent,omitempty"`
  3984  	// TriggerIntent: If an intent was provided as input, this field will contain a
  3985  	// copy of the intent identifier. Format:
  3986  	// `projects//locations//agents//intents/`.
  3987  	TriggerIntent string `json:"triggerIntent,omitempty"`
  3988  	// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to
  3989  	// unconditionally include in API requests. By default, fields with empty or
  3990  	// default values are omitted from API requests. See
  3991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3992  	// details.
  3993  	ForceSendFields []string `json:"-"`
  3994  	// NullFields is a list of field names (e.g. "DetectIntentResponseId") to
  3995  	// include in API requests with the JSON null value. By default, fields with
  3996  	// empty values are omitted from API requests. See
  3997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3998  	NullFields []string `json:"-"`
  3999  }
  4000  
  4001  func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
  4002  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
  4003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4004  }
  4005  
  4006  // GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents
  4007  // fulfillment information communicated to the webhook.
  4008  type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
  4009  	// Tag: Always present. The value of the Fulfillment.tag field will be
  4010  	// populated in this field by Dialogflow when the associated webhook is called.
  4011  	// The tag is typically used by the webhook service to identify which
  4012  	// fulfillment is being called, but it could be used for other purposes.
  4013  	Tag string `json:"tag,omitempty"`
  4014  	// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally
  4015  	// include in API requests. By default, fields with empty or default values are
  4016  	// omitted from API requests. See
  4017  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4018  	// details.
  4019  	ForceSendFields []string `json:"-"`
  4020  	// NullFields is a list of field names (e.g. "Tag") to include in API requests
  4021  	// with the JSON null value. By default, fields with empty values are omitted
  4022  	// from API requests. See
  4023  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4024  	NullFields []string `json:"-"`
  4025  }
  4026  
  4027  func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
  4028  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
  4029  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4030  }
  4031  
  4032  // GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent
  4033  // information communicated to the webhook.
  4034  type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
  4035  	// Confidence: The confidence of the matched intent. Values range from 0.0
  4036  	// (completely uncertain) to 1.0 (completely certain).
  4037  	Confidence float64 `json:"confidence,omitempty"`
  4038  	// DisplayName: Always present. The display name of the last matched intent.
  4039  	DisplayName string `json:"displayName,omitempty"`
  4040  	// LastMatchedIntent: Always present. The unique identifier of the last matched
  4041  	// intent. Format: `projects//locations//agents//intents/`.
  4042  	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
  4043  	// Parameters: Parameters identified as a result of intent matching. This is a
  4044  	// map of the name of the identified parameter to the value of the parameter
  4045  	// identified from the user's utterance. All parameters defined in the matched
  4046  	// intent that are identified will be surfaced here.
  4047  	Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
  4048  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  4049  	// unconditionally include in API requests. By default, fields with empty or
  4050  	// default values are omitted from API requests. See
  4051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4052  	// details.
  4053  	ForceSendFields []string `json:"-"`
  4054  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  4055  	// requests with the JSON null value. By default, fields with empty values are
  4056  	// omitted from API requests. See
  4057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4058  	NullFields []string `json:"-"`
  4059  }
  4060  
  4061  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
  4062  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
  4063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4064  }
  4065  
  4066  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
  4067  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
  4068  	var s1 struct {
  4069  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  4070  		*NoMethod
  4071  	}
  4072  	s1.NoMethod = (*NoMethod)(s)
  4073  	if err := json.Unmarshal(data, &s1); err != nil {
  4074  		return err
  4075  	}
  4076  	s.Confidence = float64(s1.Confidence)
  4077  	return nil
  4078  }
  4079  
  4080  // GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
  4081  // Represents a value for an intent parameter.
  4082  type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
  4083  	// OriginalValue: Always present. Original text value extracted from user
  4084  	// utterance.
  4085  	OriginalValue string `json:"originalValue,omitempty"`
  4086  	// ResolvedValue: Always present. Structured value for the parameter extracted
  4087  	// from user utterance.
  4088  	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
  4089  	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
  4090  	// unconditionally include in API requests. By default, fields with empty or
  4091  	// default values are omitted from API requests. See
  4092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4093  	// details.
  4094  	ForceSendFields []string `json:"-"`
  4095  	// NullFields is a list of field names (e.g. "OriginalValue") to include in API
  4096  	// requests with the JSON null value. By default, fields with empty values are
  4097  	// omitted from API requests. See
  4098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4099  	NullFields []string `json:"-"`
  4100  }
  4101  
  4102  func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
  4103  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
  4104  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4105  }
  4106  
  4107  // GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult: Represents
  4108  // the result of sentiment analysis.
  4109  type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
  4110  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
  4111  	// the absolute magnitude of sentiment, regardless of score (positive or
  4112  	// negative).
  4113  	Magnitude float64 `json:"magnitude,omitempty"`
  4114  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
  4115  	// sentiment).
  4116  	Score float64 `json:"score,omitempty"`
  4117  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
  4118  	// unconditionally include in API requests. By default, fields with empty or
  4119  	// default values are omitted from API requests. See
  4120  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4121  	// details.
  4122  	ForceSendFields []string `json:"-"`
  4123  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
  4124  	// requests with the JSON null value. By default, fields with empty values are
  4125  	// omitted from API requests. See
  4126  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4127  	NullFields []string `json:"-"`
  4128  }
  4129  
  4130  func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
  4131  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
  4132  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4133  }
  4134  
  4135  func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
  4136  	type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
  4137  	var s1 struct {
  4138  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  4139  		Score     gensupport.JSONFloat64 `json:"score"`
  4140  		*NoMethod
  4141  	}
  4142  	s1.NoMethod = (*NoMethod)(s)
  4143  	if err := json.Unmarshal(data, &s1); err != nil {
  4144  		return err
  4145  	}
  4146  	s.Magnitude = float64(s1.Magnitude)
  4147  	s.Score = float64(s1.Score)
  4148  	return nil
  4149  }
  4150  
  4151  // GoogleCloudDialogflowCxV3WebhookResponse: The response message for a webhook
  4152  // call.
  4153  type GoogleCloudDialogflowCxV3WebhookResponse struct {
  4154  	// FulfillmentResponse: The fulfillment response to send to the user. This
  4155  	// field can be omitted by the webhook if it does not intend to send any
  4156  	// response to the user.
  4157  	FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
  4158  	// PageInfo: Information about page status. This field can be omitted by the
  4159  	// webhook if it does not intend to modify page status.
  4160  	PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
  4161  	// Payload: Value to append directly to QueryResult.webhook_payloads.
  4162  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  4163  	// SessionInfo: Information about session status. This field can be omitted by
  4164  	// the webhook if it does not intend to modify session status.
  4165  	SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
  4166  	// TargetFlow: The target flow to transition to. Format:
  4167  	// `projects//locations//agents//flows/`.
  4168  	TargetFlow string `json:"targetFlow,omitempty"`
  4169  	// TargetPage: The target page to transition to. Format:
  4170  	// `projects//locations//agents//flows//pages/`.
  4171  	TargetPage string `json:"targetPage,omitempty"`
  4172  	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to
  4173  	// unconditionally include in API requests. By default, fields with empty or
  4174  	// default values are omitted from API requests. See
  4175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4176  	// details.
  4177  	ForceSendFields []string `json:"-"`
  4178  	// NullFields is a list of field names (e.g. "FulfillmentResponse") to include
  4179  	// in API requests with the JSON null value. By default, fields with empty
  4180  	// values are omitted from API requests. See
  4181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4182  	NullFields []string `json:"-"`
  4183  }
  4184  
  4185  func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
  4186  	type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
  4187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4188  }
  4189  
  4190  // GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse: Represents a
  4191  // fulfillment response to the user.
  4192  type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
  4193  	// MergeBehavior: Merge behavior for `messages`.
  4194  	//
  4195  	// Possible values:
  4196  	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used.
  4197  	//   "APPEND" - `messages` will be appended to the list of messages waiting to
  4198  	// be sent to the user.
  4199  	//   "REPLACE" - `messages` will replace the list of messages waiting to be
  4200  	// sent to the user.
  4201  	MergeBehavior string `json:"mergeBehavior,omitempty"`
  4202  	// Messages: The list of rich message responses to present to the user.
  4203  	Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
  4204  	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
  4205  	// unconditionally include in API requests. By default, fields with empty or
  4206  	// default values are omitted from API requests. See
  4207  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4208  	// details.
  4209  	ForceSendFields []string `json:"-"`
  4210  	// NullFields is a list of field names (e.g. "MergeBehavior") to include in API
  4211  	// requests with the JSON null value. By default, fields with empty values are
  4212  	// omitted from API requests. See
  4213  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4214  	NullFields []string `json:"-"`
  4215  }
  4216  
  4217  func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
  4218  	type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
  4219  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4220  }
  4221  
  4222  // GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig: Represents
  4223  // configuration for a Service Directory
  4224  // (https://cloud.google.com/service-directory) service.
  4225  type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
  4226  	// GenericWebService: Generic Service configuration of this webhook.
  4227  	GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
  4228  	// Service: Required. The name of Service Directory
  4229  	// (https://cloud.google.com/service-directory) service. Format:
  4230  	// `projects//locations//namespaces//services/`. `Location ID` of the service
  4231  	// directory must be the same as the location of the agent.
  4232  	Service string `json:"service,omitempty"`
  4233  	// ForceSendFields is a list of field names (e.g. "GenericWebService") to
  4234  	// unconditionally include in API requests. By default, fields with empty or
  4235  	// default values are omitted from API requests. See
  4236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4237  	// details.
  4238  	ForceSendFields []string `json:"-"`
  4239  	// NullFields is a list of field names (e.g. "GenericWebService") to include in
  4240  	// API requests with the JSON null value. By default, fields with empty values
  4241  	// are omitted from API requests. See
  4242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4243  	NullFields []string `json:"-"`
  4244  }
  4245  
  4246  func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
  4247  	type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
  4248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4249  }
  4250  
  4251  // GoogleCloudDialogflowCxV3beta1AdvancedSettings: Hierarchical advanced
  4252  // settings for agent/flow/page/fulfillment/parameter. Settings exposed at
  4253  // lower level overrides the settings exposed at higher level. Overriding
  4254  // occurs at the sub-setting level. For example, the
  4255  // playback_interruption_settings at fulfillment level only overrides the
  4256  // playback_interruption_settings at the agent level, leaving other settings at
  4257  // the agent level unchanged. DTMF settings does not override each other. DTMF
  4258  // settings set at different levels define DTMF detections running in parallel.
  4259  // Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
  4260  type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
  4261  	// AudioExportGcsDestination: If present, incoming audio is exported by
  4262  	// Dialogflow to the configured Google Cloud Storage destination. Exposed at
  4263  	// the following levels: - Agent level - Flow level
  4264  	AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
  4265  	// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent
  4266  	// level - Flow level - Page level - Parameter level.
  4267  	DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
  4268  	// LoggingSettings: Settings for logging. Settings for Dialogflow History,
  4269  	// Contact Center messages, StackDriver logs, and speech logging. Exposed at
  4270  	// the following levels: - Agent level.
  4271  	LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
  4272  	// SpeechSettings: Settings for speech to text detection. Exposed at the
  4273  	// following levels: - Agent level - Flow level - Page level - Parameter level
  4274  	SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
  4275  	// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")
  4276  	// to unconditionally include in API requests. By default, fields with empty or
  4277  	// default values are omitted from API requests. See
  4278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4279  	// details.
  4280  	ForceSendFields []string `json:"-"`
  4281  	// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to
  4282  	// include in API requests with the JSON null value. By default, fields with
  4283  	// empty values are omitted from API requests. See
  4284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4285  	NullFields []string `json:"-"`
  4286  }
  4287  
  4288  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
  4289  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
  4290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4291  }
  4292  
  4293  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings: Define behaviors
  4294  // for DTMF (dual tone multi frequency).
  4295  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
  4296  	// Enabled: If true, incoming audio is processed for DTMF (dual tone multi
  4297  	// frequency) events. For example, if the caller presses a button on their
  4298  	// telephone keypad and DTMF processing is enabled, Dialogflow will detect the
  4299  	// event (e.g. a "3" was pressed) in the incoming audio and pass the event to
  4300  	// the bot to drive business logic (e.g. when 3 is pressed, return the account
  4301  	// balance).
  4302  	Enabled bool `json:"enabled,omitempty"`
  4303  	// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input
  4304  	// to regex.
  4305  	EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
  4306  	// FinishDigit: The digit that terminates a DTMF digit sequence.
  4307  	FinishDigit string `json:"finishDigit,omitempty"`
  4308  	// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf
  4309  	// input to regex.
  4310  	InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
  4311  	// MaxDigits: Max length of DTMF digits.
  4312  	MaxDigits int64 `json:"maxDigits,omitempty"`
  4313  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  4314  	// include in API requests. By default, fields with empty or default values are
  4315  	// omitted from API requests. See
  4316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4317  	// details.
  4318  	ForceSendFields []string `json:"-"`
  4319  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  4320  	// requests with the JSON null value. By default, fields with empty values are
  4321  	// omitted from API requests. See
  4322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4323  	NullFields []string `json:"-"`
  4324  }
  4325  
  4326  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
  4327  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
  4328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4329  }
  4330  
  4331  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Define
  4332  // behaviors on logging.
  4333  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
  4334  	// EnableInteractionLogging: If true, DF Interaction logging is currently
  4335  	// enabled.
  4336  	EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
  4337  	// EnableStackdriverLogging: If true, StackDriver logging is currently enabled.
  4338  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
  4339  	// ForceSendFields is a list of field names (e.g. "EnableInteractionLogging")
  4340  	// to unconditionally include in API requests. By default, fields with empty or
  4341  	// default values are omitted from API requests. See
  4342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4343  	// details.
  4344  	ForceSendFields []string `json:"-"`
  4345  	// NullFields is a list of field names (e.g. "EnableInteractionLogging") to
  4346  	// include in API requests with the JSON null value. By default, fields with
  4347  	// empty values are omitted from API requests. See
  4348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4349  	NullFields []string `json:"-"`
  4350  }
  4351  
  4352  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
  4353  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
  4354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4355  }
  4356  
  4357  // GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings: Define
  4358  // behaviors of speech to text detection.
  4359  type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
  4360  	// EndpointerSensitivity: Sensitivity of the speech model that detects the end
  4361  	// of speech. Scale from 0 to 100.
  4362  	EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
  4363  	// Models: Mapping from language to Speech-to-Text model. The mapped
  4364  	// Speech-to-Text model will be selected for requests from its corresponding
  4365  	// language. For more information, see Speech models
  4366  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  4367  	Models map[string]string `json:"models,omitempty"`
  4368  	// NoSpeechTimeout: Timeout before detecting no speech.
  4369  	NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
  4370  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
  4371  	// endpointer sensitivy as seconds of timeout value.
  4372  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
  4373  	// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to
  4374  	// unconditionally include in API requests. By default, fields with empty or
  4375  	// default values are omitted from API requests. See
  4376  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4377  	// details.
  4378  	ForceSendFields []string `json:"-"`
  4379  	// NullFields is a list of field names (e.g. "EndpointerSensitivity") to
  4380  	// include in API requests with the JSON null value. By default, fields with
  4381  	// empty values are omitted from API requests. See
  4382  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4383  	NullFields []string `json:"-"`
  4384  }
  4385  
  4386  func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
  4387  	type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
  4388  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4389  }
  4390  
  4391  // GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural speech
  4392  // audio to be processed.
  4393  type GoogleCloudDialogflowCxV3beta1AudioInput struct {
  4394  	// Audio: The natural language speech audio to be processed. A single request
  4395  	// can contain up to 2 minutes of speech audio data. The transcribed text
  4396  	// cannot contain more than 256 bytes. For non-streaming audio detect intent,
  4397  	// both `config` and `audio` must be provided. For streaming audio detect
  4398  	// intent, `config` must be provided in the first request and `audio` must be
  4399  	// provided in all following requests.
  4400  	Audio string `json:"audio,omitempty"`
  4401  	// Config: Required. Instructs the speech recognizer how to process the speech
  4402  	// audio.
  4403  	Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
  4404  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  4405  	// include in API requests. By default, fields with empty or default values are
  4406  	// omitted from API requests. See
  4407  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4408  	// details.
  4409  	ForceSendFields []string `json:"-"`
  4410  	// NullFields is a list of field names (e.g. "Audio") to include in API
  4411  	// requests with the JSON null value. By default, fields with empty values are
  4412  	// omitted from API requests. See
  4413  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4414  	NullFields []string `json:"-"`
  4415  }
  4416  
  4417  func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
  4418  	type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
  4419  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4420  }
  4421  
  4422  // GoogleCloudDialogflowCxV3beta1BargeInConfig: Configuration of the barge-in
  4423  // behavior. Barge-in instructs the API to return a detected utterance at a
  4424  // proper time while the client is playing back the response audio from a
  4425  // previous request. When the client sees the utterance, it should stop the
  4426  // playback and immediately get ready for receiving the responses for the
  4427  // current request. The barge-in handling requires the client to start
  4428  // streaming audio input as soon as it starts playing back the audio from the
  4429  // previous response. The playback is modeled into two phases: * No barge-in
  4430  // phase: which goes first and during which speech detection should not be
  4431  // carried out. * Barge-in phase: which follows the no barge-in phase and
  4432  // during which the API starts speech detection and may inform the client that
  4433  // an utterance has been detected. Note that no-speech event is not expected in
  4434  // this phase. The client provides this configuration in terms of the durations
  4435  // of those two phases. The durations are measured in terms of the audio length
  4436  // from the the start of the input audio. No-speech event is a response with
  4437  // END_OF_UTTERANCE without any transcript following up.
  4438  type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
  4439  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
  4440  	// beginning of the input audio.
  4441  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
  4442  	// TotalDuration: Total duration for the playback at the beginning of the input
  4443  	// audio.
  4444  	TotalDuration string `json:"totalDuration,omitempty"`
  4445  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") 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. "NoBargeInDuration") to include in
  4452  	// API requests with the JSON null value. By default, fields with empty values
  4453  	// 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 *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
  4459  	type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
  4460  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4461  }
  4462  
  4463  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata returned
  4464  // for the TestCases.BatchRunTestCases long running operation.
  4465  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
  4466  	// Errors: The test errors.
  4467  	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
  4468  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  4469  	// include in API requests. By default, fields with empty or default values are
  4470  	// omitted from API requests. See
  4471  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4472  	// details.
  4473  	ForceSendFields []string `json:"-"`
  4474  	// NullFields is a list of field names (e.g. "Errors") to include in API
  4475  	// requests with the JSON null value. By default, fields with empty values are
  4476  	// omitted from API requests. See
  4477  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4478  	NullFields []string `json:"-"`
  4479  }
  4480  
  4481  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
  4482  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
  4483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4484  }
  4485  
  4486  // GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The response
  4487  // message for TestCases.BatchRunTestCases.
  4488  type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
  4489  	// Results: The test case results. The detailed conversation turns are empty in
  4490  	// this response.
  4491  	Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
  4492  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
  4493  	// include in API requests. By default, fields with empty or default values are
  4494  	// omitted from API requests. See
  4495  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4496  	// details.
  4497  	ForceSendFields []string `json:"-"`
  4498  	// NullFields is a list of field names (e.g. "Results") to include in API
  4499  	// requests with the JSON null value. By default, fields with empty values are
  4500  	// omitted from API requests. See
  4501  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4502  	NullFields []string `json:"-"`
  4503  }
  4504  
  4505  func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
  4506  	type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
  4507  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4508  }
  4509  
  4510  // GoogleCloudDialogflowCxV3beta1ContinuousTestResult: Represents a result from
  4511  // running a test case in an agent environment.
  4512  type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
  4513  	// Name: The resource name for the continuous test result. Format:
  4514  	// `projects//locations//agents//environments//continuousTestResults/`.
  4515  	Name string `json:"name,omitempty"`
  4516  	// Result: The result of this continuous test run, i.e. whether all the tests
  4517  	// in this continuous test run pass or not.
  4518  	//
  4519  	// Possible values:
  4520  	//   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be
  4521  	// used.
  4522  	//   "PASSED" - All the tests passed.
  4523  	//   "FAILED" - At least one test did not pass.
  4524  	Result string `json:"result,omitempty"`
  4525  	// RunTime: Time when the continuous testing run starts.
  4526  	RunTime string `json:"runTime,omitempty"`
  4527  	// TestCaseResults: A list of individual test case results names in this
  4528  	// continuous test run.
  4529  	TestCaseResults []string `json:"testCaseResults,omitempty"`
  4530  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4531  	// include in API requests. By default, fields with empty or default values are
  4532  	// omitted from API requests. See
  4533  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4534  	// details.
  4535  	ForceSendFields []string `json:"-"`
  4536  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4537  	// with the JSON null value. By default, fields with empty values are omitted
  4538  	// from API requests. See
  4539  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4540  	NullFields []string `json:"-"`
  4541  }
  4542  
  4543  func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
  4544  	type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
  4545  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4546  }
  4547  
  4548  // GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is used to
  4549  // hold all the Conversation Signals data, which will be converted to JSON and
  4550  // exported to BigQuery.
  4551  type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
  4552  	// TurnSignals: Required. Turn signals for the current turn.
  4553  	TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
  4554  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
  4555  	// unconditionally include in API requests. By default, fields with empty or
  4556  	// default values are omitted from API requests. See
  4557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4558  	// details.
  4559  	ForceSendFields []string `json:"-"`
  4560  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
  4561  	// requests with the JSON null value. By default, fields with empty values are
  4562  	// omitted from API requests. See
  4563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4564  	NullFields []string `json:"-"`
  4565  }
  4566  
  4567  func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
  4568  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
  4569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4570  }
  4571  
  4572  // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction between a
  4573  // human and virtual agent. The human provides some input and the virtual agent
  4574  // provides a response.
  4575  type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
  4576  	// UserInput: The user input.
  4577  	UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
  4578  	// VirtualAgentOutput: The virtual agent output.
  4579  	VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
  4580  	// ForceSendFields is a list of field names (e.g. "UserInput") to
  4581  	// unconditionally include in API requests. By default, fields with empty or
  4582  	// default values are omitted from API requests. See
  4583  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4584  	// details.
  4585  	ForceSendFields []string `json:"-"`
  4586  	// NullFields is a list of field names (e.g. "UserInput") to include in API
  4587  	// requests with the JSON null value. By default, fields with empty values are
  4588  	// omitted from API requests. See
  4589  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4590  	NullFields []string `json:"-"`
  4591  }
  4592  
  4593  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
  4594  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
  4595  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4596  }
  4597  
  4598  // GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input from the
  4599  // human user.
  4600  type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
  4601  	// EnableSentimentAnalysis: Whether sentiment analysis is enabled.
  4602  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
  4603  	// InjectedParameters: Parameters that need to be injected into the
  4604  	// conversation during intent detection.
  4605  	InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
  4606  	// Input: Supports text input, event input, dtmf input in the test case.
  4607  	Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
  4608  	// IsWebhookEnabled: If webhooks should be allowed to trigger in response to
  4609  	// the user utterance. Often if parameters are injected, webhooks should not be
  4610  	// enabled.
  4611  	IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
  4612  	// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  4613  	// unconditionally include in API requests. By default, fields with empty or
  4614  	// default values are omitted from API requests. See
  4615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4616  	// details.
  4617  	ForceSendFields []string `json:"-"`
  4618  	// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to
  4619  	// include in API requests with the JSON null value. By default, fields with
  4620  	// empty values are omitted from API requests. See
  4621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4622  	NullFields []string `json:"-"`
  4623  }
  4624  
  4625  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
  4626  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
  4627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4628  }
  4629  
  4630  // GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The output
  4631  // from the virtual agent.
  4632  type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
  4633  	// CurrentPage: The Page on which the utterance was spoken. Only name and
  4634  	// displayName will be set.
  4635  	CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
  4636  	// DiagnosticInfo: Required. Input only. The diagnostic info output for the
  4637  	// turn. Required to calculate the testing coverage.
  4638  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  4639  	// Differences: Output only. If this is part of a result conversation turn, the
  4640  	// list of differences between the original run and the replay for this output,
  4641  	// if any.
  4642  	Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
  4643  	// SessionParameters: The session parameters available to the bot at this
  4644  	// point.
  4645  	SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
  4646  	// Status: Response error from the agent in the test result. If set, other
  4647  	// output is empty.
  4648  	Status *GoogleRpcStatus `json:"status,omitempty"`
  4649  	// TextResponses: The text responses from the agent for the turn.
  4650  	TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
  4651  	// TriggeredIntent: The Intent that triggered the response. Only name and
  4652  	// displayName will be set.
  4653  	TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
  4654  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  4655  	// unconditionally include in API requests. By default, fields with empty or
  4656  	// default values are omitted from API requests. See
  4657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4658  	// details.
  4659  	ForceSendFields []string `json:"-"`
  4660  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  4661  	// requests with the JSON null value. By default, fields with empty values are
  4662  	// omitted from API requests. See
  4663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4664  	NullFields []string `json:"-"`
  4665  }
  4666  
  4667  func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
  4668  	type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
  4669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4670  }
  4671  
  4672  // GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata: Metadata for
  4673  // CreateDocument operation.
  4674  type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
  4675  	// GenericMetadata: The generic information of the operation.
  4676  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  4677  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  4678  	// unconditionally include in API requests. By default, fields with empty or
  4679  	// default values are omitted from API requests. See
  4680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4681  	// details.
  4682  	ForceSendFields []string `json:"-"`
  4683  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  4684  	// API requests with the JSON null value. By default, fields with empty values
  4685  	// are omitted from API requests. See
  4686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4687  	NullFields []string `json:"-"`
  4688  }
  4689  
  4690  func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  4691  	type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
  4692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4693  }
  4694  
  4695  // GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata: Metadata
  4696  // associated with the long running operation for Versions.CreateVersion.
  4697  type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
  4698  	// Version: Name of the created version. Format:
  4699  	// `projects//locations//agents//flows//versions/`.
  4700  	Version string `json:"version,omitempty"`
  4701  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  4702  	// include in API requests. By default, fields with empty or default values are
  4703  	// omitted from API requests. See
  4704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4705  	// details.
  4706  	ForceSendFields []string `json:"-"`
  4707  	// NullFields is a list of field names (e.g. "Version") to include in API
  4708  	// requests with the JSON null value. By default, fields with empty values are
  4709  	// omitted from API requests. See
  4710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4711  	NullFields []string `json:"-"`
  4712  }
  4713  
  4714  func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
  4715  	type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
  4716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4717  }
  4718  
  4719  // GoogleCloudDialogflowCxV3beta1DataStoreConnection: A data store connection.
  4720  // It represents a data store in Discovery Engine and the type of the contents
  4721  // it contains.
  4722  type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
  4723  	// DataStore: The full name of the referenced data store. Formats:
  4724  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4725  	// {data_store}`
  4726  	// `projects/{project}/locations/{location}/dataStores/{data_store}`
  4727  	DataStore string `json:"dataStore,omitempty"`
  4728  	// DataStoreType: The type of the connected data store.
  4729  	//
  4730  	// Possible values:
  4731  	//   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that
  4732  	// the data store type is not specified, so it will not be used during search.
  4733  	//   "PUBLIC_WEB" - A data store that contains public web content.
  4734  	//   "UNSTRUCTURED" - A data store that contains unstructured private data.
  4735  	//   "STRUCTURED" - A data store that contains structured data (for example
  4736  	// FAQ).
  4737  	DataStoreType string `json:"dataStoreType,omitempty"`
  4738  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  4739  	// unconditionally include in API requests. By default, fields with empty or
  4740  	// default values are omitted from API requests. See
  4741  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4742  	// details.
  4743  	ForceSendFields []string `json:"-"`
  4744  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  4745  	// requests with the JSON null value. By default, fields with empty values are
  4746  	// omitted from API requests. See
  4747  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4748  	NullFields []string `json:"-"`
  4749  }
  4750  
  4751  func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
  4752  	type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
  4753  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4754  }
  4755  
  4756  // GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata: Metadata for
  4757  // DeleteDocument operation.
  4758  type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
  4759  	// GenericMetadata: The generic information of the operation.
  4760  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  4761  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  4762  	// unconditionally include in API requests. By default, fields with empty or
  4763  	// default values are omitted from API requests. See
  4764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4765  	// details.
  4766  	ForceSendFields []string `json:"-"`
  4767  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  4768  	// API requests with the JSON null value. By default, fields with empty values
  4769  	// are omitted from API requests. See
  4770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4771  	NullFields []string `json:"-"`
  4772  }
  4773  
  4774  func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  4775  	type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
  4776  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4777  }
  4778  
  4779  // GoogleCloudDialogflowCxV3beta1DeployFlowMetadata: Metadata returned for the
  4780  // Environments.DeployFlow long running operation.
  4781  type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
  4782  	// TestErrors: Errors of running deployment tests.
  4783  	TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
  4784  	// ForceSendFields is a list of field names (e.g. "TestErrors") to
  4785  	// unconditionally include in API requests. By default, fields with empty or
  4786  	// default values are omitted from API requests. See
  4787  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4788  	// details.
  4789  	ForceSendFields []string `json:"-"`
  4790  	// NullFields is a list of field names (e.g. "TestErrors") to include in API
  4791  	// requests with the JSON null value. By default, fields with empty values are
  4792  	// omitted from API requests. See
  4793  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4794  	NullFields []string `json:"-"`
  4795  }
  4796  
  4797  func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
  4798  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
  4799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4800  }
  4801  
  4802  // GoogleCloudDialogflowCxV3beta1DeployFlowResponse: The response message for
  4803  // Environments.DeployFlow.
  4804  type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
  4805  	// Deployment: The name of the flow version deployment. Format:
  4806  	// `projects//locations//agents// environments//deployments/`.
  4807  	Deployment string `json:"deployment,omitempty"`
  4808  	// Environment: The updated environment where the flow is deployed.
  4809  	Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
  4810  	// ForceSendFields is a list of field names (e.g. "Deployment") 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. "Deployment") 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 *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
  4824  	type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
  4825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4826  }
  4827  
  4828  // GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for dtmf
  4829  // event.
  4830  type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
  4831  	// Digits: The dtmf digits.
  4832  	Digits string `json:"digits,omitempty"`
  4833  	// FinishDigit: The finish digit (if any).
  4834  	FinishDigit string `json:"finishDigit,omitempty"`
  4835  	// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally
  4836  	// include in API requests. By default, fields with empty or default values are
  4837  	// omitted from API requests. See
  4838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4839  	// details.
  4840  	ForceSendFields []string `json:"-"`
  4841  	// NullFields is a list of field names (e.g. "Digits") to include in API
  4842  	// requests with the JSON null value. By default, fields with empty values are
  4843  	// omitted from API requests. See
  4844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4845  	NullFields []string `json:"-"`
  4846  }
  4847  
  4848  func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
  4849  	type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
  4850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4851  }
  4852  
  4853  // GoogleCloudDialogflowCxV3beta1Environment: Represents an environment for an
  4854  // agent. You can create multiple versions of your agent and publish them to
  4855  // separate environments. When you edit an agent, you are editing the draft
  4856  // agent. At any point, you can save the draft agent as an agent version, which
  4857  // is an immutable snapshot of your agent. When you save the draft agent, it is
  4858  // published to the default environment. When you create agent versions, you
  4859  // can publish them to custom environments. You can create a variety of custom
  4860  // environments for testing, development, production, etc.
  4861  type GoogleCloudDialogflowCxV3beta1Environment struct {
  4862  	// Description: The human-readable description of the environment. The maximum
  4863  	// length is 500 characters. If exceeded, the request is rejected.
  4864  	Description string `json:"description,omitempty"`
  4865  	// DisplayName: Required. The human-readable name of the environment (unique in
  4866  	// an agent). Limit of 64 characters.
  4867  	DisplayName string `json:"displayName,omitempty"`
  4868  	// Name: The name of the environment. Format:
  4869  	// `projects//locations//agents//environments/`.
  4870  	Name string `json:"name,omitempty"`
  4871  	// TestCasesConfig: The test cases config for continuous tests of this
  4872  	// environment.
  4873  	TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
  4874  	// UpdateTime: Output only. Update time of this environment.
  4875  	UpdateTime string `json:"updateTime,omitempty"`
  4876  	// VersionConfigs: A list of configurations for flow versions. You should
  4877  	// include version configs for all flows that are reachable from `Start Flow`
  4878  	// in the agent. Otherwise, an error will be returned.
  4879  	VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
  4880  	// WebhookConfig: The webhook configuration for this environment.
  4881  	WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
  4882  	// ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
  4896  	type NoMethod GoogleCloudDialogflowCxV3beta1Environment
  4897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4898  }
  4899  
  4900  // GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig: The configuration
  4901  // for continuous tests.
  4902  type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
  4903  	// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases
  4904  	// periodically. Default false. If set to true, run once a day.
  4905  	EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
  4906  	// EnablePredeploymentRun: Whether to run test cases in
  4907  	// TestCasesConfig.test_cases before deploying a flow version to the
  4908  	// environment. Default false.
  4909  	EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
  4910  	// TestCases: A list of test case names to run. They should be under the same
  4911  	// agent. Format of each test case name: `projects//locations/
  4912  	// /agents//testCases/`
  4913  	TestCases []string `json:"testCases,omitempty"`
  4914  	// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to
  4915  	// unconditionally include in API requests. By default, fields with empty or
  4916  	// default values are omitted from API requests. See
  4917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4918  	// details.
  4919  	ForceSendFields []string `json:"-"`
  4920  	// NullFields is a list of field names (e.g. "EnableContinuousRun") to include
  4921  	// in API requests with the JSON null value. By default, fields with empty
  4922  	// values are omitted from API requests. See
  4923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4924  	NullFields []string `json:"-"`
  4925  }
  4926  
  4927  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
  4928  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
  4929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4930  }
  4931  
  4932  // GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig: Configuration for
  4933  // the version.
  4934  type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
  4935  	// Version: Required. Format: projects//locations//agents//flows//versions/.
  4936  	Version string `json:"version,omitempty"`
  4937  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  4938  	// include in API requests. By default, fields with empty or default values are
  4939  	// omitted from API requests. See
  4940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4941  	// details.
  4942  	ForceSendFields []string `json:"-"`
  4943  	// NullFields is a list of field names (e.g. "Version") to include in API
  4944  	// requests with the JSON null value. By default, fields with empty values are
  4945  	// omitted from API requests. See
  4946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4947  	NullFields []string `json:"-"`
  4948  }
  4949  
  4950  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
  4951  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
  4952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4953  }
  4954  
  4955  // GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig: Configuration for
  4956  // webhooks.
  4957  type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
  4958  	// WebhookOverrides: The list of webhooks to override for the agent
  4959  	// environment. The webhook must exist in the agent. You can override fields in
  4960  	// `generic_web_service` and `service_directory`.
  4961  	WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
  4962  	// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to
  4963  	// unconditionally include in API requests. By default, fields with empty or
  4964  	// default values are omitted from API requests. See
  4965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4966  	// details.
  4967  	ForceSendFields []string `json:"-"`
  4968  	// NullFields is a list of field names (e.g. "WebhookOverrides") to include in
  4969  	// API requests with the JSON null value. By default, fields with empty values
  4970  	// are omitted from API requests. See
  4971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4972  	NullFields []string `json:"-"`
  4973  }
  4974  
  4975  func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
  4976  	type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
  4977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4978  }
  4979  
  4980  // GoogleCloudDialogflowCxV3beta1EventHandler: An event handler specifies an
  4981  // event that can be handled during a session. When the specified event
  4982  // happens, the following actions are taken in order: * If there is a
  4983  // `trigger_fulfillment` associated with the event, it will be called. * If
  4984  // there is a `target_page` associated with the event, the session will
  4985  // transition into the specified page. * If there is a `target_flow` associated
  4986  // with the event, the session will transition into the specified flow.
  4987  type GoogleCloudDialogflowCxV3beta1EventHandler struct {
  4988  	// Event: Required. The name of the event to handle.
  4989  	Event string `json:"event,omitempty"`
  4990  	// Name: Output only. The unique identifier of this event handler.
  4991  	Name string `json:"name,omitempty"`
  4992  	// TargetFlow: The target flow to transition to. Format:
  4993  	// `projects//locations//agents//flows/`.
  4994  	TargetFlow string `json:"targetFlow,omitempty"`
  4995  	// TargetPage: The target page to transition to. Format:
  4996  	// `projects//locations//agents//flows//pages/`.
  4997  	TargetPage string `json:"targetPage,omitempty"`
  4998  	// TriggerFulfillment: The fulfillment to call when the event occurs. Handling
  4999  	// webhook errors with a fulfillment enabled with webhook could cause infinite
  5000  	// loop. It is invalid to specify such fulfillment for a handler handling
  5001  	// webhooks.
  5002  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  5003  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  5004  	// include in API requests. By default, fields with empty or default values are
  5005  	// omitted from API requests. See
  5006  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5007  	// details.
  5008  	ForceSendFields []string `json:"-"`
  5009  	// NullFields is a list of field names (e.g. "Event") to include in API
  5010  	// requests with the JSON null value. By default, fields with empty values are
  5011  	// omitted from API requests. See
  5012  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5013  	NullFields []string `json:"-"`
  5014  }
  5015  
  5016  func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
  5017  	type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
  5018  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5019  }
  5020  
  5021  // GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to trigger.
  5022  type GoogleCloudDialogflowCxV3beta1EventInput struct {
  5023  	// Event: Name of the event.
  5024  	Event string `json:"event,omitempty"`
  5025  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  5026  	// include in API requests. By default, fields with empty or default values are
  5027  	// omitted from API requests. See
  5028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5029  	// details.
  5030  	ForceSendFields []string `json:"-"`
  5031  	// NullFields is a list of field names (e.g. "Event") to include in API
  5032  	// requests with the JSON null value. By default, fields with empty values are
  5033  	// omitted from API requests. See
  5034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5035  	NullFields []string `json:"-"`
  5036  }
  5037  
  5038  func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
  5039  	type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
  5040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5041  }
  5042  
  5043  // GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response message for
  5044  // Agents.ExportAgent.
  5045  type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
  5046  	// AgentContent: Uncompressed raw byte content for agent. This field is
  5047  	// populated if none of `agent_uri` and `git_destination` are specified in
  5048  	// ExportAgentRequest.
  5049  	AgentContent string `json:"agentContent,omitempty"`
  5050  	// AgentUri: The URI to a file containing the exported agent. This field is
  5051  	// populated if `agent_uri` is specified in ExportAgentRequest.
  5052  	AgentUri string `json:"agentUri,omitempty"`
  5053  	// CommitSha: Commit SHA of the git push. This field is populated if
  5054  	// `git_destination` is specified in ExportAgentRequest.
  5055  	CommitSha string `json:"commitSha,omitempty"`
  5056  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  5057  	// unconditionally include in API requests. By default, fields with empty or
  5058  	// default values are omitted from API requests. See
  5059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5060  	// details.
  5061  	ForceSendFields []string `json:"-"`
  5062  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  5063  	// requests with the JSON null value. By default, fields with empty values are
  5064  	// omitted from API requests. See
  5065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5066  	NullFields []string `json:"-"`
  5067  }
  5068  
  5069  func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
  5070  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
  5071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5072  }
  5073  
  5074  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata returned
  5075  // for the EntityTypes.ExportEntityTypes long running operation.
  5076  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
  5077  }
  5078  
  5079  // GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response
  5080  // message for EntityTypes.ExportEntityTypes.
  5081  type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
  5082  	// EntityTypesContent: Uncompressed byte content for entity types. This field
  5083  	// is populated only if `entity_types_content_inline` is set to true in
  5084  	// ExportEntityTypesRequest.
  5085  	EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
  5086  	// EntityTypesUri: The URI to a file containing the exported entity types. This
  5087  	// field is populated only if `entity_types_uri` is specified in
  5088  	// ExportEntityTypesRequest.
  5089  	EntityTypesUri string `json:"entityTypesUri,omitempty"`
  5090  	// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to
  5091  	// unconditionally include in API requests. By default, fields with empty or
  5092  	// default values are omitted from API requests. See
  5093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5094  	// details.
  5095  	ForceSendFields []string `json:"-"`
  5096  	// NullFields is a list of field names (e.g. "EntityTypesContent") to include
  5097  	// in API requests with the JSON null value. By default, fields with empty
  5098  	// values are omitted from API requests. See
  5099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5100  	NullFields []string `json:"-"`
  5101  }
  5102  
  5103  func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  5104  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
  5105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5106  }
  5107  
  5108  // GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response message for
  5109  // Flows.ExportFlow.
  5110  type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
  5111  	// FlowContent: Uncompressed raw byte content for flow.
  5112  	FlowContent string `json:"flowContent,omitempty"`
  5113  	// FlowUri: The URI to a file containing the exported flow. This field is
  5114  	// populated only if `flow_uri` is specified in ExportFlowRequest.
  5115  	FlowUri string `json:"flowUri,omitempty"`
  5116  	// ForceSendFields is a list of field names (e.g. "FlowContent") to
  5117  	// unconditionally include in API requests. By default, fields with empty or
  5118  	// default values are omitted from API requests. See
  5119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5120  	// details.
  5121  	ForceSendFields []string `json:"-"`
  5122  	// NullFields is a list of field names (e.g. "FlowContent") to include in API
  5123  	// requests with the JSON null value. By default, fields with empty values are
  5124  	// omitted from API requests. See
  5125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5126  	NullFields []string `json:"-"`
  5127  }
  5128  
  5129  func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
  5130  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
  5131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5132  }
  5133  
  5134  // GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata: Metadata returned for
  5135  // the Intents.ExportIntents long running operation.
  5136  type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
  5137  }
  5138  
  5139  // GoogleCloudDialogflowCxV3beta1ExportIntentsResponse: The response message
  5140  // for Intents.ExportIntents.
  5141  type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
  5142  	// IntentsContent: Uncompressed byte content for intents. This field is
  5143  	// populated only if `intents_content_inline` is set to true in
  5144  	// ExportIntentsRequest.
  5145  	IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
  5146  	// IntentsUri: The URI to a file containing the exported intents. This field is
  5147  	// populated only if `intents_uri` is specified in ExportIntentsRequest.
  5148  	IntentsUri string `json:"intentsUri,omitempty"`
  5149  	// ForceSendFields is a list of field names (e.g. "IntentsContent") to
  5150  	// unconditionally include in API requests. By default, fields with empty or
  5151  	// default values are omitted from API requests. See
  5152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5153  	// details.
  5154  	ForceSendFields []string `json:"-"`
  5155  	// NullFields is a list of field names (e.g. "IntentsContent") to include in
  5156  	// API requests with the JSON null value. By default, fields with empty values
  5157  	// are omitted from API requests. See
  5158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5159  	NullFields []string `json:"-"`
  5160  }
  5161  
  5162  func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
  5163  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
  5164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5165  }
  5166  
  5167  // GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata returned for
  5168  // the TestCases.ExportTestCases long running operation. This message currently
  5169  // has no fields.
  5170  type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
  5171  }
  5172  
  5173  // GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response message
  5174  // for TestCases.ExportTestCases.
  5175  type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
  5176  	// Content: Uncompressed raw byte content for test cases.
  5177  	Content string `json:"content,omitempty"`
  5178  	// GcsUri: The URI to a file containing the exported test cases. This field is
  5179  	// populated only if `gcs_uri` is specified in ExportTestCasesRequest.
  5180  	GcsUri string `json:"gcsUri,omitempty"`
  5181  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5182  	// include in API requests. By default, fields with empty or default values are
  5183  	// omitted from API requests. See
  5184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5185  	// details.
  5186  	ForceSendFields []string `json:"-"`
  5187  	// NullFields is a list of field names (e.g. "Content") to include in API
  5188  	// requests with the JSON null value. By default, fields with empty values are
  5189  	// omitted from API requests. See
  5190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5191  	NullFields []string `json:"-"`
  5192  }
  5193  
  5194  func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
  5195  	type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
  5196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5197  }
  5198  
  5199  // GoogleCloudDialogflowCxV3beta1Form: A form is a data model that groups
  5200  // related parameters that can be collected from the user. The process in which
  5201  // the agent prompts the user and collects parameter values from the user is
  5202  // called form filling. A form can be added to a page. When form filling is
  5203  // done, the filled parameters will be written to the session.
  5204  type GoogleCloudDialogflowCxV3beta1Form struct {
  5205  	// Parameters: Parameters to collect from the user.
  5206  	Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
  5207  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  5208  	// unconditionally include in API requests. By default, fields with empty or
  5209  	// default values are omitted from API requests. See
  5210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5211  	// details.
  5212  	ForceSendFields []string `json:"-"`
  5213  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  5214  	// requests with the JSON null value. By default, fields with empty values are
  5215  	// omitted from API requests. See
  5216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5217  	NullFields []string `json:"-"`
  5218  }
  5219  
  5220  func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
  5221  	type NoMethod GoogleCloudDialogflowCxV3beta1Form
  5222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5223  }
  5224  
  5225  // GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form parameter.
  5226  type GoogleCloudDialogflowCxV3beta1FormParameter struct {
  5227  	// AdvancedSettings: Hierarchical advanced settings for this parameter. The
  5228  	// settings exposed at the lower level overrides the settings exposed at the
  5229  	// higher level.
  5230  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  5231  	// DefaultValue: The default value of an optional parameter. If the parameter
  5232  	// is required, the default value will be ignored.
  5233  	DefaultValue interface{} `json:"defaultValue,omitempty"`
  5234  	// DisplayName: Required. The human-readable name of the parameter, unique
  5235  	// within the form.
  5236  	DisplayName string `json:"displayName,omitempty"`
  5237  	// EntityType: Required. The entity type of the parameter. Format:
  5238  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  5239  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  5240  	// `projects//locations//agents//entityTypes/` for developer entity types.
  5241  	EntityType string `json:"entityType,omitempty"`
  5242  	// FillBehavior: Required. Defines fill behavior for the parameter.
  5243  	FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
  5244  	// IsList: Indicates whether the parameter represents a list of values.
  5245  	IsList bool `json:"isList,omitempty"`
  5246  	// Redact: Indicates whether the parameter content should be redacted in log.
  5247  	// If redaction is enabled, the parameter content will be replaced by parameter
  5248  	// name during logging. Note: the parameter content is subject to redaction if
  5249  	// either parameter level redaction or entity type level redaction is enabled.
  5250  	Redact bool `json:"redact,omitempty"`
  5251  	// Required: Indicates whether the parameter is required. Optional parameters
  5252  	// will not trigger prompts; however, they are filled if the user specifies
  5253  	// them. Required parameters must be filled before form filling concludes.
  5254  	Required bool `json:"required,omitempty"`
  5255  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  5256  	// unconditionally include in API requests. By default, fields with empty or
  5257  	// default values are omitted from API requests. See
  5258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5259  	// details.
  5260  	ForceSendFields []string `json:"-"`
  5261  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  5262  	// API requests with the JSON null value. By default, fields with empty values
  5263  	// are omitted from API requests. See
  5264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5265  	NullFields []string `json:"-"`
  5266  }
  5267  
  5268  func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
  5269  	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
  5270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5271  }
  5272  
  5273  // GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior: Configuration for
  5274  // how the filling of a parameter should be handled.
  5275  type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
  5276  	// InitialPromptFulfillment: Required. The fulfillment to provide the initial
  5277  	// prompt that the agent can present to the user in order to fill the
  5278  	// parameter.
  5279  	InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
  5280  	// RepromptEventHandlers: The handlers for parameter-level events, used to
  5281  	// provide reprompt for the parameter or transition to a different page/flow.
  5282  	// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *
  5283  	// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *
  5284  	// `sys.no-input-default` * `sys.invalid-parameter`
  5285  	// `initial_prompt_fulfillment` provides the first prompt for the parameter. If
  5286  	// the user's response does not fill the parameter, a no-match/no-input event
  5287  	// will be triggered, and the fulfillment associated with the
  5288  	// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to
  5289  	// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)
  5290  	// will respond to the next no-match/no-input event, and so on. A
  5291  	// `sys.no-match-default` or `sys.no-input-default` handler will be used to
  5292  	// handle all following no-match/no-input events after all numbered
  5293  	// no-match/no-input handlers for the parameter are consumed. A
  5294  	// `sys.invalid-parameter` handler can be defined to handle the case where the
  5295  	// parameter values have been `invalidated` by webhook. For example, if the
  5296  	// user's response fill the parameter, however the parameter was invalidated by
  5297  	// webhook, the fulfillment associated with the `sys.invalid-parameter` handler
  5298  	// (if defined) will be called to provide a prompt. If the event handler for
  5299  	// the corresponding event can't be found on the parameter,
  5300  	// `initial_prompt_fulfillment` will be re-prompted.
  5301  	RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
  5302  	// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")
  5303  	// to unconditionally include in API requests. By default, fields with empty or
  5304  	// default values are omitted from API requests. See
  5305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5306  	// details.
  5307  	ForceSendFields []string `json:"-"`
  5308  	// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to
  5309  	// include in API requests with the JSON null value. By default, fields with
  5310  	// empty values are omitted from API requests. See
  5311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5312  	NullFields []string `json:"-"`
  5313  }
  5314  
  5315  func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
  5316  	type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
  5317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5318  }
  5319  
  5320  // GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one or more
  5321  // of the following actions at the same time: * Generate rich message
  5322  // responses. * Set parameter values. * Call the webhook. Fulfillments can be
  5323  // called at various stages in the Page or Form lifecycle. For example, when a
  5324  // DetectIntentRequest drives a session to enter a new page, the page's entry
  5325  // fulfillment can add a static response to the QueryResult in the returning
  5326  // DetectIntentResponse, call the webhook (for example, to load user data from
  5327  // a database), or both.
  5328  type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
  5329  	// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The
  5330  	// settings exposed at the lower level overrides the settings exposed at the
  5331  	// higher level.
  5332  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  5333  	// ConditionalCases: Conditional cases for this fulfillment.
  5334  	ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
  5335  	// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to
  5336  	// generate a text response. If LLM generation fails, the defined responses in
  5337  	// the fulfillment will be respected. This flag is only useful for fulfillments
  5338  	// associated with no-match event handlers.
  5339  	EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
  5340  	// Messages: The list of rich message responses to present to the user.
  5341  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  5342  	// ReturnPartialResponses: Whether Dialogflow should return currently queued
  5343  	// fulfillment response messages in streaming APIs. If a webhook is specified,
  5344  	// it happens before Dialogflow invokes webhook. Warning: 1) This flag only
  5345  	// affects streaming API. Responses are still queued and returned once in
  5346  	// non-streaming API. 2) The flag can be enabled in any fulfillment but only
  5347  	// the first 3 partial responses will be returned. You may only want to apply
  5348  	// it to fulfillments that have slow webhooks.
  5349  	ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
  5350  	// SetParameterActions: Set parameter values before executing the webhook.
  5351  	SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
  5352  	// Tag: The value of this field will be populated in the WebhookRequest
  5353  	// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
  5354  	// called. The tag is typically used by the webhook service to identify which
  5355  	// fulfillment is being called, but it could be used for other purposes. This
  5356  	// field is required if `webhook` is specified.
  5357  	Tag string `json:"tag,omitempty"`
  5358  	// Webhook: The webhook to call. Format:
  5359  	// `projects//locations//agents//webhooks/`.
  5360  	Webhook string `json:"webhook,omitempty"`
  5361  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  5362  	// unconditionally include in API requests. By default, fields with empty or
  5363  	// default values are omitted from API requests. See
  5364  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5365  	// details.
  5366  	ForceSendFields []string `json:"-"`
  5367  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  5368  	// API requests with the JSON null value. By default, fields with empty values
  5369  	// are omitted from API requests. See
  5370  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5371  	NullFields []string `json:"-"`
  5372  }
  5373  
  5374  func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
  5375  	type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
  5376  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5377  }
  5378  
  5379  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list of
  5380  // cascading if-else conditions. Cases are mutually exclusive. The first one
  5381  // with a matching condition is selected, all the rest ignored.
  5382  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
  5383  	// Cases: A list of cascading if-else conditions.
  5384  	Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
  5385  	// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally
  5386  	// include in API requests. By default, fields with empty or default values are
  5387  	// omitted from API requests. See
  5388  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5389  	// details.
  5390  	ForceSendFields []string `json:"-"`
  5391  	// NullFields is a list of field names (e.g. "Cases") to include in API
  5392  	// requests with the JSON null value. By default, fields with empty values are
  5393  	// omitted from API requests. See
  5394  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5395  	NullFields []string `json:"-"`
  5396  }
  5397  
  5398  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
  5399  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
  5400  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5401  }
  5402  
  5403  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each case has
  5404  // a Boolean condition. When it is evaluated to be True, the corresponding
  5405  // messages will be selected and evaluated recursively.
  5406  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
  5407  	// CaseContent: A list of case content.
  5408  	CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
  5409  	// Condition: The condition to activate and select this case. Empty means the
  5410  	// condition is always true. The condition is evaluated against form parameters
  5411  	// or session parameters. See the conditions reference
  5412  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  5413  	Condition string `json:"condition,omitempty"`
  5414  	// ForceSendFields is a list of field names (e.g. "CaseContent") to
  5415  	// unconditionally include in API requests. By default, fields with empty or
  5416  	// default values are omitted from API requests. See
  5417  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5418  	// details.
  5419  	ForceSendFields []string `json:"-"`
  5420  	// NullFields is a list of field names (e.g. "CaseContent") to include in API
  5421  	// requests with the JSON null value. By default, fields with empty values are
  5422  	// omitted from API requests. See
  5423  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5424  	NullFields []string `json:"-"`
  5425  }
  5426  
  5427  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
  5428  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
  5429  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5430  }
  5431  
  5432  // GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent:
  5433  // The list of messages or conditional cases to activate for this case.
  5434  type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
  5435  	// AdditionalCases: Additional cases to be evaluated.
  5436  	AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
  5437  	// Message: Returned message.
  5438  	Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
  5439  	// ForceSendFields is a list of field names (e.g. "AdditionalCases") to
  5440  	// unconditionally include in API requests. By default, fields with empty or
  5441  	// default values are omitted from API requests. See
  5442  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5443  	// details.
  5444  	ForceSendFields []string `json:"-"`
  5445  	// NullFields is a list of field names (e.g. "AdditionalCases") to include in
  5446  	// API requests with the JSON null value. By default, fields with empty values
  5447  	// are omitted from API requests. See
  5448  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5449  	NullFields []string `json:"-"`
  5450  }
  5451  
  5452  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
  5453  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
  5454  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5455  }
  5456  
  5457  // GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting a
  5458  // parameter value.
  5459  type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
  5460  	// Parameter: Display name of the parameter.
  5461  	Parameter string `json:"parameter,omitempty"`
  5462  	// Value: The new value of the parameter. A null value clears the parameter.
  5463  	Value interface{} `json:"value,omitempty"`
  5464  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  5465  	// unconditionally include in API requests. By default, fields with empty or
  5466  	// default values are omitted from API requests. See
  5467  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5468  	// details.
  5469  	ForceSendFields []string `json:"-"`
  5470  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  5471  	// requests with the JSON null value. By default, fields with empty values are
  5472  	// omitted from API requests. See
  5473  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5474  	NullFields []string `json:"-"`
  5475  }
  5476  
  5477  func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
  5478  	type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
  5479  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5480  }
  5481  
  5482  // GoogleCloudDialogflowCxV3beta1GcsDestination: Google Cloud Storage location
  5483  // for a Dialogflow operation that writes or exports objects (e.g. exported
  5484  // agent or transcripts) outside of Dialogflow.
  5485  type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
  5486  	// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI
  5487  	// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object
  5488  	// name, or just a prefix, its usage depends on the Dialogflow operation.
  5489  	Uri string `json:"uri,omitempty"`
  5490  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  5491  	// include in API requests. By default, fields with empty or default values are
  5492  	// omitted from API requests. See
  5493  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5494  	// details.
  5495  	ForceSendFields []string `json:"-"`
  5496  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  5497  	// with the JSON null value. By default, fields with empty values are omitted
  5498  	// from API requests. See
  5499  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5500  	NullFields []string `json:"-"`
  5501  }
  5502  
  5503  func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
  5504  	type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
  5505  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5506  }
  5507  
  5508  // GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata: Metadata in
  5509  // google::longrunning::Operation for Knowledge operations.
  5510  type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
  5511  	// State: Required. Output only. The current state of this operation.
  5512  	//
  5513  	// Possible values:
  5514  	//   "STATE_UNSPECIFIED" - State unspecified.
  5515  	//   "PENDING" - The operation has been created.
  5516  	//   "RUNNING" - The operation is currently running.
  5517  	//   "DONE" - The operation is done, either cancelled or completed.
  5518  	State string `json:"state,omitempty"`
  5519  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
  5520  	// include in API requests. By default, fields with empty or default values are
  5521  	// omitted from API requests. See
  5522  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5523  	// details.
  5524  	ForceSendFields []string `json:"-"`
  5525  	// NullFields is a list of field names (e.g. "State") to include in API
  5526  	// requests with the JSON null value. By default, fields with empty values are
  5527  	// omitted from API requests. See
  5528  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5529  	NullFields []string `json:"-"`
  5530  }
  5531  
  5532  func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  5533  	type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
  5534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5535  }
  5536  
  5537  // GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata: Metadata for
  5538  // ImportDocuments operation.
  5539  type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
  5540  	// GenericMetadata: The generic information of the operation.
  5541  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  5542  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  5543  	// unconditionally include in API requests. By default, fields with empty or
  5544  	// default values are omitted from API requests. See
  5545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5546  	// details.
  5547  	ForceSendFields []string `json:"-"`
  5548  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  5549  	// API requests with the JSON null value. By default, fields with empty values
  5550  	// are omitted from API requests. See
  5551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5552  	NullFields []string `json:"-"`
  5553  }
  5554  
  5555  func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
  5556  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
  5557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5558  }
  5559  
  5560  // GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse: Response message for
  5561  // Documents.ImportDocuments.
  5562  type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
  5563  	// Warnings: Includes details about skipped documents or any other warnings.
  5564  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  5565  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  5566  	// unconditionally include in API requests. By default, fields with empty or
  5567  	// default values are omitted from API requests. See
  5568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5569  	// details.
  5570  	ForceSendFields []string `json:"-"`
  5571  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  5572  	// requests with the JSON null value. By default, fields with empty values are
  5573  	// omitted from API requests. See
  5574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5575  	NullFields []string `json:"-"`
  5576  }
  5577  
  5578  func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  5579  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
  5580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5581  }
  5582  
  5583  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata returned
  5584  // for the EntityTypes.ImportEntityTypes long running operation.
  5585  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
  5586  }
  5587  
  5588  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response
  5589  // message for EntityTypes.ImportEntityTypes.
  5590  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
  5591  	// ConflictingResources: Info which resources have conflicts when
  5592  	// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.
  5593  	ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
  5594  	// EntityTypes: The unique identifier of the imported entity types. Format:
  5595  	// `projects//locations//agents//entity_types/`.
  5596  	EntityTypes []string `json:"entityTypes,omitempty"`
  5597  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  5598  	// unconditionally include in API requests. By default, fields with empty or
  5599  	// default values are omitted from API requests. See
  5600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5601  	// details.
  5602  	ForceSendFields []string `json:"-"`
  5603  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  5604  	// in API requests with the JSON null value. By default, fields with empty
  5605  	// values are omitted from API requests. See
  5606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5607  	NullFields []string `json:"-"`
  5608  }
  5609  
  5610  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
  5611  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
  5612  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5613  }
  5614  
  5615  // GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources:
  5616  // Conflicting resources detected during the import process. Only filled when
  5617  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  5618  // names.
  5619  type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
  5620  	// EntityDisplayNames: Display names of conflicting entities.
  5621  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  5622  	// EntityTypeDisplayNames: Display names of conflicting entity types.
  5623  	EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
  5624  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  5625  	// unconditionally include in API requests. By default, fields with empty or
  5626  	// default values are omitted from API requests. See
  5627  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5628  	// details.
  5629  	ForceSendFields []string `json:"-"`
  5630  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  5631  	// in API requests with the JSON null value. By default, fields with empty
  5632  	// values are omitted from API requests. See
  5633  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5634  	NullFields []string `json:"-"`
  5635  }
  5636  
  5637  func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
  5638  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
  5639  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5640  }
  5641  
  5642  // GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response message for
  5643  // Flows.ImportFlow.
  5644  type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
  5645  	// Flow: The unique identifier of the new flow. Format:
  5646  	// `projects//locations//agents//flows/`.
  5647  	Flow string `json:"flow,omitempty"`
  5648  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  5649  	// include in API requests. By default, fields with empty or default values are
  5650  	// omitted from API requests. See
  5651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5652  	// details.
  5653  	ForceSendFields []string `json:"-"`
  5654  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  5655  	// with the JSON null value. By default, fields with empty values are omitted
  5656  	// from API requests. See
  5657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5658  	NullFields []string `json:"-"`
  5659  }
  5660  
  5661  func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
  5662  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
  5663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5664  }
  5665  
  5666  // GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata: Metadata returned for
  5667  // the Intents.ImportIntents long running operation.
  5668  type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
  5669  }
  5670  
  5671  // GoogleCloudDialogflowCxV3beta1ImportIntentsResponse: The response message
  5672  // for Intents.ImportIntents.
  5673  type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
  5674  	// ConflictingResources: Info which resources have conflicts when
  5675  	// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.
  5676  	ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
  5677  	// Intents: The unique identifier of the imported intents. Format:
  5678  	// `projects//locations//agents//intents/`.
  5679  	Intents []string `json:"intents,omitempty"`
  5680  	// ForceSendFields is a list of field names (e.g. "ConflictingResources") to
  5681  	// unconditionally include in API requests. By default, fields with empty or
  5682  	// default values are omitted from API requests. See
  5683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5684  	// details.
  5685  	ForceSendFields []string `json:"-"`
  5686  	// NullFields is a list of field names (e.g. "ConflictingResources") to include
  5687  	// in API requests with the JSON null value. By default, fields with empty
  5688  	// values are omitted from API requests. See
  5689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5690  	NullFields []string `json:"-"`
  5691  }
  5692  
  5693  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
  5694  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
  5695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5696  }
  5697  
  5698  // GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources:
  5699  // Conflicting resources detected during the import process. Only filled when
  5700  // REPORT_CONFLICT is set in the request and there are conflicts in the display
  5701  // names.
  5702  type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
  5703  	// EntityDisplayNames: Display names of conflicting entities.
  5704  	EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
  5705  	// IntentDisplayNames: Display names of conflicting intents.
  5706  	IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
  5707  	// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to
  5708  	// unconditionally include in API requests. By default, fields with empty or
  5709  	// default values are omitted from API requests. See
  5710  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5711  	// details.
  5712  	ForceSendFields []string `json:"-"`
  5713  	// NullFields is a list of field names (e.g. "EntityDisplayNames") to include
  5714  	// in API requests with the JSON null value. By default, fields with empty
  5715  	// values are omitted from API requests. See
  5716  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5717  	NullFields []string `json:"-"`
  5718  }
  5719  
  5720  func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
  5721  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
  5722  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5723  }
  5724  
  5725  // GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata returned for
  5726  // the TestCases.ImportTestCases long running operation.
  5727  type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
  5728  	// Errors: Errors for failed test cases.
  5729  	Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
  5730  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  5731  	// include in API requests. By default, fields with empty or default values are
  5732  	// omitted from API requests. See
  5733  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5734  	// details.
  5735  	ForceSendFields []string `json:"-"`
  5736  	// NullFields is a list of field names (e.g. "Errors") to include in API
  5737  	// requests with the JSON null value. By default, fields with empty values are
  5738  	// omitted from API requests. See
  5739  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5740  	NullFields []string `json:"-"`
  5741  }
  5742  
  5743  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
  5744  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
  5745  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5746  }
  5747  
  5748  // GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response message
  5749  // for TestCases.ImportTestCases.
  5750  type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
  5751  	// Names: The unique identifiers of the new test cases. Format:
  5752  	// `projects//locations//agents//testCases/`.
  5753  	Names []string `json:"names,omitempty"`
  5754  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
  5755  	// include in API requests. By default, fields with empty or default values are
  5756  	// omitted from API requests. See
  5757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5758  	// details.
  5759  	ForceSendFields []string `json:"-"`
  5760  	// NullFields is a list of field names (e.g. "Names") to include in API
  5761  	// requests with the JSON null value. By default, fields with empty values are
  5762  	// omitted from API requests. See
  5763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5764  	NullFields []string `json:"-"`
  5765  }
  5766  
  5767  func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
  5768  	type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
  5769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5770  }
  5771  
  5772  // GoogleCloudDialogflowCxV3beta1InlineDestination: Inline destination for a
  5773  // Dialogflow operation that writes or exports objects (e.g. intents) outside
  5774  // of Dialogflow.
  5775  type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
  5776  	// Content: Output only. The uncompressed byte content for the objects. Only
  5777  	// populated in responses.
  5778  	Content string `json:"content,omitempty"`
  5779  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5780  	// include in API requests. By default, fields with empty or default values are
  5781  	// 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. "Content") to include in API
  5786  	// requests with the JSON null value. By default, fields with empty values are
  5787  	// 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 *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
  5793  	type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
  5794  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5795  }
  5796  
  5797  // GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speech
  5798  // recognizer on how to process the audio content.
  5799  type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
  5800  	// AudioEncoding: Required. Audio encoding of the audio content to process.
  5801  	//
  5802  	// Possible values:
  5803  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
  5804  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
  5805  	// samples (Linear PCM).
  5806  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
  5807  	// (Free Lossless Audio Codec) is the recommended encoding because it is
  5808  	// lossless (therefore recognition is not compromised) and requires only about
  5809  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
  5810  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
  5811  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
  5812  	// using G.711 PCMU/mu-law.
  5813  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
  5814  	// `sample_rate_hertz` must be 8000.
  5815  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
  5816  	// `sample_rate_hertz` must be 16000.
  5817  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
  5818  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
  5819  	// 16000.
  5820  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
  5821  	// encodings is not recommended, if a very low bitrate encoding is required,
  5822  	// `OGG_OPUS` is highly preferred over Speex encoding. The
  5823  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
  5824  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
  5825  	// It is a variant of the RTP Speex encoding defined in [RFC
  5826  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
  5827  	// blocks, one block per RTP packet. Each block starts with a byte containing
  5828  	// the length of the block, in bytes, followed by one or more frames of Speex
  5829  	// data, padded to an integral number of bytes (octets) as specified in RFC
  5830  	// 5574. In other words, each RTP header is replaced with a single byte
  5831  	// containing the block length. Only Speex wideband is supported.
  5832  	// `sample_rate_hertz` must be 16000.
  5833  	AudioEncoding string `json:"audioEncoding,omitempty"`
  5834  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
  5835  	// input audio.
  5836  	BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
  5837  	// EnableWordInfo: Optional. If `true`, Dialogflow returns SpeechWordInfo in
  5838  	// StreamingRecognitionResult with information about the recognized speech
  5839  	// words, e.g. start and end time offsets. If false or unspecified, Speech
  5840  	// doesn't return any word-level information.
  5841  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
  5842  	// Model: Optional. Which Speech model to select for the given request. For
  5843  	// more information, see Speech models
  5844  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
  5845  	Model string `json:"model,omitempty"`
  5846  	// ModelVariant: Optional. Which variant of the Speech model to use.
  5847  	//
  5848  	// Possible values:
  5849  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
  5850  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
  5851  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
  5852  	// that the caller is eligible for.
  5853  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
  5854  	// available. See the [Cloud Speech
  5855  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  5856  	// for details about enhanced models.
  5857  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
  5858  	// does not exist for the given model and request language, Dialogflow falls
  5859  	// back to the standard variant. The [Cloud Speech
  5860  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  5861  	// describes which models have enhanced variants.
  5862  	ModelVariant string `json:"modelVariant,omitempty"`
  5863  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
  5864  	// conformer model migration. This field will be deprecated once force
  5865  	// migration takes place in June 2024. Please refer to Dialogflow CX Speech
  5866  	// model migration
  5867  	// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
  5868  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
  5869  	// PhraseHints: Optional. A list of strings containing words and phrases that
  5870  	// the speech recognizer should recognize with higher likelihood. See the Cloud
  5871  	// Speech documentation
  5872  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
  5873  	// details.
  5874  	PhraseHints []string `json:"phraseHints,omitempty"`
  5875  	// SampleRateHertz: Sample rate (in Hertz) of the audio content sent in the
  5876  	// query. Refer to Cloud Speech API documentation
  5877  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
  5878  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
  5879  	// SingleUtterance: Optional. If `false` (default), recognition does not cease
  5880  	// until the client closes the stream. If `true`, the recognizer will detect a
  5881  	// single spoken utterance in input audio. Recognition ceases when it detects
  5882  	// the audio's voice has stopped or paused. In this case, once a detected
  5883  	// intent is received, the client should close the stream and start a new
  5884  	// request with a new stream as needed. Note: This setting is relevant only for
  5885  	// streaming methods.
  5886  	SingleUtterance bool `json:"singleUtterance,omitempty"`
  5887  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
  5888  	// unconditionally include in API requests. By default, fields with empty or
  5889  	// default values are omitted from API requests. See
  5890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5891  	// details.
  5892  	ForceSendFields []string `json:"-"`
  5893  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
  5894  	// requests with the JSON null value. By default, fields with empty values are
  5895  	// omitted from API requests. See
  5896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5897  	NullFields []string `json:"-"`
  5898  }
  5899  
  5900  func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
  5901  	type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
  5902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5903  }
  5904  
  5905  // GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's intent
  5906  // to interact with a conversational agent. You can provide information for the
  5907  // Dialogflow API to use to match user input to an intent by adding training
  5908  // phrases (i.e., examples of user input) to your intent.
  5909  type GoogleCloudDialogflowCxV3beta1Intent struct {
  5910  	// Description: Human readable description for better understanding an intent
  5911  	// like its scope, content, result etc. Maximum character limit: 140
  5912  	// characters.
  5913  	Description string `json:"description,omitempty"`
  5914  	// DisplayName: Required. The human-readable name of the intent, unique within
  5915  	// the agent.
  5916  	DisplayName string `json:"displayName,omitempty"`
  5917  	// IsFallback: Indicates whether this is a fallback intent. Currently only
  5918  	// default fallback intent is allowed in the agent, which is added upon agent
  5919  	// creation. Adding training phrases to fallback intent is useful in the case
  5920  	// of requests that are mistakenly matched, since training phrases assigned to
  5921  	// fallback intents act as negative examples that triggers no-match event.
  5922  	IsFallback bool `json:"isFallback,omitempty"`
  5923  	// Labels: The key/value metadata to label an intent. Labels can contain
  5924  	// lowercase letters, digits and the symbols '-' and '_'. International
  5925  	// characters are allowed, including letters from unicase alphabets. Keys must
  5926  	// start with a letter. Keys and values can be no longer than 63 characters and
  5927  	// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
  5928  	// labels. Currently allowed Dialogflow defined labels include: * sys-head *
  5929  	// sys-contextual The above labels do not require value. "sys-head" means the
  5930  	// intent is a head intent. "sys-contextual" means the intent is a contextual
  5931  	// intent.
  5932  	Labels map[string]string `json:"labels,omitempty"`
  5933  	// Name: The unique identifier of the intent. Required for the
  5934  	// Intents.UpdateIntent method. Intents.CreateIntent populates the name
  5935  	// automatically. Format: `projects//locations//agents//intents/`.
  5936  	Name string `json:"name,omitempty"`
  5937  	// Parameters: The collection of parameters associated with the intent.
  5938  	Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
  5939  	// Priority: The priority of this intent. Higher numbers represent higher
  5940  	// priorities. - If the supplied value is unspecified or 0, the service
  5941  	// translates the value to 500,000, which corresponds to the `Normal` priority
  5942  	// in the console. - If the supplied value is negative, the intent is ignored
  5943  	// in runtime detect intent requests.
  5944  	Priority int64 `json:"priority,omitempty"`
  5945  	// TrainingPhrases: The collection of training phrases the agent is trained on
  5946  	// to identify the intent.
  5947  	TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  5948  	// ForceSendFields is a list of field names (e.g. "Description") to
  5949  	// unconditionally include in API requests. By default, fields with empty or
  5950  	// default values are omitted from API requests. See
  5951  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5952  	// details.
  5953  	ForceSendFields []string `json:"-"`
  5954  	// NullFields is a list of field names (e.g. "Description") to include in API
  5955  	// requests with the JSON null value. By default, fields with empty values are
  5956  	// omitted from API requests. See
  5957  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5958  	NullFields []string `json:"-"`
  5959  }
  5960  
  5961  func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
  5962  	type NoMethod GoogleCloudDialogflowCxV3beta1Intent
  5963  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5964  }
  5965  
  5966  // GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to trigger
  5967  // programmatically rather than as a result of natural language processing.
  5968  type GoogleCloudDialogflowCxV3beta1IntentInput struct {
  5969  	// Intent: Required. The unique identifier of the intent. Format:
  5970  	// `projects//locations//agents//intents/`.
  5971  	Intent string `json:"intent,omitempty"`
  5972  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
  5973  	// include in API requests. By default, fields with empty or default values are
  5974  	// omitted from API requests. See
  5975  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5976  	// details.
  5977  	ForceSendFields []string `json:"-"`
  5978  	// NullFields is a list of field names (e.g. "Intent") to include in API
  5979  	// requests with the JSON null value. By default, fields with empty values are
  5980  	// omitted from API requests. See
  5981  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5982  	NullFields []string `json:"-"`
  5983  }
  5984  
  5985  func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
  5986  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
  5987  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5988  }
  5989  
  5990  // GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intent
  5991  // parameter.
  5992  type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
  5993  	// EntityType: Required. The entity type of the parameter. Format:
  5994  	// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for
  5995  	// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
  5996  	// `projects//locations//agents//entityTypes/` for developer entity types.
  5997  	EntityType string `json:"entityType,omitempty"`
  5998  	// Id: Required. The unique identifier of the parameter. This field is used by
  5999  	// training phrases to annotate their parts.
  6000  	Id string `json:"id,omitempty"`
  6001  	// IsList: Indicates whether the parameter represents a list of values.
  6002  	IsList bool `json:"isList,omitempty"`
  6003  	// Redact: Indicates whether the parameter content should be redacted in log.
  6004  	// If redaction is enabled, the parameter content will be replaced by parameter
  6005  	// name during logging. Note: the parameter content is subject to redaction if
  6006  	// either parameter level redaction or entity type level redaction is enabled.
  6007  	Redact bool `json:"redact,omitempty"`
  6008  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  6009  	// unconditionally include in API requests. By default, fields with empty or
  6010  	// default values are omitted from API requests. See
  6011  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6012  	// details.
  6013  	ForceSendFields []string `json:"-"`
  6014  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  6015  	// requests with the JSON null value. By default, fields with empty values are
  6016  	// omitted from API requests. See
  6017  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6018  	NullFields []string `json:"-"`
  6019  }
  6020  
  6021  func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
  6022  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
  6023  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6024  }
  6025  
  6026  // GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an example
  6027  // that the agent is trained on to identify the intent.
  6028  type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
  6029  	// Id: Output only. The unique identifier of the training phrase.
  6030  	Id string `json:"id,omitempty"`
  6031  	// Parts: Required. The ordered list of training phrase parts. The parts are
  6032  	// concatenated in order to form the training phrase. Note: The API does not
  6033  	// automatically annotate training phrases like the Dialogflow Console does.
  6034  	// Note: Do not forget to include whitespace at part boundaries, so the
  6035  	// training phrase is well formatted when the parts are concatenated. If the
  6036  	// training phrase does not need to be annotated with parameters, you just need
  6037  	// a single part with only the Part.text field set. If you want to annotate the
  6038  	// training phrase, you must create multiple parts, where the fields of each
  6039  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  6040  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  6041  	// that you want to annotate, and the `parameter_id` field is set.
  6042  	Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
  6043  	// RepeatCount: Indicates how many times this example was added to the intent.
  6044  	RepeatCount int64 `json:"repeatCount,omitempty"`
  6045  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  6046  	// include in API requests. By default, fields with empty or default values are
  6047  	// omitted from API requests. See
  6048  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6049  	// details.
  6050  	ForceSendFields []string `json:"-"`
  6051  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  6052  	// with the JSON null value. By default, fields with empty values are omitted
  6053  	// from API requests. See
  6054  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6055  	NullFields []string `json:"-"`
  6056  }
  6057  
  6058  func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  6059  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
  6060  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6061  }
  6062  
  6063  // GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a part of
  6064  // a training phrase.
  6065  type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
  6066  	// ParameterId: The parameter used to annotate this part of the training
  6067  	// phrase. This field is required for annotated parts of the training phrase.
  6068  	ParameterId string `json:"parameterId,omitempty"`
  6069  	// Text: Required. The text for this part.
  6070  	Text string `json:"text,omitempty"`
  6071  	// ForceSendFields is a list of field names (e.g. "ParameterId") to
  6072  	// unconditionally include in API requests. By default, fields with empty or
  6073  	// default values are omitted from API requests. See
  6074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6075  	// details.
  6076  	ForceSendFields []string `json:"-"`
  6077  	// NullFields is a list of field names (e.g. "ParameterId") to include in API
  6078  	// requests with the JSON null value. By default, fields with empty values are
  6079  	// omitted from API requests. See
  6080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6081  	NullFields []string `json:"-"`
  6082  }
  6083  
  6084  func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  6085  	type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
  6086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6087  }
  6088  
  6089  // GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings: The Knowledge
  6090  // Connector settings for this page or flow. This includes information such as
  6091  // the attached Knowledge Bases, and the way to execute fulfillment.
  6092  type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
  6093  	// DataStoreConnections: Optional. List of related data store connections.
  6094  	DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
  6095  	// Enabled: Whether Knowledge Connector is enabled or not.
  6096  	Enabled bool `json:"enabled,omitempty"`
  6097  	// TargetFlow: The target flow to transition to. Format:
  6098  	// `projects//locations//agents//flows/`.
  6099  	TargetFlow string `json:"targetFlow,omitempty"`
  6100  	// TargetPage: The target page to transition to. Format:
  6101  	// `projects//locations//agents//flows//pages/`.
  6102  	TargetPage string `json:"targetPage,omitempty"`
  6103  	// TriggerFulfillment: The fulfillment to be triggered. When the answers from
  6104  	// the Knowledge Connector are selected by Dialogflow, you can utitlize the
  6105  	// request scoped parameter `$request.knowledge.answers` (contains up to the 5
  6106  	// highest confidence answers) and `$request.knowledge.questions` (contains the
  6107  	// corresponding questions) to construct the fulfillment.
  6108  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  6109  	// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to
  6110  	// unconditionally include in API requests. By default, fields with empty or
  6111  	// default values are omitted from API requests. See
  6112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6113  	// details.
  6114  	ForceSendFields []string `json:"-"`
  6115  	// NullFields is a list of field names (e.g. "DataStoreConnections") to include
  6116  	// in API requests with the JSON null value. By default, fields with empty
  6117  	// values are omitted from API requests. See
  6118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6119  	NullFields []string `json:"-"`
  6120  }
  6121  
  6122  func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
  6123  	type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
  6124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6125  }
  6126  
  6127  // GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language
  6128  // information of the request.
  6129  type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
  6130  	// ConfidenceScore: The confidence score of the detected language between 0 and
  6131  	// 1.
  6132  	ConfidenceScore float64 `json:"confidenceScore,omitempty"`
  6133  	// InputLanguageCode: The language code specified in the original request.
  6134  	InputLanguageCode string `json:"inputLanguageCode,omitempty"`
  6135  	// ResolvedLanguageCode: The language code detected for this request based on
  6136  	// the user conversation.
  6137  	ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
  6138  	// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to
  6139  	// unconditionally include in API requests. By default, fields with empty or
  6140  	// default values are omitted from API requests. See
  6141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6142  	// details.
  6143  	ForceSendFields []string `json:"-"`
  6144  	// NullFields is a list of field names (e.g. "ConfidenceScore") to include in
  6145  	// API requests with the JSON null value. By default, fields with empty values
  6146  	// are omitted from API requests. See
  6147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6148  	NullFields []string `json:"-"`
  6149  }
  6150  
  6151  func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
  6152  	type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
  6153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6154  }
  6155  
  6156  func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
  6157  	type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
  6158  	var s1 struct {
  6159  		ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
  6160  		*NoMethod
  6161  	}
  6162  	s1.NoMethod = (*NoMethod)(s)
  6163  	if err := json.Unmarshal(data, &s1); err != nil {
  6164  		return err
  6165  	}
  6166  	s.ConfidenceScore = float64(s1.ConfidenceScore)
  6167  	return nil
  6168  }
  6169  
  6170  // GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session)
  6171  // can be described and visualized as a state machine. The states of a CX
  6172  // session are represented by pages. For each flow, you define many pages,
  6173  // where your combined pages can handle a complete conversation on the topics
  6174  // the flow is designed for. At any given moment, exactly one page is the
  6175  // current page, the current page is considered active, and the flow associated
  6176  // with that page is considered active. Every flow has a special start page.
  6177  // When a flow initially becomes active, the start page page becomes the
  6178  // current page. For each conversational turn, the current page will either
  6179  // stay the same or transition to another page. You configure each page to
  6180  // collect information from the end-user that is relevant for the
  6181  // conversational state represented by the page. For more information, see the
  6182  // Page guide (https://cloud.google.com/dialogflow/cx/docs/concept/page).
  6183  type GoogleCloudDialogflowCxV3beta1Page struct {
  6184  	// AdvancedSettings: Hierarchical advanced settings for this page. The settings
  6185  	// exposed at the lower level overrides the settings exposed at the higher
  6186  	// level.
  6187  	AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
  6188  	// Description: The description of the page. The maximum length is 500
  6189  	// characters.
  6190  	Description string `json:"description,omitempty"`
  6191  	// DisplayName: Required. The human-readable name of the page, unique within
  6192  	// the flow.
  6193  	DisplayName string `json:"displayName,omitempty"`
  6194  	// EntryFulfillment: The fulfillment to call when the session is entering the
  6195  	// page.
  6196  	EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
  6197  	// EventHandlers: Handlers associated with the page to handle events such as
  6198  	// webhook errors, no match or no input.
  6199  	EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
  6200  	// Form: The form associated with the page, used for collecting parameters
  6201  	// relevant to the page.
  6202  	Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
  6203  	// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.
  6204  	KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
  6205  	// Name: The unique identifier of the page. Required for the Pages.UpdatePage
  6206  	// method. Pages.CreatePage populates the name automatically. Format:
  6207  	// `projects//locations//agents//flows//pages/`.
  6208  	Name string `json:"name,omitempty"`
  6209  	// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the
  6210  	// page. Transition route groups must be unique within a page. If the page
  6211  	// links both flow-level transition route groups and agent-level transition
  6212  	// route groups, the flow-level ones will have higher priority and will be put
  6213  	// before the agent-level ones. * If multiple transition routes within a page
  6214  	// scope refer to the same intent, then the precedence order is: page's
  6215  	// transition route -> page's transition route group -> flow's transition
  6216  	// routes. * If multiple transition route groups within a page contain the same
  6217  	// intent, then the first group in the ordered list takes precedence.
  6218  	// Format:`projects//locations//agents//flows//transitionRouteGroups/` or
  6219  	// `projects//locations//agents//transitionRouteGroups/` for agent-level
  6220  	// groups.
  6221  	TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
  6222  	// TransitionRoutes: A list of transitions for the transition rules of this
  6223  	// page. They route the conversation to another page in the same flow, or
  6224  	// another flow. When we are in a certain page, the TransitionRoutes are
  6225  	// evalauted in the following order: * TransitionRoutes defined in the page
  6226  	// with intent specified. * TransitionRoutes defined in the transition route
  6227  	// groups with intent specified. * TransitionRoutes defined in flow with intent
  6228  	// specified. * TransitionRoutes defined in the transition route groups with
  6229  	// intent specified. * TransitionRoutes defined in the page with only condition
  6230  	// specified. * TransitionRoutes defined in the transition route groups with
  6231  	// only condition specified.
  6232  	TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
  6233  	// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to
  6234  	// unconditionally include in API requests. By default, fields with empty or
  6235  	// default values are omitted from API requests. See
  6236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6237  	// details.
  6238  	ForceSendFields []string `json:"-"`
  6239  	// NullFields is a list of field names (e.g. "AdvancedSettings") to include in
  6240  	// API requests with the JSON null value. By default, fields with empty values
  6241  	// are omitted from API requests. See
  6242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6243  	NullFields []string `json:"-"`
  6244  }
  6245  
  6246  func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
  6247  	type NoMethod GoogleCloudDialogflowCxV3beta1Page
  6248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6249  }
  6250  
  6251  // GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information
  6252  // communicated to and from the webhook.
  6253  type GoogleCloudDialogflowCxV3beta1PageInfo struct {
  6254  	// CurrentPage: Always present for WebhookRequest. Ignored for WebhookResponse.
  6255  	// The unique identifier of the current page. Format:
  6256  	// `projects//locations//agents//flows//pages/`.
  6257  	CurrentPage string `json:"currentPage,omitempty"`
  6258  	// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.
  6259  	// The display name of the current page.
  6260  	DisplayName string `json:"displayName,omitempty"`
  6261  	// FormInfo: Optional for both WebhookRequest and WebhookResponse. Information
  6262  	// about the form.
  6263  	FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
  6264  	// ForceSendFields is a list of field names (e.g. "CurrentPage") to
  6265  	// unconditionally include in API requests. By default, fields with empty or
  6266  	// default values are omitted from API requests. See
  6267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6268  	// details.
  6269  	ForceSendFields []string `json:"-"`
  6270  	// NullFields is a list of field names (e.g. "CurrentPage") to include in API
  6271  	// requests with the JSON null value. By default, fields with empty values are
  6272  	// omitted from API requests. See
  6273  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6274  	NullFields []string `json:"-"`
  6275  }
  6276  
  6277  func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
  6278  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
  6279  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6280  }
  6281  
  6282  // GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form information.
  6283  type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
  6284  	// ParameterInfo: Optional for both WebhookRequest and WebhookResponse. The
  6285  	// parameters contained in the form. Note that the webhook cannot add or remove
  6286  	// any form parameter.
  6287  	ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
  6288  	// ForceSendFields is a list of field names (e.g. "ParameterInfo") to
  6289  	// unconditionally include in API requests. By default, fields with empty or
  6290  	// default values are omitted from API requests. See
  6291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6292  	// details.
  6293  	ForceSendFields []string `json:"-"`
  6294  	// NullFields is a list of field names (e.g. "ParameterInfo") to include in API
  6295  	// requests with the JSON null value. By default, fields with empty values are
  6296  	// omitted from API requests. See
  6297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6298  	NullFields []string `json:"-"`
  6299  }
  6300  
  6301  func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
  6302  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
  6303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6304  }
  6305  
  6306  // GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: Represents
  6307  // parameter information.
  6308  type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
  6309  	// DisplayName: Always present for WebhookRequest. Required for
  6310  	// WebhookResponse. The human-readable name of the parameter, unique within the
  6311  	// form. This field cannot be modified by the webhook.
  6312  	DisplayName string `json:"displayName,omitempty"`
  6313  	// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.
  6314  	// Indicates if the parameter value was just collected on the last conversation
  6315  	// turn.
  6316  	JustCollected bool `json:"justCollected,omitempty"`
  6317  	// Required: Optional for both WebhookRequest and WebhookResponse. Indicates
  6318  	// whether the parameter is required. Optional parameters will not trigger
  6319  	// prompts; however, they are filled if the user specifies them. Required
  6320  	// parameters must be filled before form filling concludes.
  6321  	Required bool `json:"required,omitempty"`
  6322  	// State: Always present for WebhookRequest. Required for WebhookResponse. The
  6323  	// state of the parameter. This field can be set to INVALID by the webhook to
  6324  	// invalidate the parameter; other values set by the webhook will be ignored.
  6325  	//
  6326  	// Possible values:
  6327  	//   "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be never
  6328  	// used.
  6329  	//   "EMPTY" - Indicates that the parameter does not have a value.
  6330  	//   "INVALID" - Indicates that the parameter value is invalid. This field can
  6331  	// be used by the webhook to invalidate the parameter and ask the server to
  6332  	// collect it from the user again.
  6333  	//   "FILLED" - Indicates that the parameter has a value.
  6334  	State string `json:"state,omitempty"`
  6335  	// Value: Optional for both WebhookRequest and WebhookResponse. The value of
  6336  	// the parameter. This field can be set by the webhook to change the parameter
  6337  	// value.
  6338  	Value interface{} `json:"value,omitempty"`
  6339  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  6340  	// unconditionally include in API requests. By default, fields with empty or
  6341  	// default values are omitted from API requests. See
  6342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6343  	// details.
  6344  	ForceSendFields []string `json:"-"`
  6345  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  6346  	// requests with the JSON null value. By default, fields with empty values are
  6347  	// omitted from API requests. See
  6348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6349  	NullFields []string `json:"-"`
  6350  }
  6351  
  6352  func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
  6353  	type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
  6354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6355  }
  6356  
  6357  // GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input. It can
  6358  // contain one of: 1. A conversational query in the form of text. 2. An intent
  6359  // query that specifies which intent to trigger. 3. Natural language speech
  6360  // audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke
  6361  // an intent and fill in parameter value. 6. The results of a tool executed by
  6362  // the client.
  6363  type GoogleCloudDialogflowCxV3beta1QueryInput struct {
  6364  	// Audio: The natural language speech audio to be processed.
  6365  	Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
  6366  	// Dtmf: The DTMF event to be handled.
  6367  	Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
  6368  	// Event: The event to be triggered.
  6369  	Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
  6370  	// Intent: The intent to be triggered.
  6371  	Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
  6372  	// LanguageCode: Required. The language of the input. See Language Support
  6373  	// (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list
  6374  	// of the currently supported language codes. Note that queries in the same
  6375  	// session do not necessarily need to specify the same language.
  6376  	LanguageCode string `json:"languageCode,omitempty"`
  6377  	// Text: The natural language text to be processed.
  6378  	Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
  6379  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
  6380  	// include in API requests. By default, fields with empty or default values are
  6381  	// omitted from API requests. See
  6382  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6383  	// details.
  6384  	ForceSendFields []string `json:"-"`
  6385  	// NullFields is a list of field names (e.g. "Audio") to include in API
  6386  	// requests with the JSON null value. By default, fields with empty values are
  6387  	// omitted from API requests. See
  6388  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6389  	NullFields []string `json:"-"`
  6390  }
  6391  
  6392  func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
  6393  	type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
  6394  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6395  }
  6396  
  6397  // GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata: Metadata for
  6398  // ReloadDocument operation.
  6399  type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
  6400  	// GenericMetadata: The generic information of the operation.
  6401  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  6402  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  6403  	// unconditionally include in API requests. By default, fields with empty or
  6404  	// default values are omitted from API requests. See
  6405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6406  	// details.
  6407  	ForceSendFields []string `json:"-"`
  6408  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  6409  	// API requests with the JSON null value. By default, fields with empty values
  6410  	// are omitted from API requests. See
  6411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6412  	NullFields []string `json:"-"`
  6413  }
  6414  
  6415  func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  6416  	type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
  6417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6418  }
  6419  
  6420  // GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response message
  6421  // that can be returned by a conversational agent. Response messages are also
  6422  // used for output audio synthesis. The approach is as follows: * If at least
  6423  // one OutputAudioText response is present, then all OutputAudioText responses
  6424  // are linearly concatenated, and the result is used for output audio
  6425  // synthesis. * If the OutputAudioText responses are a mixture of text and
  6426  // SSML, then the concatenated result is treated as SSML; otherwise, the result
  6427  // is treated as either text or SSML as appropriate. The agent designer should
  6428  // ideally use either text or SSML consistently throughout the bot design. *
  6429  // Otherwise, all Text responses are linearly concatenated, and the result is
  6430  // used for output audio synthesis. This approach allows for more sophisticated
  6431  // user experience scenarios, where the text displayed to the user may differ
  6432  // from what is heard.
  6433  type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
  6434  	// Channel: The channel which the response is associated with. Clients can
  6435  	// specify the channel via QueryParameters.channel, and only associated channel
  6436  	// response will be returned.
  6437  	Channel string `json:"channel,omitempty"`
  6438  	// ConversationSuccess: Indicates that the conversation succeeded.
  6439  	ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
  6440  	// EndInteraction: Output only. A signal that indicates the interaction with
  6441  	// the Dialogflow agent has ended. This message is generated by Dialogflow only
  6442  	// when the conversation reaches `END_SESSION` page. It is not supposed to be
  6443  	// defined by the user. It's guaranteed that there is at most one such message
  6444  	// in each response.
  6445  	EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
  6446  	// KnowledgeInfoCard: Represents info card for knowledge answers, to be better
  6447  	// rendered in Dialogflow Messenger.
  6448  	KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
  6449  	// LiveAgentHandoff: Hands off conversation to a human agent.
  6450  	LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
  6451  	// MixedAudio: Output only. An audio response message composed of both the
  6452  	// synthesized Dialogflow agent responses and responses defined via play_audio.
  6453  	// This message is generated by Dialogflow only and not supposed to be defined
  6454  	// by the user.
  6455  	MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
  6456  	// OutputAudioText: A text or ssml response that is preferentially used for TTS
  6457  	// output audio synthesis, as described in the comment on the ResponseMessage
  6458  	// message.
  6459  	OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
  6460  	// Payload: Returns a response containing a custom, platform-specific payload.
  6461  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  6462  	// PlayAudio: Signal that the client should play an audio clip hosted at a
  6463  	// client-specific URI. Dialogflow uses this to construct mixed_audio. However,
  6464  	// Dialogflow itself does not try to read or process the URI in any way.
  6465  	PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
  6466  	// TelephonyTransferCall: A signal that the client should transfer the phone
  6467  	// call connected to this agent to a third-party endpoint.
  6468  	TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
  6469  	// Text: Returns a text response.
  6470  	Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
  6471  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  6472  	// include in API requests. By default, fields with empty or default values are
  6473  	// omitted from API requests. See
  6474  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6475  	// details.
  6476  	ForceSendFields []string `json:"-"`
  6477  	// NullFields is a list of field names (e.g. "Channel") to include in API
  6478  	// requests with the JSON null value. By default, fields with empty values are
  6479  	// omitted from API requests. See
  6480  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6481  	NullFields []string `json:"-"`
  6482  }
  6483  
  6484  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
  6485  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
  6486  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6487  }
  6488  
  6489  // GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: Indicates
  6490  // that the conversation succeeded, i.e., the bot handled the issue that the
  6491  // customer talked to it about. Dialogflow only uses this to determine which
  6492  // conversations should be counted as successful and doesn't process the
  6493  // metadata in this message in any way. Note that Dialogflow also considers
  6494  // conversations that get to the conversation end page as successful even if
  6495  // they don't return ConversationSuccess. You may set this, for example: * In
  6496  // the entry_fulfillment of a Page if entering the page indicates that the
  6497  // conversation succeeded. * In a webhook response when you determine that you
  6498  // handled the customer issue.
  6499  type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
  6500  	// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.
  6501  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  6502  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  6503  	// unconditionally include in API requests. By default, fields with empty or
  6504  	// default values are omitted from API requests. See
  6505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6506  	// details.
  6507  	ForceSendFields []string `json:"-"`
  6508  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  6509  	// requests with the JSON null value. By default, fields with empty values are
  6510  	// omitted from API requests. See
  6511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6512  	NullFields []string `json:"-"`
  6513  }
  6514  
  6515  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
  6516  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
  6517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6518  }
  6519  
  6520  // GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction: Indicates that
  6521  // interaction with the Dialogflow agent has ended. This message is generated
  6522  // by Dialogflow only and not supposed to be defined by the user.
  6523  type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
  6524  }
  6525  
  6526  // GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard: Represents
  6527  // info card response. If the response contains generative knowledge
  6528  // prediction, Dialogflow will return a payload with Infobot Messenger
  6529  // compatible info card. Otherwise, the info card response is skipped.
  6530  type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
  6531  }
  6532  
  6533  // GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff: Indicates
  6534  // that the conversation should be handed off to a live agent. Dialogflow only
  6535  // uses this to determine which conversations were handed off to a human agent
  6536  // for measurement purposes. What else to do with this signal is up to you and
  6537  // your handoff procedures. You may set this, for example: * In the
  6538  // entry_fulfillment of a Page if entering the page indicates something went
  6539  // extremely wrong in the conversation. * In a webhook response when you
  6540  // determine that the customer issue can only be handled by a human.
  6541  type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
  6542  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
  6543  	// impose any structure on this.
  6544  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  6545  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  6546  	// unconditionally include in API requests. By default, fields with empty or
  6547  	// default values are omitted from API requests. See
  6548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6549  	// details.
  6550  	ForceSendFields []string `json:"-"`
  6551  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  6552  	// requests with the JSON null value. By default, fields with empty values are
  6553  	// omitted from API requests. See
  6554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6555  	NullFields []string `json:"-"`
  6556  }
  6557  
  6558  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
  6559  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
  6560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6561  }
  6562  
  6563  // GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents an audio
  6564  // message that is composed of both segments synthesized from the Dialogflow
  6565  // agent prompts and ones hosted externally at the specified URIs. The external
  6566  // URIs are specified via play_audio. This message is generated by Dialogflow
  6567  // only and not supposed to be defined by the user.
  6568  type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
  6569  	// Segments: Segments this audio response is composed of.
  6570  	Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
  6571  	// ForceSendFields is a list of field names (e.g. "Segments") to
  6572  	// unconditionally include in API requests. By default, fields with empty or
  6573  	// default values are omitted from API requests. See
  6574  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6575  	// details.
  6576  	ForceSendFields []string `json:"-"`
  6577  	// NullFields is a list of field names (e.g. "Segments") to include in API
  6578  	// requests with the JSON null value. By default, fields with empty values are
  6579  	// omitted from API requests. See
  6580  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6581  	NullFields []string `json:"-"`
  6582  }
  6583  
  6584  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
  6585  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
  6586  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6587  }
  6588  
  6589  // GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment: Represents
  6590  // one segment of audio.
  6591  type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
  6592  	// AllowPlaybackInterruption: Output only. Whether the playback of this segment
  6593  	// can be interrupted by the end user's speech and the client should then start
  6594  	// the next Dialogflow request.
  6595  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6596  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
  6597  	// output config specified in the request.
  6598  	Audio string `json:"audio,omitempty"`
  6599  	// Uri: Client-specific URI that points to an audio clip accessible to the
  6600  	// client. Dialogflow does not impose any validation on it.
  6601  	Uri string `json:"uri,omitempty"`
  6602  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6603  	// to unconditionally include in API requests. By default, fields with empty or
  6604  	// default values are omitted from API requests. See
  6605  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6606  	// details.
  6607  	ForceSendFields []string `json:"-"`
  6608  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6609  	// include in API requests with the JSON null value. By default, fields with
  6610  	// empty values are omitted from API requests. See
  6611  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6612  	NullFields []string `json:"-"`
  6613  }
  6614  
  6615  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
  6616  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
  6617  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6618  }
  6619  
  6620  // GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text or ssml
  6621  // response that is preferentially used for TTS output audio synthesis, as
  6622  // described in the comment on the ResponseMessage message.
  6623  type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
  6624  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  6625  	// can be interrupted by the end user's speech and the client can then starts
  6626  	// the next Dialogflow request.
  6627  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6628  	// Ssml: The SSML text to be synthesized. For more information, see SSML
  6629  	// (/speech/text-to-speech/docs/ssml).
  6630  	Ssml string `json:"ssml,omitempty"`
  6631  	// Text: The raw text to be synthesized.
  6632  	Text string `json:"text,omitempty"`
  6633  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6634  	// to unconditionally include in API requests. By default, fields with empty or
  6635  	// default values are omitted from API requests. See
  6636  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6637  	// details.
  6638  	ForceSendFields []string `json:"-"`
  6639  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6640  	// include in API requests with the JSON null value. By default, fields with
  6641  	// empty values are omitted from API requests. See
  6642  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6643  	NullFields []string `json:"-"`
  6644  }
  6645  
  6646  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
  6647  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
  6648  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6649  }
  6650  
  6651  // GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an audio
  6652  // clip to be played by the client as part of the response.
  6653  type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
  6654  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  6655  	// can be interrupted by the end user's speech and the client can then starts
  6656  	// the next Dialogflow request.
  6657  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6658  	// AudioUri: Required. URI of the audio clip. Dialogflow does not impose any
  6659  	// validation on this value. It is specific to the client that reads it.
  6660  	AudioUri string `json:"audioUri,omitempty"`
  6661  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6662  	// to unconditionally include in API requests. By default, fields with empty or
  6663  	// default values are omitted from API requests. See
  6664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6665  	// details.
  6666  	ForceSendFields []string `json:"-"`
  6667  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6668  	// include in API requests with the JSON null value. By default, fields with
  6669  	// empty values are omitted from API requests. See
  6670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6671  	NullFields []string `json:"-"`
  6672  }
  6673  
  6674  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
  6675  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
  6676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6677  }
  6678  
  6679  // GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall:
  6680  // Represents the signal that telles the client to transfer the phone call
  6681  // connected to the agent to a third-party endpoint.
  6682  type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
  6683  	// PhoneNumber: Transfer the call to a phone number in E.164 format
  6684  	// (https://en.wikipedia.org/wiki/E.164).
  6685  	PhoneNumber string `json:"phoneNumber,omitempty"`
  6686  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  6687  	// unconditionally include in API requests. By default, fields with empty or
  6688  	// default values are omitted from API requests. See
  6689  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6690  	// details.
  6691  	ForceSendFields []string `json:"-"`
  6692  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  6693  	// requests with the JSON null value. By default, fields with empty values are
  6694  	// omitted from API requests. See
  6695  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6696  	NullFields []string `json:"-"`
  6697  }
  6698  
  6699  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
  6700  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
  6701  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6702  }
  6703  
  6704  // GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response
  6705  // message.
  6706  type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
  6707  	// AllowPlaybackInterruption: Output only. Whether the playback of this message
  6708  	// can be interrupted by the end user's speech and the client can then starts
  6709  	// the next Dialogflow request.
  6710  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
  6711  	// Text: Required. A collection of text responses.
  6712  	Text []string `json:"text,omitempty"`
  6713  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
  6714  	// to unconditionally include in API requests. By default, fields with empty or
  6715  	// default values are omitted from API requests. See
  6716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6717  	// details.
  6718  	ForceSendFields []string `json:"-"`
  6719  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
  6720  	// include in API requests with the JSON null value. By default, fields with
  6721  	// empty values are omitted from API requests. See
  6722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6723  	NullFields []string `json:"-"`
  6724  }
  6725  
  6726  func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
  6727  	type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
  6728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6729  }
  6730  
  6731  // GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata: Metadata returned
  6732  // for the Environments.RunContinuousTest long running operation.
  6733  type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
  6734  	// Errors: The test errors.
  6735  	Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
  6736  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  6737  	// include in API requests. By default, fields with empty or default values are
  6738  	// omitted from API requests. See
  6739  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6740  	// details.
  6741  	ForceSendFields []string `json:"-"`
  6742  	// NullFields is a list of field names (e.g. "Errors") to include in API
  6743  	// requests with the JSON null value. By default, fields with empty values are
  6744  	// omitted from API requests. See
  6745  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6746  	NullFields []string `json:"-"`
  6747  }
  6748  
  6749  func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
  6750  	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
  6751  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6752  }
  6753  
  6754  // GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse: The response
  6755  // message for Environments.RunContinuousTest.
  6756  type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
  6757  	// ContinuousTestResult: The result for a continuous test run.
  6758  	ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
  6759  	// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to
  6760  	// unconditionally include in API requests. By default, fields with empty or
  6761  	// default values are omitted from API requests. See
  6762  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6763  	// details.
  6764  	ForceSendFields []string `json:"-"`
  6765  	// NullFields is a list of field names (e.g. "ContinuousTestResult") to include
  6766  	// in API requests with the JSON null value. By default, fields with empty
  6767  	// values are omitted from API requests. See
  6768  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6769  	NullFields []string `json:"-"`
  6770  }
  6771  
  6772  func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
  6773  	type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
  6774  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6775  }
  6776  
  6777  // GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned for the
  6778  // TestCases.RunTestCase long running operation. This message currently has no
  6779  // fields.
  6780  type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
  6781  }
  6782  
  6783  // GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response message for
  6784  // TestCases.RunTestCase.
  6785  type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
  6786  	// Result: The result.
  6787  	Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
  6788  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
  6789  	// include in API requests. By default, fields with empty or default values are
  6790  	// omitted from API requests. See
  6791  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6792  	// details.
  6793  	ForceSendFields []string `json:"-"`
  6794  	// NullFields is a list of field names (e.g. "Result") to include in API
  6795  	// requests with the JSON null value. By default, fields with empty values are
  6796  	// omitted from API requests. See
  6797  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6798  	NullFields []string `json:"-"`
  6799  }
  6800  
  6801  func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
  6802  	type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
  6803  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6804  }
  6805  
  6806  // GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session information
  6807  // communicated to and from the webhook.
  6808  type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
  6809  	// Parameters: Optional for WebhookRequest. Optional for WebhookResponse. All
  6810  	// parameters collected from forms and intents during the session. Parameters
  6811  	// can be created, updated, or removed by the webhook. To remove a parameter
  6812  	// from the session, the webhook should explicitly set the parameter value to
  6813  	// null in WebhookResponse. The map is keyed by parameters' display names.
  6814  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  6815  	// Session: Always present for WebhookRequest. Ignored for WebhookResponse. The
  6816  	// unique identifier of the session. This field can be used by the webhook to
  6817  	// identify a session. Format: `projects//locations//agents//sessions/` or
  6818  	// `projects//locations//agents//environments//sessions/` if environment is
  6819  	// specified.
  6820  	Session string `json:"session,omitempty"`
  6821  	// ForceSendFields is a list of field names (e.g. "Parameters") to
  6822  	// unconditionally include in API requests. By default, fields with empty or
  6823  	// default values are omitted from API requests. See
  6824  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6825  	// details.
  6826  	ForceSendFields []string `json:"-"`
  6827  	// NullFields is a list of field names (e.g. "Parameters") to include in API
  6828  	// requests with the JSON null value. By default, fields with empty values are
  6829  	// omitted from API requests. See
  6830  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6831  	NullFields []string `json:"-"`
  6832  }
  6833  
  6834  func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
  6835  	type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
  6836  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6837  }
  6838  
  6839  // GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.
  6840  type GoogleCloudDialogflowCxV3beta1TestCase struct {
  6841  	// CreationTime: Output only. When the test was created.
  6842  	CreationTime string `json:"creationTime,omitempty"`
  6843  	// DisplayName: Required. The human-readable name of the test case, unique
  6844  	// within the agent. Limit of 200 characters.
  6845  	DisplayName string `json:"displayName,omitempty"`
  6846  	// LastTestResult: The latest test result.
  6847  	LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
  6848  	// Name: The unique identifier of the test case. TestCases.CreateTestCase will
  6849  	// populate the name automatically. Otherwise use format:
  6850  	// `projects//locations//agents/ /testCases/`.
  6851  	Name string `json:"name,omitempty"`
  6852  	// Notes: Additional freeform notes about the test case. Limit of 400
  6853  	// characters.
  6854  	Notes string `json:"notes,omitempty"`
  6855  	// Tags: Tags are short descriptions that users may apply to test cases for
  6856  	// organizational and filtering purposes. Each tag should start with "#" and
  6857  	// has a limit of 30 characters.
  6858  	Tags []string `json:"tags,omitempty"`
  6859  	// TestCaseConversationTurns: The conversation turns uttered when the test case
  6860  	// was created, in chronological order. These include the canonical set of
  6861  	// agent utterances that should occur when the agent is working properly.
  6862  	TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
  6863  	// TestConfig: Config for the test case.
  6864  	TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
  6865  	// ForceSendFields is a list of field names (e.g. "CreationTime") to
  6866  	// unconditionally include in API requests. By default, fields with empty or
  6867  	// default values are omitted from API requests. See
  6868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6869  	// details.
  6870  	ForceSendFields []string `json:"-"`
  6871  	// NullFields is a list of field names (e.g. "CreationTime") to include in API
  6872  	// requests with the JSON null value. By default, fields with empty values are
  6873  	// omitted from API requests. See
  6874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6875  	NullFields []string `json:"-"`
  6876  }
  6877  
  6878  func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
  6879  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
  6880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6881  }
  6882  
  6883  // GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing a
  6884  // test.
  6885  type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
  6886  	// Status: The status associated with the test case.
  6887  	Status *GoogleRpcStatus `json:"status,omitempty"`
  6888  	// TestCase: The test case.
  6889  	TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
  6890  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  6891  	// include in API requests. By default, fields with empty or default values are
  6892  	// omitted from API requests. See
  6893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6894  	// details.
  6895  	ForceSendFields []string `json:"-"`
  6896  	// NullFields is a list of field names (e.g. "Status") to include in API
  6897  	// requests with the JSON null value. By default, fields with empty values are
  6898  	// omitted from API requests. See
  6899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6900  	NullFields []string `json:"-"`
  6901  }
  6902  
  6903  func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
  6904  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
  6905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6906  }
  6907  
  6908  // GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result from
  6909  // running a test case in an agent environment.
  6910  type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
  6911  	// ConversationTurns: The conversation turns uttered during the test case
  6912  	// replay in chronological order.
  6913  	ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
  6914  	// Environment: Environment where the test was run. If not set, it indicates
  6915  	// the draft environment.
  6916  	Environment string `json:"environment,omitempty"`
  6917  	// Name: The resource name for the test case result. Format:
  6918  	// `projects//locations//agents//testCases/ /results/`.
  6919  	Name string `json:"name,omitempty"`
  6920  	// TestResult: Whether the test case passed in the agent environment.
  6921  	//
  6922  	// Possible values:
  6923  	//   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.
  6924  	//   "PASSED" - The test passed.
  6925  	//   "FAILED" - The test did not pass.
  6926  	TestResult string `json:"testResult,omitempty"`
  6927  	// TestTime: The time that the test was run.
  6928  	TestTime string `json:"testTime,omitempty"`
  6929  	// ForceSendFields is a list of field names (e.g. "ConversationTurns") to
  6930  	// unconditionally include in API requests. By default, fields with empty or
  6931  	// default values are omitted from API requests. See
  6932  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6933  	// details.
  6934  	ForceSendFields []string `json:"-"`
  6935  	// NullFields is a list of field names (e.g. "ConversationTurns") to include in
  6936  	// API requests with the JSON null value. By default, fields with empty values
  6937  	// are omitted from API requests. See
  6938  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6939  	NullFields []string `json:"-"`
  6940  }
  6941  
  6942  func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
  6943  	type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
  6944  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6945  }
  6946  
  6947  // GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations for a
  6948  // test case.
  6949  type GoogleCloudDialogflowCxV3beta1TestConfig struct {
  6950  	// Flow: Flow name to start the test case with. Format:
  6951  	// `projects//locations//agents//flows/`. Only one of `flow` and `page` should
  6952  	// be set to indicate the starting point of the test case. If both are set,
  6953  	// `page` takes precedence over `flow`. If neither is set, the test case will
  6954  	// start with start page on the default start flow.
  6955  	Flow string `json:"flow,omitempty"`
  6956  	// Page: The page to start the test case with. Format:
  6957  	// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`
  6958  	// should be set to indicate the starting point of the test case. If both are
  6959  	// set, `page` takes precedence over `flow`. If neither is set, the test case
  6960  	// will start with start page on the default start flow.
  6961  	Page string `json:"page,omitempty"`
  6962  	// TrackingParameters: Session parameters to be compared when calculating
  6963  	// differences.
  6964  	TrackingParameters []string `json:"trackingParameters,omitempty"`
  6965  	// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally
  6966  	// include in API requests. By default, fields with empty or default values are
  6967  	// omitted from API requests. See
  6968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6969  	// details.
  6970  	ForceSendFields []string `json:"-"`
  6971  	// NullFields is a list of field names (e.g. "Flow") to include in API requests
  6972  	// with the JSON null value. By default, fields with empty values are omitted
  6973  	// from API requests. See
  6974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6975  	NullFields []string `json:"-"`
  6976  }
  6977  
  6978  func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
  6979  	type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
  6980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6981  }
  6982  
  6983  // GoogleCloudDialogflowCxV3beta1TestError: Error info for running a test.
  6984  type GoogleCloudDialogflowCxV3beta1TestError struct {
  6985  	// Status: The status associated with the test.
  6986  	Status *GoogleRpcStatus `json:"status,omitempty"`
  6987  	// TestCase: The test case resource name.
  6988  	TestCase string `json:"testCase,omitempty"`
  6989  	// TestTime: The timestamp when the test was completed.
  6990  	TestTime string `json:"testTime,omitempty"`
  6991  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  6992  	// include in API requests. By default, fields with empty or default values are
  6993  	// omitted from API requests. See
  6994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6995  	// details.
  6996  	ForceSendFields []string `json:"-"`
  6997  	// NullFields is a list of field names (e.g. "Status") to include in API
  6998  	// requests with the JSON null value. By default, fields with empty values are
  6999  	// omitted from API requests. See
  7000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7001  	NullFields []string `json:"-"`
  7002  }
  7003  
  7004  func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
  7005  	type NoMethod GoogleCloudDialogflowCxV3beta1TestError
  7006  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7007  }
  7008  
  7009  // GoogleCloudDialogflowCxV3beta1TestRunDifference: The description of
  7010  // differences between original and replayed agent output.
  7011  type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
  7012  	// Description: A human readable description of the diff, showing the actual
  7013  	// output vs expected output.
  7014  	Description string `json:"description,omitempty"`
  7015  	// Type: The type of diff.
  7016  	//
  7017  	// Possible values:
  7018  	//   "DIFF_TYPE_UNSPECIFIED" - Should never be used.
  7019  	//   "INTENT" - The intent.
  7020  	//   "PAGE" - The page.
  7021  	//   "PARAMETERS" - The parameters.
  7022  	//   "UTTERANCE" - The message utterance.
  7023  	//   "FLOW" - The flow.
  7024  	Type string `json:"type,omitempty"`
  7025  	// ForceSendFields is a list of field names (e.g. "Description") to
  7026  	// unconditionally include in API requests. By default, fields with empty or
  7027  	// default values are omitted from API requests. See
  7028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7029  	// details.
  7030  	ForceSendFields []string `json:"-"`
  7031  	// NullFields is a list of field names (e.g. "Description") to include in API
  7032  	// requests with the JSON null value. By default, fields with empty values are
  7033  	// omitted from API requests. See
  7034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7035  	NullFields []string `json:"-"`
  7036  }
  7037  
  7038  func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
  7039  	type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
  7040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7041  }
  7042  
  7043  // GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural language
  7044  // text to be processed.
  7045  type GoogleCloudDialogflowCxV3beta1TextInput struct {
  7046  	// Text: Required. The UTF-8 encoded natural language text to be processed.
  7047  	Text string `json:"text,omitempty"`
  7048  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  7049  	// include in API requests. By default, fields with empty or default values are
  7050  	// omitted from API requests. See
  7051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7052  	// details.
  7053  	ForceSendFields []string `json:"-"`
  7054  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  7055  	// with the JSON null value. By default, fields with empty values are omitted
  7056  	// from API requests. See
  7057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7058  	NullFields []string `json:"-"`
  7059  }
  7060  
  7061  func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
  7062  	type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
  7063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7064  }
  7065  
  7066  // GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route specifies
  7067  // a intent that can be matched and/or a data condition that can be evaluated
  7068  // during a session. When a specified transition is matched, the following
  7069  // actions are taken in order: * If there is a `trigger_fulfillment` associated
  7070  // with the transition, it will be called. * If there is a `target_page`
  7071  // associated with the transition, the session will transition into the
  7072  // specified page. * If there is a `target_flow` associated with the
  7073  // transition, the session will transition into the specified flow.
  7074  type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
  7075  	// Condition: The condition to evaluate against form parameters or session
  7076  	// parameters. See the conditions reference
  7077  	// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least
  7078  	// one of `intent` or `condition` must be specified. When both `intent` and
  7079  	// `condition` are specified, the transition can only happen when both are
  7080  	// fulfilled.
  7081  	Condition string `json:"condition,omitempty"`
  7082  	// Description: Optional. The description of the transition route. The maximum
  7083  	// length is 500 characters.
  7084  	Description string `json:"description,omitempty"`
  7085  	// Intent: The unique identifier of an Intent. Format:
  7086  	// `projects//locations//agents//intents/`. Indicates that the transition can
  7087  	// only happen when the given intent is matched. At least one of `intent` or
  7088  	// `condition` must be specified. When both `intent` and `condition` are
  7089  	// specified, the transition can only happen when both are fulfilled.
  7090  	Intent string `json:"intent,omitempty"`
  7091  	// Name: Output only. The unique identifier of this transition route.
  7092  	Name string `json:"name,omitempty"`
  7093  	// TargetFlow: The target flow to transition to. Format:
  7094  	// `projects//locations//agents//flows/`.
  7095  	TargetFlow string `json:"targetFlow,omitempty"`
  7096  	// TargetPage: The target page to transition to. Format:
  7097  	// `projects//locations//agents//flows//pages/`.
  7098  	TargetPage string `json:"targetPage,omitempty"`
  7099  	// TriggerFulfillment: The fulfillment to call when the condition is satisfied.
  7100  	// At least one of `trigger_fulfillment` and `target` must be specified. When
  7101  	// both are defined, `trigger_fulfillment` is executed first.
  7102  	TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
  7103  	// ForceSendFields is a list of field names (e.g. "Condition") to
  7104  	// unconditionally include in API requests. By default, fields with empty or
  7105  	// default values are omitted from API requests. See
  7106  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7107  	// details.
  7108  	ForceSendFields []string `json:"-"`
  7109  	// NullFields is a list of field names (e.g. "Condition") to include in API
  7110  	// requests with the JSON null value. By default, fields with empty values are
  7111  	// omitted from API requests. See
  7112  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7113  	NullFields []string `json:"-"`
  7114  }
  7115  
  7116  func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
  7117  	type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
  7118  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7119  }
  7120  
  7121  // GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals that
  7122  // were extracted for a single turn of the conversation.
  7123  type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
  7124  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
  7125  	AgentEscalated bool `json:"agentEscalated,omitempty"`
  7126  	// DtmfUsed: Whether user was using DTMF input.
  7127  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
  7128  	// FailureReasons: Failure reasons of the turn.
  7129  	//
  7130  	// Possible values:
  7131  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
  7132  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
  7133  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
  7134  	FailureReasons []string `json:"failureReasons,omitempty"`
  7135  	// NoMatch: Whether NLU predicted NO_MATCH.
  7136  	NoMatch bool `json:"noMatch,omitempty"`
  7137  	// NoUserInput: Whether user provided no input.
  7138  	NoUserInput bool `json:"noUserInput,omitempty"`
  7139  	// ReachedEndPage: Whether turn resulted in End Session page.
  7140  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
  7141  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
  7142  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  7143  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
  7144  	// SentimentScore: Sentiment score of the user utterance if sentiment
  7145  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
  7146  	SentimentScore float64 `json:"sentimentScore,omitempty"`
  7147  	// UserEscalated: Whether user was specifically asking for a live agent.
  7148  	UserEscalated bool `json:"userEscalated,omitempty"`
  7149  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
  7150  	// this turn.
  7151  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
  7152  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
  7153  	// unconditionally include in API requests. By default, fields with empty or
  7154  	// default values are omitted from API requests. See
  7155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7156  	// details.
  7157  	ForceSendFields []string `json:"-"`
  7158  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
  7159  	// API requests with the JSON null value. By default, fields with empty values
  7160  	// are omitted from API requests. See
  7161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7162  	NullFields []string `json:"-"`
  7163  }
  7164  
  7165  func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
  7166  	type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
  7167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7168  }
  7169  
  7170  func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
  7171  	type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
  7172  	var s1 struct {
  7173  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
  7174  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
  7175  		*NoMethod
  7176  	}
  7177  	s1.NoMethod = (*NoMethod)(s)
  7178  	if err := json.Unmarshal(data, &s1); err != nil {
  7179  		return err
  7180  	}
  7181  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
  7182  	s.SentimentScore = float64(s1.SentimentScore)
  7183  	return nil
  7184  }
  7185  
  7186  // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: Metadata for
  7187  // UpdateDocument operation.
  7188  type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
  7189  	// GenericMetadata: The generic information of the operation.
  7190  	GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
  7191  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
  7192  	// unconditionally include in API requests. By default, fields with empty or
  7193  	// default values are omitted from API requests. See
  7194  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7195  	// details.
  7196  	ForceSendFields []string `json:"-"`
  7197  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
  7198  	// API requests with the JSON null value. By default, fields with empty values
  7199  	// are omitted from API requests. See
  7200  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7201  	NullFields []string `json:"-"`
  7202  }
  7203  
  7204  func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
  7205  	type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
  7206  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7207  }
  7208  
  7209  // GoogleCloudDialogflowCxV3beta1Webhook: Webhooks host the developer's
  7210  // business logic. During a session, webhooks allow the developer to use the
  7211  // data extracted by Dialogflow's natural language processing to generate
  7212  // dynamic responses, validate collected data, or trigger actions on the
  7213  // backend.
  7214  type GoogleCloudDialogflowCxV3beta1Webhook struct {
  7215  	// Disabled: Indicates whether the webhook is disabled.
  7216  	Disabled bool `json:"disabled,omitempty"`
  7217  	// DisplayName: Required. The human-readable name of the webhook, unique within
  7218  	// the agent.
  7219  	DisplayName string `json:"displayName,omitempty"`
  7220  	// GenericWebService: Configuration for a generic web service.
  7221  	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
  7222  	// Name: The unique identifier of the webhook. Required for the
  7223  	// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name
  7224  	// automatically. Format: `projects//locations//agents//webhooks/`.
  7225  	Name string `json:"name,omitempty"`
  7226  	// ServiceDirectory: Configuration for a Service Directory
  7227  	// (https://cloud.google.com/service-directory) service.
  7228  	ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
  7229  	// Timeout: Webhook execution timeout. Execution is considered failed if
  7230  	// Dialogflow doesn't receive a response from webhook at the end of the timeout
  7231  	// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
  7232  	Timeout string `json:"timeout,omitempty"`
  7233  	// ForceSendFields is a list of field names (e.g. "Disabled") to
  7234  	// unconditionally include in API requests. By default, fields with empty or
  7235  	// default values are omitted from API requests. See
  7236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7237  	// details.
  7238  	ForceSendFields []string `json:"-"`
  7239  	// NullFields is a list of field names (e.g. "Disabled") to include in API
  7240  	// requests with the JSON null value. By default, fields with empty values are
  7241  	// omitted from API requests. See
  7242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7243  	NullFields []string `json:"-"`
  7244  }
  7245  
  7246  func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
  7247  	type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
  7248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7249  }
  7250  
  7251  // GoogleCloudDialogflowCxV3beta1WebhookGenericWebService: Represents
  7252  // configuration for a generic web service.
  7253  type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
  7254  	// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates
  7255  	// (in DER format) for HTTPS verification. This overrides the default SSL trust
  7256  	// store. If this is empty or unspecified, Dialogflow will use Google's default
  7257  	// trust store to verify certificates. N.B. Make sure the HTTPS server
  7258  	// certificates are signed with "subject alt name". For instance a certificate
  7259  	// can be self-signed using the following command, ``` openssl x509 -req -days
  7260  	// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \
  7261  	// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") ```
  7262  	AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
  7263  	// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard
  7264  	// webhook always uses POST.
  7265  	//
  7266  	// Possible values:
  7267  	//   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.
  7268  	//   "POST" - HTTP POST Method.
  7269  	//   "GET" - HTTP GET Method.
  7270  	//   "HEAD" - HTTP HEAD Method.
  7271  	//   "PUT" - HTTP PUT Method.
  7272  	//   "DELETE" - HTTP DELETE Method.
  7273  	//   "PATCH" - HTTP PATCH Method.
  7274  	//   "OPTIONS" - HTTP OPTIONS Method.
  7275  	HttpMethod string `json:"httpMethod,omitempty"`
  7276  	// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,
  7277  	// Dialogflow will initiate the OAuth client credential flow to exchange an
  7278  	// access token from the 3rd party platform and put it in the auth header.
  7279  	OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
  7280  	// ParameterMapping: Optional. Maps the values extracted from specific fields
  7281  	// of the flexible webhook response into session parameters. - Key: session
  7282  	// parameter name - Value: field path in the webhook response
  7283  	ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
  7284  	// Password: The password for HTTP Basic authentication.
  7285  	Password string `json:"password,omitempty"`
  7286  	// RequestBody: Optional. Defines a custom JSON object as request body to send
  7287  	// to flexible webhook.
  7288  	RequestBody string `json:"requestBody,omitempty"`
  7289  	// RequestHeaders: The HTTP request headers to send together with webhook
  7290  	// requests.
  7291  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
  7292  	// ServiceAgentAuth: Optional. Indicate the auth token type generated from the
  7293  	// Diglogflow service agent
  7294  	// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
  7295  	// The generated token is sent in the Authorization header.
  7296  	//
  7297  	// Possible values:
  7298  	//   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.
  7299  	// Default to ID_TOKEN.
  7300  	//   "NONE" - No token used.
  7301  	//   "ID_TOKEN" - Use [ID
  7302  	// token](https://cloud.google.com/docs/authentication/token-types#id)
  7303  	// generated from service agent. This can be used to access Cloud Function and
  7304  	// Cloud Run after you grant Invoker role to
  7305  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  7306  	//   "ACCESS_TOKEN" - Use [access
  7307  	// token](https://cloud.google.com/docs/authentication/token-types#access)
  7308  	// generated from service agent. This can be used to access other Google Cloud
  7309  	// APIs after you grant required roles to
  7310  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.
  7311  	ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
  7312  	// Uri: Required. The webhook URI for receiving POST requests. It must use
  7313  	// https protocol.
  7314  	Uri string `json:"uri,omitempty"`
  7315  	// Username: The user name for HTTP Basic authentication.
  7316  	Username string `json:"username,omitempty"`
  7317  	// WebhookType: Optional. Type of the webhook.
  7318  	//
  7319  	// Possible values:
  7320  	//   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.
  7321  	//   "STANDARD" - Represents a standard webhook.
  7322  	//   "FLEXIBLE" - Represents a flexible webhook.
  7323  	WebhookType string `json:"webhookType,omitempty"`
  7324  	// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to
  7325  	// unconditionally include in API requests. By default, fields with empty or
  7326  	// default values are omitted from API requests. See
  7327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7328  	// details.
  7329  	ForceSendFields []string `json:"-"`
  7330  	// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in
  7331  	// API requests with the JSON null value. By default, fields with empty values
  7332  	// are omitted from API requests. See
  7333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7334  	NullFields []string `json:"-"`
  7335  }
  7336  
  7337  func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
  7338  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
  7339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7340  }
  7341  
  7342  // GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig:
  7343  // Represents configuration of OAuth client credential flow for 3rd party API
  7344  // authentication.
  7345  type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
  7346  	// ClientId: Required. The client ID provided by the 3rd party platform.
  7347  	ClientId string `json:"clientId,omitempty"`
  7348  	// ClientSecret: Required. The client secret provided by the 3rd party
  7349  	// platform.
  7350  	ClientSecret string `json:"clientSecret,omitempty"`
  7351  	// Scopes: Optional. The OAuth scopes to grant.
  7352  	Scopes []string `json:"scopes,omitempty"`
  7353  	// TokenEndpoint: Required. The token endpoint provided by the 3rd party
  7354  	// platform to exchange an access token.
  7355  	TokenEndpoint string `json:"tokenEndpoint,omitempty"`
  7356  	// ForceSendFields is a list of field names (e.g. "ClientId") to
  7357  	// unconditionally include in API requests. By default, fields with empty or
  7358  	// default values are omitted from API requests. See
  7359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7360  	// details.
  7361  	ForceSendFields []string `json:"-"`
  7362  	// NullFields is a list of field names (e.g. "ClientId") to include in API
  7363  	// requests with the JSON null value. By default, fields with empty values are
  7364  	// omitted from API requests. See
  7365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7366  	NullFields []string `json:"-"`
  7367  }
  7368  
  7369  func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
  7370  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
  7371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7372  }
  7373  
  7374  // GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for a
  7375  // webhook call. The request is sent as a JSON object and the field names will
  7376  // be presented in camel cases. You may see undocumented fields in an actual
  7377  // request. These fields are used internally by Dialogflow and should be
  7378  // ignored.
  7379  type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
  7380  	// DetectIntentResponseId: Always present. The unique identifier of the
  7381  	// DetectIntentResponse that will be returned to the API caller.
  7382  	DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
  7383  	// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF
  7384  	// digits.
  7385  	DtmfDigits string `json:"dtmfDigits,omitempty"`
  7386  	// FulfillmentInfo: Always present. Information about the fulfillment that
  7387  	// triggered this webhook call.
  7388  	FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
  7389  	// IntentInfo: Information about the last matched intent.
  7390  	IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
  7391  	// LanguageCode: The language code specified in the original request.
  7392  	LanguageCode string `json:"languageCode,omitempty"`
  7393  	// LanguageInfo: Information about the language of the request.
  7394  	LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
  7395  	// Messages: The list of rich message responses to present to the user. Webhook
  7396  	// can choose to append or replace this list in
  7397  	// WebhookResponse.fulfillment_response;
  7398  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  7399  	// PageInfo: Information about page status.
  7400  	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
  7401  	// Payload: Custom data set in QueryParameters.payload.
  7402  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  7403  	// SentimentAnalysisResult: The sentiment analysis result of the current user
  7404  	// request. The field is filled when sentiment analysis is configured to be
  7405  	// enabled for the request.
  7406  	SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  7407  	// SessionInfo: Information about session status.
  7408  	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
  7409  	// Text: If natural language text was provided as input, this field will
  7410  	// contain a copy of the text.
  7411  	Text string `json:"text,omitempty"`
  7412  	// Transcript: If natural language speech audio was provided as input, this
  7413  	// field will contain the transcript for the audio.
  7414  	Transcript string `json:"transcript,omitempty"`
  7415  	// TriggerEvent: If an event was provided as input, this field will contain the
  7416  	// name of the event.
  7417  	TriggerEvent string `json:"triggerEvent,omitempty"`
  7418  	// TriggerIntent: If an intent was provided as input, this field will contain a
  7419  	// copy of the intent identifier. Format:
  7420  	// `projects//locations//agents//intents/`.
  7421  	TriggerIntent string `json:"triggerIntent,omitempty"`
  7422  	// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to
  7423  	// unconditionally include in API requests. By default, fields with empty or
  7424  	// default values are omitted from API requests. See
  7425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7426  	// details.
  7427  	ForceSendFields []string `json:"-"`
  7428  	// NullFields is a list of field names (e.g. "DetectIntentResponseId") to
  7429  	// include in API requests with the JSON null value. By default, fields with
  7430  	// empty values are omitted from API requests. See
  7431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7432  	NullFields []string `json:"-"`
  7433  }
  7434  
  7435  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
  7436  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
  7437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7438  }
  7439  
  7440  // GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: Represents
  7441  // fulfillment information communicated to the webhook.
  7442  type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
  7443  	// Tag: Always present. The value of the Fulfillment.tag field will be
  7444  	// populated in this field by Dialogflow when the associated webhook is called.
  7445  	// The tag is typically used by the webhook service to identify which
  7446  	// fulfillment is being called, but it could be used for other purposes.
  7447  	Tag string `json:"tag,omitempty"`
  7448  	// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally
  7449  	// include in API requests. By default, fields with empty or default values are
  7450  	// omitted from API requests. See
  7451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7452  	// details.
  7453  	ForceSendFields []string `json:"-"`
  7454  	// NullFields is a list of field names (e.g. "Tag") to include in API requests
  7455  	// with the JSON null value. By default, fields with empty values are omitted
  7456  	// from API requests. See
  7457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7458  	NullFields []string `json:"-"`
  7459  }
  7460  
  7461  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
  7462  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
  7463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7464  }
  7465  
  7466  // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents intent
  7467  // information communicated to the webhook.
  7468  type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
  7469  	// Confidence: The confidence of the matched intent. Values range from 0.0
  7470  	// (completely uncertain) to 1.0 (completely certain).
  7471  	Confidence float64 `json:"confidence,omitempty"`
  7472  	// DisplayName: Always present. The display name of the last matched intent.
  7473  	DisplayName string `json:"displayName,omitempty"`
  7474  	// LastMatchedIntent: Always present. The unique identifier of the last matched
  7475  	// intent. Format: `projects//locations//agents//intents/`.
  7476  	LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
  7477  	// Parameters: Parameters identified as a result of intent matching. This is a
  7478  	// map of the name of the identified parameter to the value of the parameter
  7479  	// identified from the user's utterance. All parameters defined in the matched
  7480  	// intent that are identified will be surfaced here.
  7481  	Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
  7482  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  7483  	// unconditionally include in API requests. By default, fields with empty or
  7484  	// default values are omitted from API requests. See
  7485  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7486  	// details.
  7487  	ForceSendFields []string `json:"-"`
  7488  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  7489  	// requests with the JSON null value. By default, fields with empty values are
  7490  	// omitted from API requests. See
  7491  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7492  	NullFields []string `json:"-"`
  7493  }
  7494  
  7495  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
  7496  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
  7497  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7498  }
  7499  
  7500  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
  7501  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
  7502  	var s1 struct {
  7503  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7504  		*NoMethod
  7505  	}
  7506  	s1.NoMethod = (*NoMethod)(s)
  7507  	if err := json.Unmarshal(data, &s1); err != nil {
  7508  		return err
  7509  	}
  7510  	s.Confidence = float64(s1.Confidence)
  7511  	return nil
  7512  }
  7513  
  7514  // GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue:
  7515  // Represents a value for an intent parameter.
  7516  type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
  7517  	// OriginalValue: Always present. Original text value extracted from user
  7518  	// utterance.
  7519  	OriginalValue string `json:"originalValue,omitempty"`
  7520  	// ResolvedValue: Always present. Structured value for the parameter extracted
  7521  	// from user utterance.
  7522  	ResolvedValue interface{} `json:"resolvedValue,omitempty"`
  7523  	// ForceSendFields is a list of field names (e.g. "OriginalValue") to
  7524  	// unconditionally include in API requests. By default, fields with empty or
  7525  	// default values are omitted from API requests. See
  7526  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7527  	// details.
  7528  	ForceSendFields []string `json:"-"`
  7529  	// NullFields is a list of field names (e.g. "OriginalValue") to include in API
  7530  	// requests with the JSON null value. By default, fields with empty values are
  7531  	// omitted from API requests. See
  7532  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7533  	NullFields []string `json:"-"`
  7534  }
  7535  
  7536  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
  7537  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
  7538  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7539  }
  7540  
  7541  // GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:
  7542  // Represents the result of sentiment analysis.
  7543  type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
  7544  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
  7545  	// the absolute magnitude of sentiment, regardless of score (positive or
  7546  	// negative).
  7547  	Magnitude float64 `json:"magnitude,omitempty"`
  7548  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
  7549  	// sentiment).
  7550  	Score float64 `json:"score,omitempty"`
  7551  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
  7552  	// unconditionally include in API requests. By default, fields with empty or
  7553  	// default values are omitted from API requests. See
  7554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7555  	// details.
  7556  	ForceSendFields []string `json:"-"`
  7557  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
  7558  	// requests with the JSON null value. By default, fields with empty values are
  7559  	// omitted from API requests. See
  7560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7561  	NullFields []string `json:"-"`
  7562  }
  7563  
  7564  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
  7565  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
  7566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7567  }
  7568  
  7569  func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
  7570  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
  7571  	var s1 struct {
  7572  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
  7573  		Score     gensupport.JSONFloat64 `json:"score"`
  7574  		*NoMethod
  7575  	}
  7576  	s1.NoMethod = (*NoMethod)(s)
  7577  	if err := json.Unmarshal(data, &s1); err != nil {
  7578  		return err
  7579  	}
  7580  	s.Magnitude = float64(s1.Magnitude)
  7581  	s.Score = float64(s1.Score)
  7582  	return nil
  7583  }
  7584  
  7585  // GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message for a
  7586  // webhook call.
  7587  type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
  7588  	// FulfillmentResponse: The fulfillment response to send to the user. This
  7589  	// field can be omitted by the webhook if it does not intend to send any
  7590  	// response to the user.
  7591  	FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
  7592  	// PageInfo: Information about page status. This field can be omitted by the
  7593  	// webhook if it does not intend to modify page status.
  7594  	PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
  7595  	// Payload: Value to append directly to QueryResult.webhook_payloads.
  7596  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  7597  	// SessionInfo: Information about session status. This field can be omitted by
  7598  	// the webhook if it does not intend to modify session status.
  7599  	SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
  7600  	// TargetFlow: The target flow to transition to. Format:
  7601  	// `projects//locations//agents//flows/`.
  7602  	TargetFlow string `json:"targetFlow,omitempty"`
  7603  	// TargetPage: The target page to transition to. Format:
  7604  	// `projects//locations//agents//flows//pages/`.
  7605  	TargetPage string `json:"targetPage,omitempty"`
  7606  	// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to
  7607  	// unconditionally include in API requests. By default, fields with empty or
  7608  	// default values are omitted from API requests. See
  7609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7610  	// details.
  7611  	ForceSendFields []string `json:"-"`
  7612  	// NullFields is a list of field names (e.g. "FulfillmentResponse") to include
  7613  	// in API requests with the JSON null value. By default, fields with empty
  7614  	// values are omitted from API requests. See
  7615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7616  	NullFields []string `json:"-"`
  7617  }
  7618  
  7619  func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
  7620  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
  7621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7622  }
  7623  
  7624  // GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: Represents
  7625  // a fulfillment response to the user.
  7626  type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
  7627  	// MergeBehavior: Merge behavior for `messages`.
  7628  	//
  7629  	// Possible values:
  7630  	//   "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be used.
  7631  	//   "APPEND" - `messages` will be appended to the list of messages waiting to
  7632  	// be sent to the user.
  7633  	//   "REPLACE" - `messages` will replace the list of messages waiting to be
  7634  	// sent to the user.
  7635  	MergeBehavior string `json:"mergeBehavior,omitempty"`
  7636  	// Messages: The list of rich message responses to present to the user.
  7637  	Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
  7638  	// ForceSendFields is a list of field names (e.g. "MergeBehavior") to
  7639  	// unconditionally include in API requests. By default, fields with empty or
  7640  	// default values are omitted from API requests. See
  7641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7642  	// details.
  7643  	ForceSendFields []string `json:"-"`
  7644  	// NullFields is a list of field names (e.g. "MergeBehavior") to include in API
  7645  	// requests with the JSON null value. By default, fields with empty values are
  7646  	// omitted from API requests. See
  7647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7648  	NullFields []string `json:"-"`
  7649  }
  7650  
  7651  func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
  7652  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
  7653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7654  }
  7655  
  7656  // GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig: Represents
  7657  // configuration for a Service Directory
  7658  // (https://cloud.google.com/service-directory) service.
  7659  type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
  7660  	// GenericWebService: Generic Service configuration of this webhook.
  7661  	GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
  7662  	// Service: Required. The name of Service Directory
  7663  	// (https://cloud.google.com/service-directory) service. Format:
  7664  	// `projects//locations//namespaces//services/`. `Location ID` of the service
  7665  	// directory must be the same as the location of the agent.
  7666  	Service string `json:"service,omitempty"`
  7667  	// ForceSendFields is a list of field names (e.g. "GenericWebService") to
  7668  	// unconditionally include in API requests. By default, fields with empty or
  7669  	// default values are omitted from API requests. See
  7670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7671  	// details.
  7672  	ForceSendFields []string `json:"-"`
  7673  	// NullFields is a list of field names (e.g. "GenericWebService") to include in
  7674  	// API requests with the JSON null value. By default, fields with empty values
  7675  	// are omitted from API requests. See
  7676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7677  	NullFields []string `json:"-"`
  7678  }
  7679  
  7680  func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
  7681  	type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
  7682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7683  }
  7684  
  7685  // GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a message
  7686  // possibly annotated with an entity. The part can be an entity or purely a
  7687  // part of the message between two entities or message start/end.
  7688  type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
  7689  	// EntityType: The Dialogflow system entity type
  7690  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
  7691  	// message part. If this is empty, Dialogflow could not annotate the phrase
  7692  	// part with a system entity.
  7693  	EntityType string `json:"entityType,omitempty"`
  7694  	// FormattedValue: The Dialogflow system entity formatted value
  7695  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
  7696  	// message part. For example for a system entity of type `@sys.unit-currency`,
  7697  	// this may contain: { "amount": 5, "currency": "USD" }
  7698  	FormattedValue interface{} `json:"formattedValue,omitempty"`
  7699  	// Text: A part of a message possibly annotated with an entity.
  7700  	Text string `json:"text,omitempty"`
  7701  	// ForceSendFields is a list of field names (e.g. "EntityType") to
  7702  	// unconditionally include in API requests. By default, fields with empty or
  7703  	// default values are omitted from API requests. See
  7704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7705  	// details.
  7706  	ForceSendFields []string `json:"-"`
  7707  	// NullFields is a list of field names (e.g. "EntityType") to include in API
  7708  	// requests with the JSON null value. By default, fields with empty values are
  7709  	// omitted from API requests. See
  7710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7711  	NullFields []string `json:"-"`
  7712  }
  7713  
  7714  func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
  7715  	type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
  7716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7717  }
  7718  
  7719  // GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.
  7720  type GoogleCloudDialogflowV2ArticleAnswer struct {
  7721  	// AnswerRecord: The name of answer record, in the format of
  7722  	// "projects//locations//answerRecords/"
  7723  	AnswerRecord string `json:"answerRecord,omitempty"`
  7724  	// Confidence: Article match confidence. The system's confidence score that
  7725  	// this article is a good match for this conversation, as a value from 0.0
  7726  	// (completely uncertain) to 1.0 (completely certain).
  7727  	Confidence float64 `json:"confidence,omitempty"`
  7728  	// Metadata: A map that contains metadata about the answer and the document
  7729  	// from which it originates.
  7730  	Metadata map[string]string `json:"metadata,omitempty"`
  7731  	// Snippets: Article snippets.
  7732  	Snippets []string `json:"snippets,omitempty"`
  7733  	// Title: The article title.
  7734  	Title string `json:"title,omitempty"`
  7735  	// Uri: The article URI.
  7736  	Uri string `json:"uri,omitempty"`
  7737  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
  7738  	// unconditionally include in API requests. By default, fields with empty or
  7739  	// default values are omitted from API requests. See
  7740  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7741  	// details.
  7742  	ForceSendFields []string `json:"-"`
  7743  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
  7744  	// requests with the JSON null value. By default, fields with empty values are
  7745  	// omitted from API requests. See
  7746  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7747  	NullFields []string `json:"-"`
  7748  }
  7749  
  7750  func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
  7751  	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
  7752  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7753  }
  7754  
  7755  func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
  7756  	type NoMethod GoogleCloudDialogflowV2ArticleAnswer
  7757  	var s1 struct {
  7758  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  7759  		*NoMethod
  7760  	}
  7761  	s1.NoMethod = (*NoMethod)(s)
  7762  	if err := json.Unmarshal(data, &s1); err != nil {
  7763  		return err
  7764  	}
  7765  	s.Confidence = float64(s1.Confidence)
  7766  	return nil
  7767  }
  7768  
  7769  // GoogleCloudDialogflowV2ArticleSuggestionModelMetadata: Metadata for article
  7770  // suggestion models.
  7771  type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
  7772  	// TrainingModelType: Optional. Type of the article suggestion model. If not
  7773  	// provided, model_type is used.
  7774  	//
  7775  	// Possible values:
  7776  	//   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.
  7777  	//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder
  7778  	// model.
  7779  	//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.
  7780  	TrainingModelType string `json:"trainingModelType,omitempty"`
  7781  	// ForceSendFields is a list of field names (e.g. "TrainingModelType") to
  7782  	// unconditionally include in API requests. By default, fields with empty or
  7783  	// default values are omitted from API requests. See
  7784  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7785  	// details.
  7786  	ForceSendFields []string `json:"-"`
  7787  	// NullFields is a list of field names (e.g. "TrainingModelType") to include in
  7788  	// API requests with the JSON null value. By default, fields with empty values
  7789  	// are omitted from API requests. See
  7790  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7791  	NullFields []string `json:"-"`
  7792  }
  7793  
  7794  func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
  7795  	type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
  7796  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7797  }
  7798  
  7799  // GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response message
  7800  // for EntityTypes.BatchUpdateEntityTypes.
  7801  type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
  7802  	// EntityTypes: The collection of updated or created entity types.
  7803  	EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
  7804  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
  7805  	// unconditionally include in API requests. By default, fields with empty or
  7806  	// default values are omitted from API requests. See
  7807  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7808  	// details.
  7809  	ForceSendFields []string `json:"-"`
  7810  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
  7811  	// requests with the JSON null value. By default, fields with empty values are
  7812  	// omitted from API requests. See
  7813  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7814  	NullFields []string `json:"-"`
  7815  }
  7816  
  7817  func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
  7818  	type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
  7819  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7820  }
  7821  
  7822  // GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response message for
  7823  // Intents.BatchUpdateIntents.
  7824  type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
  7825  	// Intents: The collection of updated or created intents.
  7826  	Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
  7827  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
  7828  	// include in API requests. By default, fields with empty or default values are
  7829  	// omitted from API requests. See
  7830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7831  	// details.
  7832  	ForceSendFields []string `json:"-"`
  7833  	// NullFields is a list of field names (e.g. "Intents") to include in API
  7834  	// requests with the JSON null value. By default, fields with empty values are
  7835  	// omitted from API requests. See
  7836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7837  	NullFields []string `json:"-"`
  7838  }
  7839  
  7840  func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
  7841  	type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
  7842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7843  }
  7844  
  7845  // GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata:
  7846  // Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
  7847  type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
  7848  	// ConversationProfile: The resource name of the conversation profile. Format:
  7849  	// `projects//locations//conversationProfiles/`
  7850  	ConversationProfile string `json:"conversationProfile,omitempty"`
  7851  	// CreateTime: Timestamp whe the request was created. The time is measured on
  7852  	// server side.
  7853  	CreateTime string `json:"createTime,omitempty"`
  7854  	// ParticipantRole: Required. The participant role to remove the suggestion
  7855  	// feature config. Only HUMAN_AGENT or END_USER can be used.
  7856  	//
  7857  	// Possible values:
  7858  	//   "ROLE_UNSPECIFIED" - Participant role not set.
  7859  	//   "HUMAN_AGENT" - Participant is a human agent.
  7860  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
  7861  	// Dialogflow agent.
  7862  	//   "END_USER" - Participant is an end user that has called or chatted with
  7863  	// Dialogflow services.
  7864  	ParticipantRole string `json:"participantRole,omitempty"`
  7865  	// SuggestionFeatureType: Required. The type of the suggestion feature to
  7866  	// remove.
  7867  	//
  7868  	// Possible values:
  7869  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
  7870  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
  7871  	//   "FAQ" - Run FAQ model for chat.
  7872  	//   "SMART_REPLY" - Run smart reply model for chat.
  7873  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
  7874  	// text generated query.
  7875  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
  7876  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
  7877  	// unconditionally include in API requests. By default, fields with empty or
  7878  	// default values are omitted from API requests. See
  7879  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7880  	// details.
  7881  	ForceSendFields []string `json:"-"`
  7882  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
  7883  	// in API requests with the JSON null value. By default, fields with empty
  7884  	// values are omitted from API requests. See
  7885  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7886  	NullFields []string `json:"-"`
  7887  }
  7888  
  7889  func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  7890  	type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
  7891  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7892  }
  7893  
  7894  // GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to natural
  7895  // language context. If a person says to you "they are orange", you need
  7896  // context in order to understand what "they" is referring to. Similarly, for
  7897  // Dialogflow to handle an end-user expression like that, it needs to be
  7898  // provided with context in order to correctly match an intent. Using contexts,
  7899  // you can control the flow of a conversation. You can configure contexts for
  7900  // an intent by setting input and output contexts, which are identified by
  7901  // string names. When an intent is matched, any configured output contexts for
  7902  // that intent become active. While any contexts are active, Dialogflow is more
  7903  // likely to match intents that are configured with input contexts that
  7904  // correspond to the currently active contexts. For more information about
  7905  // context, see the Contexts guide
  7906  // (https://cloud.google.com/dialogflow/docs/contexts-overview).
  7907  type GoogleCloudDialogflowV2Context struct {
  7908  	// LifespanCount: Optional. The number of conversational query requests after
  7909  	// which the context expires. The default is `0`. If set to `0`, the context
  7910  	// expires immediately. Contexts expire automatically after 20 minutes if there
  7911  	// are no matching queries.
  7912  	LifespanCount int64 `json:"lifespanCount,omitempty"`
  7913  	// Name: Required. The unique identifier of the context. Format:
  7914  	// `projects//agent/sessions//contexts/`, or
  7915  	// `projects//agent/environments//users//sessions//contexts/`. The `Context ID`
  7916  	// is always converted to lowercase, may only contain characters in
  7917  	// `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is not
  7918  	// specified, we assume default 'draft' environment. If `User ID` is not
  7919  	// specified, we assume default '-' user. The following context names are
  7920  	// reserved for internal use by Dialogflow. You should not use these contexts
  7921  	// or create contexts with these names: * `__system_counters__` *
  7922  	// `*_id_dialog_context` * `*_dialog_params_size`
  7923  	Name string `json:"name,omitempty"`
  7924  	// Parameters: Optional. The collection of parameters associated with this
  7925  	// context. Depending on your protocol or client library language, this is a
  7926  	// map, associative array, symbol table, dictionary, or JSON object composed of
  7927  	// a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
  7928  	// value: parameter name * MapValue type: If parameter's entity type is a
  7929  	// composite entity then use map, otherwise, depending on the parameter value
  7930  	// type, it could be one of string, number, boolean, null, list or map. *
  7931  	// MapValue value: If parameter's entity type is a composite entity then use
  7932  	// map from composite entity property names to property values, otherwise, use
  7933  	// parameter value.
  7934  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  7935  	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
  7936  	// unconditionally include in API requests. By default, fields with empty or
  7937  	// default values are omitted from API requests. See
  7938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7939  	// details.
  7940  	ForceSendFields []string `json:"-"`
  7941  	// NullFields is a list of field names (e.g. "LifespanCount") to include in API
  7942  	// requests with the JSON null value. By default, fields with empty values are
  7943  	// omitted from API requests. See
  7944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7945  	NullFields []string `json:"-"`
  7946  }
  7947  
  7948  func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
  7949  	type NoMethod GoogleCloudDialogflowV2Context
  7950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7951  }
  7952  
  7953  // GoogleCloudDialogflowV2ConversationEvent: Represents a notification sent to
  7954  // Pub/Sub subscribers for conversation lifecycle events.
  7955  type GoogleCloudDialogflowV2ConversationEvent struct {
  7956  	// Conversation: The unique identifier of the conversation this notification
  7957  	// refers to. Format: `projects//conversations/`.
  7958  	Conversation string `json:"conversation,omitempty"`
  7959  	// ErrorStatus: More detailed information about an error. Only set for type
  7960  	// UNRECOVERABLE_ERROR_IN_PHONE_CALL.
  7961  	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
  7962  	// NewMessagePayload: Payload of NEW_MESSAGE event.
  7963  	NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
  7964  	// Type: The type of the event that this notification refers to.
  7965  	//
  7966  	// Possible values:
  7967  	//   "TYPE_UNSPECIFIED" - Type not set.
  7968  	//   "CONVERSATION_STARTED" - A new conversation has been opened. This is fired
  7969  	// when a telephone call is answered, or a conversation is created via the API.
  7970  	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This is
  7971  	// fired when a telephone call is terminated, or a conversation is closed via
  7972  	// the API.
  7973  	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
  7974  	// notification from Dialogflow that human intervention is required.
  7975  	//   "NEW_MESSAGE" - An existing conversation has received a new message,
  7976  	// either from API or telephony. It is configured in
  7977  	// ConversationProfile.new_message_event_notification_config
  7978  	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. In
  7979  	// general non-recoverable errors only occur if something was misconfigured in
  7980  	// the ConversationProfile corresponding to the call. After a non-recoverable
  7981  	// error, Dialogflow may stop responding. We don't fire this event: * in an API
  7982  	// call because we can directly return the error, or, * when we can recover
  7983  	// from an error.
  7984  	Type string `json:"type,omitempty"`
  7985  	// ForceSendFields is a list of field names (e.g. "Conversation") to
  7986  	// unconditionally include in API requests. By default, fields with empty or
  7987  	// default values are omitted from API requests. See
  7988  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7989  	// details.
  7990  	ForceSendFields []string `json:"-"`
  7991  	// NullFields is a list of field names (e.g. "Conversation") to include in API
  7992  	// requests with the JSON null value. By default, fields with empty values are
  7993  	// omitted from API requests. See
  7994  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7995  	NullFields []string `json:"-"`
  7996  }
  7997  
  7998  func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
  7999  	type NoMethod GoogleCloudDialogflowV2ConversationEvent
  8000  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8001  }
  8002  
  8003  // GoogleCloudDialogflowV2ConversationModel: Represents a conversation model.
  8004  type GoogleCloudDialogflowV2ConversationModel struct {
  8005  	// ArticleSuggestionModelMetadata: Metadata for article suggestion models.
  8006  	ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
  8007  	// CreateTime: Output only. Creation time of this model.
  8008  	CreateTime string `json:"createTime,omitempty"`
  8009  	// Datasets: Required. Datasets used to create model.
  8010  	Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
  8011  	// DisplayName: Required. The display name of the model. At most 64 bytes long.
  8012  	DisplayName string `json:"displayName,omitempty"`
  8013  	// LanguageCode: Language code for the conversation model. If not specified,
  8014  	// the language is en-US. Language at ConversationModel should be set for all
  8015  	// non en-us languages. This should be a BCP-47
  8016  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
  8017  	// "en-US".
  8018  	LanguageCode string `json:"languageCode,omitempty"`
  8019  	// Name: ConversationModel resource name. Format:
  8020  	// `projects//conversationModels/`
  8021  	Name string `json:"name,omitempty"`
  8022  	// SmartReplyModelMetadata: Metadata for smart reply models.
  8023  	SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
  8024  	// State: Output only. State of the model. A model can only serve prediction
  8025  	// requests after it gets deployed.
  8026  	//
  8027  	// Possible values:
  8028  	//   "STATE_UNSPECIFIED" - Should not be used, an un-set enum has this value by
  8029  	// default.
  8030  	//   "CREATING" - Model being created.
  8031  	//   "UNDEPLOYED" - Model is not deployed but ready to deploy.
  8032  	//   "DEPLOYING" - Model is deploying.
  8033  	//   "DEPLOYED" - Model is deployed and ready to use.
  8034  	//   "UNDEPLOYING" - Model is undeploying.
  8035  	//   "DELETING" - Model is deleting.
  8036  	//   "FAILED" - Model is in error state. Not ready to deploy and use.
  8037  	//   "PENDING" - Model is being created but the training has not started, The
  8038  	// model may remain in this state until there is enough capacity to start
  8039  	// training.
  8040  	State string `json:"state,omitempty"`
  8041  	// ForceSendFields is a list of field names (e.g.
  8042  	// "ArticleSuggestionModelMetadata") to unconditionally include in API
  8043  	// requests. By default, fields with empty or default values are omitted from
  8044  	// API requests. See
  8045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8046  	// details.
  8047  	ForceSendFields []string `json:"-"`
  8048  	// NullFields is a list of field names (e.g. "ArticleSuggestionModelMetadata")
  8049  	// to include in API requests with the JSON null value. By default, fields with
  8050  	// empty values are omitted from API requests. See
  8051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8052  	NullFields []string `json:"-"`
  8053  }
  8054  
  8055  func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
  8056  	type NoMethod GoogleCloudDialogflowV2ConversationModel
  8057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8058  }
  8059  
  8060  // GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata: Metadata
  8061  // for ConversationDatasets.
  8062  type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
  8063  	// ConversationDataset: The resource name of the conversation dataset that will
  8064  	// be created. Format: `projects//locations//conversationDatasets/`
  8065  	ConversationDataset string `json:"conversationDataset,omitempty"`
  8066  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
  8067  	// unconditionally include in API requests. By default, fields with empty or
  8068  	// default values are omitted from API requests. See
  8069  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8070  	// details.
  8071  	ForceSendFields []string `json:"-"`
  8072  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
  8073  	// in API requests with the JSON null value. By default, fields with empty
  8074  	// values are omitted from API requests. See
  8075  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8076  	NullFields []string `json:"-"`
  8077  }
  8078  
  8079  func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
  8080  	type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
  8081  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8082  }
  8083  
  8084  // GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata:
  8085  // Metadata for a ConversationModels.CreateConversationModelEvaluation
  8086  // operation.
  8087  type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
  8088  	// ConversationModel: The resource name of the conversation model. Format:
  8089  	// `projects//locations//conversationModels/`
  8090  	ConversationModel string `json:"conversationModel,omitempty"`
  8091  	// ConversationModelEvaluation: The resource name of the conversation model.
  8092  	// Format: `projects//locations//conversationModels//evaluations/`
  8093  	ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
  8094  	// CreateTime: Timestamp when the request to create conversation model was
  8095  	// submitted. The time is measured on server side.
  8096  	CreateTime string `json:"createTime,omitempty"`
  8097  	// State: State of CreateConversationModel operation.
  8098  	//
  8099  	// Possible values:
  8100  	//   "STATE_UNSPECIFIED" - Operation status not specified.
  8101  	//   "INITIALIZING" - The operation is being prepared.
  8102  	//   "RUNNING" - The operation is running.
  8103  	//   "CANCELLED" - The operation is cancelled.
  8104  	//   "SUCCEEDED" - The operation has succeeded.
  8105  	//   "FAILED" - The operation has failed.
  8106  	State string `json:"state,omitempty"`
  8107  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  8108  	// unconditionally include in API requests. By default, fields with empty or
  8109  	// default values are omitted from API requests. See
  8110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8111  	// details.
  8112  	ForceSendFields []string `json:"-"`
  8113  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  8114  	// API requests with the JSON null value. By default, fields with empty values
  8115  	// are omitted from API requests. See
  8116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8117  	NullFields []string `json:"-"`
  8118  }
  8119  
  8120  func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
  8121  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
  8122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8123  }
  8124  
  8125  // GoogleCloudDialogflowV2CreateConversationModelOperationMetadata: Metadata
  8126  // for a ConversationModels.CreateConversationModel operation.
  8127  type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
  8128  	// ConversationModel: The resource name of the conversation model. Format:
  8129  	// `projects//conversationModels/`
  8130  	ConversationModel string `json:"conversationModel,omitempty"`
  8131  	// CreateTime: Timestamp when the request to create conversation model is
  8132  	// submitted. The time is measured on server side.
  8133  	CreateTime string `json:"createTime,omitempty"`
  8134  	// State: State of CreateConversationModel operation.
  8135  	//
  8136  	// Possible values:
  8137  	//   "STATE_UNSPECIFIED" - Invalid.
  8138  	//   "PENDING" - Request is submitted, but training has not started yet. The
  8139  	// model may remain in this state until there is enough capacity to start
  8140  	// training.
  8141  	//   "SUCCEEDED" - The training has succeeded.
  8142  	//   "FAILED" - The training has succeeded.
  8143  	//   "CANCELLED" - The training has been cancelled.
  8144  	//   "CANCELLING" - The training is in cancelling state.
  8145  	//   "TRAINING" - Custom model is training.
  8146  	State string `json:"state,omitempty"`
  8147  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  8148  	// unconditionally include in API requests. By default, fields with empty or
  8149  	// default values are omitted from API requests. See
  8150  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8151  	// details.
  8152  	ForceSendFields []string `json:"-"`
  8153  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  8154  	// API requests with the JSON null value. By default, fields with empty values
  8155  	// are omitted from API requests. See
  8156  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8157  	NullFields []string `json:"-"`
  8158  }
  8159  
  8160  func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
  8161  	type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
  8162  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8163  }
  8164  
  8165  // GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata: Metadata
  8166  // for ConversationDatasets.
  8167  type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
  8168  }
  8169  
  8170  // GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata: Metadata
  8171  // for a ConversationModels.DeleteConversationModel operation.
  8172  type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
  8173  	// ConversationModel: The resource name of the conversation model. Format:
  8174  	// `projects//conversationModels/`
  8175  	ConversationModel string `json:"conversationModel,omitempty"`
  8176  	// CreateTime: Timestamp when delete conversation model request was created.
  8177  	// The time is measured on server side.
  8178  	CreateTime string `json:"createTime,omitempty"`
  8179  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  8180  	// unconditionally include in API requests. By default, fields with empty or
  8181  	// default values are omitted from API requests. See
  8182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8183  	// details.
  8184  	ForceSendFields []string `json:"-"`
  8185  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  8186  	// API requests with the JSON null value. By default, fields with empty values
  8187  	// are omitted from API requests. See
  8188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8189  	NullFields []string `json:"-"`
  8190  }
  8191  
  8192  func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
  8193  	type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
  8194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8195  }
  8196  
  8197  // GoogleCloudDialogflowV2DeployConversationModelOperationMetadata: Metadata
  8198  // for a ConversationModels.DeployConversationModel operation.
  8199  type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
  8200  	// ConversationModel: The resource name of the conversation model. Format:
  8201  	// `projects//conversationModels/`
  8202  	ConversationModel string `json:"conversationModel,omitempty"`
  8203  	// CreateTime: Timestamp when request to deploy conversation model was
  8204  	// submitted. The time is measured on server side.
  8205  	CreateTime string `json:"createTime,omitempty"`
  8206  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
  8207  	// unconditionally include in API requests. By default, fields with empty or
  8208  	// default values are omitted from API requests. See
  8209  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8210  	// details.
  8211  	ForceSendFields []string `json:"-"`
  8212  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
  8213  	// API requests with the JSON null value. By default, fields with empty values
  8214  	// are omitted from API requests. See
  8215  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8216  	NullFields []string `json:"-"`
  8217  }
  8218  
  8219  func (s *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
  8220  	type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
  8221  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8222  }
  8223  
  8224  // GoogleCloudDialogflowV2EntityType: Each intent parameter has a type, called
  8225  // the entity type, which dictates exactly how data from an end-user expression
  8226  // is extracted. Dialogflow provides predefined system entities that can match
  8227  // many common types of data. For example, there are system entities for
  8228  // matching dates, times, colors, email addresses, and so on. You can also
  8229  // create your own custom entities for matching custom data. For example, you
  8230  // could define a vegetable entity that can match the types of vegetables
  8231  // available for purchase with a grocery store agent. For more information, see
  8232  // the Entity guide
  8233  // (https://cloud.google.com/dialogflow/docs/entities-overview).
  8234  type GoogleCloudDialogflowV2EntityType struct {
  8235  	// AutoExpansionMode: Optional. Indicates whether the entity type can be
  8236  	// automatically expanded.
  8237  	//
  8238  	// Possible values:
  8239  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
  8240  	// entity.
  8241  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
  8242  	// have not been explicitly listed in the entity.
  8243  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
  8244  	// DisplayName: Required. The name of the entity type.
  8245  	DisplayName string `json:"displayName,omitempty"`
  8246  	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during
  8247  	// classification.
  8248  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
  8249  	// Entities: Optional. The collection of entity entries associated with the
  8250  	// entity type.
  8251  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
  8252  	// Kind: Required. Indicates the kind of entity type.
  8253  	//
  8254  	// Possible values:
  8255  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
  8256  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
  8257  	// reference value.
  8258  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
  8259  	// to reference values. However, list entity types can contain references to
  8260  	// other entity types (with or without aliases).
  8261  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
  8262  	// in entries values.
  8263  	Kind string `json:"kind,omitempty"`
  8264  	// Name: The unique identifier of the entity type. Required for
  8265  	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.
  8266  	// Format: `projects//agent/entityTypes/`.
  8267  	Name string `json:"name,omitempty"`
  8268  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
  8269  	// unconditionally include in API requests. By default, fields with empty or
  8270  	// default values are omitted from API requests. See
  8271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8272  	// details.
  8273  	ForceSendFields []string `json:"-"`
  8274  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
  8275  	// API requests with the JSON null value. By default, fields with empty values
  8276  	// are omitted from API requests. See
  8277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8278  	NullFields []string `json:"-"`
  8279  }
  8280  
  8281  func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
  8282  	type NoMethod GoogleCloudDialogflowV2EntityType
  8283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8284  }
  8285  
  8286  // GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an
  8287  // associated entity type.
  8288  type GoogleCloudDialogflowV2EntityTypeEntity struct {
  8289  	// Synonyms: Required. A collection of value synonyms. For example, if the
  8290  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
  8291  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
  8292  	// exactly one synonym equal to `value`.
  8293  	Synonyms []string `json:"synonyms,omitempty"`
  8294  	// Value: Required. The primary value associated with this entity entry. For
  8295  	// example, if the entity type is *vegetable*, the value could be *scallions*.
  8296  	// For `KIND_MAP` entity types: * A reference value to be used in place of
  8297  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
  8298  	// references to other entity types (with or without aliases).
  8299  	Value string `json:"value,omitempty"`
  8300  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
  8301  	// unconditionally include in API requests. By default, fields with empty or
  8302  	// default values are omitted from API requests. See
  8303  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8304  	// details.
  8305  	ForceSendFields []string `json:"-"`
  8306  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
  8307  	// requests with the JSON null value. By default, fields with empty values are
  8308  	// omitted from API requests. See
  8309  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8310  	NullFields []string `json:"-"`
  8311  }
  8312  
  8313  func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
  8314  	type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
  8315  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8316  }
  8317  
  8318  // GoogleCloudDialogflowV2EventInput: Events allow for matching intents by
  8319  // event name instead of the natural language input. For instance, input “ can
  8320  // trigger a personalized welcome response. The parameter `name` may be used by
  8321  // the agent in the response: "Hello #welcome_event.name! What can I do for
  8322  // you today?".
  8323  type GoogleCloudDialogflowV2EventInput struct {
  8324  	// LanguageCode: Required. The language of this query. See Language Support
  8325  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  8326  	// the currently supported language codes. Note that queries in the same
  8327  	// session do not necessarily need to specify the same language. This field is
  8328  	// ignored when used in the context of a WebhookResponse.followup_event_input
  8329  	// field, because the language was already defined in the originating detect
  8330  	// intent request.
  8331  	LanguageCode string `json:"languageCode,omitempty"`
  8332  	// Name: Required. The unique identifier of the event.
  8333  	Name string `json:"name,omitempty"`
  8334  	// Parameters: The collection of parameters associated with the event.
  8335  	// Depending on your protocol or client library language, this is a map,
  8336  	// associative array, symbol table, dictionary, or JSON object composed of a
  8337  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
  8338  	// value: parameter name * MapValue type: If parameter's entity type is a
  8339  	// composite entity then use map, otherwise, depending on the parameter value
  8340  	// type, it could be one of string, number, boolean, null, list or map. *
  8341  	// MapValue value: If parameter's entity type is a composite entity then use
  8342  	// map from composite entity property names to property values, otherwise, use
  8343  	// parameter value.
  8344  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  8345  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
  8346  	// unconditionally include in API requests. By default, fields with empty or
  8347  	// default values are omitted from API requests. See
  8348  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8349  	// details.
  8350  	ForceSendFields []string `json:"-"`
  8351  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
  8352  	// requests with the JSON null value. By default, fields with empty values are
  8353  	// omitted from API requests. See
  8354  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8355  	NullFields []string `json:"-"`
  8356  }
  8357  
  8358  func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
  8359  	type NoMethod GoogleCloudDialogflowV2EventInput
  8360  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8361  }
  8362  
  8363  // GoogleCloudDialogflowV2ExportAgentResponse: The response message for
  8364  // Agents.ExportAgent.
  8365  type GoogleCloudDialogflowV2ExportAgentResponse struct {
  8366  	// AgentContent: Zip compressed raw byte content for agent.
  8367  	AgentContent string `json:"agentContent,omitempty"`
  8368  	// AgentUri: The URI to a file containing the exported agent. This field is
  8369  	// populated only if `agent_uri` is specified in `ExportAgentRequest`.
  8370  	AgentUri string `json:"agentUri,omitempty"`
  8371  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
  8372  	// unconditionally include in API requests. By default, fields with empty or
  8373  	// default values are omitted from API requests. See
  8374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8375  	// details.
  8376  	ForceSendFields []string `json:"-"`
  8377  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
  8378  	// requests with the JSON null value. By default, fields with empty values are
  8379  	// omitted from API requests. See
  8380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8381  	NullFields []string `json:"-"`
  8382  }
  8383  
  8384  func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
  8385  	type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
  8386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8387  }
  8388  
  8389  // GoogleCloudDialogflowV2ExportOperationMetadata: Metadata related to the
  8390  // Export Data Operations (e.g. ExportDocument).
  8391  type GoogleCloudDialogflowV2ExportOperationMetadata struct {
  8392  	// ExportedGcsDestination: Cloud Storage file path of the exported data.
  8393  	ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
  8394  	// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to
  8395  	// unconditionally include in API requests. By default, fields with empty or
  8396  	// default values are omitted from API requests. See
  8397  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8398  	// details.
  8399  	ForceSendFields []string `json:"-"`
  8400  	// NullFields is a list of field names (e.g. "ExportedGcsDestination") to
  8401  	// include in API requests with the JSON null value. By default, fields with
  8402  	// empty values are omitted from API requests. See
  8403  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8404  	NullFields []string `json:"-"`
  8405  }
  8406  
  8407  func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
  8408  	type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
  8409  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8410  }
  8411  
  8412  // GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently asked
  8413  // questions".
  8414  type GoogleCloudDialogflowV2FaqAnswer struct {
  8415  	// Answer: The piece of text from the `source` knowledge base document.
  8416  	Answer string `json:"answer,omitempty"`
  8417  	// AnswerRecord: The name of answer record, in the format of
  8418  	// "projects//locations//answerRecords/"
  8419  	AnswerRecord string `json:"answerRecord,omitempty"`
  8420  	// Confidence: The system's confidence score that this Knowledge answer is a
  8421  	// good match for this conversational query, range from 0.0 (completely
  8422  	// uncertain) to 1.0 (completely certain).
  8423  	Confidence float64 `json:"confidence,omitempty"`
  8424  	// Metadata: A map that contains metadata about the answer and the document
  8425  	// from which it originates.
  8426  	Metadata map[string]string `json:"metadata,omitempty"`
  8427  	// Question: The corresponding FAQ question.
  8428  	Question string `json:"question,omitempty"`
  8429  	// Source: Indicates which Knowledge Document this answer was extracted from.
  8430  	// Format: `projects//locations//agent/knowledgeBases//documents/`.
  8431  	Source string `json:"source,omitempty"`
  8432  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  8433  	// include in API requests. By default, fields with empty or default values are
  8434  	// omitted from API requests. See
  8435  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8436  	// details.
  8437  	ForceSendFields []string `json:"-"`
  8438  	// NullFields is a list of field names (e.g. "Answer") to include in API
  8439  	// requests with the JSON null value. By default, fields with empty values are
  8440  	// omitted from API requests. See
  8441  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8442  	NullFields []string `json:"-"`
  8443  }
  8444  
  8445  func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
  8446  	type NoMethod GoogleCloudDialogflowV2FaqAnswer
  8447  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8448  }
  8449  
  8450  func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
  8451  	type NoMethod GoogleCloudDialogflowV2FaqAnswer
  8452  	var s1 struct {
  8453  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  8454  		*NoMethod
  8455  	}
  8456  	s1.NoMethod = (*NoMethod)(s)
  8457  	if err := json.Unmarshal(data, &s1); err != nil {
  8458  		return err
  8459  	}
  8460  	s.Confidence = float64(s1.Confidence)
  8461  	return nil
  8462  }
  8463  
  8464  // GoogleCloudDialogflowV2GcsDestination: Google Cloud Storage location for the
  8465  // output.
  8466  type GoogleCloudDialogflowV2GcsDestination struct {
  8467  	// Uri: The Google Cloud Storage URIs for the output. A URI is of the form:
  8468  	// `gs://bucket/object-prefix-or-name` Whether a prefix or name is used depends
  8469  	// on the use case. The requesting user must have "write-permission" to the
  8470  	// bucket.
  8471  	Uri string `json:"uri,omitempty"`
  8472  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  8473  	// include in API requests. By default, fields with empty or default values are
  8474  	// omitted from API requests. See
  8475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8476  	// details.
  8477  	ForceSendFields []string `json:"-"`
  8478  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  8479  	// with the JSON null value. By default, fields with empty values are omitted
  8480  	// from API requests. See
  8481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8482  	NullFields []string `json:"-"`
  8483  }
  8484  
  8485  func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
  8486  	type NoMethod GoogleCloudDialogflowV2GcsDestination
  8487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8488  }
  8489  
  8490  // GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a notification
  8491  // sent to Cloud Pub/Sub subscribers for human agent assistant events in a
  8492  // specific conversation.
  8493  type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
  8494  	// Conversation: The conversation this notification refers to. Format:
  8495  	// `projects//conversations/`.
  8496  	Conversation string `json:"conversation,omitempty"`
  8497  	// Participant: The participant that the suggestion is compiled for. Format:
  8498  	// `projects//conversations//participants/`. It will not be set in legacy
  8499  	// workflow.
  8500  	Participant string `json:"participant,omitempty"`
  8501  	// SuggestionResults: The suggestion results payload that this notification
  8502  	// refers to.
  8503  	SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
  8504  	// ForceSendFields is a list of field names (e.g. "Conversation") to
  8505  	// unconditionally include in API requests. By default, fields with empty or
  8506  	// default values are omitted from API requests. See
  8507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8508  	// details.
  8509  	ForceSendFields []string `json:"-"`
  8510  	// NullFields is a list of field names (e.g. "Conversation") to include in API
  8511  	// requests with the JSON null value. By default, fields with empty values are
  8512  	// omitted from API requests. See
  8513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8514  	NullFields []string `json:"-"`
  8515  }
  8516  
  8517  func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
  8518  	type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
  8519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8520  }
  8521  
  8522  // GoogleCloudDialogflowV2ImportConversationDataOperationMetadata: Metadata for
  8523  // a ConversationDatasets.ImportConversationData operation.
  8524  type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
  8525  	// ConversationDataset: The resource name of the imported conversation dataset.
  8526  	// Format: `projects//locations//conversationDatasets/`
  8527  	ConversationDataset string `json:"conversationDataset,omitempty"`
  8528  	// CreateTime: Timestamp when import conversation data request was created. The
  8529  	// time is measured on server side.
  8530  	CreateTime string `json:"createTime,omitempty"`
  8531  	// PartialFailures: Partial failures are failures that don't fail the whole
  8532  	// long running operation, e.g. single files that couldn't be read.
  8533  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  8534  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
  8535  	// unconditionally include in API requests. By default, fields with empty or
  8536  	// default values are omitted from API requests. See
  8537  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8538  	// details.
  8539  	ForceSendFields []string `json:"-"`
  8540  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
  8541  	// in API requests with the JSON null value. By default, fields with empty
  8542  	// values are omitted from API requests. See
  8543  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8544  	NullFields []string `json:"-"`
  8545  }
  8546  
  8547  func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
  8548  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
  8549  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8550  }
  8551  
  8552  // GoogleCloudDialogflowV2ImportConversationDataOperationResponse: Response
  8553  // used for ConversationDatasets.ImportConversationData long running operation.
  8554  type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
  8555  	// ConversationDataset: The resource name of the imported conversation dataset.
  8556  	// Format: `projects//locations//conversationDatasets/`
  8557  	ConversationDataset string `json:"conversationDataset,omitempty"`
  8558  	// ImportCount: Number of conversations imported successfully.
  8559  	ImportCount int64 `json:"importCount,omitempty"`
  8560  	// ForceSendFields is a list of field names (e.g. "ConversationDataset") to
  8561  	// unconditionally include in API requests. By default, fields with empty or
  8562  	// default values are omitted from API requests. See
  8563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8564  	// details.
  8565  	ForceSendFields []string `json:"-"`
  8566  	// NullFields is a list of field names (e.g. "ConversationDataset") to include
  8567  	// in API requests with the JSON null value. By default, fields with empty
  8568  	// values are omitted from API requests. See
  8569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8570  	NullFields []string `json:"-"`
  8571  }
  8572  
  8573  func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
  8574  	type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
  8575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8576  }
  8577  
  8578  // GoogleCloudDialogflowV2ImportDocumentsResponse: Response message for
  8579  // Documents.ImportDocuments.
  8580  type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
  8581  	// Warnings: Includes details about skipped documents or any other warnings.
  8582  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
  8583  	// ForceSendFields is a list of field names (e.g. "Warnings") to
  8584  	// unconditionally include in API requests. By default, fields with empty or
  8585  	// default values are omitted from API requests. See
  8586  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8587  	// details.
  8588  	ForceSendFields []string `json:"-"`
  8589  	// NullFields is a list of field names (e.g. "Warnings") to include in API
  8590  	// requests with the JSON null value. By default, fields with empty values are
  8591  	// omitted from API requests. See
  8592  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8593  	NullFields []string `json:"-"`
  8594  }
  8595  
  8596  func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  8597  	type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
  8598  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8599  }
  8600  
  8601  // GoogleCloudDialogflowV2InputDataset: InputDataset used to create model or do
  8602  // evaluation. NextID:5
  8603  type GoogleCloudDialogflowV2InputDataset struct {
  8604  	// Dataset: Required. ConversationDataset resource name. Format:
  8605  	// `projects//locations//conversationDatasets/`
  8606  	Dataset string `json:"dataset,omitempty"`
  8607  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
  8608  	// include in API requests. By default, fields with empty or default values are
  8609  	// omitted from API requests. See
  8610  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8611  	// details.
  8612  	ForceSendFields []string `json:"-"`
  8613  	// NullFields is a list of field names (e.g. "Dataset") to include in API
  8614  	// requests with the JSON null value. By default, fields with empty values are
  8615  	// omitted from API requests. See
  8616  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8617  	NullFields []string `json:"-"`
  8618  }
  8619  
  8620  func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
  8621  	type NoMethod GoogleCloudDialogflowV2InputDataset
  8622  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8623  }
  8624  
  8625  // GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's intention
  8626  // for one conversation turn. For each agent, you define many intents, where
  8627  // your combined intents can handle a complete conversation. When an end-user
  8628  // writes or says something, referred to as an end-user expression or end-user
  8629  // input, Dialogflow matches the end-user input to the best intent in your
  8630  // agent. Matching an intent is also known as intent classification. For more
  8631  // information, see the intent guide
  8632  // (https://cloud.google.com/dialogflow/docs/intents-overview).
  8633  type GoogleCloudDialogflowV2Intent struct {
  8634  	// Action: Optional. The name of the action associated with the intent. Note:
  8635  	// The action name must not contain whitespaces.
  8636  	Action string `json:"action,omitempty"`
  8637  	// DefaultResponsePlatforms: Optional. The list of platforms for which the
  8638  	// first responses will be copied from the messages in PLATFORM_UNSPECIFIED
  8639  	// (i.e. default platform).
  8640  	//
  8641  	// Possible values:
  8642  	//   "PLATFORM_UNSPECIFIED" - Default platform.
  8643  	//   "FACEBOOK" - Facebook.
  8644  	//   "SLACK" - Slack.
  8645  	//   "TELEGRAM" - Telegram.
  8646  	//   "KIK" - Kik.
  8647  	//   "SKYPE" - Skype.
  8648  	//   "LINE" - Line.
  8649  	//   "VIBER" - Viber.
  8650  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
  8651  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
  8652  	// -webhook-json)
  8653  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
  8654  	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
  8655  	// DisplayName: Required. The name of this intent.
  8656  	DisplayName string `json:"displayName,omitempty"`
  8657  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
  8658  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
  8659  	// this information to close interaction with an end user. Default is false.
  8660  	EndInteraction bool `json:"endInteraction,omitempty"`
  8661  	// Events: Optional. The collection of event names that trigger the intent. If
  8662  	// the collection of input contexts is not empty, all of the contexts must be
  8663  	// present in the active user session for an event to trigger this intent.
  8664  	// Event names are limited to 150 characters.
  8665  	Events []string `json:"events,omitempty"`
  8666  	// FollowupIntentInfo: Output only. Read-only. Information about all followup
  8667  	// intents that have this intent as a direct or indirect parent. We populate
  8668  	// this field only in the output.
  8669  	FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
  8670  	// InputContextNames: Optional. The list of context names required for this
  8671  	// intent to be triggered. Format: `projects//agent/sessions/-/contexts/`.
  8672  	InputContextNames []string `json:"inputContextNames,omitempty"`
  8673  	// IsFallback: Optional. Indicates whether this is a fallback intent.
  8674  	IsFallback bool `json:"isFallback,omitempty"`
  8675  	// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in
  8676  	// to handle the interaction with the user. In most cases, when you set this
  8677  	// flag to true, you would also want to set end_interaction to true as well.
  8678  	// Default is false.
  8679  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
  8680  	// Messages: Optional. The collection of rich messages corresponding to the
  8681  	// `Response` field in the Dialogflow console.
  8682  	Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
  8683  	// MlDisabled: Optional. Indicates whether Machine Learning is disabled for the
  8684  	// intent. Note: If `ml_disabled` setting is set to true, then this intent is
  8685  	// not taken into account during inference in `ML ONLY` match mode. Also,
  8686  	// auto-markup in the UI is turned off.
  8687  	MlDisabled bool `json:"mlDisabled,omitempty"`
  8688  	// Name: Optional. The unique identifier of this intent. Required for
  8689  	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:
  8690  	// `projects//agent/intents/`.
  8691  	Name string `json:"name,omitempty"`
  8692  	// OutputContexts: Optional. The collection of contexts that are activated when
  8693  	// the intent is matched. Context messages in this collection should not set
  8694  	// the parameters field. Setting the `lifespan_count` to 0 will reset the
  8695  	// context when the intent is matched. Format:
  8696  	// `projects//agent/sessions/-/contexts/`.
  8697  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
  8698  	// Parameters: Optional. The collection of parameters associated with the
  8699  	// intent.
  8700  	Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
  8701  	// ParentFollowupIntentName: Read-only after creation. The unique identifier of
  8702  	// the parent intent in the chain of followup intents. You can set this field
  8703  	// when creating an intent, for example with CreateIntent or
  8704  	// BatchUpdateIntents, in order to make this intent a followup intent. It
  8705  	// identifies the parent followup intent. Format: `projects//agent/intents/`.
  8706  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
  8707  	// Priority: Optional. The priority of this intent. Higher numbers represent
  8708  	// higher priorities. - If the supplied value is unspecified or 0, the service
  8709  	// translates the value to 500,000, which corresponds to the `Normal` priority
  8710  	// in the console. - If the supplied value is negative, the intent is ignored
  8711  	// in runtime detect intent requests.
  8712  	Priority int64 `json:"priority,omitempty"`
  8713  	// ResetContexts: Optional. Indicates whether to delete all contexts in the
  8714  	// current session when this intent is matched.
  8715  	ResetContexts bool `json:"resetContexts,omitempty"`
  8716  	// RootFollowupIntentName: Output only. Read-only. The unique identifier of the
  8717  	// root intent in the chain of followup intents. It identifies the correct
  8718  	// followup intents chain for this intent. We populate this field only in the
  8719  	// output. Format: `projects//agent/intents/`.
  8720  	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
  8721  	// TrainingPhrases: Optional. The collection of examples that the agent is
  8722  	// trained on.
  8723  	TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
  8724  	// WebhookState: Optional. Indicates whether webhooks are enabled for the
  8725  	// intent.
  8726  	//
  8727  	// Possible values:
  8728  	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the
  8729  	// intent.
  8730  	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the
  8731  	// intent.
  8732  	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent
  8733  	// and in the intent. Also, each slot filling prompt is forwarded to the
  8734  	// webhook.
  8735  	WebhookState string `json:"webhookState,omitempty"`
  8736  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  8737  	// include in API requests. By default, fields with empty or default values are
  8738  	// omitted from API requests. See
  8739  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8740  	// details.
  8741  	ForceSendFields []string `json:"-"`
  8742  	// NullFields is a list of field names (e.g. "Action") to include in API
  8743  	// requests with the JSON null value. By default, fields with empty values are
  8744  	// omitted from API requests. See
  8745  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8746  	NullFields []string `json:"-"`
  8747  }
  8748  
  8749  func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
  8750  	type NoMethod GoogleCloudDialogflowV2Intent
  8751  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8752  }
  8753  
  8754  // GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single
  8755  // followup intent in the chain.
  8756  type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
  8757  	// FollowupIntentName: The unique identifier of the followup intent. Format:
  8758  	// `projects//agent/intents/`.
  8759  	FollowupIntentName string `json:"followupIntentName,omitempty"`
  8760  	// ParentFollowupIntentName: The unique identifier of the followup intent's
  8761  	// parent. Format: `projects//agent/intents/`.
  8762  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
  8763  	// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to
  8764  	// unconditionally include in API requests. By default, fields with empty or
  8765  	// default values are omitted from API requests. See
  8766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8767  	// details.
  8768  	ForceSendFields []string `json:"-"`
  8769  	// NullFields is a list of field names (e.g. "FollowupIntentName") to include
  8770  	// in API requests with the JSON null value. By default, fields with empty
  8771  	// values are omitted from API requests. See
  8772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8773  	NullFields []string `json:"-"`
  8774  }
  8775  
  8776  func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
  8777  	type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
  8778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8779  }
  8780  
  8781  // GoogleCloudDialogflowV2IntentMessage: A rich response message. Corresponds
  8782  // to the intent `Response` field in the Dialogflow console. For more
  8783  // information, see Rich response messages
  8784  // (https://cloud.google.com/dialogflow/docs/intents-rich-messages).
  8785  type GoogleCloudDialogflowV2IntentMessage struct {
  8786  	// BasicCard: The basic card response for Actions on Google.
  8787  	BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
  8788  	// BrowseCarouselCard: Browse carousel card for Actions on Google.
  8789  	BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
  8790  	// Card: The card response.
  8791  	Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
  8792  	// CarouselSelect: The carousel card response for Actions on Google.
  8793  	CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
  8794  	// Image: The image response.
  8795  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
  8796  	// LinkOutSuggestion: The link out suggestion chip for Actions on Google.
  8797  	LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
  8798  	// ListSelect: The list card response for Actions on Google.
  8799  	ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
  8800  	// MediaContent: The media content card for Actions on Google.
  8801  	MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
  8802  	// Payload: A custom platform-specific response.
  8803  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  8804  	// Platform: Optional. The platform that this message is intended for.
  8805  	//
  8806  	// Possible values:
  8807  	//   "PLATFORM_UNSPECIFIED" - Default platform.
  8808  	//   "FACEBOOK" - Facebook.
  8809  	//   "SLACK" - Slack.
  8810  	//   "TELEGRAM" - Telegram.
  8811  	//   "KIK" - Kik.
  8812  	//   "SKYPE" - Skype.
  8813  	//   "LINE" - Line.
  8814  	//   "VIBER" - Viber.
  8815  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
  8816  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
  8817  	// -webhook-json)
  8818  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
  8819  	Platform string `json:"platform,omitempty"`
  8820  	// QuickReplies: The quick replies response.
  8821  	QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
  8822  	// SimpleResponses: The voice and text-only responses for Actions on Google.
  8823  	SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
  8824  	// Suggestions: The suggestion chips for Actions on Google.
  8825  	Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
  8826  	// TableCard: Table card for Actions on Google.
  8827  	TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
  8828  	// Text: The text response.
  8829  	Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
  8830  	// ForceSendFields is a list of field names (e.g. "BasicCard") to
  8831  	// unconditionally include in API requests. By default, fields with empty or
  8832  	// default values are omitted from API requests. See
  8833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8834  	// details.
  8835  	ForceSendFields []string `json:"-"`
  8836  	// NullFields is a list of field names (e.g. "BasicCard") to include in API
  8837  	// requests with the JSON null value. By default, fields with empty values are
  8838  	// omitted from API requests. See
  8839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8840  	NullFields []string `json:"-"`
  8841  }
  8842  
  8843  func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
  8844  	type NoMethod GoogleCloudDialogflowV2IntentMessage
  8845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8846  }
  8847  
  8848  // GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card message.
  8849  // Useful for displaying information.
  8850  type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
  8851  	// Buttons: Optional. The collection of card buttons.
  8852  	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
  8853  	// FormattedText: Required, unless image is present. The body text of the card.
  8854  	FormattedText string `json:"formattedText,omitempty"`
  8855  	// Image: Optional. The image for the card.
  8856  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
  8857  	// Subtitle: Optional. The subtitle of the card.
  8858  	Subtitle string `json:"subtitle,omitempty"`
  8859  	// Title: Optional. The title of the card.
  8860  	Title string `json:"title,omitempty"`
  8861  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
  8862  	// include in API requests. By default, fields with empty or default values are
  8863  	// omitted from API requests. See
  8864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8865  	// details.
  8866  	ForceSendFields []string `json:"-"`
  8867  	// NullFields is a list of field names (e.g. "Buttons") to include in API
  8868  	// requests with the JSON null value. By default, fields with empty values are
  8869  	// omitted from API requests. See
  8870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8871  	NullFields []string `json:"-"`
  8872  }
  8873  
  8874  func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
  8875  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
  8876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8877  }
  8878  
  8879  // GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button object that
  8880  // appears at the bottom of a card.
  8881  type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
  8882  	// OpenUriAction: Required. Action to take when a user taps on the button.
  8883  	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
  8884  	// Title: Required. The title of the button.
  8885  	Title string `json:"title,omitempty"`
  8886  	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
  8887  	// unconditionally include in API requests. By default, fields with empty or
  8888  	// default values are omitted from API requests. See
  8889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8890  	// details.
  8891  	ForceSendFields []string `json:"-"`
  8892  	// NullFields is a list of field names (e.g. "OpenUriAction") to include in API
  8893  	// requests with the JSON null value. By default, fields with empty values are
  8894  	// omitted from API requests. See
  8895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8896  	NullFields []string `json:"-"`
  8897  }
  8898  
  8899  func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
  8900  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
  8901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8902  }
  8903  
  8904  // GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: Opens the
  8905  // given URI.
  8906  type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
  8907  	// Uri: Required. The HTTP or HTTPS scheme URI.
  8908  	Uri string `json:"uri,omitempty"`
  8909  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  8910  	// include in API requests. By default, fields with empty or default values are
  8911  	// omitted from API requests. See
  8912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8913  	// details.
  8914  	ForceSendFields []string `json:"-"`
  8915  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  8916  	// with the JSON null value. By default, fields with empty values are omitted
  8917  	// from API requests. See
  8918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8919  	NullFields []string `json:"-"`
  8920  }
  8921  
  8922  func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
  8923  	type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
  8924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8925  }
  8926  
  8927  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse Carousel Card
  8928  // for Actions on Google.
  8929  // https://developers.google.com/actions/assistant/responses#browsing_carousel
  8930  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
  8931  	// ImageDisplayOptions: Optional. Settings for displaying the image. Applies to
  8932  	// every image in items.
  8933  	//
  8934  	// Possible values:
  8935  	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and
  8936  	// the image container with gray bars.
  8937  	//   "GRAY" - Fill the gaps between the image and the image container with gray
  8938  	// bars.
  8939  	//   "WHITE" - Fill the gaps between the image and the image container with
  8940  	// white bars.
  8941  	//   "CROPPED" - Image is scaled such that the image width and height match or
  8942  	// exceed the container dimensions. This may crop the top and bottom of the
  8943  	// image if the scaled image height is greater than the container height, or
  8944  	// crop the left and right of the image if the scaled image width is greater
  8945  	// than the container width. This is similar to "Zoom Mode" on a widescreen TV
  8946  	// when playing a 4:3 video.
  8947  	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a
  8948  	// blurred copy of the same image.
  8949  	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
  8950  	// Items: Required. List of items in the Browse Carousel Card. Minimum of two
  8951  	// items, maximum of ten.
  8952  	Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
  8953  	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to
  8954  	// unconditionally include in API requests. By default, fields with empty or
  8955  	// default values are omitted from API requests. See
  8956  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8957  	// details.
  8958  	ForceSendFields []string `json:"-"`
  8959  	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to include
  8960  	// in API requests with the JSON null value. By default, fields with empty
  8961  	// values are omitted from API requests. See
  8962  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8963  	NullFields []string `json:"-"`
  8964  }
  8965  
  8966  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
  8967  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
  8968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8969  }
  8970  
  8971  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem:
  8972  //
  8973  //	Browsing carousel tile
  8974  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
  8975  	// Description: Optional. Description of the carousel item. Maximum of four
  8976  	// lines of text.
  8977  	Description string `json:"description,omitempty"`
  8978  	// Footer: Optional. Text that appears at the bottom of the Browse Carousel
  8979  	// Card. Maximum of one line of text.
  8980  	Footer string `json:"footer,omitempty"`
  8981  	// Image: Optional. Hero image for the carousel item.
  8982  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
  8983  	// OpenUriAction: Required. Action to present to the user.
  8984  	OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
  8985  	// Title: Required. Title of the carousel item. Maximum of two lines of text.
  8986  	Title string `json:"title,omitempty"`
  8987  	// ForceSendFields is a list of field names (e.g. "Description") to
  8988  	// unconditionally include in API requests. By default, fields with empty or
  8989  	// default values are omitted from API requests. See
  8990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8991  	// details.
  8992  	ForceSendFields []string `json:"-"`
  8993  	// NullFields is a list of field names (e.g. "Description") to include in API
  8994  	// requests with the JSON null value. By default, fields with empty values are
  8995  	// omitted from API requests. See
  8996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8997  	NullFields []string `json:"-"`
  8998  }
  8999  
  9000  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
  9001  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
  9002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9003  }
  9004  
  9005  // GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemO
  9006  // penUrlAction: Actions on Google action to open a given url.
  9007  type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
  9008  	// Url: Required. URL
  9009  	Url string `json:"url,omitempty"`
  9010  	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
  9011  	// opening the URL. Defaults to opening via web browser.
  9012  	//
  9013  	// Possible values:
  9014  	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
  9015  	//   "AMP_ACTION" - Url would be an amp action
  9016  	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical
  9017  	// URL which refers to AMP content via .
  9018  	UrlTypeHint string `json:"urlTypeHint,omitempty"`
  9019  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
  9020  	// include in API requests. By default, fields with empty or default values are
  9021  	// omitted from API requests. See
  9022  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9023  	// details.
  9024  	ForceSendFields []string `json:"-"`
  9025  	// NullFields is a list of field names (e.g. "Url") to include in API requests
  9026  	// with the JSON null value. By default, fields with empty values are omitted
  9027  	// from API requests. See
  9028  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9029  	NullFields []string `json:"-"`
  9030  }
  9031  
  9032  func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
  9033  	type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
  9034  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9035  }
  9036  
  9037  // GoogleCloudDialogflowV2IntentMessageCard: The card response message.
  9038  type GoogleCloudDialogflowV2IntentMessageCard struct {
  9039  	// Buttons: Optional. The collection of card buttons.
  9040  	Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
  9041  	// ImageUri: Optional. The public URI to an image file for the card.
  9042  	ImageUri string `json:"imageUri,omitempty"`
  9043  	// Subtitle: Optional. The subtitle of the card.
  9044  	Subtitle string `json:"subtitle,omitempty"`
  9045  	// Title: Optional. The title of the card.
  9046  	Title string `json:"title,omitempty"`
  9047  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
  9048  	// include in API requests. By default, fields with empty or default values are
  9049  	// omitted from API requests. See
  9050  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9051  	// details.
  9052  	ForceSendFields []string `json:"-"`
  9053  	// NullFields is a list of field names (e.g. "Buttons") to include in API
  9054  	// requests with the JSON null value. By default, fields with empty values are
  9055  	// omitted from API requests. See
  9056  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9057  	NullFields []string `json:"-"`
  9058  }
  9059  
  9060  func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
  9061  	type NoMethod GoogleCloudDialogflowV2IntentMessageCard
  9062  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9063  }
  9064  
  9065  // GoogleCloudDialogflowV2IntentMessageCardButton: Contains information about a
  9066  // button.
  9067  type GoogleCloudDialogflowV2IntentMessageCardButton struct {
  9068  	// Postback: Optional. The text to send back to the Dialogflow API or a URI to
  9069  	// open.
  9070  	Postback string `json:"postback,omitempty"`
  9071  	// Text: Optional. The text to show on the button.
  9072  	Text string `json:"text,omitempty"`
  9073  	// ForceSendFields is a list of field names (e.g. "Postback") to
  9074  	// unconditionally include in API requests. By default, fields with empty or
  9075  	// default values are omitted from API requests. See
  9076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9077  	// details.
  9078  	ForceSendFields []string `json:"-"`
  9079  	// NullFields is a list of field names (e.g. "Postback") to include in API
  9080  	// requests with the JSON null value. By default, fields with empty values are
  9081  	// omitted from API requests. See
  9082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9083  	NullFields []string `json:"-"`
  9084  }
  9085  
  9086  func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
  9087  	type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
  9088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9089  }
  9090  
  9091  // GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for presenting
  9092  // a carousel of options to select from.
  9093  type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
  9094  	// Items: Required. Carousel items.
  9095  	Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
  9096  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  9097  	// include in API requests. By default, fields with empty or default values are
  9098  	// omitted from API requests. See
  9099  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9100  	// details.
  9101  	ForceSendFields []string `json:"-"`
  9102  	// NullFields is a list of field names (e.g. "Items") to include in API
  9103  	// requests with the JSON null value. By default, fields with empty values are
  9104  	// omitted from API requests. See
  9105  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9106  	NullFields []string `json:"-"`
  9107  }
  9108  
  9109  func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
  9110  	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
  9111  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9112  }
  9113  
  9114  // GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in the
  9115  // carousel.
  9116  type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
  9117  	// Description: Optional. The body text of the card.
  9118  	Description string `json:"description,omitempty"`
  9119  	// Image: Optional. The image to display.
  9120  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
  9121  	// Info: Required. Additional info about the option item.
  9122  	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
  9123  	// Title: Required. Title of the carousel item.
  9124  	Title string `json:"title,omitempty"`
  9125  	// ForceSendFields is a list of field names (e.g. "Description") to
  9126  	// unconditionally include in API requests. By default, fields with empty or
  9127  	// default values are omitted from API requests. See
  9128  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9129  	// details.
  9130  	ForceSendFields []string `json:"-"`
  9131  	// NullFields is a list of field names (e.g. "Description") to include in API
  9132  	// requests with the JSON null value. By default, fields with empty values are
  9133  	// omitted from API requests. See
  9134  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9135  	NullFields []string `json:"-"`
  9136  }
  9137  
  9138  func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
  9139  	type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
  9140  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9141  }
  9142  
  9143  // GoogleCloudDialogflowV2IntentMessageColumnProperties: Column properties for
  9144  // TableCard.
  9145  type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
  9146  	// Header: Required. Column heading.
  9147  	Header string `json:"header,omitempty"`
  9148  	// HorizontalAlignment: Optional. Defines text alignment for all cells in this
  9149  	// column.
  9150  	//
  9151  	// Possible values:
  9152  	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge
  9153  	// of the column.
  9154  	//   "LEADING" - Text is aligned to the leading edge of the column.
  9155  	//   "CENTER" - Text is centered in the column.
  9156  	//   "TRAILING" - Text is aligned to the trailing edge of the column.
  9157  	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
  9158  	// ForceSendFields is a list of field names (e.g. "Header") to unconditionally
  9159  	// include in API requests. By default, fields with empty or default values are
  9160  	// omitted from API requests. See
  9161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9162  	// details.
  9163  	ForceSendFields []string `json:"-"`
  9164  	// NullFields is a list of field names (e.g. "Header") to include in API
  9165  	// requests with the JSON null value. By default, fields with empty values are
  9166  	// omitted from API requests. See
  9167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9168  	NullFields []string `json:"-"`
  9169  }
  9170  
  9171  func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
  9172  	type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
  9173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9174  }
  9175  
  9176  // GoogleCloudDialogflowV2IntentMessageImage: The image response message.
  9177  type GoogleCloudDialogflowV2IntentMessageImage struct {
  9178  	// AccessibilityText: Optional. A text description of the image to be used for
  9179  	// accessibility, e.g., screen readers.
  9180  	AccessibilityText string `json:"accessibilityText,omitempty"`
  9181  	// ImageUri: Optional. The public URI to an image file.
  9182  	ImageUri string `json:"imageUri,omitempty"`
  9183  	// ForceSendFields is a list of field names (e.g. "AccessibilityText") to
  9184  	// unconditionally include in API requests. By default, fields with empty or
  9185  	// default values are omitted from API requests. See
  9186  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9187  	// details.
  9188  	ForceSendFields []string `json:"-"`
  9189  	// NullFields is a list of field names (e.g. "AccessibilityText") to include in
  9190  	// API requests with the JSON null value. By default, fields with empty values
  9191  	// are omitted from API requests. See
  9192  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9193  	NullFields []string `json:"-"`
  9194  }
  9195  
  9196  func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
  9197  	type NoMethod GoogleCloudDialogflowV2IntentMessageImage
  9198  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9199  }
  9200  
  9201  // GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion chip
  9202  // message that allows the user to jump out to the app or website associated
  9203  // with this agent.
  9204  type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
  9205  	// DestinationName: Required. The name of the app or site this chip is linking
  9206  	// to.
  9207  	DestinationName string `json:"destinationName,omitempty"`
  9208  	// Uri: Required. The URI of the app or site to open when the user taps the
  9209  	// suggestion chip.
  9210  	Uri string `json:"uri,omitempty"`
  9211  	// ForceSendFields is a list of field names (e.g. "DestinationName") to
  9212  	// unconditionally include in API requests. By default, fields with empty or
  9213  	// default values are omitted from API requests. See
  9214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9215  	// details.
  9216  	ForceSendFields []string `json:"-"`
  9217  	// NullFields is a list of field names (e.g. "DestinationName") to include in
  9218  	// API requests with the JSON null value. By default, fields with empty values
  9219  	// are omitted from API requests. See
  9220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9221  	NullFields []string `json:"-"`
  9222  }
  9223  
  9224  func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
  9225  	type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
  9226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9227  }
  9228  
  9229  // GoogleCloudDialogflowV2IntentMessageListSelect: The card for presenting a
  9230  // list of options to select from.
  9231  type GoogleCloudDialogflowV2IntentMessageListSelect struct {
  9232  	// Items: Required. List items.
  9233  	Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
  9234  	// Subtitle: Optional. Subtitle of the list.
  9235  	Subtitle string `json:"subtitle,omitempty"`
  9236  	// Title: Optional. The overall title of the list.
  9237  	Title string `json:"title,omitempty"`
  9238  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  9239  	// include in API requests. By default, fields with empty or default values are
  9240  	// omitted from API requests. See
  9241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9242  	// details.
  9243  	ForceSendFields []string `json:"-"`
  9244  	// NullFields is a list of field names (e.g. "Items") to include in API
  9245  	// requests with the JSON null value. By default, fields with empty values are
  9246  	// omitted from API requests. See
  9247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9248  	NullFields []string `json:"-"`
  9249  }
  9250  
  9251  func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
  9252  	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
  9253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9254  }
  9255  
  9256  // GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the list.
  9257  type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
  9258  	// Description: Optional. The main text describing the item.
  9259  	Description string `json:"description,omitempty"`
  9260  	// Image: Optional. The image to display.
  9261  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
  9262  	// Info: Required. Additional information about this option.
  9263  	Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
  9264  	// Title: Required. The title of the list item.
  9265  	Title string `json:"title,omitempty"`
  9266  	// ForceSendFields is a list of field names (e.g. "Description") to
  9267  	// unconditionally include in API requests. By default, fields with empty or
  9268  	// default values are omitted from API requests. See
  9269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9270  	// details.
  9271  	ForceSendFields []string `json:"-"`
  9272  	// NullFields is a list of field names (e.g. "Description") to include in API
  9273  	// requests with the JSON null value. By default, fields with empty values are
  9274  	// omitted from API requests. See
  9275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9276  	NullFields []string `json:"-"`
  9277  }
  9278  
  9279  func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
  9280  	type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
  9281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9282  }
  9283  
  9284  // GoogleCloudDialogflowV2IntentMessageMediaContent: The media content card for
  9285  // Actions on Google.
  9286  type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
  9287  	// MediaObjects: Required. List of media objects.
  9288  	MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
  9289  	// MediaType: Optional. What type of media is the content (ie "audio").
  9290  	//
  9291  	// Possible values:
  9292  	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
  9293  	//   "AUDIO" - Response media type is audio.
  9294  	MediaType string `json:"mediaType,omitempty"`
  9295  	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
  9296  	// unconditionally include in API requests. By default, fields with empty or
  9297  	// default values are omitted from API requests. See
  9298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9299  	// details.
  9300  	ForceSendFields []string `json:"-"`
  9301  	// NullFields is a list of field names (e.g. "MediaObjects") to include in API
  9302  	// requests with the JSON null value. By default, fields with empty values are
  9303  	// omitted from API requests. See
  9304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9305  	NullFields []string `json:"-"`
  9306  }
  9307  
  9308  func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
  9309  	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
  9310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9311  }
  9312  
  9313  // GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:
  9314  // Response media object for media content card.
  9315  type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
  9316  	// ContentUrl: Required. Url where the media is stored.
  9317  	ContentUrl string `json:"contentUrl,omitempty"`
  9318  	// Description: Optional. Description of media card.
  9319  	Description string `json:"description,omitempty"`
  9320  	// Icon: Optional. Icon to display above media content.
  9321  	Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
  9322  	// LargeImage: Optional. Image to display above media content.
  9323  	LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
  9324  	// Name: Required. Name of media card.
  9325  	Name string `json:"name,omitempty"`
  9326  	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
  9327  	// unconditionally include in API requests. By default, fields with empty or
  9328  	// default values are omitted from API requests. See
  9329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9330  	// details.
  9331  	ForceSendFields []string `json:"-"`
  9332  	// NullFields is a list of field names (e.g. "ContentUrl") to include in API
  9333  	// requests with the JSON null value. By default, fields with empty values are
  9334  	// omitted from API requests. See
  9335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9336  	NullFields []string `json:"-"`
  9337  }
  9338  
  9339  func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
  9340  	type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
  9341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9342  }
  9343  
  9344  // GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies response
  9345  // message.
  9346  type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
  9347  	// QuickReplies: Optional. The collection of quick replies.
  9348  	QuickReplies []string `json:"quickReplies,omitempty"`
  9349  	// Title: Optional. The title of the collection of quick replies.
  9350  	Title string `json:"title,omitempty"`
  9351  	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
  9352  	// unconditionally include in API requests. By default, fields with empty or
  9353  	// default values are omitted from API requests. See
  9354  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9355  	// details.
  9356  	ForceSendFields []string `json:"-"`
  9357  	// NullFields is a list of field names (e.g. "QuickReplies") to include in API
  9358  	// requests with the JSON null value. By default, fields with empty values are
  9359  	// omitted from API requests. See
  9360  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9361  	NullFields []string `json:"-"`
  9362  }
  9363  
  9364  func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
  9365  	type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
  9366  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9367  }
  9368  
  9369  // GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info about
  9370  // the select item for when it is triggered in a dialog.
  9371  type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
  9372  	// Key: Required. A unique key that will be sent back to the agent if this
  9373  	// response is given.
  9374  	Key string `json:"key,omitempty"`
  9375  	// Synonyms: Optional. A list of synonyms that can also be used to trigger this
  9376  	// item in dialog.
  9377  	Synonyms []string `json:"synonyms,omitempty"`
  9378  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  9379  	// include in API requests. By default, fields with empty or default values are
  9380  	// omitted from API requests. See
  9381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9382  	// details.
  9383  	ForceSendFields []string `json:"-"`
  9384  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  9385  	// with the JSON null value. By default, fields with empty values are omitted
  9386  	// from API requests. See
  9387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9388  	NullFields []string `json:"-"`
  9389  }
  9390  
  9391  func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
  9392  	type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
  9393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9394  }
  9395  
  9396  // GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple response
  9397  // message containing speech or text.
  9398  type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
  9399  	// DisplayText: Optional. The text to display.
  9400  	DisplayText string `json:"displayText,omitempty"`
  9401  	// Ssml: One of text_to_speech or ssml must be provided. Structured spoken
  9402  	// response to the user in the SSML format. Mutually exclusive with
  9403  	// text_to_speech.
  9404  	Ssml string `json:"ssml,omitempty"`
  9405  	// TextToSpeech: One of text_to_speech or ssml must be provided. The plain text
  9406  	// of the speech output. Mutually exclusive with ssml.
  9407  	TextToSpeech string `json:"textToSpeech,omitempty"`
  9408  	// ForceSendFields is a list of field names (e.g. "DisplayText") to
  9409  	// unconditionally include in API requests. By default, fields with empty or
  9410  	// default values are omitted from API requests. See
  9411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9412  	// details.
  9413  	ForceSendFields []string `json:"-"`
  9414  	// NullFields is a list of field names (e.g. "DisplayText") to include in API
  9415  	// requests with the JSON null value. By default, fields with empty values are
  9416  	// omitted from API requests. See
  9417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9418  	NullFields []string `json:"-"`
  9419  }
  9420  
  9421  func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
  9422  	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
  9423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9424  }
  9425  
  9426  // GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection of
  9427  // simple response candidates. This message in
  9428  // `QueryResult.fulfillment_messages` and
  9429  // `WebhookResponse.fulfillment_messages` should contain only one
  9430  // `SimpleResponse`.
  9431  type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
  9432  	// SimpleResponses: Required. The list of simple responses.
  9433  	SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
  9434  	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
  9435  	// unconditionally include in API requests. By default, fields with empty or
  9436  	// default values are omitted from API requests. See
  9437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9438  	// details.
  9439  	ForceSendFields []string `json:"-"`
  9440  	// NullFields is a list of field names (e.g. "SimpleResponses") to include in
  9441  	// API requests with the JSON null value. By default, fields with empty values
  9442  	// are omitted from API requests. See
  9443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9444  	NullFields []string `json:"-"`
  9445  }
  9446  
  9447  func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
  9448  	type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
  9449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9450  }
  9451  
  9452  // GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip message
  9453  // that the user can tap to quickly post a reply to the conversation.
  9454  type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
  9455  	// Title: Required. The text shown the in the suggestion chip.
  9456  	Title string `json:"title,omitempty"`
  9457  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
  9458  	// include in API requests. By default, fields with empty or default values are
  9459  	// omitted from API requests. See
  9460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9461  	// details.
  9462  	ForceSendFields []string `json:"-"`
  9463  	// NullFields is a list of field names (e.g. "Title") to include in API
  9464  	// requests with the JSON null value. By default, fields with empty values are
  9465  	// omitted from API requests. See
  9466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9467  	NullFields []string `json:"-"`
  9468  }
  9469  
  9470  func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
  9471  	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
  9472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9473  }
  9474  
  9475  // GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of
  9476  // suggestions.
  9477  type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
  9478  	// Suggestions: Required. The list of suggested replies.
  9479  	Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
  9480  	// ForceSendFields is a list of field names (e.g. "Suggestions") to
  9481  	// unconditionally include in API requests. By default, fields with empty or
  9482  	// default values are omitted from API requests. See
  9483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9484  	// details.
  9485  	ForceSendFields []string `json:"-"`
  9486  	// NullFields is a list of field names (e.g. "Suggestions") to include in API
  9487  	// requests with the JSON null value. By default, fields with empty values are
  9488  	// omitted from API requests. See
  9489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9490  	NullFields []string `json:"-"`
  9491  }
  9492  
  9493  func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
  9494  	type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
  9495  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9496  }
  9497  
  9498  // GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions on
  9499  // Google.
  9500  type GoogleCloudDialogflowV2IntentMessageTableCard struct {
  9501  	// Buttons: Optional. List of buttons for the card.
  9502  	Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
  9503  	// ColumnProperties: Optional. Display properties for the columns in this
  9504  	// table.
  9505  	ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
  9506  	// Image: Optional. Image which should be displayed on the card.
  9507  	Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
  9508  	// Rows: Optional. Rows in this table of data.
  9509  	Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
  9510  	// Subtitle: Optional. Subtitle to the title.
  9511  	Subtitle string `json:"subtitle,omitempty"`
  9512  	// Title: Required. Title of the card.
  9513  	Title string `json:"title,omitempty"`
  9514  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
  9515  	// include in API requests. By default, fields with empty or default values are
  9516  	// 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. "Buttons") 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 *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
  9528  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
  9529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9530  }
  9531  
  9532  // GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of TableCardRow.
  9533  type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
  9534  	// Text: Required. Text in this cell.
  9535  	Text string `json:"text,omitempty"`
  9536  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  9537  	// include in API requests. By default, fields with empty or default values are
  9538  	// omitted from API requests. See
  9539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9540  	// details.
  9541  	ForceSendFields []string `json:"-"`
  9542  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  9543  	// with the JSON null value. By default, fields with empty values are omitted
  9544  	// from API requests. See
  9545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9546  	NullFields []string `json:"-"`
  9547  }
  9548  
  9549  func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
  9550  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
  9551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9552  }
  9553  
  9554  // GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
  9555  type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
  9556  	// Cells: Optional. List of cells that make up this row.
  9557  	Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
  9558  	// DividerAfter: Optional. Whether to add a visual divider after this row.
  9559  	DividerAfter bool `json:"dividerAfter,omitempty"`
  9560  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
  9561  	// include in API requests. By default, fields with empty or default values are
  9562  	// omitted from API requests. See
  9563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9564  	// details.
  9565  	ForceSendFields []string `json:"-"`
  9566  	// NullFields is a list of field names (e.g. "Cells") to include in API
  9567  	// requests with the JSON null value. By default, fields with empty values are
  9568  	// omitted from API requests. See
  9569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9570  	NullFields []string `json:"-"`
  9571  }
  9572  
  9573  func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
  9574  	type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
  9575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9576  }
  9577  
  9578  // GoogleCloudDialogflowV2IntentMessageText: The text response message.
  9579  type GoogleCloudDialogflowV2IntentMessageText struct {
  9580  	// Text: Optional. The collection of the agent's responses.
  9581  	Text []string `json:"text,omitempty"`
  9582  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  9583  	// include in API requests. By default, fields with empty or default values are
  9584  	// omitted from API requests. See
  9585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9586  	// details.
  9587  	ForceSendFields []string `json:"-"`
  9588  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  9589  	// with the JSON null value. By default, fields with empty values are omitted
  9590  	// from API requests. See
  9591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9592  	NullFields []string `json:"-"`
  9593  }
  9594  
  9595  func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
  9596  	type NoMethod GoogleCloudDialogflowV2IntentMessageText
  9597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9598  }
  9599  
  9600  // GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
  9601  type GoogleCloudDialogflowV2IntentParameter struct {
  9602  	// DefaultValue: Optional. The default value to use when the `value` yields an
  9603  	// empty result. Default values can be extracted from contexts by using the
  9604  	// following syntax: `#context_name.parameter_name`.
  9605  	DefaultValue string `json:"defaultValue,omitempty"`
  9606  	// DisplayName: Required. The name of the parameter.
  9607  	DisplayName string `json:"displayName,omitempty"`
  9608  	// EntityTypeDisplayName: Optional. The name of the entity type, prefixed with
  9609  	// `@`, that describes values of the parameter. If the parameter is required,
  9610  	// this must be provided.
  9611  	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
  9612  	// IsList: Optional. Indicates whether the parameter represents a list of
  9613  	// values.
  9614  	IsList bool `json:"isList,omitempty"`
  9615  	// Mandatory: Optional. Indicates whether the parameter is required. That is,
  9616  	// whether the intent cannot be completed without collecting the parameter
  9617  	// value.
  9618  	Mandatory bool `json:"mandatory,omitempty"`
  9619  	// Name: The unique identifier of this parameter.
  9620  	Name string `json:"name,omitempty"`
  9621  	// Prompts: Optional. The collection of prompts that the agent can present to
  9622  	// the user in order to collect a value for the parameter.
  9623  	Prompts []string `json:"prompts,omitempty"`
  9624  	// Value: Optional. The definition of the parameter value. It can be: - a
  9625  	// constant string, - a parameter value defined as `$parameter_name`, - an
  9626  	// original parameter value defined as `$parameter_name.original`, - a
  9627  	// parameter value from some context defined as `#context_name.parameter_name`.
  9628  	Value string `json:"value,omitempty"`
  9629  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
  9630  	// unconditionally include in API requests. By default, fields with empty or
  9631  	// default values are omitted from API requests. See
  9632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9633  	// details.
  9634  	ForceSendFields []string `json:"-"`
  9635  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
  9636  	// requests with the JSON null value. By default, fields with empty values are
  9637  	// omitted from API requests. See
  9638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9639  	NullFields []string `json:"-"`
  9640  }
  9641  
  9642  func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
  9643  	type NoMethod GoogleCloudDialogflowV2IntentParameter
  9644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9645  }
  9646  
  9647  // GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example that the
  9648  // agent is trained on.
  9649  type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
  9650  	// Name: Output only. The unique identifier of this training phrase.
  9651  	Name string `json:"name,omitempty"`
  9652  	// Parts: Required. The ordered list of training phrase parts. The parts are
  9653  	// concatenated in order to form the training phrase. Note: The API does not
  9654  	// automatically annotate training phrases like the Dialogflow Console does.
  9655  	// Note: Do not forget to include whitespace at part boundaries, so the
  9656  	// training phrase is well formatted when the parts are concatenated. If the
  9657  	// training phrase does not need to be annotated with parameters, you just need
  9658  	// a single part with only the Part.text field set. If you want to annotate the
  9659  	// training phrase, you must create multiple parts, where the fields of each
  9660  	// part are populated in one of two ways: - `Part.text` is set to a part of the
  9661  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
  9662  	// that you want to annotate, and the `entity_type`, `alias`, and
  9663  	// `user_defined` fields are all set.
  9664  	Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
  9665  	// TimesAddedCount: Optional. Indicates how many times this example was added
  9666  	// to the intent. Each time a developer adds an existing sample by editing an
  9667  	// intent or training, this counter is increased.
  9668  	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
  9669  	// Type: Required. The type of the training phrase.
  9670  	//
  9671  	// Possible values:
  9672  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
  9673  	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names, but
  9674  	// example parts can be annotated with entity types.
  9675  	//   "TEMPLATE" - Templates are not annotated with entity types, but they can
  9676  	// contain @-prefixed entity type names as substrings. Template mode has been
  9677  	// deprecated. Example mode is the only supported way to create new training
  9678  	// phrases. If you have existing training phrases that you've created in
  9679  	// template mode, those will continue to work.
  9680  	Type string `json:"type,omitempty"`
  9681  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  9682  	// include in API requests. By default, fields with empty or default values are
  9683  	// omitted from API requests. See
  9684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9685  	// details.
  9686  	ForceSendFields []string `json:"-"`
  9687  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  9688  	// with the JSON null value. By default, fields with empty values are omitted
  9689  	// from API requests. See
  9690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9691  	NullFields []string `json:"-"`
  9692  }
  9693  
  9694  func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
  9695  	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
  9696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9697  }
  9698  
  9699  // GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of a
  9700  // training phrase.
  9701  type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
  9702  	// Alias: Optional. The parameter name for the value extracted from the
  9703  	// annotated part of the example. This field is required for annotated parts of
  9704  	// the training phrase.
  9705  	Alias string `json:"alias,omitempty"`
  9706  	// EntityType: Optional. The entity type name prefixed with `@`. This field is
  9707  	// required for annotated parts of the training phrase.
  9708  	EntityType string `json:"entityType,omitempty"`
  9709  	// Text: Required. The text for this part.
  9710  	Text string `json:"text,omitempty"`
  9711  	// UserDefined: Optional. Indicates whether the text was manually annotated.
  9712  	// This field is set to true when the Dialogflow Console is used to manually
  9713  	// annotate the part. When creating an annotated part with the API, you must
  9714  	// set this to true.
  9715  	UserDefined bool `json:"userDefined,omitempty"`
  9716  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
  9717  	// include in API requests. By default, fields with empty or default values are
  9718  	// omitted from API requests. See
  9719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9720  	// details.
  9721  	ForceSendFields []string `json:"-"`
  9722  	// NullFields is a list of field names (e.g. "Alias") to include in API
  9723  	// requests with the JSON null value. By default, fields with empty values are
  9724  	// omitted from API requests. See
  9725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9726  	NullFields []string `json:"-"`
  9727  }
  9728  
  9729  func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
  9730  	type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
  9731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9732  }
  9733  
  9734  // GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata in
  9735  // google::longrunning::Operation for Knowledge operations.
  9736  type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
  9737  	// ExportOperationMetadata: Metadata for the Export Data Operation such as the
  9738  	// destination of export.
  9739  	ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
  9740  	// KnowledgeBase: The name of the knowledge base interacted with during the
  9741  	// operation.
  9742  	KnowledgeBase string `json:"knowledgeBase,omitempty"`
  9743  	// State: Output only. The current state of this operation.
  9744  	//
  9745  	// Possible values:
  9746  	//   "STATE_UNSPECIFIED" - State unspecified.
  9747  	//   "PENDING" - The operation has been created.
  9748  	//   "RUNNING" - The operation is currently running.
  9749  	//   "DONE" - The operation is done, either cancelled or completed.
  9750  	State string `json:"state,omitempty"`
  9751  	// ForceSendFields is a list of field names (e.g. "ExportOperationMetadata") to
  9752  	// unconditionally include in API requests. By default, fields with empty or
  9753  	// default values are omitted from API requests. See
  9754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9755  	// details.
  9756  	ForceSendFields []string `json:"-"`
  9757  	// NullFields is a list of field names (e.g. "ExportOperationMetadata") to
  9758  	// include in API requests with the JSON null value. By default, fields with
  9759  	// empty values are omitted from API requests. See
  9760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9761  	NullFields []string `json:"-"`
  9762  }
  9763  
  9764  func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
  9765  	type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
  9766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9767  }
  9768  
  9769  // GoogleCloudDialogflowV2Message: Represents a message posted into a
  9770  // conversation.
  9771  type GoogleCloudDialogflowV2Message struct {
  9772  	// Content: Required. The message content.
  9773  	Content string `json:"content,omitempty"`
  9774  	// CreateTime: Output only. The time when the message was created in Contact
  9775  	// Center AI.
  9776  	CreateTime string `json:"createTime,omitempty"`
  9777  	// LanguageCode: Optional. The message language. This should be a BCP-47
  9778  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
  9779  	// "en-US".
  9780  	LanguageCode string `json:"languageCode,omitempty"`
  9781  	// MessageAnnotation: Output only. The annotation for the message.
  9782  	MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
  9783  	// Name: Optional. The unique identifier of the message. Format:
  9784  	// `projects//locations//conversations//messages/`.
  9785  	Name string `json:"name,omitempty"`
  9786  	// Participant: Output only. The participant that sends this message.
  9787  	Participant string `json:"participant,omitempty"`
  9788  	// ParticipantRole: Output only. The role of the participant.
  9789  	//
  9790  	// Possible values:
  9791  	//   "ROLE_UNSPECIFIED" - Participant role not set.
  9792  	//   "HUMAN_AGENT" - Participant is a human agent.
  9793  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
  9794  	// Dialogflow agent.
  9795  	//   "END_USER" - Participant is an end user that has called or chatted with
  9796  	// Dialogflow services.
  9797  	ParticipantRole string `json:"participantRole,omitempty"`
  9798  	// SendTime: Optional. The time when the message was sent.
  9799  	SendTime string `json:"sendTime,omitempty"`
  9800  	// SentimentAnalysis: Output only. The sentiment analysis result for the
  9801  	// message.
  9802  	SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
  9803  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  9804  	// include in API requests. By default, fields with empty or default values are
  9805  	// omitted from API requests. See
  9806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9807  	// details.
  9808  	ForceSendFields []string `json:"-"`
  9809  	// NullFields is a list of field names (e.g. "Content") to include in API
  9810  	// requests with the JSON null value. By default, fields with empty values are
  9811  	// omitted from API requests. See
  9812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9813  	NullFields []string `json:"-"`
  9814  }
  9815  
  9816  func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
  9817  	type NoMethod GoogleCloudDialogflowV2Message
  9818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9819  }
  9820  
  9821  // GoogleCloudDialogflowV2MessageAnnotation: Represents the result of
  9822  // annotation for the message.
  9823  type GoogleCloudDialogflowV2MessageAnnotation struct {
  9824  	// ContainEntities: Indicates whether the text message contains entities.
  9825  	ContainEntities bool `json:"containEntities,omitempty"`
  9826  	// Parts: The collection of annotated message parts ordered by their position
  9827  	// in the message. You can recover the annotated message by concatenating
  9828  	// [AnnotatedMessagePart.text].
  9829  	Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
  9830  	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
  9831  	// unconditionally include in API requests. By default, fields with empty or
  9832  	// default values are omitted from API requests. See
  9833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9834  	// details.
  9835  	ForceSendFields []string `json:"-"`
  9836  	// NullFields is a list of field names (e.g. "ContainEntities") to include in
  9837  	// API requests with the JSON null value. By default, fields with empty values
  9838  	// are omitted from API requests. See
  9839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9840  	NullFields []string `json:"-"`
  9841  }
  9842  
  9843  func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
  9844  	type NoMethod GoogleCloudDialogflowV2MessageAnnotation
  9845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9846  }
  9847  
  9848  // GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the contents
  9849  // of the original request that was passed to the `[Streaming]DetectIntent`
  9850  // call.
  9851  type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
  9852  	// Payload: Optional. This field is set to the value of the
  9853  	// `QueryParameters.payload` field passed in the request. Some integrations
  9854  	// that query a Dialogflow agent may provide additional information in the
  9855  	// payload. In particular, for the Dialogflow Phone Gateway integration, this
  9856  	// field has the form: { "telephony": { "caller_id": "+18558363987" } } Note:
  9857  	// The caller ID field (`caller_id`) will be redacted for Trial Edition agents
  9858  	// and populated with the caller ID in E.164 format
  9859  	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
  9860  	Payload googleapi.RawMessage `json:"payload,omitempty"`
  9861  	// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It
  9862  	// is set by Dialogflow-owned servers.
  9863  	Source string `json:"source,omitempty"`
  9864  	// Version: Optional. The version of the protocol used for this request. This
  9865  	// field is AoG-specific.
  9866  	Version string `json:"version,omitempty"`
  9867  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
  9868  	// include in API requests. By default, fields with empty or default values are
  9869  	// omitted from API requests. See
  9870  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9871  	// details.
  9872  	ForceSendFields []string `json:"-"`
  9873  	// NullFields is a list of field names (e.g. "Payload") to include in API
  9874  	// requests with the JSON null value. By default, fields with empty values are
  9875  	// omitted from API requests. See
  9876  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9877  	NullFields []string `json:"-"`
  9878  }
  9879  
  9880  func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
  9881  	type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
  9882  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9883  }
  9884  
  9885  // GoogleCloudDialogflowV2QueryResult: Represents the result of conversational
  9886  // query or event processing.
  9887  type GoogleCloudDialogflowV2QueryResult struct {
  9888  	// Action: The action name from the matched intent.
  9889  	Action string `json:"action,omitempty"`
  9890  	// AllRequiredParamsPresent: This field is set to: - `false` if the matched
  9891  	// intent has required parameters and not all of the required parameter values
  9892  	// have been collected. - `true` if all required parameter values have been
  9893  	// collected, or if the matched intent doesn't contain any required parameters.
  9894  	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
  9895  	// CancelsSlotFilling: Indicates whether the conversational query triggers a
  9896  	// cancellation for slot filling. For more information, see the cancel slot
  9897  	// filling documentation
  9898  	// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
  9899  	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
  9900  	// DiagnosticInfo: Free-form diagnostic information for the associated detect
  9901  	// intent request. The fields of this data can change without notice, so you
  9902  	// should not write code that depends on its structure. The data may contain: -
  9903  	// webhook call latency - webhook errors
  9904  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
  9905  	// FulfillmentMessages: The collection of rich messages to present to the user.
  9906  	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
  9907  	// FulfillmentText: The text to be pronounced to the user or shown on the
  9908  	// screen. Note: This is a legacy field, `fulfillment_messages` should be
  9909  	// preferred.
  9910  	FulfillmentText string `json:"fulfillmentText,omitempty"`
  9911  	// Intent: The intent that matched the conversational query. Some, not all
  9912  	// fields are filled in this message, including but not limited to: `name`,
  9913  	// `display_name`, `end_interaction` and `is_fallback`.
  9914  	Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
  9915  	// IntentDetectionConfidence: The intent detection confidence. Values range
  9916  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
  9917  	// for informational purpose only and is only used to help match the best
  9918  	// intent within the classification threshold. This value may change for the
  9919  	// same end-user expression at any time due to a model retraining or change in
  9920  	// implementation. If there are `multiple knowledge_answers` messages, this
  9921  	// value is set to the greatest `knowledgeAnswers.match_confidence` value in
  9922  	// the list.
  9923  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
  9924  	// LanguageCode: The language that was triggered during intent detection. See
  9925  	// Language Support
  9926  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  9927  	// the currently supported language codes.
  9928  	LanguageCode string `json:"languageCode,omitempty"`
  9929  	// OutputContexts: The collection of output contexts. If applicable,
  9930  	// `output_contexts.parameters` contains entries with name `.original`
  9931  	// containing the original parameter values before the query.
  9932  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
  9933  	// Parameters: The collection of extracted parameters. Depending on your
  9934  	// protocol or client library language, this is a map, associative array,
  9935  	// symbol table, dictionary, or JSON object composed of a collection of
  9936  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
  9937  	// name * MapValue type: If parameter's entity type is a composite entity then
  9938  	// use map, otherwise, depending on the parameter value type, it could be one
  9939  	// of string, number, boolean, null, list or map. * MapValue value: If
  9940  	// parameter's entity type is a composite entity then use map from composite
  9941  	// entity property names to property values, otherwise, use parameter value.
  9942  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
  9943  	// QueryText: The original conversational query text: - If natural language
  9944  	// text was provided as input, `query_text` contains a copy of the input. - If
  9945  	// natural language speech audio was provided as input, `query_text` contains
  9946  	// the speech recognition result. If speech recognizer produced multiple
  9947  	// alternatives, a particular one is picked. - If automatic spell correction is
  9948  	// enabled, `query_text` will contain the corrected user input.
  9949  	QueryText string `json:"queryText,omitempty"`
  9950  	// SentimentAnalysisResult: The sentiment analysis result, which depends on the
  9951  	// `sentiment_analysis_request_config` specified in the request.
  9952  	SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
  9953  	// SpeechRecognitionConfidence: The Speech recognition confidence between 0.0
  9954  	// and 1.0. A higher number indicates an estimated greater likelihood that the
  9955  	// recognized words are correct. The default of 0.0 is a sentinel value
  9956  	// indicating that confidence was not set. This field is not guaranteed to be
  9957  	// accurate or set. In particular this field isn't set for
  9958  	// StreamingDetectIntent since the streaming endpoint has separate confidence
  9959  	// estimates per portion of the audio in StreamingRecognitionResult.
  9960  	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
  9961  	// WebhookPayload: If the query was fulfilled by a webhook call, this field is
  9962  	// set to the value of the `payload` field returned in the webhook response.
  9963  	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
  9964  	// WebhookSource: If the query was fulfilled by a webhook call, this field is
  9965  	// set to the value of the `source` field returned in the webhook response.
  9966  	WebhookSource string `json:"webhookSource,omitempty"`
  9967  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  9968  	// include in API requests. By default, fields with empty or default values are
  9969  	// omitted from API requests. See
  9970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9971  	// details.
  9972  	ForceSendFields []string `json:"-"`
  9973  	// NullFields is a list of field names (e.g. "Action") to include in API
  9974  	// requests with the JSON null value. By default, fields with empty values are
  9975  	// omitted from API requests. See
  9976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9977  	NullFields []string `json:"-"`
  9978  }
  9979  
  9980  func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
  9981  	type NoMethod GoogleCloudDialogflowV2QueryResult
  9982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9983  }
  9984  
  9985  func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
  9986  	type NoMethod GoogleCloudDialogflowV2QueryResult
  9987  	var s1 struct {
  9988  		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
  9989  		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
  9990  		*NoMethod
  9991  	}
  9992  	s1.NoMethod = (*NoMethod)(s)
  9993  	if err := json.Unmarshal(data, &s1); err != nil {
  9994  		return err
  9995  	}
  9996  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
  9997  	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
  9998  	return nil
  9999  }
 10000  
 10001  // GoogleCloudDialogflowV2Sentiment: The sentiment, such as positive/negative
 10002  // feeling or association, for a unit of analysis, such as the query text. See:
 10003  // https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
 10004  // for how to interpret the result.
 10005  type GoogleCloudDialogflowV2Sentiment struct {
 10006  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 10007  	// the absolute magnitude of sentiment, regardless of score (positive or
 10008  	// negative).
 10009  	Magnitude float64 `json:"magnitude,omitempty"`
 10010  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 10011  	// sentiment).
 10012  	Score float64 `json:"score,omitempty"`
 10013  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 10014  	// unconditionally include in API requests. By default, fields with empty or
 10015  	// default values are omitted from API requests. See
 10016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10017  	// details.
 10018  	ForceSendFields []string `json:"-"`
 10019  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 10020  	// requests with the JSON null value. By default, fields with empty values are
 10021  	// omitted from API requests. See
 10022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10023  	NullFields []string `json:"-"`
 10024  }
 10025  
 10026  func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
 10027  	type NoMethod GoogleCloudDialogflowV2Sentiment
 10028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10029  }
 10030  
 10031  func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
 10032  	type NoMethod GoogleCloudDialogflowV2Sentiment
 10033  	var s1 struct {
 10034  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 10035  		Score     gensupport.JSONFloat64 `json:"score"`
 10036  		*NoMethod
 10037  	}
 10038  	s1.NoMethod = (*NoMethod)(s)
 10039  	if err := json.Unmarshal(data, &s1); err != nil {
 10040  		return err
 10041  	}
 10042  	s.Magnitude = float64(s1.Magnitude)
 10043  	s.Score = float64(s1.Score)
 10044  	return nil
 10045  }
 10046  
 10047  // GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentiment
 10048  // analysis. Sentiment analysis inspects user input and identifies the
 10049  // prevailing subjective opinion, especially to determine a user's attitude as
 10050  // positive, negative, or neutral. For Participants.DetectIntent, it needs to
 10051  // be configured in DetectIntentRequest.query_params. For
 10052  // Participants.StreamingDetectIntent, it needs to be configured in
 10053  // StreamingDetectIntentRequest.query_params. And for
 10054  // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it
 10055  // needs to be configured in ConversationProfile.human_agent_assistant_config
 10056  type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
 10057  	// QueryTextSentiment: The sentiment analysis result for `query_text`.
 10058  	QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
 10059  	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to
 10060  	// unconditionally include in API requests. By default, fields with empty or
 10061  	// default values are omitted from API requests. See
 10062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10063  	// details.
 10064  	ForceSendFields []string `json:"-"`
 10065  	// NullFields is a list of field names (e.g. "QueryTextSentiment") to include
 10066  	// in API requests with the JSON null value. By default, fields with empty
 10067  	// values are omitted from API requests. See
 10068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10069  	NullFields []string `json:"-"`
 10070  }
 10071  
 10072  func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 10073  	type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
 10074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10075  }
 10076  
 10077  // GoogleCloudDialogflowV2SessionEntityType: A session represents a
 10078  // conversation between a Dialogflow agent and an end-user. You can create
 10079  // special entities, called session entities, during a session. Session
 10080  // entities can extend or replace custom entity types and only exist during the
 10081  // session that they were created for. All session data, including session
 10082  // entities, is stored by Dialogflow for 20 minutes. For more information, see
 10083  // the session entity guide
 10084  // (https://cloud.google.com/dialogflow/docs/entities-session).
 10085  type GoogleCloudDialogflowV2SessionEntityType struct {
 10086  	// Entities: Required. The collection of entities associated with this session
 10087  	// entity type.
 10088  	Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
 10089  	// EntityOverrideMode: Required. Indicates whether the additional data should
 10090  	// override or supplement the custom entity type definition.
 10091  	//
 10092  	// Possible values:
 10093  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 10094  	// never used.
 10095  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 10096  	// overrides the collection of entities in the corresponding custom entity
 10097  	// type.
 10098  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 10099  	// extends the collection of entities in the corresponding custom entity type.
 10100  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 10101  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 10102  	// `UpdateSessionEntityType` only return the additional entities added in this
 10103  	// session entity type. If you want to get the supplemented list, please call
 10104  	// EntityTypes.GetEntityType on the custom entity type and merge.
 10105  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 10106  	// Name: Required. The unique identifier of this session entity type. Format:
 10107  	// `projects//agent/sessions//entityTypes/`, or
 10108  	// `projects//agent/environments//users//sessions//entityTypes/`. If
 10109  	// `Environment ID` is not specified, we assume default 'draft' environment. If
 10110  	// `User ID` is not specified, we assume default '-' user. `` must be the
 10111  	// display name of an existing entity type in the same agent that will be
 10112  	// overridden or supplemented.
 10113  	Name string `json:"name,omitempty"`
 10114  	// ForceSendFields is a list of field names (e.g. "Entities") to
 10115  	// unconditionally include in API requests. By default, fields with empty or
 10116  	// default values are omitted from API requests. See
 10117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10118  	// details.
 10119  	ForceSendFields []string `json:"-"`
 10120  	// NullFields is a list of field names (e.g. "Entities") to include in API
 10121  	// requests with the JSON null value. By default, fields with empty values are
 10122  	// omitted from API requests. See
 10123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10124  	NullFields []string `json:"-"`
 10125  }
 10126  
 10127  func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
 10128  	type NoMethod GoogleCloudDialogflowV2SessionEntityType
 10129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10130  }
 10131  
 10132  // GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata: Metadata
 10133  // for a ConversationProfile.SetSuggestionFeatureConfig operation.
 10134  type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
 10135  	// ConversationProfile: The resource name of the conversation profile. Format:
 10136  	// `projects//locations//conversationProfiles/`
 10137  	ConversationProfile string `json:"conversationProfile,omitempty"`
 10138  	// CreateTime: Timestamp whe the request was created. The time is measured on
 10139  	// server side.
 10140  	CreateTime string `json:"createTime,omitempty"`
 10141  	// ParticipantRole: Required. The participant role to add or update the
 10142  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 10143  	//
 10144  	// Possible values:
 10145  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 10146  	//   "HUMAN_AGENT" - Participant is a human agent.
 10147  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 10148  	// Dialogflow agent.
 10149  	//   "END_USER" - Participant is an end user that has called or chatted with
 10150  	// Dialogflow services.
 10151  	ParticipantRole string `json:"participantRole,omitempty"`
 10152  	// SuggestionFeatureType: Required. The type of the suggestion feature to add
 10153  	// or update.
 10154  	//
 10155  	// Possible values:
 10156  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 10157  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 10158  	//   "FAQ" - Run FAQ model for chat.
 10159  	//   "SMART_REPLY" - Run smart reply model for chat.
 10160  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 10161  	// text generated query.
 10162  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 10163  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 10164  	// unconditionally include in API requests. By default, fields with empty or
 10165  	// default values are omitted from API requests. See
 10166  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10167  	// details.
 10168  	ForceSendFields []string `json:"-"`
 10169  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 10170  	// in API requests with the JSON null value. By default, fields with empty
 10171  	// values are omitted from API requests. See
 10172  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10173  	NullFields []string `json:"-"`
 10174  }
 10175  
 10176  func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 10177  	type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
 10178  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10179  }
 10180  
 10181  // GoogleCloudDialogflowV2SmartReplyAnswer: Represents a smart reply answer.
 10182  type GoogleCloudDialogflowV2SmartReplyAnswer struct {
 10183  	// AnswerRecord: The name of answer record, in the format of
 10184  	// "projects//locations//answerRecords/"
 10185  	AnswerRecord string `json:"answerRecord,omitempty"`
 10186  	// Confidence: Smart reply confidence. The system's confidence score that this
 10187  	// reply is a good match for this conversation, as a value from 0.0 (completely
 10188  	// uncertain) to 1.0 (completely certain).
 10189  	Confidence float64 `json:"confidence,omitempty"`
 10190  	// Reply: The content of the reply.
 10191  	Reply string `json:"reply,omitempty"`
 10192  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 10193  	// unconditionally include in API requests. By default, fields with empty or
 10194  	// default values are omitted from API requests. See
 10195  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10196  	// details.
 10197  	ForceSendFields []string `json:"-"`
 10198  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 10199  	// requests with the JSON null value. By default, fields with empty values are
 10200  	// omitted from API requests. See
 10201  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10202  	NullFields []string `json:"-"`
 10203  }
 10204  
 10205  func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
 10206  	type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
 10207  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10208  }
 10209  
 10210  func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
 10211  	type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
 10212  	var s1 struct {
 10213  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 10214  		*NoMethod
 10215  	}
 10216  	s1.NoMethod = (*NoMethod)(s)
 10217  	if err := json.Unmarshal(data, &s1); err != nil {
 10218  		return err
 10219  	}
 10220  	s.Confidence = float64(s1.Confidence)
 10221  	return nil
 10222  }
 10223  
 10224  // GoogleCloudDialogflowV2SmartReplyModelMetadata: Metadata for smart reply
 10225  // models.
 10226  type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
 10227  	// TrainingModelType: Optional. Type of the smart reply model. If not provided,
 10228  	// model_type is used.
 10229  	//
 10230  	// Possible values:
 10231  	//   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.
 10232  	//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder
 10233  	// model.
 10234  	//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.
 10235  	TrainingModelType string `json:"trainingModelType,omitempty"`
 10236  	// ForceSendFields is a list of field names (e.g. "TrainingModelType") 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. "TrainingModelType") to include in
 10243  	// API requests with the JSON null value. By default, fields with empty values
 10244  	// are 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 *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
 10250  	type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
 10251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10252  }
 10253  
 10254  // GoogleCloudDialogflowV2SuggestArticlesResponse: The response message for
 10255  // Participants.SuggestArticles.
 10256  type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
 10257  	// ArticleAnswers: Articles ordered by score in descending order.
 10258  	ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
 10259  	// ContextSize: Number of messages prior to and including latest_message to
 10260  	// compile the suggestion. It may be smaller than the
 10261  	// SuggestArticlesRequest.context_size field in the request if there aren't
 10262  	// that many messages in the conversation.
 10263  	ContextSize int64 `json:"contextSize,omitempty"`
 10264  	// LatestMessage: The name of the latest conversation message used to compile
 10265  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 10266  	LatestMessage string `json:"latestMessage,omitempty"`
 10267  	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
 10268  	// unconditionally include in API requests. By default, fields with empty or
 10269  	// default values are omitted from API requests. See
 10270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10271  	// details.
 10272  	ForceSendFields []string `json:"-"`
 10273  	// NullFields is a list of field names (e.g. "ArticleAnswers") to include in
 10274  	// API requests with the JSON null value. By default, fields with empty values
 10275  	// are omitted from API requests. See
 10276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10277  	NullFields []string `json:"-"`
 10278  }
 10279  
 10280  func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
 10281  	type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
 10282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10283  }
 10284  
 10285  // GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message for
 10286  // Participants.SuggestFaqAnswers.
 10287  type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
 10288  	// ContextSize: Number of messages prior to and including latest_message to
 10289  	// compile the suggestion. It may be smaller than the
 10290  	// SuggestFaqAnswersRequest.context_size field in the request if there aren't
 10291  	// that many messages in the conversation.
 10292  	ContextSize int64 `json:"contextSize,omitempty"`
 10293  	// FaqAnswers: Answers extracted from FAQ documents.
 10294  	FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
 10295  	// LatestMessage: The name of the latest conversation message used to compile
 10296  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 10297  	LatestMessage string `json:"latestMessage,omitempty"`
 10298  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 10299  	// unconditionally include in API requests. By default, fields with empty or
 10300  	// default values are omitted from API requests. See
 10301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10302  	// details.
 10303  	ForceSendFields []string `json:"-"`
 10304  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 10305  	// requests with the JSON null value. By default, fields with empty values are
 10306  	// omitted from API requests. See
 10307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10308  	NullFields []string `json:"-"`
 10309  }
 10310  
 10311  func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
 10312  	type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
 10313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10314  }
 10315  
 10316  // GoogleCloudDialogflowV2SuggestSmartRepliesResponse: The response message for
 10317  // Participants.SuggestSmartReplies.
 10318  type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
 10319  	// ContextSize: Number of messages prior to and including latest_message to
 10320  	// compile the suggestion. It may be smaller than the
 10321  	// SuggestSmartRepliesRequest.context_size field in the request if there aren't
 10322  	// that many messages in the conversation.
 10323  	ContextSize int64 `json:"contextSize,omitempty"`
 10324  	// LatestMessage: The name of the latest conversation message used to compile
 10325  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 10326  	LatestMessage string `json:"latestMessage,omitempty"`
 10327  	// SmartReplyAnswers: Output only. Multiple reply options provided by smart
 10328  	// reply service. The order is based on the rank of the model prediction. The
 10329  	// maximum number of the returned replies is set in SmartReplyConfig.
 10330  	SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
 10331  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 10332  	// unconditionally include in API requests. By default, fields with empty or
 10333  	// default values are omitted from API requests. See
 10334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10335  	// details.
 10336  	ForceSendFields []string `json:"-"`
 10337  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 10338  	// requests with the JSON null value. By default, fields with empty values are
 10339  	// omitted from API requests. See
 10340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10341  	NullFields []string `json:"-"`
 10342  }
 10343  
 10344  func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
 10345  	type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
 10346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10347  }
 10348  
 10349  // GoogleCloudDialogflowV2SuggestionResult: One response of different type of
 10350  // suggestion response which is used in the response of
 10351  // Participants.AnalyzeContent and Participants.AnalyzeContent, as well as
 10352  // HumanAgentAssistantEvent.
 10353  type GoogleCloudDialogflowV2SuggestionResult struct {
 10354  	// Error: Error status if the request failed.
 10355  	Error *GoogleRpcStatus `json:"error,omitempty"`
 10356  	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
 10357  	// ARTICLE_SUGGESTION.
 10358  	SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
 10359  	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for
 10360  	// FAQ_ANSWER.
 10361  	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
 10362  	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for
 10363  	// SMART_REPLY.
 10364  	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
 10365  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 10366  	// include in API requests. By default, fields with empty or default values are
 10367  	// omitted from API requests. See
 10368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10369  	// details.
 10370  	ForceSendFields []string `json:"-"`
 10371  	// NullFields is a list of field names (e.g. "Error") to include in API
 10372  	// requests with the JSON null value. By default, fields with empty values are
 10373  	// omitted from API requests. See
 10374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10375  	NullFields []string `json:"-"`
 10376  }
 10377  
 10378  func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
 10379  	type NoMethod GoogleCloudDialogflowV2SuggestionResult
 10380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10381  }
 10382  
 10383  // GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata: Metadata
 10384  // for a ConversationModels.UndeployConversationModel operation.
 10385  type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
 10386  	// ConversationModel: The resource name of the conversation model. Format:
 10387  	// `projects//conversationModels/`
 10388  	ConversationModel string `json:"conversationModel,omitempty"`
 10389  	// CreateTime: Timestamp when the request to undeploy conversation model was
 10390  	// submitted. The time is measured on server side.
 10391  	CreateTime string `json:"createTime,omitempty"`
 10392  	// ForceSendFields is a list of field names (e.g. "ConversationModel") to
 10393  	// unconditionally include in API requests. By default, fields with empty or
 10394  	// default values are omitted from API requests. See
 10395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10396  	// details.
 10397  	ForceSendFields []string `json:"-"`
 10398  	// NullFields is a list of field names (e.g. "ConversationModel") to include in
 10399  	// API requests with the JSON null value. By default, fields with empty values
 10400  	// are omitted from API requests. See
 10401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10402  	NullFields []string `json:"-"`
 10403  }
 10404  
 10405  func (s *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
 10406  	type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
 10407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10408  }
 10409  
 10410  // GoogleCloudDialogflowV2WebhookRequest: The request message for a webhook
 10411  // call.
 10412  type GoogleCloudDialogflowV2WebhookRequest struct {
 10413  	// OriginalDetectIntentRequest: Optional. The contents of the original request
 10414  	// that was passed to `[Streaming]DetectIntent` call.
 10415  	OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
 10416  	// QueryResult: The result of the conversational query or event processing.
 10417  	// Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
 10418  	QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
 10419  	// ResponseId: The unique identifier of the response. Contains the same value
 10420  	// as `[Streaming]DetectIntentResponse.response_id`.
 10421  	ResponseId string `json:"responseId,omitempty"`
 10422  	// Session: The unique identifier of detectIntent request session. Can be used
 10423  	// to identify end-user inside webhook implementation. Format:
 10424  	// `projects//agent/sessions/`, or
 10425  	// `projects//agent/environments//users//sessions/`.
 10426  	Session string `json:"session,omitempty"`
 10427  	// ForceSendFields is a list of field names (e.g.
 10428  	// "OriginalDetectIntentRequest") to unconditionally include in API requests.
 10429  	// By default, fields with empty or default values are omitted from API
 10430  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 10431  	// for more details.
 10432  	ForceSendFields []string `json:"-"`
 10433  	// NullFields is a list of field names (e.g. "OriginalDetectIntentRequest") to
 10434  	// include in API requests with the JSON null value. By default, fields with
 10435  	// empty values are omitted from API requests. See
 10436  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10437  	NullFields []string `json:"-"`
 10438  }
 10439  
 10440  func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
 10441  	type NoMethod GoogleCloudDialogflowV2WebhookRequest
 10442  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10443  }
 10444  
 10445  // GoogleCloudDialogflowV2WebhookResponse: The response message for a webhook
 10446  // call. This response is validated by the Dialogflow server. If validation
 10447  // fails, an error will be returned in the QueryResult.diagnostic_info field.
 10448  // Setting JSON fields to an empty value with the wrong type is a common error.
 10449  // To avoid this error: - Use "" for empty strings - Use `{}` or `null` for
 10450  // empty objects - Use `[]` or `null` for empty arrays For more information,
 10451  // see the Protocol Buffers Language Guide
 10452  // (https://developers.google.com/protocol-buffers/docs/proto3#json).
 10453  type GoogleCloudDialogflowV2WebhookResponse struct {
 10454  	// FollowupEventInput: Optional. Invokes the supplied events. When this field
 10455  	// is set, Dialogflow ignores the `fulfillment_text`, `fulfillment_messages`,
 10456  	// and `payload` fields.
 10457  	FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
 10458  	// FulfillmentMessages: Optional. The rich response messages intended for the
 10459  	// end-user. When provided, Dialogflow uses this field to populate
 10460  	// QueryResult.fulfillment_messages sent to the integration or API caller.
 10461  	FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
 10462  	// FulfillmentText: Optional. The text response message intended for the
 10463  	// end-user. It is recommended to use `fulfillment_messages.text.text[0]`
 10464  	// instead. When provided, Dialogflow uses this field to populate
 10465  	// QueryResult.fulfillment_text sent to the integration or API caller.
 10466  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 10467  	// OutputContexts: Optional. The collection of output contexts that will
 10468  	// overwrite currently active contexts for the session and reset their
 10469  	// lifespans. When provided, Dialogflow uses this field to populate
 10470  	// QueryResult.output_contexts sent to the integration or API caller.
 10471  	OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
 10472  	// Payload: Optional. This field can be used to pass custom data from your
 10473  	// webhook to the integration or API caller. Arbitrary JSON objects are
 10474  	// supported. When provided, Dialogflow uses this field to populate
 10475  	// QueryResult.webhook_payload sent to the integration or API caller. This
 10476  	// field is also used by the Google Assistant integration
 10477  	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
 10478  	// response messages. See the format definition at Google Assistant Dialogflow
 10479  	// webhook format
 10480  	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
 10481  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 10482  	// SessionEntityTypes: Optional. Additional session entity types to replace or
 10483  	// extend developer entity types with. The entity synonyms apply to all
 10484  	// languages and persist for the session. Setting this data from a webhook
 10485  	// overwrites the session entity types that have been set using `detectIntent`,
 10486  	// `streamingDetectIntent` or SessionEntityType management methods.
 10487  	SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
 10488  	// Source: Optional. A custom field used to identify the webhook source.
 10489  	// Arbitrary strings are supported. When provided, Dialogflow uses this field
 10490  	// to populate QueryResult.webhook_source sent to the integration or API
 10491  	// caller.
 10492  	Source string `json:"source,omitempty"`
 10493  	// ForceSendFields is a list of field names (e.g. "FollowupEventInput") to
 10494  	// unconditionally include in API requests. By default, fields with empty or
 10495  	// default values are omitted from API requests. See
 10496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10497  	// details.
 10498  	ForceSendFields []string `json:"-"`
 10499  	// NullFields is a list of field names (e.g. "FollowupEventInput") to include
 10500  	// in API requests with the JSON null value. By default, fields with empty
 10501  	// values are omitted from API requests. See
 10502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10503  	NullFields []string `json:"-"`
 10504  }
 10505  
 10506  func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
 10507  	type NoMethod GoogleCloudDialogflowV2WebhookResponse
 10508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10509  }
 10510  
 10511  // GoogleCloudDialogflowV2beta1Agent: A Dialogflow agent is a virtual agent
 10512  // that handles conversations with your end-users. It is a natural language
 10513  // understanding module that understands the nuances of human language.
 10514  // Dialogflow translates end-user text or audio during a conversation to
 10515  // structured data that your apps and services can understand. You design and
 10516  // build a Dialogflow agent to handle the types of conversations required for
 10517  // your system. For more information about agents, see the Agent guide
 10518  // (https://cloud.google.com/dialogflow/docs/agents-overview).
 10519  type GoogleCloudDialogflowV2beta1Agent struct {
 10520  	// ApiVersion: Optional. API version displayed in Dialogflow console. If not
 10521  	// specified, V2 API is assumed. Clients are free to query different service
 10522  	// endpoints for different API versions. However, bots connectors and webhook
 10523  	// calls will follow the specified API version.
 10524  	//
 10525  	// Possible values:
 10526  	//   "API_VERSION_UNSPECIFIED" - Not specified.
 10527  	//   "API_VERSION_V1" - Legacy V1 API.
 10528  	//   "API_VERSION_V2" - V2 API.
 10529  	//   "API_VERSION_V2_BETA_1" - V2beta1 API.
 10530  	ApiVersion string `json:"apiVersion,omitempty"`
 10531  	// AvatarUri: Optional. The URI of the agent's avatar. Avatars are used
 10532  	// throughout the Dialogflow console and in the self-hosted Web Demo
 10533  	// (https://cloud.google.com/dialogflow/docs/integrations/web-demo)
 10534  	// integration.
 10535  	AvatarUri string `json:"avatarUri,omitempty"`
 10536  	// ClassificationThreshold: Optional. To filter out false positive results and
 10537  	// still get variety in matched natural language inputs for your agent, you can
 10538  	// tune the machine learning classification threshold. If the returned score
 10539  	// value is less than the threshold value, then a fallback intent will be
 10540  	// triggered or, if there are no fallback intents defined, no intent will be
 10541  	// triggered. The score values range from 0.0 (completely uncertain) to 1.0
 10542  	// (completely certain). If set to 0.0, the default of 0.3 is used.
 10543  	ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
 10544  	// DefaultLanguageCode: Required. The default language of the agent as a
 10545  	// language tag. See Language Support
 10546  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 10547  	// the currently supported language codes. This field cannot be set by the
 10548  	// `Update` method.
 10549  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
 10550  	// Description: Optional. The description of this agent. The maximum length is
 10551  	// 500 characters. If exceeded, the request is rejected.
 10552  	Description string `json:"description,omitempty"`
 10553  	// DisplayName: Required. The name of this agent.
 10554  	DisplayName string `json:"displayName,omitempty"`
 10555  	// EnableLogging: Optional. Determines whether this agent should log
 10556  	// conversation queries.
 10557  	EnableLogging bool `json:"enableLogging,omitempty"`
 10558  	// MatchMode: Optional. Determines how intents are detected from user queries.
 10559  	//
 10560  	// Possible values:
 10561  	//   "MATCH_MODE_UNSPECIFIED" - Not specified.
 10562  	//   "MATCH_MODE_HYBRID" - Best for agents with a small number of examples in
 10563  	// intents and/or wide use of templates syntax and composite entities.
 10564  	//   "MATCH_MODE_ML_ONLY" - Can be used for agents with a large number of
 10565  	// examples in intents, especially the ones using @sys.any or very large custom
 10566  	// entities.
 10567  	MatchMode string `json:"matchMode,omitempty"`
 10568  	// Parent: Required. The project of this agent. Format: `projects/` or
 10569  	// `projects//locations/`
 10570  	Parent string `json:"parent,omitempty"`
 10571  	// SupportedLanguageCodes: Optional. The list of all languages supported by
 10572  	// this agent (except for the `default_language_code`).
 10573  	SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
 10574  	// Tier: Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
 10575  	//
 10576  	// Possible values:
 10577  	//   "TIER_UNSPECIFIED" - Not specified. This value should never be used.
 10578  	//   "TIER_STANDARD" - Trial Edition, previously known as Standard Edition.
 10579  	//   "TIER_ENTERPRISE" - Essentials Edition, previously known as Enterprise
 10580  	// Essential Edition.
 10581  	//   "TIER_ENTERPRISE_PLUS" - Essentials Edition (same as TIER_ENTERPRISE),
 10582  	// previously known as Enterprise Plus Edition.
 10583  	Tier string `json:"tier,omitempty"`
 10584  	// TimeZone: Required. The time zone of this agent from the time zone database
 10585  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
 10586  	TimeZone string `json:"timeZone,omitempty"`
 10587  
 10588  	// ServerResponse contains the HTTP response code and headers from the server.
 10589  	googleapi.ServerResponse `json:"-"`
 10590  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
 10591  	// unconditionally include in API requests. By default, fields with empty or
 10592  	// default values are omitted from API requests. See
 10593  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10594  	// details.
 10595  	ForceSendFields []string `json:"-"`
 10596  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
 10597  	// requests with the JSON null value. By default, fields with empty values are
 10598  	// omitted from API requests. See
 10599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10600  	NullFields []string `json:"-"`
 10601  }
 10602  
 10603  func (s *GoogleCloudDialogflowV2beta1Agent) MarshalJSON() ([]byte, error) {
 10604  	type NoMethod GoogleCloudDialogflowV2beta1Agent
 10605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10606  }
 10607  
 10608  func (s *GoogleCloudDialogflowV2beta1Agent) UnmarshalJSON(data []byte) error {
 10609  	type NoMethod GoogleCloudDialogflowV2beta1Agent
 10610  	var s1 struct {
 10611  		ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
 10612  		*NoMethod
 10613  	}
 10614  	s1.NoMethod = (*NoMethod)(s)
 10615  	if err := json.Unmarshal(data, &s1); err != nil {
 10616  		return err
 10617  	}
 10618  	s.ClassificationThreshold = float64(s1.ClassificationThreshold)
 10619  	return nil
 10620  }
 10621  
 10622  // GoogleCloudDialogflowV2beta1AgentAssistantFeedback: Detail feedback of Agent
 10623  // Assistant result.
 10624  type GoogleCloudDialogflowV2beta1AgentAssistantFeedback struct {
 10625  	// AnswerRelevance: Optional. Whether or not the suggested answer is relevant.
 10626  	// For example: * Query: "Can I change my mailing address?" * Suggested
 10627  	// document says: "Items must be returned/exchanged within 60 days of the
 10628  	// purchase date." * answer_relevance: AnswerRelevance.IRRELEVANT
 10629  	//
 10630  	// Possible values:
 10631  	//   "ANSWER_RELEVANCE_UNSPECIFIED" - Answer relevance unspecified.
 10632  	//   "IRRELEVANT" - Answer is irrelevant to query.
 10633  	//   "RELEVANT" - Answer is relevant to query.
 10634  	AnswerRelevance string `json:"answerRelevance,omitempty"`
 10635  	// DocumentCorrectness: Optional. Whether or not the information in the
 10636  	// document is correct. For example: * Query: "Can I return the package in 2
 10637  	// days once received?" * Suggested document says: "Items must be
 10638  	// returned/exchanged within 60 days of the purchase date." * Ground truth: "No
 10639  	// return or exchange is allowed." * [document_correctness]: INCORRECT
 10640  	//
 10641  	// Possible values:
 10642  	//   "DOCUMENT_CORRECTNESS_UNSPECIFIED" - Document correctness unspecified.
 10643  	//   "INCORRECT" - Information in document is incorrect.
 10644  	//   "CORRECT" - Information in document is correct.
 10645  	DocumentCorrectness string `json:"documentCorrectness,omitempty"`
 10646  	// DocumentEfficiency: Optional. Whether or not the suggested document is
 10647  	// efficient. For example, if the document is poorly written, hard to
 10648  	// understand, hard to use or too long to find useful information,
 10649  	// document_efficiency is DocumentEfficiency.INEFFICIENT.
 10650  	//
 10651  	// Possible values:
 10652  	//   "DOCUMENT_EFFICIENCY_UNSPECIFIED" - Document efficiency unspecified.
 10653  	//   "INEFFICIENT" - Document is inefficient.
 10654  	//   "EFFICIENT" - Document is efficient.
 10655  	DocumentEfficiency string `json:"documentEfficiency,omitempty"`
 10656  	// KnowledgeSearchFeedback: Optional. Feedback for knowledge search.
 10657  	KnowledgeSearchFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback `json:"knowledgeSearchFeedback,omitempty"`
 10658  	// SummarizationFeedback: Feedback for conversation summarization.
 10659  	SummarizationFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`
 10660  	// ForceSendFields is a list of field names (e.g. "AnswerRelevance") to
 10661  	// unconditionally include in API requests. By default, fields with empty or
 10662  	// default values are omitted from API requests. See
 10663  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10664  	// details.
 10665  	ForceSendFields []string `json:"-"`
 10666  	// NullFields is a list of field names (e.g. "AnswerRelevance") to include in
 10667  	// API requests with the JSON null value. By default, fields with empty values
 10668  	// are omitted from API requests. See
 10669  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10670  	NullFields []string `json:"-"`
 10671  }
 10672  
 10673  func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedback) MarshalJSON() ([]byte, error) {
 10674  	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedback
 10675  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10676  }
 10677  
 10678  // GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback:
 10679  // Feedback for knowledge search.
 10680  type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback struct {
 10681  	// AnswerCopied: Whether the answer was copied by the human agent or not. If
 10682  	// the value is set to be true, AnswerFeedback.clicked will be updated to be
 10683  	// true.
 10684  	AnswerCopied bool `json:"answerCopied,omitempty"`
 10685  	// ClickedUris: The URIs clicked by the human agent. The value is appended for
 10686  	// each UpdateAnswerRecordRequest. If the value is not empty,
 10687  	// AnswerFeedback.clicked will be updated to be true.
 10688  	ClickedUris []string `json:"clickedUris,omitempty"`
 10689  	// ForceSendFields is a list of field names (e.g. "AnswerCopied") to
 10690  	// unconditionally include in API requests. By default, fields with empty or
 10691  	// default values are omitted from API requests. See
 10692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10693  	// details.
 10694  	ForceSendFields []string `json:"-"`
 10695  	// NullFields is a list of field names (e.g. "AnswerCopied") to include in API
 10696  	// requests with the JSON null value. By default, fields with empty values are
 10697  	// omitted from API requests. See
 10698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10699  	NullFields []string `json:"-"`
 10700  }
 10701  
 10702  func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback) MarshalJSON() ([]byte, error) {
 10703  	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
 10704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10705  }
 10706  
 10707  // GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback:
 10708  // Feedback for conversation summarization.
 10709  type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback struct {
 10710  	// StartTimestamp: Timestamp when composing of the summary starts.
 10711  	StartTimestamp string `json:"startTimestamp,omitempty"`
 10712  	// SubmitTimestamp: Timestamp when the summary was submitted.
 10713  	SubmitTimestamp string `json:"submitTimestamp,omitempty"`
 10714  	// SummaryText: Text of actual submitted summary.
 10715  	SummaryText string `json:"summaryText,omitempty"`
 10716  	// TextSections: Optional. Actual text sections of submitted summary.
 10717  	TextSections map[string]string `json:"textSections,omitempty"`
 10718  	// ForceSendFields is a list of field names (e.g. "StartTimestamp") to
 10719  	// unconditionally include in API requests. By default, fields with empty or
 10720  	// default values are omitted from API requests. See
 10721  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10722  	// details.
 10723  	ForceSendFields []string `json:"-"`
 10724  	// NullFields is a list of field names (e.g. "StartTimestamp") to include in
 10725  	// API requests with the JSON null value. By default, fields with empty values
 10726  	// are omitted from API requests. See
 10727  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10728  	NullFields []string `json:"-"`
 10729  }
 10730  
 10731  func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) {
 10732  	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
 10733  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10734  }
 10735  
 10736  // GoogleCloudDialogflowV2beta1AgentAssistantRecord: Represents a record of a
 10737  // human agent assistant answer.
 10738  type GoogleCloudDialogflowV2beta1AgentAssistantRecord struct {
 10739  	// ArticleSuggestionAnswer: Output only. The article suggestion answer.
 10740  	ArticleSuggestionAnswer *GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`
 10741  	// DialogflowAssistAnswer: Output only. The Dialogflow assist answer.
 10742  	DialogflowAssistAnswer *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswer,omitempty"`
 10743  	// FaqAnswer: Output only. The FAQ answer.
 10744  	FaqAnswer *GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswer,omitempty"`
 10745  	// ForceSendFields is a list of field names (e.g. "ArticleSuggestionAnswer") to
 10746  	// unconditionally include in API requests. By default, fields with empty or
 10747  	// default values are omitted from API requests. See
 10748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10749  	// details.
 10750  	ForceSendFields []string `json:"-"`
 10751  	// NullFields is a list of field names (e.g. "ArticleSuggestionAnswer") to
 10752  	// include in API requests with the JSON null value. By default, fields with
 10753  	// empty values are omitted from API requests. See
 10754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10755  	NullFields []string `json:"-"`
 10756  }
 10757  
 10758  func (s *GoogleCloudDialogflowV2beta1AgentAssistantRecord) MarshalJSON() ([]byte, error) {
 10759  	type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantRecord
 10760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10761  }
 10762  
 10763  // GoogleCloudDialogflowV2beta1AnalyzeContentRequest: The request message for
 10764  // Participants.AnalyzeContent.
 10765  type GoogleCloudDialogflowV2beta1AnalyzeContentRequest struct {
 10766  	// AssistQueryParams: Parameters for a human assist query.
 10767  	AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
 10768  	// AudioInput: The natural language speech audio to be processed.
 10769  	AudioInput *GoogleCloudDialogflowV2beta1AudioInput `json:"audioInput,omitempty"`
 10770  	// CxCurrentPage: The unique identifier of the CX page to override the
 10771  	// `current_page` in the session. Format:
 10772  	// `projects//locations//agents//flows//pages/`. If `cx_current_page` is
 10773  	// specified, the previous state of the session will be ignored by Dialogflow
 10774  	// CX, including the previous page and the previous session parameters. In most
 10775  	// cases, `cx_current_page` and `cx_parameters` should be configured together
 10776  	// to direct a session to a specific state. Note: this field should only be
 10777  	// used if you are connecting to a Dialogflow CX agent.
 10778  	CxCurrentPage string `json:"cxCurrentPage,omitempty"`
 10779  	// CxParameters: Additional parameters to be put into Dialogflow CX session
 10780  	// parameters. To remove a parameter from the session, clients should
 10781  	// explicitly set the parameter value to null. Note: this field should only be
 10782  	// used if you are connecting to a Dialogflow CX agent.
 10783  	CxParameters googleapi.RawMessage `json:"cxParameters,omitempty"`
 10784  	// EventInput: An input event to send to Dialogflow.
 10785  	EventInput *GoogleCloudDialogflowV2beta1EventInput `json:"eventInput,omitempty"`
 10786  	// IntentInput: The intent to be triggered on V3 agent.
 10787  	IntentInput *GoogleCloudDialogflowV2beta1IntentInput `json:"intentInput,omitempty"`
 10788  	// MessageSendTime: Optional. The send time of the message from end user or
 10789  	// human agent's perspective. It is used for identifying the same message under
 10790  	// one participant. Given two messages under the same participant: * If send
 10791  	// time are different regardless of whether the content of the messages are
 10792  	// exactly the same, the conversation will regard them as two distinct messages
 10793  	// sent by the participant. * If send time is the same regardless of whether
 10794  	// the content of the messages are exactly the same, the conversation will
 10795  	// regard them as same message, and ignore the message received later. If the
 10796  	// value is not provided, a new request will always be regarded as a new
 10797  	// message without any de-duplication.
 10798  	MessageSendTime string `json:"messageSendTime,omitempty"`
 10799  	// QueryParams: Parameters for a Dialogflow virtual-agent query.
 10800  	QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
 10801  	// ReplyAudioConfig: Speech synthesis configuration. The speech synthesis
 10802  	// settings for a virtual agent that may be configured for the associated
 10803  	// conversation profile are not used when calling AnalyzeContent. If this
 10804  	// configuration is not supplied, speech synthesis is disabled.
 10805  	ReplyAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"replyAudioConfig,omitempty"`
 10806  	// RequestId: A unique identifier for this request. Restricted to 36 ASCII
 10807  	// characters. A random UUID is recommended. This request is only idempotent if
 10808  	// a `request_id` is provided.
 10809  	RequestId string `json:"requestId,omitempty"`
 10810  	// SuggestionInput: An input representing the selection of a suggestion.
 10811  	SuggestionInput *GoogleCloudDialogflowV2beta1SuggestionInput `json:"suggestionInput,omitempty"`
 10812  	// TextInput: The natural language text to be processed.
 10813  	TextInput *GoogleCloudDialogflowV2beta1TextInput `json:"textInput,omitempty"`
 10814  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 10815  	// unconditionally include in API requests. By default, fields with empty or
 10816  	// default values are omitted from API requests. See
 10817  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10818  	// details.
 10819  	ForceSendFields []string `json:"-"`
 10820  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
 10821  	// API requests with the JSON null value. By default, fields with empty values
 10822  	// are omitted from API requests. See
 10823  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10824  	NullFields []string `json:"-"`
 10825  }
 10826  
 10827  func (s *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) MarshalJSON() ([]byte, error) {
 10828  	type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentRequest
 10829  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10830  }
 10831  
 10832  // GoogleCloudDialogflowV2beta1AnalyzeContentResponse: The response message for
 10833  // Participants.AnalyzeContent.
 10834  type GoogleCloudDialogflowV2beta1AnalyzeContentResponse struct {
 10835  	// AutomatedAgentReply: Optional. Only set if a Dialogflow automated agent has
 10836  	// responded. Note that:
 10837  	// AutomatedAgentReply.detect_intent_response.output_audio and
 10838  	// AutomatedAgentReply.detect_intent_response.output_audio_config are always
 10839  	// empty, use reply_audio instead.
 10840  	AutomatedAgentReply *GoogleCloudDialogflowV2beta1AutomatedAgentReply `json:"automatedAgentReply,omitempty"`
 10841  	// DtmfParameters: Indicates the parameters of DTMF.
 10842  	DtmfParameters *GoogleCloudDialogflowV2beta1DtmfParameters `json:"dtmfParameters,omitempty"`
 10843  	// EndUserSuggestionResults: The suggestions for end user. The order is the
 10844  	// same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
 10845  	// HumanAgentAssistantConfig.end_user_suggestion_config. Same as
 10846  	// human_agent_suggestion_results, any failure of Agent Assist features will
 10847  	// not lead to the overall failure of an AnalyzeContent API call. Instead, the
 10848  	// features will fail silently with the error field set in the corresponding
 10849  	// SuggestionResult.
 10850  	EndUserSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"endUserSuggestionResults,omitempty"`
 10851  	// HumanAgentSuggestionResults: The suggestions for most recent human agent.
 10852  	// The order is the same as
 10853  	// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
 10854  	// HumanAgentAssistantConfig.human_agent_suggestion_config. Note that any
 10855  	// failure of Agent Assist features will not lead to the overall failure of an
 10856  	// AnalyzeContent API call. Instead, the features will fail silently with the
 10857  	// error field set in the corresponding SuggestionResult.
 10858  	HumanAgentSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`
 10859  	// Message: Output only. Message analyzed by CCAI.
 10860  	Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
 10861  	// ReplyAudio: Optional. The audio data bytes encoded as specified in the
 10862  	// request. This field is set if: - `reply_audio_config` was specified in the
 10863  	// request, or - The automated agent responded with audio to play to the user.
 10864  	// In such case, `reply_audio.config` contains settings used to synthesize the
 10865  	// speech. In some scenarios, multiple output audio fields may be present in
 10866  	// the response structure. In these cases, only the top-most-level audio output
 10867  	// has content.
 10868  	ReplyAudio *GoogleCloudDialogflowV2beta1OutputAudio `json:"replyAudio,omitempty"`
 10869  	// ReplyText: Output only. The output text content. This field is set if the
 10870  	// automated agent responded with text to show to the user.
 10871  	ReplyText string `json:"replyText,omitempty"`
 10872  
 10873  	// ServerResponse contains the HTTP response code and headers from the server.
 10874  	googleapi.ServerResponse `json:"-"`
 10875  	// ForceSendFields is a list of field names (e.g. "AutomatedAgentReply") to
 10876  	// unconditionally include in API requests. By default, fields with empty or
 10877  	// default values are omitted from API requests. See
 10878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10879  	// details.
 10880  	ForceSendFields []string `json:"-"`
 10881  	// NullFields is a list of field names (e.g. "AutomatedAgentReply") to include
 10882  	// in API requests with the JSON null value. By default, fields with empty
 10883  	// values are omitted from API requests. See
 10884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10885  	NullFields []string `json:"-"`
 10886  }
 10887  
 10888  func (s *GoogleCloudDialogflowV2beta1AnalyzeContentResponse) MarshalJSON() ([]byte, error) {
 10889  	type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentResponse
 10890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10891  }
 10892  
 10893  // GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part of a
 10894  // message possibly annotated with an entity. The part can be an entity or
 10895  // purely a part of the message between two entities or message start/end.
 10896  type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
 10897  	// EntityType: Optional. The Dialogflow system entity type
 10898  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 10899  	// message part. If this is empty, Dialogflow could not annotate the phrase
 10900  	// part with a system entity.
 10901  	EntityType string `json:"entityType,omitempty"`
 10902  	// FormattedValue: Optional. The Dialogflow system entity formatted value
 10903  	// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this
 10904  	// message part. For example for a system entity of type `@sys.unit-currency`,
 10905  	// this may contain: { "amount": 5, "currency": "USD" }
 10906  	FormattedValue interface{} `json:"formattedValue,omitempty"`
 10907  	// Text: Required. A part of a message possibly annotated with an entity.
 10908  	Text string `json:"text,omitempty"`
 10909  	// ForceSendFields is a list of field names (e.g. "EntityType") to
 10910  	// unconditionally include in API requests. By default, fields with empty or
 10911  	// default values are omitted from API requests. See
 10912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10913  	// details.
 10914  	ForceSendFields []string `json:"-"`
 10915  	// NullFields is a list of field names (e.g. "EntityType") to include in API
 10916  	// requests with the JSON null value. By default, fields with empty values are
 10917  	// omitted from API requests. See
 10918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10919  	NullFields []string `json:"-"`
 10920  }
 10921  
 10922  func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
 10923  	type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
 10924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10925  }
 10926  
 10927  // GoogleCloudDialogflowV2beta1AnswerFeedback: Represents feedback the customer
 10928  // has about the quality & correctness of a certain answer in a conversation.
 10929  type GoogleCloudDialogflowV2beta1AnswerFeedback struct {
 10930  	// AgentAssistantDetailFeedback: Optional. Detail feedback of agent assistant
 10931  	// suggestions.
 10932  	AgentAssistantDetailFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`
 10933  	// ClickTime: Time when the answer/item was clicked.
 10934  	ClickTime string `json:"clickTime,omitempty"`
 10935  	// Clicked: Indicates whether the answer/item was clicked by the human agent or
 10936  	// not. Default to false. For knowledge search, the answer record is considered
 10937  	// to be clicked if the answer was copied or any URI was clicked.
 10938  	Clicked bool `json:"clicked,omitempty"`
 10939  	// CorrectnessLevel: The correctness level of the specific answer.
 10940  	//
 10941  	// Possible values:
 10942  	//   "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified.
 10943  	//   "NOT_CORRECT" - Answer is totally wrong.
 10944  	//   "PARTIALLY_CORRECT" - Answer is partially correct.
 10945  	//   "FULLY_CORRECT" - Answer is fully correct.
 10946  	CorrectnessLevel string `json:"correctnessLevel,omitempty"`
 10947  	// DisplayTime: Time when the answer/item was displayed.
 10948  	DisplayTime string `json:"displayTime,omitempty"`
 10949  	// Displayed: Indicates whether the answer/item was displayed to the human
 10950  	// agent in the agent desktop UI. Default to false.
 10951  	Displayed bool `json:"displayed,omitempty"`
 10952  	// ForceSendFields is a list of field names (e.g.
 10953  	// "AgentAssistantDetailFeedback") to unconditionally include in API requests.
 10954  	// By default, fields with empty or default values are omitted from API
 10955  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 10956  	// for more details.
 10957  	ForceSendFields []string `json:"-"`
 10958  	// NullFields is a list of field names (e.g. "AgentAssistantDetailFeedback") to
 10959  	// include in API requests with the JSON null value. By default, fields with
 10960  	// empty values are omitted from API requests. See
 10961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10962  	NullFields []string `json:"-"`
 10963  }
 10964  
 10965  func (s *GoogleCloudDialogflowV2beta1AnswerFeedback) MarshalJSON() ([]byte, error) {
 10966  	type NoMethod GoogleCloudDialogflowV2beta1AnswerFeedback
 10967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10968  }
 10969  
 10970  // GoogleCloudDialogflowV2beta1AnswerRecord: Answer records are records to
 10971  // manage answer history and feedbacks for Dialogflow. Currently, answer record
 10972  // includes: - human agent assistant article suggestion - human agent assistant
 10973  // faq article It doesn't include: - `DetectIntent` intent matching -
 10974  // `DetectIntent` knowledge Answer records are not related to the conversation
 10975  // history in the Dialogflow Console. A Record is generated even when the
 10976  // end-user disables conversation history in the console. Records are created
 10977  // when there's a human agent assistant suggestion generated. A typical
 10978  // workflow for customers provide feedback to an answer is: 1. For human agent
 10979  // assistant, customers get suggestion via ListSuggestions API. Together with
 10980  // the answers, AnswerRecord.name are returned to the customers. 2. The
 10981  // customer uses the AnswerRecord.name to call the UpdateAnswerRecord method to
 10982  // send feedback about a specific answer that they believe is wrong.
 10983  type GoogleCloudDialogflowV2beta1AnswerRecord struct {
 10984  	// AgentAssistantRecord: Output only. The record for human agent assistant.
 10985  	AgentAssistantRecord *GoogleCloudDialogflowV2beta1AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`
 10986  	// AnswerFeedback: Optional. The AnswerFeedback for this record. You can set
 10987  	// this with AnswerRecords.UpdateAnswerRecord in order to give us feedback
 10988  	// about this answer.
 10989  	AnswerFeedback *GoogleCloudDialogflowV2beta1AnswerFeedback `json:"answerFeedback,omitempty"`
 10990  	// Name: The unique identifier of this answer record. Required for
 10991  	// AnswerRecords.UpdateAnswerRecord method. Format:
 10992  	// `projects//locations//answerRecords/`.
 10993  	Name string `json:"name,omitempty"`
 10994  
 10995  	// ServerResponse contains the HTTP response code and headers from the server.
 10996  	googleapi.ServerResponse `json:"-"`
 10997  	// ForceSendFields is a list of field names (e.g. "AgentAssistantRecord") to
 10998  	// unconditionally include in API requests. By default, fields with empty or
 10999  	// default values are omitted from API requests. See
 11000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11001  	// details.
 11002  	ForceSendFields []string `json:"-"`
 11003  	// NullFields is a list of field names (e.g. "AgentAssistantRecord") to include
 11004  	// in API requests with the JSON null value. By default, fields with empty
 11005  	// values are omitted from API requests. See
 11006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11007  	NullFields []string `json:"-"`
 11008  }
 11009  
 11010  func (s *GoogleCloudDialogflowV2beta1AnswerRecord) MarshalJSON() ([]byte, error) {
 11011  	type NoMethod GoogleCloudDialogflowV2beta1AnswerRecord
 11012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11013  }
 11014  
 11015  // GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.
 11016  type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
 11017  	// AnswerRecord: The name of answer record, in the format of
 11018  	// "projects//locations//answerRecords/"
 11019  	AnswerRecord string `json:"answerRecord,omitempty"`
 11020  	// Metadata: A map that contains metadata about the answer and the document
 11021  	// from which it originates.
 11022  	Metadata map[string]string `json:"metadata,omitempty"`
 11023  	// Snippets: Output only. Article snippets.
 11024  	Snippets []string `json:"snippets,omitempty"`
 11025  	// Title: The article title.
 11026  	Title string `json:"title,omitempty"`
 11027  	// Uri: The article URI.
 11028  	Uri string `json:"uri,omitempty"`
 11029  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 11030  	// unconditionally include in API requests. By default, fields with empty or
 11031  	// default values are omitted from API requests. See
 11032  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11033  	// details.
 11034  	ForceSendFields []string `json:"-"`
 11035  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 11036  	// requests with the JSON null value. By default, fields with empty values are
 11037  	// omitted from API requests. See
 11038  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11039  	NullFields []string `json:"-"`
 11040  }
 11041  
 11042  func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
 11043  	type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
 11044  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11045  }
 11046  
 11047  // GoogleCloudDialogflowV2beta1AssistQueryParameters: Represents the parameters
 11048  // of human assist query.
 11049  type GoogleCloudDialogflowV2beta1AssistQueryParameters struct {
 11050  	// DocumentsMetadataFilters: Key-value filters on the metadata of documents
 11051  	// returned by article suggestion. If specified, article suggestion only
 11052  	// returns suggested documents that match all filters in their
 11053  	// Document.metadata. Multiple values for a metadata key should be concatenated
 11054  	// by comma. For example, filters to match all documents that have 'US' or 'CA'
 11055  	// in their market metadata values and 'agent' in their user metadata values
 11056  	// will be ``` documents_metadata_filters { key: "market" value: "US,CA" }
 11057  	// documents_metadata_filters { key: "user" value: "agent" } ```
 11058  	DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
 11059  	// ForceSendFields is a list of field names (e.g. "DocumentsMetadataFilters")
 11060  	// to unconditionally include in API requests. By default, fields with empty or
 11061  	// default values are omitted from API requests. See
 11062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11063  	// details.
 11064  	ForceSendFields []string `json:"-"`
 11065  	// NullFields is a list of field names (e.g. "DocumentsMetadataFilters") to
 11066  	// include in API requests with the JSON null value. By default, fields with
 11067  	// empty values are omitted from API requests. See
 11068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11069  	NullFields []string `json:"-"`
 11070  }
 11071  
 11072  func (s *GoogleCloudDialogflowV2beta1AssistQueryParameters) MarshalJSON() ([]byte, error) {
 11073  	type NoMethod GoogleCloudDialogflowV2beta1AssistQueryParameters
 11074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11075  }
 11076  
 11077  // GoogleCloudDialogflowV2beta1AudioInput: Represents the natural language
 11078  // speech audio to be processed.
 11079  type GoogleCloudDialogflowV2beta1AudioInput struct {
 11080  	// Audio: Required. The natural language speech audio to be processed. A single
 11081  	// request can contain up to 1 minute of speech audio data. The transcribed
 11082  	// text cannot contain more than 256 bytes for virtual agent interactions.
 11083  	Audio string `json:"audio,omitempty"`
 11084  	// Config: Required. Instructs the speech recognizer how to process the speech
 11085  	// audio.
 11086  	Config *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"config,omitempty"`
 11087  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
 11088  	// include in API requests. By default, fields with empty or default values are
 11089  	// omitted from API requests. See
 11090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11091  	// details.
 11092  	ForceSendFields []string `json:"-"`
 11093  	// NullFields is a list of field names (e.g. "Audio") to include in API
 11094  	// requests with the JSON null value. By default, fields with empty values are
 11095  	// omitted from API requests. See
 11096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11097  	NullFields []string `json:"-"`
 11098  }
 11099  
 11100  func (s *GoogleCloudDialogflowV2beta1AudioInput) MarshalJSON() ([]byte, error) {
 11101  	type NoMethod GoogleCloudDialogflowV2beta1AudioInput
 11102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11103  }
 11104  
 11105  // GoogleCloudDialogflowV2beta1AutomatedAgentConfig: Defines the Automated
 11106  // Agent to connect to a conversation.
 11107  type GoogleCloudDialogflowV2beta1AutomatedAgentConfig struct {
 11108  	// Agent: Required. ID of the Dialogflow agent environment to use. This project
 11109  	// needs to either be the same project as the conversation or you need to grant
 11110  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
 11111  	// Service Agent` role in this project. - For ES agents, use format:
 11112  	// `projects//locations//agent/environments/`. If environment is not specified,
 11113  	// the default `draft` environment is used. Refer to DetectIntentRequest
 11114  	// (/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.
 11115  	// dialogflow.v2beta1.DetectIntentRequest) for more details. - For CX agents,
 11116  	// use format `projects//locations//agents//environments/`. If environment is
 11117  	// not specified, the default `draft` environment is used.
 11118  	Agent string `json:"agent,omitempty"`
 11119  	// SessionTtl: Optional. Configure lifetime of the Dialogflow session. By
 11120  	// default, a Dialogflow CX session remains active and its data is stored for
 11121  	// 30 minutes after the last request is sent for the session. This value should
 11122  	// be no longer than 1 day.
 11123  	SessionTtl string `json:"sessionTtl,omitempty"`
 11124  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
 11125  	// include in API requests. By default, fields with empty or default values are
 11126  	// omitted from API requests. See
 11127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11128  	// details.
 11129  	ForceSendFields []string `json:"-"`
 11130  	// NullFields is a list of field names (e.g. "Agent") to include in API
 11131  	// requests with the JSON null value. By default, fields with empty values are
 11132  	// omitted from API requests. See
 11133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11134  	NullFields []string `json:"-"`
 11135  }
 11136  
 11137  func (s *GoogleCloudDialogflowV2beta1AutomatedAgentConfig) MarshalJSON() ([]byte, error) {
 11138  	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentConfig
 11139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11140  }
 11141  
 11142  // GoogleCloudDialogflowV2beta1AutomatedAgentReply: Represents a response from
 11143  // an automated agent.
 11144  type GoogleCloudDialogflowV2beta1AutomatedAgentReply struct {
 11145  	// AllowCancellation: Indicates whether the partial automated agent reply is
 11146  	// interruptible when a later reply message arrives. e.g. if the agent
 11147  	// specified some music as partial response, it can be cancelled.
 11148  	AllowCancellation bool `json:"allowCancellation,omitempty"`
 11149  	// AutomatedAgentReplyType: AutomatedAgentReply type.
 11150  	//
 11151  	// Possible values:
 11152  	//   "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED" - Not specified. This should
 11153  	// never happen.
 11154  	//   "PARTIAL" - Partial reply. e.g. Aggregated responses in a `Fulfillment`
 11155  	// that enables `return_partial_response` can be returned as partial reply.
 11156  	// WARNING: partial reply is not eligible for barge-in.
 11157  	//   "FINAL" - Final reply.
 11158  	AutomatedAgentReplyType string `json:"automatedAgentReplyType,omitempty"`
 11159  	// CxCurrentPage: The unique identifier of the current Dialogflow CX
 11160  	// conversation page. Format: `projects//locations//agents//flows//pages/`.
 11161  	CxCurrentPage string `json:"cxCurrentPage,omitempty"`
 11162  	// CxSessionParameters: The collection of current Dialogflow CX agent session
 11163  	// parameters at the time of this response. Deprecated: Use `parameters`
 11164  	// instead.
 11165  	CxSessionParameters googleapi.RawMessage `json:"cxSessionParameters,omitempty"`
 11166  	// DetectIntentResponse: Response of the Dialogflow Sessions.DetectIntent call.
 11167  	DetectIntentResponse *GoogleCloudDialogflowV2beta1DetectIntentResponse `json:"detectIntentResponse,omitempty"`
 11168  	// Event: Event name if an event is triggered for the query.
 11169  	Event string `json:"event,omitempty"`
 11170  	// Intent: Name of the intent if an intent is matched for the query. For a V2
 11171  	// query, the value format is `projects//locations/ /agent/intents/`. For a V3
 11172  	// query, the value format is `projects//locations/ /agents//intents/`.
 11173  	Intent string `json:"intent,omitempty"`
 11174  	// MatchConfidence: The confidence of the match. Values range from 0.0
 11175  	// (completely uncertain) to 1.0 (completely certain). This value is for
 11176  	// informational purpose only and is only used to help match the best intent
 11177  	// within the classification threshold. This value may change for the same
 11178  	// end-user expression at any time due to a model retraining or change in
 11179  	// implementation.
 11180  	MatchConfidence float64 `json:"matchConfidence,omitempty"`
 11181  	// Parameters: The collection of current parameters at the time of this
 11182  	// response.
 11183  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 11184  	// ResponseMessages: Response messages from the automated agent.
 11185  	ResponseMessages []*GoogleCloudDialogflowV2beta1ResponseMessage `json:"responseMessages,omitempty"`
 11186  	// ForceSendFields is a list of field names (e.g. "AllowCancellation") to
 11187  	// unconditionally include in API requests. By default, fields with empty or
 11188  	// default values are omitted from API requests. See
 11189  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11190  	// details.
 11191  	ForceSendFields []string `json:"-"`
 11192  	// NullFields is a list of field names (e.g. "AllowCancellation") to include in
 11193  	// API requests with the JSON null value. By default, fields with empty values
 11194  	// are omitted from API requests. See
 11195  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11196  	NullFields []string `json:"-"`
 11197  }
 11198  
 11199  func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) MarshalJSON() ([]byte, error) {
 11200  	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
 11201  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11202  }
 11203  
 11204  func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) UnmarshalJSON(data []byte) error {
 11205  	type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
 11206  	var s1 struct {
 11207  		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
 11208  		*NoMethod
 11209  	}
 11210  	s1.NoMethod = (*NoMethod)(s)
 11211  	if err := json.Unmarshal(data, &s1); err != nil {
 11212  		return err
 11213  	}
 11214  	s.MatchConfidence = float64(s1.MatchConfidence)
 11215  	return nil
 11216  }
 11217  
 11218  // GoogleCloudDialogflowV2beta1BargeInConfig: Configuration of the barge-in
 11219  // behavior. Barge-in instructs the API to return a detected utterance at a
 11220  // proper time while the client is playing back the response audio from a
 11221  // previous request. When the client sees the utterance, it should stop the
 11222  // playback and immediately get ready for receiving the responses for the
 11223  // current request. The barge-in handling requires the client to start
 11224  // streaming audio input as soon as it starts playing back the audio from the
 11225  // previous response. The playback is modeled into two phases: * No barge-in
 11226  // phase: which goes first and during which speech detection should not be
 11227  // carried out. * Barge-in phase: which follows the no barge-in phase and
 11228  // during which the API starts speech detection and may inform the client that
 11229  // an utterance has been detected. Note that no-speech event is not expected in
 11230  // this phase. The client provides this configuration in terms of the durations
 11231  // of those two phases. The durations are measured in terms of the audio length
 11232  // from the start of the input audio. The flow goes like below: ``` --> Time
 11233  // without speech detection | utterance only | utterance or no-speech event | |
 11234  // +-------------+ | +------------+ | +---------------+ ----------+ no barge-in
 11235  // +-|-+ barge-in +-|-+ normal period +----------- +-------------+ |
 11236  // +------------+ | +---------------+ ``` No-speech event is a response with
 11237  // END_OF_UTTERANCE without any transcript following up.
 11238  type GoogleCloudDialogflowV2beta1BargeInConfig struct {
 11239  	// NoBargeInDuration: Duration that is not eligible for barge-in at the
 11240  	// beginning of the input audio.
 11241  	NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
 11242  	// TotalDuration: Total duration for the playback at the beginning of the input
 11243  	// audio.
 11244  	TotalDuration string `json:"totalDuration,omitempty"`
 11245  	// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to
 11246  	// unconditionally include in API requests. By default, fields with empty or
 11247  	// default values are omitted from API requests. See
 11248  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11249  	// details.
 11250  	ForceSendFields []string `json:"-"`
 11251  	// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in
 11252  	// API requests with the JSON null value. By default, fields with empty values
 11253  	// are omitted from API requests. See
 11254  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11255  	NullFields []string `json:"-"`
 11256  }
 11257  
 11258  func (s *GoogleCloudDialogflowV2beta1BargeInConfig) MarshalJSON() ([]byte, error) {
 11259  	type NoMethod GoogleCloudDialogflowV2beta1BargeInConfig
 11260  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11261  }
 11262  
 11263  // GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest: The request message
 11264  // for EntityTypes.BatchCreateEntities.
 11265  type GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest struct {
 11266  	// Entities: Required. The entities to create.
 11267  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 11268  	// LanguageCode: Optional. The language used to access language-specific data.
 11269  	// If not specified, the agent's default language is used. For more
 11270  	// information, see Multilingual intent and entity data
 11271  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 11272  	LanguageCode string `json:"languageCode,omitempty"`
 11273  	// ForceSendFields is a list of field names (e.g. "Entities") to
 11274  	// unconditionally include in API requests. By default, fields with empty or
 11275  	// default values are omitted from API requests. See
 11276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11277  	// details.
 11278  	ForceSendFields []string `json:"-"`
 11279  	// NullFields is a list of field names (e.g. "Entities") to include in API
 11280  	// requests with the JSON null value. By default, fields with empty values are
 11281  	// omitted from API requests. See
 11282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11283  	NullFields []string `json:"-"`
 11284  }
 11285  
 11286  func (s *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) {
 11287  	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
 11288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11289  }
 11290  
 11291  // GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest: The request message
 11292  // for Conversations.BatchCreateMessagesRequest.
 11293  type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct {
 11294  	// Requests: Required. A maximum of 300 messages can be created in a batch.
 11295  	// CreateMessageRequest.message.send_time is required. All created messages
 11296  	// will have identical Message.create_time.
 11297  	Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"`
 11298  	// ForceSendFields is a list of field names (e.g. "Requests") to
 11299  	// unconditionally include in API requests. By default, fields with empty or
 11300  	// default values are omitted from API requests. See
 11301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11302  	// details.
 11303  	ForceSendFields []string `json:"-"`
 11304  	// NullFields is a list of field names (e.g. "Requests") to include in API
 11305  	// requests with the JSON null value. By default, fields with empty values are
 11306  	// omitted from API requests. See
 11307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11308  	NullFields []string `json:"-"`
 11309  }
 11310  
 11311  func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) MarshalJSON() ([]byte, error) {
 11312  	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
 11313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11314  }
 11315  
 11316  // GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse: The request message
 11317  // for Conversations.BatchCreateMessagesResponse.
 11318  type GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse struct {
 11319  	// Messages: Messages created.
 11320  	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
 11321  
 11322  	// ServerResponse contains the HTTP response code and headers from the server.
 11323  	googleapi.ServerResponse `json:"-"`
 11324  	// ForceSendFields is a list of field names (e.g. "Messages") to
 11325  	// unconditionally include in API requests. By default, fields with empty or
 11326  	// default values are omitted from API requests. See
 11327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11328  	// details.
 11329  	ForceSendFields []string `json:"-"`
 11330  	// NullFields is a list of field names (e.g. "Messages") to include in API
 11331  	// requests with the JSON null value. By default, fields with empty values are
 11332  	// omitted from API requests. See
 11333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11334  	NullFields []string `json:"-"`
 11335  }
 11336  
 11337  func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse) MarshalJSON() ([]byte, error) {
 11338  	type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse
 11339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11340  }
 11341  
 11342  // GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest: The request message
 11343  // for EntityTypes.BatchDeleteEntities.
 11344  type GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest struct {
 11345  	// EntityValues: Required. The reference `values` of the entities to delete.
 11346  	// Note that these are not fully-qualified names, i.e. they don't start with
 11347  	// `projects/`.
 11348  	EntityValues []string `json:"entityValues,omitempty"`
 11349  	// LanguageCode: Optional. The language used to access language-specific data.
 11350  	// If not specified, the agent's default language is used. For more
 11351  	// information, see Multilingual intent and entity data
 11352  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 11353  	LanguageCode string `json:"languageCode,omitempty"`
 11354  	// ForceSendFields is a list of field names (e.g. "EntityValues") to
 11355  	// unconditionally include in API requests. By default, fields with empty or
 11356  	// default values are omitted from API requests. See
 11357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11358  	// details.
 11359  	ForceSendFields []string `json:"-"`
 11360  	// NullFields is a list of field names (e.g. "EntityValues") to include in API
 11361  	// requests with the JSON null value. By default, fields with empty values are
 11362  	// omitted from API requests. See
 11363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11364  	NullFields []string `json:"-"`
 11365  }
 11366  
 11367  func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) {
 11368  	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
 11369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11370  }
 11371  
 11372  // GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest: The request
 11373  // message for EntityTypes.BatchDeleteEntityTypes.
 11374  type GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest struct {
 11375  	// EntityTypeNames: Required. The names entity types to delete. All names must
 11376  	// point to the same agent as `parent`.
 11377  	EntityTypeNames []string `json:"entityTypeNames,omitempty"`
 11378  	// ForceSendFields is a list of field names (e.g. "EntityTypeNames") to
 11379  	// unconditionally include in API requests. By default, fields with empty or
 11380  	// default values are omitted from API requests. See
 11381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11382  	// details.
 11383  	ForceSendFields []string `json:"-"`
 11384  	// NullFields is a list of field names (e.g. "EntityTypeNames") to include in
 11385  	// API requests with the JSON null value. By default, fields with empty values
 11386  	// are omitted from API requests. See
 11387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11388  	NullFields []string `json:"-"`
 11389  }
 11390  
 11391  func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) {
 11392  	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
 11393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11394  }
 11395  
 11396  // GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest: The request message
 11397  // for Intents.BatchDeleteIntents.
 11398  type GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest struct {
 11399  	// Intents: Required. The collection of intents to delete. Only intent `name`
 11400  	// must be filled in.
 11401  	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
 11402  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 11403  	// include in API requests. By default, fields with empty or default values are
 11404  	// omitted from API requests. See
 11405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11406  	// details.
 11407  	ForceSendFields []string `json:"-"`
 11408  	// NullFields is a list of field names (e.g. "Intents") to include in API
 11409  	// requests with the JSON null value. By default, fields with empty values are
 11410  	// omitted from API requests. See
 11411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11412  	NullFields []string `json:"-"`
 11413  }
 11414  
 11415  func (s *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) {
 11416  	type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
 11417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11418  }
 11419  
 11420  // GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest: The request message
 11421  // for EntityTypes.BatchUpdateEntities.
 11422  type GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest struct {
 11423  	// Entities: Required. The entities to update or create.
 11424  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 11425  	// LanguageCode: Optional. The language used to access language-specific data.
 11426  	// If not specified, the agent's default language is used. For more
 11427  	// information, see Multilingual intent and entity data
 11428  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 11429  	LanguageCode string `json:"languageCode,omitempty"`
 11430  	// UpdateMask: Optional. The mask to control which fields get updated.
 11431  	UpdateMask string `json:"updateMask,omitempty"`
 11432  	// ForceSendFields is a list of field names (e.g. "Entities") to
 11433  	// unconditionally include in API requests. By default, fields with empty or
 11434  	// default values are omitted from API requests. See
 11435  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11436  	// details.
 11437  	ForceSendFields []string `json:"-"`
 11438  	// NullFields is a list of field names (e.g. "Entities") to include in API
 11439  	// requests with the JSON null value. By default, fields with empty values are
 11440  	// omitted from API requests. See
 11441  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11442  	NullFields []string `json:"-"`
 11443  }
 11444  
 11445  func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) {
 11446  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
 11447  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11448  }
 11449  
 11450  // GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest: The request
 11451  // message for EntityTypes.BatchUpdateEntityTypes.
 11452  type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest struct {
 11453  	// EntityTypeBatchInline: The collection of entity types to update or create.
 11454  	EntityTypeBatchInline *GoogleCloudDialogflowV2beta1EntityTypeBatch `json:"entityTypeBatchInline,omitempty"`
 11455  	// EntityTypeBatchUri: The URI to a Google Cloud Storage file containing entity
 11456  	// types to update or create. The file format can either be a serialized proto
 11457  	// (of EntityBatch type) or a JSON object. Note: The URI must start with
 11458  	// "gs://".
 11459  	EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"`
 11460  	// LanguageCode: Optional. The language used to access language-specific data.
 11461  	// If not specified, the agent's default language is used. For more
 11462  	// information, see Multilingual intent and entity data
 11463  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 11464  	LanguageCode string `json:"languageCode,omitempty"`
 11465  	// UpdateMask: Optional. The mask to control which fields get updated.
 11466  	UpdateMask string `json:"updateMask,omitempty"`
 11467  	// ForceSendFields is a list of field names (e.g. "EntityTypeBatchInline") to
 11468  	// unconditionally include in API requests. By default, fields with empty or
 11469  	// default values are omitted from API requests. See
 11470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11471  	// details.
 11472  	ForceSendFields []string `json:"-"`
 11473  	// NullFields is a list of field names (e.g. "EntityTypeBatchInline") to
 11474  	// include in API requests with the JSON null value. By default, fields with
 11475  	// empty values are omitted from API requests. See
 11476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11477  	NullFields []string `json:"-"`
 11478  }
 11479  
 11480  func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) {
 11481  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
 11482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11483  }
 11484  
 11485  // GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The response
 11486  // message for EntityTypes.BatchUpdateEntityTypes.
 11487  type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
 11488  	// EntityTypes: The collection of updated or created entity types.
 11489  	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
 11490  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 11491  	// unconditionally include in API requests. By default, fields with empty or
 11492  	// default values are omitted from API requests. See
 11493  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11494  	// details.
 11495  	ForceSendFields []string `json:"-"`
 11496  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 11497  	// requests with the JSON null value. By default, fields with empty values are
 11498  	// omitted from API requests. See
 11499  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11500  	NullFields []string `json:"-"`
 11501  }
 11502  
 11503  func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
 11504  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
 11505  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11506  }
 11507  
 11508  // GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest: The request message
 11509  // for Intents.BatchUpdateIntents.
 11510  type GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest struct {
 11511  	// IntentBatchInline: The collection of intents to update or create.
 11512  	IntentBatchInline *GoogleCloudDialogflowV2beta1IntentBatch `json:"intentBatchInline,omitempty"`
 11513  	// IntentBatchUri: The URI to a Google Cloud Storage file containing intents to
 11514  	// update or create. The file format can either be a serialized proto (of
 11515  	// IntentBatch type) or JSON object. Note: The URI must start with "gs://".
 11516  	IntentBatchUri string `json:"intentBatchUri,omitempty"`
 11517  	// IntentView: Optional. The resource view to apply to the returned intent.
 11518  	//
 11519  	// Possible values:
 11520  	//   "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 11521  	// response.
 11522  	//   "INTENT_VIEW_FULL" - All fields are populated.
 11523  	IntentView string `json:"intentView,omitempty"`
 11524  	// LanguageCode: Optional. The language used to access language-specific data.
 11525  	// If not specified, the agent's default language is used. For more
 11526  	// information, see Multilingual intent and entity data
 11527  	// (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 11528  	LanguageCode string `json:"languageCode,omitempty"`
 11529  	// UpdateMask: Optional. The mask to control which fields get updated.
 11530  	UpdateMask string `json:"updateMask,omitempty"`
 11531  	// ForceSendFields is a list of field names (e.g. "IntentBatchInline") to
 11532  	// unconditionally include in API requests. By default, fields with empty or
 11533  	// default values are omitted from API requests. See
 11534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11535  	// details.
 11536  	ForceSendFields []string `json:"-"`
 11537  	// NullFields is a list of field names (e.g. "IntentBatchInline") to include in
 11538  	// API requests with the JSON null value. By default, fields with empty values
 11539  	// are omitted from API requests. See
 11540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11541  	NullFields []string `json:"-"`
 11542  }
 11543  
 11544  func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) {
 11545  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
 11546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11547  }
 11548  
 11549  // GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response message
 11550  // for Intents.BatchUpdateIntents.
 11551  type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
 11552  	// Intents: The collection of updated or created intents.
 11553  	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
 11554  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 11555  	// include in API requests. By default, fields with empty or default values are
 11556  	// omitted from API requests. See
 11557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11558  	// details.
 11559  	ForceSendFields []string `json:"-"`
 11560  	// NullFields is a list of field names (e.g. "Intents") to include in API
 11561  	// requests with the JSON null value. By default, fields with empty values are
 11562  	// omitted from API requests. See
 11563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11564  	NullFields []string `json:"-"`
 11565  }
 11566  
 11567  func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
 11568  	type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
 11569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11570  }
 11571  
 11572  // GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata:
 11573  // Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
 11574  type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
 11575  	// ConversationProfile: The resource name of the conversation profile. Format:
 11576  	// `projects//locations//conversationProfiles/`
 11577  	ConversationProfile string `json:"conversationProfile,omitempty"`
 11578  	// CreateTime: Timestamp whe the request was created. The time is measured on
 11579  	// server side.
 11580  	CreateTime string `json:"createTime,omitempty"`
 11581  	// ParticipantRole: Required. The participant role to remove the suggestion
 11582  	// feature config. Only HUMAN_AGENT or END_USER can be used.
 11583  	//
 11584  	// Possible values:
 11585  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 11586  	//   "HUMAN_AGENT" - Participant is a human agent.
 11587  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 11588  	// Dialogflow agent.
 11589  	//   "END_USER" - Participant is an end user that has called or chatted with
 11590  	// Dialogflow services.
 11591  	ParticipantRole string `json:"participantRole,omitempty"`
 11592  	// SuggestionFeatureType: Required. The type of the suggestion feature to
 11593  	// remove.
 11594  	//
 11595  	// Possible values:
 11596  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 11597  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 11598  	//   "FAQ" - Run FAQ model.
 11599  	//   "SMART_REPLY" - Run smart reply model for chat.
 11600  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 11601  	// return automated agent response as suggestion.
 11602  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 11603  	// chat.
 11604  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 11605  	// text generated query.
 11606  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 11607  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 11608  	// unconditionally include in API requests. By default, fields with empty or
 11609  	// default values are omitted from API requests. See
 11610  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11611  	// details.
 11612  	ForceSendFields []string `json:"-"`
 11613  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 11614  	// in API requests with the JSON null value. By default, fields with empty
 11615  	// values are omitted from API requests. See
 11616  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11617  	NullFields []string `json:"-"`
 11618  }
 11619  
 11620  func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 11621  	type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
 11622  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11623  }
 11624  
 11625  // GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest: The request
 11626  // message for ConversationProfiles.ClearFeature.
 11627  type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest struct {
 11628  	// ParticipantRole: Required. The participant role to remove the suggestion
 11629  	// feature config. Only HUMAN_AGENT or END_USER can be used.
 11630  	//
 11631  	// Possible values:
 11632  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 11633  	//   "HUMAN_AGENT" - Participant is a human agent.
 11634  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 11635  	// Dialogflow agent.
 11636  	//   "END_USER" - Participant is an end user that has called or chatted with
 11637  	// Dialogflow services.
 11638  	ParticipantRole string `json:"participantRole,omitempty"`
 11639  	// SuggestionFeatureType: Required. The type of the suggestion feature to
 11640  	// remove.
 11641  	//
 11642  	// Possible values:
 11643  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 11644  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 11645  	//   "FAQ" - Run FAQ model.
 11646  	//   "SMART_REPLY" - Run smart reply model for chat.
 11647  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 11648  	// return automated agent response as suggestion.
 11649  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 11650  	// chat.
 11651  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 11652  	// text generated query.
 11653  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 11654  	// ForceSendFields is a list of field names (e.g. "ParticipantRole") to
 11655  	// unconditionally include in API requests. By default, fields with empty or
 11656  	// default values are omitted from API requests. See
 11657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11658  	// details.
 11659  	ForceSendFields []string `json:"-"`
 11660  	// NullFields is a list of field names (e.g. "ParticipantRole") to include in
 11661  	// API requests with the JSON null value. By default, fields with empty values
 11662  	// are omitted from API requests. See
 11663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11664  	NullFields []string `json:"-"`
 11665  }
 11666  
 11667  func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
 11668  	type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest
 11669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11670  }
 11671  
 11672  // GoogleCloudDialogflowV2beta1CompileSuggestionRequest: The request message
 11673  // for Participants.CompileSuggestion.
 11674  type GoogleCloudDialogflowV2beta1CompileSuggestionRequest struct {
 11675  	// ContextSize: Optional. Max number of messages prior to and including
 11676  	// [latest_message] to use as context when compiling the suggestion. If zero or
 11677  	// less than zero, 20 is used.
 11678  	ContextSize int64 `json:"contextSize,omitempty"`
 11679  	// LatestMessage: Optional. The name of the latest conversation message to
 11680  	// compile suggestion for. If empty, it will be the latest message of the
 11681  	// conversation. Format: `projects//locations//conversations//messages/`.
 11682  	LatestMessage string `json:"latestMessage,omitempty"`
 11683  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 11684  	// unconditionally include in API requests. By default, fields with empty or
 11685  	// default values are omitted from API requests. See
 11686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11687  	// details.
 11688  	ForceSendFields []string `json:"-"`
 11689  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 11690  	// requests with the JSON null value. By default, fields with empty values are
 11691  	// omitted from API requests. See
 11692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11693  	NullFields []string `json:"-"`
 11694  }
 11695  
 11696  func (s *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) MarshalJSON() ([]byte, error) {
 11697  	type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionRequest
 11698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11699  }
 11700  
 11701  // GoogleCloudDialogflowV2beta1CompileSuggestionResponse: The response message
 11702  // for Participants.CompileSuggestion.
 11703  type GoogleCloudDialogflowV2beta1CompileSuggestionResponse struct {
 11704  	// ContextSize: Number of messages prior to and including latest_message to
 11705  	// compile the suggestion. It may be smaller than the
 11706  	// CompileSuggestionRequest.context_size field in the request if there aren't
 11707  	// that many messages in the conversation.
 11708  	ContextSize int64 `json:"contextSize,omitempty"`
 11709  	// LatestMessage: The name of the latest conversation message used to compile
 11710  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 11711  	LatestMessage string `json:"latestMessage,omitempty"`
 11712  	// Suggestion: The compiled suggestion.
 11713  	Suggestion *GoogleCloudDialogflowV2beta1Suggestion `json:"suggestion,omitempty"`
 11714  
 11715  	// ServerResponse contains the HTTP response code and headers from the server.
 11716  	googleapi.ServerResponse `json:"-"`
 11717  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 11718  	// unconditionally include in API requests. By default, fields with empty or
 11719  	// default values are omitted from API requests. See
 11720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11721  	// details.
 11722  	ForceSendFields []string `json:"-"`
 11723  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 11724  	// requests with the JSON null value. By default, fields with empty values are
 11725  	// omitted from API requests. See
 11726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11727  	NullFields []string `json:"-"`
 11728  }
 11729  
 11730  func (s *GoogleCloudDialogflowV2beta1CompileSuggestionResponse) MarshalJSON() ([]byte, error) {
 11731  	type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionResponse
 11732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11733  }
 11734  
 11735  // GoogleCloudDialogflowV2beta1CompleteConversationRequest: The request message
 11736  // for Conversations.CompleteConversation.
 11737  type GoogleCloudDialogflowV2beta1CompleteConversationRequest struct {
 11738  }
 11739  
 11740  // GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar to
 11741  // natural language context. If a person says to you "they are orange", you
 11742  // need context in order to understand what "they" is referring to. Similarly,
 11743  // for Dialogflow to handle an end-user expression like that, it needs to be
 11744  // provided with context in order to correctly match an intent. Using contexts,
 11745  // you can control the flow of a conversation. You can configure contexts for
 11746  // an intent by setting input and output contexts, which are identified by
 11747  // string names. When an intent is matched, any configured output contexts for
 11748  // that intent become active. While any contexts are active, Dialogflow is more
 11749  // likely to match intents that are configured with input contexts that
 11750  // correspond to the currently active contexts. For more information about
 11751  // context, see the Contexts guide
 11752  // (https://cloud.google.com/dialogflow/docs/contexts-overview).
 11753  type GoogleCloudDialogflowV2beta1Context struct {
 11754  	// LifespanCount: Optional. The number of conversational query requests after
 11755  	// which the context expires. The default is `0`. If set to `0`, the context
 11756  	// expires immediately. Contexts expire automatically after 20 minutes if there
 11757  	// are no matching queries.
 11758  	LifespanCount int64 `json:"lifespanCount,omitempty"`
 11759  	// Name: Required. The unique identifier of the context. Supported formats: -
 11760  	// `projects//agent/sessions//contexts/`, -
 11761  	// `projects//locations//agent/sessions//contexts/`, -
 11762  	// `projects//agent/environments//users//sessions//contexts/`, -
 11763  	// `projects//locations//agent/environments//users//sessions//contexts/`, The
 11764  	// `Context ID` is always converted to lowercase, may only contain characters
 11765  	// in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID` is
 11766  	// not specified, we assume default 'draft' environment. If `User ID` is not
 11767  	// specified, we assume default '-' user. The following context names are
 11768  	// reserved for internal use by Dialogflow. You should not use these contexts
 11769  	// or create contexts with these names: * `__system_counters__` *
 11770  	// `*_id_dialog_context` * `*_dialog_params_size`
 11771  	Name string `json:"name,omitempty"`
 11772  	// Parameters: Optional. The collection of parameters associated with this
 11773  	// context. Depending on your protocol or client library language, this is a
 11774  	// map, associative array, symbol table, dictionary, or JSON object composed of
 11775  	// a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 11776  	// value: parameter name * MapValue type: If parameter's entity type is a
 11777  	// composite entity then use map, otherwise, depending on the parameter value
 11778  	// type, it could be one of string, number, boolean, null, list or map. *
 11779  	// MapValue value: If parameter's entity type is a composite entity then use
 11780  	// map from composite entity property names to property values, otherwise, use
 11781  	// parameter value.
 11782  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 11783  
 11784  	// ServerResponse contains the HTTP response code and headers from the server.
 11785  	googleapi.ServerResponse `json:"-"`
 11786  	// ForceSendFields is a list of field names (e.g. "LifespanCount") to
 11787  	// unconditionally include in API requests. By default, fields with empty or
 11788  	// default values are omitted from API requests. See
 11789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11790  	// details.
 11791  	ForceSendFields []string `json:"-"`
 11792  	// NullFields is a list of field names (e.g. "LifespanCount") to include in API
 11793  	// requests with the JSON null value. By default, fields with empty values are
 11794  	// omitted from API requests. See
 11795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11796  	NullFields []string `json:"-"`
 11797  }
 11798  
 11799  func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
 11800  	type NoMethod GoogleCloudDialogflowV2beta1Context
 11801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11802  }
 11803  
 11804  // GoogleCloudDialogflowV2beta1Conversation: Represents a conversation. A
 11805  // conversation is an interaction between an agent, including live agents and
 11806  // Dialogflow agents, and a support customer. Conversations can include phone
 11807  // calls and text-based chat sessions.
 11808  type GoogleCloudDialogflowV2beta1Conversation struct {
 11809  	// ConversationProfile: Required. The Conversation Profile to be used to
 11810  	// configure this Conversation. This field cannot be updated. Format:
 11811  	// `projects//locations//conversationProfiles/`.
 11812  	ConversationProfile string `json:"conversationProfile,omitempty"`
 11813  	// ConversationStage: The stage of a conversation. It indicates whether the
 11814  	// virtual agent or a human agent is handling the conversation. If the
 11815  	// conversation is created with the conversation profile that has Dialogflow
 11816  	// config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise,
 11817  	// defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is
 11818  	// created with the conversation profile that has Dialogflow config set but
 11819  	// explicitly sets conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE,
 11820  	// it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to
 11821  	// ConversationStage.HUMAN_ASSIST_STAGE.
 11822  	//
 11823  	// Possible values:
 11824  	//   "CONVERSATION_STAGE_UNSPECIFIED" - Unknown. Should never be used after a
 11825  	// conversation is successfully created.
 11826  	//   "VIRTUAL_AGENT_STAGE" - The conversation should return virtual agent
 11827  	// responses into the conversation.
 11828  	//   "HUMAN_ASSIST_STAGE" - The conversation should not provide responses, just
 11829  	// listen and provide suggestions.
 11830  	ConversationStage string `json:"conversationStage,omitempty"`
 11831  	// EndTime: Output only. The time the conversation was finished.
 11832  	EndTime string `json:"endTime,omitempty"`
 11833  	// LifecycleState: Output only. The current state of the Conversation.
 11834  	//
 11835  	// Possible values:
 11836  	//   "LIFECYCLE_STATE_UNSPECIFIED" - Unknown.
 11837  	//   "IN_PROGRESS" - Conversation is currently open for media analysis.
 11838  	//   "COMPLETED" - Conversation has been completed.
 11839  	LifecycleState string `json:"lifecycleState,omitempty"`
 11840  	// Name: Output only. The unique identifier of this conversation. Format:
 11841  	// `projects//locations//conversations/`.
 11842  	Name string `json:"name,omitempty"`
 11843  	// PhoneNumber: Output only. Required if the conversation is to be connected
 11844  	// over telephony.
 11845  	PhoneNumber *GoogleCloudDialogflowV2beta1ConversationPhoneNumber `json:"phoneNumber,omitempty"`
 11846  	// StartTime: Output only. The time the conversation was started.
 11847  	StartTime string `json:"startTime,omitempty"`
 11848  
 11849  	// ServerResponse contains the HTTP response code and headers from the server.
 11850  	googleapi.ServerResponse `json:"-"`
 11851  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 11852  	// unconditionally include in API requests. By default, fields with empty or
 11853  	// default values are omitted from API requests. See
 11854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11855  	// details.
 11856  	ForceSendFields []string `json:"-"`
 11857  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 11858  	// in API requests with the JSON null value. By default, fields with empty
 11859  	// values are omitted from API requests. See
 11860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11861  	NullFields []string `json:"-"`
 11862  }
 11863  
 11864  func (s *GoogleCloudDialogflowV2beta1Conversation) MarshalJSON() ([]byte, error) {
 11865  	type NoMethod GoogleCloudDialogflowV2beta1Conversation
 11866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11867  }
 11868  
 11869  // GoogleCloudDialogflowV2beta1ConversationEvent: Represents a notification
 11870  // sent to Pub/Sub subscribers for conversation lifecycle events.
 11871  type GoogleCloudDialogflowV2beta1ConversationEvent struct {
 11872  	// Conversation: Required. The unique identifier of the conversation this
 11873  	// notification refers to. Format: `projects//conversations/`.
 11874  	Conversation string `json:"conversation,omitempty"`
 11875  	// ErrorStatus: Optional. More detailed information about an error. Only set
 11876  	// for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
 11877  	ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
 11878  	// NewMessagePayload: Payload of NEW_MESSAGE event.
 11879  	NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
 11880  	// Type: Required. The type of the event that this notification refers to.
 11881  	//
 11882  	// Possible values:
 11883  	//   "TYPE_UNSPECIFIED" - Type not set.
 11884  	//   "CONVERSATION_STARTED" - A new conversation has been opened. This is fired
 11885  	// when a telephone call is answered, or a conversation is created via the API.
 11886  	//   "CONVERSATION_FINISHED" - An existing conversation has closed. This is
 11887  	// fired when a telephone call is terminated, or a conversation is closed via
 11888  	// the API.
 11889  	//   "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received
 11890  	// notification from Dialogflow that human intervention is required.
 11891  	//   "NEW_MESSAGE" - An existing conversation has received a new message,
 11892  	// either from API or telephony. It is configured in
 11893  	// ConversationProfile.new_message_event_notification_config
 11894  	//   "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone call. In
 11895  	// general non-recoverable errors only occur if something was misconfigured in
 11896  	// the ConversationProfile corresponding to the call. After a non-recoverable
 11897  	// error, Dialogflow may stop responding. We don't fire this event: * in an API
 11898  	// call because we can directly return the error, or, * when we can recover
 11899  	// from an error.
 11900  	Type string `json:"type,omitempty"`
 11901  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 11902  	// unconditionally include in API requests. By default, fields with empty or
 11903  	// default values are omitted from API requests. See
 11904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11905  	// details.
 11906  	ForceSendFields []string `json:"-"`
 11907  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 11908  	// requests with the JSON null value. By default, fields with empty values are
 11909  	// omitted from API requests. See
 11910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11911  	NullFields []string `json:"-"`
 11912  }
 11913  
 11914  func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
 11915  	type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
 11916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11917  }
 11918  
 11919  // GoogleCloudDialogflowV2beta1ConversationPhoneNumber: Represents a phone
 11920  // number for telephony integration. It allows for connecting a particular
 11921  // conversation over telephony.
 11922  type GoogleCloudDialogflowV2beta1ConversationPhoneNumber struct {
 11923  	// PhoneNumber: Output only. The phone number to connect to this conversation.
 11924  	PhoneNumber string `json:"phoneNumber,omitempty"`
 11925  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 11926  	// unconditionally include in API requests. By default, fields with empty or
 11927  	// default values are omitted from API requests. See
 11928  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11929  	// details.
 11930  	ForceSendFields []string `json:"-"`
 11931  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 11932  	// requests with the JSON null value. By default, fields with empty values are
 11933  	// omitted from API requests. See
 11934  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11935  	NullFields []string `json:"-"`
 11936  }
 11937  
 11938  func (s *GoogleCloudDialogflowV2beta1ConversationPhoneNumber) MarshalJSON() ([]byte, error) {
 11939  	type NoMethod GoogleCloudDialogflowV2beta1ConversationPhoneNumber
 11940  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11941  }
 11942  
 11943  // GoogleCloudDialogflowV2beta1ConversationProfile: Defines the services to
 11944  // connect to incoming Dialogflow conversations.
 11945  type GoogleCloudDialogflowV2beta1ConversationProfile struct {
 11946  	// AutomatedAgentConfig: Configuration for an automated agent to use with this
 11947  	// profile.
 11948  	AutomatedAgentConfig *GoogleCloudDialogflowV2beta1AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`
 11949  	// CreateTime: Output only. Create time of the conversation profile.
 11950  	CreateTime string `json:"createTime,omitempty"`
 11951  	// DisplayName: Required. Human readable name for this profile. Max length 1024
 11952  	// bytes.
 11953  	DisplayName string `json:"displayName,omitempty"`
 11954  	// HumanAgentAssistantConfig: Configuration for agent assistance to use with
 11955  	// this profile.
 11956  	HumanAgentAssistantConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`
 11957  	// HumanAgentHandoffConfig: Configuration for connecting to a live agent.
 11958  	// Currently, this feature is not general available, please contact Google to
 11959  	// get access.
 11960  	HumanAgentHandoffConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`
 11961  	// LanguageCode: Language code for the conversation profile. If not specified,
 11962  	// the language is en-US. Language at ConversationProfile should be set for all
 11963  	// non en-us languages. This should be a BCP-47
 11964  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 11965  	// "en-US".
 11966  	LanguageCode string `json:"languageCode,omitempty"`
 11967  	// LoggingConfig: Configuration for logging conversation lifecycle events.
 11968  	LoggingConfig *GoogleCloudDialogflowV2beta1LoggingConfig `json:"loggingConfig,omitempty"`
 11969  	// Name: The unique identifier of this conversation profile. Format:
 11970  	// `projects//locations//conversationProfiles/`.
 11971  	Name string `json:"name,omitempty"`
 11972  	// NewMessageEventNotificationConfig: Configuration for publishing new message
 11973  	// events. Event will be sent in format of ConversationEvent
 11974  	NewMessageEventNotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`
 11975  	// NotificationConfig: Configuration for publishing conversation lifecycle
 11976  	// events.
 11977  	NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
 11978  	// SecuritySettings: Name of the CX SecuritySettings reference for the agent.
 11979  	// Format: `projects//locations//securitySettings/`.
 11980  	SecuritySettings string `json:"securitySettings,omitempty"`
 11981  	// SttConfig: Settings for speech transcription.
 11982  	SttConfig *GoogleCloudDialogflowV2beta1SpeechToTextConfig `json:"sttConfig,omitempty"`
 11983  	// TimeZone: The time zone of this conversational profile from the time zone
 11984  	// database (https://www.iana.org/time-zones), e.g., America/New_York,
 11985  	// Europe/Paris. Defaults to America/New_York.
 11986  	TimeZone string `json:"timeZone,omitempty"`
 11987  	// TtsConfig: Configuration for Text-to-Speech synthesization. Used by Phone
 11988  	// Gateway to specify synthesization options. If agent defines synthesization
 11989  	// options as well, agent settings overrides the option here.
 11990  	TtsConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"ttsConfig,omitempty"`
 11991  	// UpdateTime: Output only. Update time of the conversation profile.
 11992  	UpdateTime string `json:"updateTime,omitempty"`
 11993  
 11994  	// ServerResponse contains the HTTP response code and headers from the server.
 11995  	googleapi.ServerResponse `json:"-"`
 11996  	// ForceSendFields is a list of field names (e.g. "AutomatedAgentConfig") to
 11997  	// unconditionally include in API requests. By default, fields with empty or
 11998  	// default values are omitted from API requests. See
 11999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12000  	// details.
 12001  	ForceSendFields []string `json:"-"`
 12002  	// NullFields is a list of field names (e.g. "AutomatedAgentConfig") to include
 12003  	// in API requests with the JSON null value. By default, fields with empty
 12004  	// values are omitted from API requests. See
 12005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12006  	NullFields []string `json:"-"`
 12007  }
 12008  
 12009  func (s *GoogleCloudDialogflowV2beta1ConversationProfile) MarshalJSON() ([]byte, error) {
 12010  	type NoMethod GoogleCloudDialogflowV2beta1ConversationProfile
 12011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12012  }
 12013  
 12014  // GoogleCloudDialogflowV2beta1CreateMessageRequest: The request message to
 12015  // create one Message. Currently it is only used in BatchCreateMessagesRequest.
 12016  type GoogleCloudDialogflowV2beta1CreateMessageRequest struct {
 12017  	// Message: Required. The message to create. Message.participant is required.
 12018  	Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
 12019  	// Parent: Required. Resource identifier of the conversation to create message.
 12020  	// Format: `projects//locations//conversations/`.
 12021  	Parent string `json:"parent,omitempty"`
 12022  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
 12023  	// include in API requests. By default, fields with empty or default values are
 12024  	// omitted from API requests. See
 12025  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12026  	// details.
 12027  	ForceSendFields []string `json:"-"`
 12028  	// NullFields is a list of field names (e.g. "Message") to include in API
 12029  	// requests with the JSON null value. By default, fields with empty values are
 12030  	// omitted from API requests. See
 12031  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12032  	NullFields []string `json:"-"`
 12033  }
 12034  
 12035  func (s *GoogleCloudDialogflowV2beta1CreateMessageRequest) MarshalJSON() ([]byte, error) {
 12036  	type NoMethod GoogleCloudDialogflowV2beta1CreateMessageRequest
 12037  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12038  }
 12039  
 12040  // GoogleCloudDialogflowV2beta1DetectIntentRequest: The request to detect
 12041  // user's intent.
 12042  type GoogleCloudDialogflowV2beta1DetectIntentRequest struct {
 12043  	// InputAudio: The natural language speech audio to be processed. This field
 12044  	// should be populated iff `query_input` is set to an input audio config. A
 12045  	// single request can contain up to 1 minute of speech audio data.
 12046  	InputAudio string `json:"inputAudio,omitempty"`
 12047  	// OutputAudioConfig: Instructs the speech synthesizer how to generate the
 12048  	// output audio. If this field is not set and agent-level speech synthesizer is
 12049  	// not configured, no output audio is generated.
 12050  	OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
 12051  	// OutputAudioConfigMask: Mask for output_audio_config indicating which
 12052  	// settings in this request-level config should override speech synthesizer
 12053  	// settings defined at agent-level. If unspecified or empty,
 12054  	// output_audio_config replaces the agent-level config in its entirety.
 12055  	OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"`
 12056  	// QueryInput: Required. The input specification. It can be set to: 1. an audio
 12057  	// config which instructs the speech recognizer how to process the speech
 12058  	// audio, 2. a conversational query in the form of text, or 3. an event that
 12059  	// specifies which intent to trigger.
 12060  	QueryInput *GoogleCloudDialogflowV2beta1QueryInput `json:"queryInput,omitempty"`
 12061  	// QueryParams: The parameters of this query.
 12062  	QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
 12063  	// ForceSendFields is a list of field names (e.g. "InputAudio") to
 12064  	// unconditionally include in API requests. By default, fields with empty or
 12065  	// default values are omitted from API requests. See
 12066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12067  	// details.
 12068  	ForceSendFields []string `json:"-"`
 12069  	// NullFields is a list of field names (e.g. "InputAudio") to include in API
 12070  	// requests with the JSON null value. By default, fields with empty values are
 12071  	// omitted from API requests. See
 12072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12073  	NullFields []string `json:"-"`
 12074  }
 12075  
 12076  func (s *GoogleCloudDialogflowV2beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
 12077  	type NoMethod GoogleCloudDialogflowV2beta1DetectIntentRequest
 12078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12079  }
 12080  
 12081  // GoogleCloudDialogflowV2beta1DetectIntentResponse: The message returned from
 12082  // the DetectIntent method.
 12083  type GoogleCloudDialogflowV2beta1DetectIntentResponse struct {
 12084  	// AlternativeQueryResults: If Knowledge Connectors are enabled, there could be
 12085  	// more than one result returned for a given query or event, and this field
 12086  	// will contain all results except for the top one, which is captured in
 12087  	// query_result. The alternative results are ordered by decreasing
 12088  	// `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
 12089  	// disabled, this field will be empty until multiple responses for regular
 12090  	// intents are supported, at which point those additional results will be
 12091  	// surfaced here.
 12092  	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
 12093  	// OutputAudio: The audio data bytes encoded as specified in the request. Note:
 12094  	// The output audio is generated based on the values of default platform text
 12095  	// responses found in the `query_result.fulfillment_messages` field. If
 12096  	// multiple default text responses exist, they will be concatenated when
 12097  	// generating audio. If no default platform text responses exist, the generated
 12098  	// audio content will be empty. In some scenarios, multiple output audio fields
 12099  	// may be present in the response structure. In these cases, only the
 12100  	// top-most-level audio output has content.
 12101  	OutputAudio string `json:"outputAudio,omitempty"`
 12102  	// OutputAudioConfig: The config used by the speech synthesizer to generate the
 12103  	// output audio.
 12104  	OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
 12105  	// QueryResult: The selected results of the conversational query or event
 12106  	// processing. See `alternative_query_results` for additional potential
 12107  	// results.
 12108  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 12109  	// ResponseId: The unique identifier of the response. It can be used to locate
 12110  	// a response in the training example set or for reporting issues.
 12111  	ResponseId string `json:"responseId,omitempty"`
 12112  	// WebhookStatus: Specifies the status of the webhook request.
 12113  	WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"`
 12114  
 12115  	// ServerResponse contains the HTTP response code and headers from the server.
 12116  	googleapi.ServerResponse `json:"-"`
 12117  	// ForceSendFields is a list of field names (e.g. "AlternativeQueryResults") to
 12118  	// unconditionally include in API requests. By default, fields with empty or
 12119  	// default values are omitted from API requests. See
 12120  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12121  	// details.
 12122  	ForceSendFields []string `json:"-"`
 12123  	// NullFields is a list of field names (e.g. "AlternativeQueryResults") to
 12124  	// include in API requests with the JSON null value. By default, fields with
 12125  	// empty values are omitted from API requests. See
 12126  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12127  	NullFields []string `json:"-"`
 12128  }
 12129  
 12130  func (s *GoogleCloudDialogflowV2beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
 12131  	type NoMethod GoogleCloudDialogflowV2beta1DetectIntentResponse
 12132  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12133  }
 12134  
 12135  // GoogleCloudDialogflowV2beta1DialogflowAssistAnswer: Represents a Dialogflow
 12136  // assist answer.
 12137  type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
 12138  	// AnswerRecord: The name of answer record, in the format of
 12139  	// "projects//locations//answerRecords/"
 12140  	AnswerRecord string `json:"answerRecord,omitempty"`
 12141  	// IntentSuggestion: An intent suggestion generated from conversation.
 12142  	IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
 12143  	// QueryResult: Result from v2 agent.
 12144  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 12145  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 12146  	// unconditionally include in API requests. By default, fields with empty or
 12147  	// default values are omitted from API requests. See
 12148  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12149  	// details.
 12150  	ForceSendFields []string `json:"-"`
 12151  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 12152  	// requests with the JSON null value. By default, fields with empty values are
 12153  	// omitted from API requests. See
 12154  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12155  	NullFields []string `json:"-"`
 12156  }
 12157  
 12158  func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
 12159  	type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
 12160  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12161  }
 12162  
 12163  // GoogleCloudDialogflowV2beta1Document: A knowledge document to be used by a
 12164  // KnowledgeBase. For more information, see the knowledge base guide
 12165  // (https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The
 12166  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 12167  // `projects.knowledgeBases.documents`.
 12168  type GoogleCloudDialogflowV2beta1Document struct {
 12169  	// Content: The raw content of the document. This field is only permitted for
 12170  	// EXTRACTIVE_QA and FAQ knowledge types. Note: This field is in the process of
 12171  	// being deprecated, please use raw_content instead.
 12172  	Content string `json:"content,omitempty"`
 12173  	// ContentUri: The URI where the file content is located. For documents stored
 12174  	// in Google Cloud Storage, these URIs must have the form `gs:///`. NOTE:
 12175  	// External URLs must correspond to public webpages, i.e., they must be indexed
 12176  	// by Google Search. In particular, URLs for showing documents in Google Cloud
 12177  	// Storage (i.e. the URL in your browser) are not supported. Instead use the
 12178  	// `gs://` format URI described above.
 12179  	ContentUri string `json:"contentUri,omitempty"`
 12180  	// DisplayName: Required. The display name of the document. The name must be
 12181  	// 1024 bytes or less; otherwise, the creation request fails.
 12182  	DisplayName string `json:"displayName,omitempty"`
 12183  	// EnableAutoReload: Optional. If true, we try to automatically reload the
 12184  	// document every day (at a time picked by the system). If false or
 12185  	// unspecified, we don't try to automatically reload the document. Currently
 12186  	// you can only enable automatic reload for documents sourced from a public
 12187  	// url, see `source` field for the source types. Reload status can be tracked
 12188  	// in `latest_reload_status`. If a reload fails, we will keep the document
 12189  	// unchanged. If a reload fails with internal errors, the system will try to
 12190  	// reload the document on the next day. If a reload fails with non-retriable
 12191  	// errors (e.g. PERMISSION_DENIED), the system will not try to reload the
 12192  	// document anymore. You need to manually reload the document successfully by
 12193  	// calling `ReloadDocument` and clear the errors.
 12194  	EnableAutoReload bool `json:"enableAutoReload,omitempty"`
 12195  	// KnowledgeTypes: Required. The knowledge type of document content.
 12196  	//
 12197  	// Possible values:
 12198  	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or arbitrary.
 12199  	//   "FAQ" - The document content contains question and answer pairs as either
 12200  	// HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual
 12201  	// formats may fail to be parsed. CSV must have questions in the first column
 12202  	// and answers in the second, with no header. Because of this explicit format,
 12203  	// they are always parsed accurately.
 12204  	//   "EXTRACTIVE_QA" - Documents for which unstructured text is extracted and
 12205  	// used for question answering.
 12206  	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can be used
 12207  	// for query results. Only for Contact Center Solutions on Dialogflow.
 12208  	//   "AGENT_FACING_SMART_REPLY" - The document contains agent-facing Smart
 12209  	// Reply entries.
 12210  	//   "SMART_REPLY" - The legacy enum for agent-facing smart reply feature.
 12211  	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
 12212  	// LatestReloadStatus: Output only. The time and status of the latest reload.
 12213  	// This reload may have been triggered automatically or manually and may not
 12214  	// have succeeded.
 12215  	LatestReloadStatus *GoogleCloudDialogflowV2beta1DocumentReloadStatus `json:"latestReloadStatus,omitempty"`
 12216  	// Metadata: Optional. Metadata for the document. The metadata supports
 12217  	// arbitrary key-value pairs. Suggested use cases include storing a document's
 12218  	// title, an external URL distinct from the document's content_uri, etc. The
 12219  	// max size of a `key` or a `value` of the metadata is 1024 bytes.
 12220  	Metadata map[string]string `json:"metadata,omitempty"`
 12221  	// MimeType: Required. The MIME type of this document.
 12222  	MimeType string `json:"mimeType,omitempty"`
 12223  	// Name: Optional. The document resource name. The name must be empty when
 12224  	// creating a document. Format:
 12225  	// `projects//locations//knowledgeBases//documents/`.
 12226  	Name string `json:"name,omitempty"`
 12227  	// RawContent: The raw content of the document. This field is only permitted
 12228  	// for EXTRACTIVE_QA and FAQ knowledge types.
 12229  	RawContent string `json:"rawContent,omitempty"`
 12230  	// State: Output only. The current state of the document.
 12231  	//
 12232  	// Possible values:
 12233  	//   "STATE_UNSPECIFIED" - The document state is unspecified.
 12234  	//   "CREATING" - The document creation is in progress.
 12235  	//   "ACTIVE" - The document is active and ready to use.
 12236  	//   "UPDATING" - The document updation is in progress.
 12237  	//   "RELOADING" - The document is reloading.
 12238  	//   "DELETING" - The document deletion is in progress.
 12239  	State string `json:"state,omitempty"`
 12240  
 12241  	// ServerResponse contains the HTTP response code and headers from the server.
 12242  	googleapi.ServerResponse `json:"-"`
 12243  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 12244  	// include in API requests. By default, fields with empty or default values are
 12245  	// omitted from API requests. See
 12246  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12247  	// details.
 12248  	ForceSendFields []string `json:"-"`
 12249  	// NullFields is a list of field names (e.g. "Content") to include in API
 12250  	// requests with the JSON null value. By default, fields with empty values are
 12251  	// omitted from API requests. See
 12252  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12253  	NullFields []string `json:"-"`
 12254  }
 12255  
 12256  func (s *GoogleCloudDialogflowV2beta1Document) MarshalJSON() ([]byte, error) {
 12257  	type NoMethod GoogleCloudDialogflowV2beta1Document
 12258  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12259  }
 12260  
 12261  // GoogleCloudDialogflowV2beta1DocumentReloadStatus: The status of a reload
 12262  // attempt.
 12263  type GoogleCloudDialogflowV2beta1DocumentReloadStatus struct {
 12264  	// Status: Output only. The status of a reload attempt or the initial load.
 12265  	Status *GoogleRpcStatus `json:"status,omitempty"`
 12266  	// Time: Output only. The time of a reload attempt. This reload may have been
 12267  	// triggered automatically or manually and may not have succeeded.
 12268  	Time string `json:"time,omitempty"`
 12269  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
 12270  	// include in API requests. By default, fields with empty or default values are
 12271  	// omitted from API requests. See
 12272  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12273  	// details.
 12274  	ForceSendFields []string `json:"-"`
 12275  	// NullFields is a list of field names (e.g. "Status") to include in API
 12276  	// requests with the JSON null value. By default, fields with empty values are
 12277  	// omitted from API requests. See
 12278  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12279  	NullFields []string `json:"-"`
 12280  }
 12281  
 12282  func (s *GoogleCloudDialogflowV2beta1DocumentReloadStatus) MarshalJSON() ([]byte, error) {
 12283  	type NoMethod GoogleCloudDialogflowV2beta1DocumentReloadStatus
 12284  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12285  }
 12286  
 12287  // GoogleCloudDialogflowV2beta1DtmfParameters: The message in the response that
 12288  // indicates the parameters of DTMF.
 12289  type GoogleCloudDialogflowV2beta1DtmfParameters struct {
 12290  	// AcceptsDtmfInput: Indicates whether DTMF input can be handled in the next
 12291  	// request.
 12292  	AcceptsDtmfInput bool `json:"acceptsDtmfInput,omitempty"`
 12293  	// ForceSendFields is a list of field names (e.g. "AcceptsDtmfInput") to
 12294  	// unconditionally include in API requests. By default, fields with empty or
 12295  	// default values are omitted from API requests. See
 12296  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12297  	// details.
 12298  	ForceSendFields []string `json:"-"`
 12299  	// NullFields is a list of field names (e.g. "AcceptsDtmfInput") to include in
 12300  	// API requests with the JSON null value. By default, fields with empty values
 12301  	// are omitted from API requests. See
 12302  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12303  	NullFields []string `json:"-"`
 12304  }
 12305  
 12306  func (s *GoogleCloudDialogflowV2beta1DtmfParameters) MarshalJSON() ([]byte, error) {
 12307  	type NoMethod GoogleCloudDialogflowV2beta1DtmfParameters
 12308  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12309  }
 12310  
 12311  // GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a type,
 12312  // called the entity type, which dictates exactly how data from an end-user
 12313  // expression is extracted. Dialogflow provides predefined system entities that
 12314  // can match many common types of data. For example, there are system entities
 12315  // for matching dates, times, colors, email addresses, and so on. You can also
 12316  // create your own custom entities for matching custom data. For example, you
 12317  // could define a vegetable entity that can match the types of vegetables
 12318  // available for purchase with a grocery store agent. For more information, see
 12319  // the Entity guide
 12320  // (https://cloud.google.com/dialogflow/docs/entities-overview).
 12321  type GoogleCloudDialogflowV2beta1EntityType struct {
 12322  	// AutoExpansionMode: Optional. Indicates whether the entity type can be
 12323  	// automatically expanded.
 12324  	//
 12325  	// Possible values:
 12326  	//   "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the
 12327  	// entity.
 12328  	//   "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values that
 12329  	// have not been explicitly listed in the entity.
 12330  	AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
 12331  	// DisplayName: Required. The name of the entity type.
 12332  	DisplayName string `json:"displayName,omitempty"`
 12333  	// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during
 12334  	// classification.
 12335  	EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
 12336  	// Entities: Optional. The collection of entity entries associated with the
 12337  	// entity type.
 12338  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 12339  	// Kind: Required. Indicates the kind of entity type.
 12340  	//
 12341  	// Possible values:
 12342  	//   "KIND_UNSPECIFIED" - Not specified. This value should be never used.
 12343  	//   "KIND_MAP" - Map entity types allow mapping of a group of synonyms to a
 12344  	// reference value.
 12345  	//   "KIND_LIST" - List entity types contain a set of entries that do not map
 12346  	// to reference values. However, list entity types can contain references to
 12347  	// other entity types (with or without aliases).
 12348  	//   "KIND_REGEXP" - Regexp entity types allow to specify regular expressions
 12349  	// in entries values.
 12350  	Kind string `json:"kind,omitempty"`
 12351  	// Name: The unique identifier of the entity type. Required for
 12352  	// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.
 12353  	// Supported formats: - `projects//agent/entityTypes/` -
 12354  	// `projects//locations//agent/entityTypes/`
 12355  	Name string `json:"name,omitempty"`
 12356  
 12357  	// ServerResponse contains the HTTP response code and headers from the server.
 12358  	googleapi.ServerResponse `json:"-"`
 12359  	// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to
 12360  	// unconditionally include in API requests. By default, fields with empty or
 12361  	// default values are omitted from API requests. See
 12362  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12363  	// details.
 12364  	ForceSendFields []string `json:"-"`
 12365  	// NullFields is a list of field names (e.g. "AutoExpansionMode") to include in
 12366  	// API requests with the JSON null value. By default, fields with empty values
 12367  	// are omitted from API requests. See
 12368  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12369  	NullFields []string `json:"-"`
 12370  }
 12371  
 12372  func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
 12373  	type NoMethod GoogleCloudDialogflowV2beta1EntityType
 12374  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12375  }
 12376  
 12377  // GoogleCloudDialogflowV2beta1EntityTypeBatch: This message is a wrapper
 12378  // around a collection of entity types.
 12379  type GoogleCloudDialogflowV2beta1EntityTypeBatch struct {
 12380  	// EntityTypes: A collection of entity types.
 12381  	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
 12382  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 12383  	// unconditionally include in API requests. By default, fields with empty or
 12384  	// default values are omitted from API requests. See
 12385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12386  	// details.
 12387  	ForceSendFields []string `json:"-"`
 12388  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 12389  	// requests with the JSON null value. By default, fields with empty values are
 12390  	// omitted from API requests. See
 12391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12392  	NullFields []string `json:"-"`
 12393  }
 12394  
 12395  func (s *GoogleCloudDialogflowV2beta1EntityTypeBatch) MarshalJSON() ([]byte, error) {
 12396  	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeBatch
 12397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12398  }
 12399  
 12400  // GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for an
 12401  // associated entity type.
 12402  type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
 12403  	// Synonyms: Required. A collection of value synonyms. For example, if the
 12404  	// entity type is *vegetable*, and `value` is *scallions*, a synonym could be
 12405  	// *green onions*. For `KIND_LIST` entity types: * This collection must contain
 12406  	// exactly one synonym equal to `value`.
 12407  	Synonyms []string `json:"synonyms,omitempty"`
 12408  	// Value: Required. The primary value associated with this entity entry. For
 12409  	// example, if the entity type is *vegetable*, the value could be *scallions*.
 12410  	// For `KIND_MAP` entity types: * A reference value to be used in place of
 12411  	// synonyms. For `KIND_LIST` entity types: * A string that can contain
 12412  	// references to other entity types (with or without aliases).
 12413  	Value string `json:"value,omitempty"`
 12414  	// ForceSendFields is a list of field names (e.g. "Synonyms") to
 12415  	// unconditionally include in API requests. By default, fields with empty or
 12416  	// default values are omitted from API requests. See
 12417  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12418  	// details.
 12419  	ForceSendFields []string `json:"-"`
 12420  	// NullFields is a list of field names (e.g. "Synonyms") to include in API
 12421  	// requests with the JSON null value. By default, fields with empty values are
 12422  	// omitted from API requests. See
 12423  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12424  	NullFields []string `json:"-"`
 12425  }
 12426  
 12427  func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
 12428  	type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
 12429  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12430  }
 12431  
 12432  // GoogleCloudDialogflowV2beta1Environment: You can create multiple versions of
 12433  // your agent and publish them to separate environments. When you edit an
 12434  // agent, you are editing the draft agent. At any point, you can save the draft
 12435  // agent as an agent version, which is an immutable snapshot of your agent.
 12436  // When you save the draft agent, it is published to the default environment.
 12437  // When you create agent versions, you can publish them to custom environments.
 12438  // You can create a variety of custom environments for: - testing - development
 12439  // - production - etc. For more information, see the versions and environments
 12440  // guide (https://cloud.google.com/dialogflow/docs/agents-versions).
 12441  type GoogleCloudDialogflowV2beta1Environment struct {
 12442  	// AgentVersion: Optional. The agent version loaded into this environment.
 12443  	// Supported formats: - `projects//agent/versions/` -
 12444  	// `projects//locations//agent/versions/`
 12445  	AgentVersion string `json:"agentVersion,omitempty"`
 12446  	// Description: Optional. The developer-provided description for this
 12447  	// environment. The maximum length is 500 characters. If exceeded, the request
 12448  	// is rejected.
 12449  	Description string `json:"description,omitempty"`
 12450  	// Fulfillment: Optional. The fulfillment settings to use for this environment.
 12451  	Fulfillment *GoogleCloudDialogflowV2beta1Fulfillment `json:"fulfillment,omitempty"`
 12452  	// Name: Output only. The unique identifier of this agent environment.
 12453  	// Supported formats: - `projects//agent/environments/` -
 12454  	// `projects//locations//agent/environments/`
 12455  	Name string `json:"name,omitempty"`
 12456  	// State: Output only. The state of this environment. This field is read-only,
 12457  	// i.e., it cannot be set by create and update methods.
 12458  	//
 12459  	// Possible values:
 12460  	//   "STATE_UNSPECIFIED" - Not specified. This value is not used.
 12461  	//   "STOPPED" - Stopped.
 12462  	//   "LOADING" - Loading.
 12463  	//   "RUNNING" - Running.
 12464  	State string `json:"state,omitempty"`
 12465  	// TextToSpeechSettings: Optional. Text to speech settings for this
 12466  	// environment.
 12467  	TextToSpeechSettings *GoogleCloudDialogflowV2beta1TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
 12468  	// UpdateTime: Output only. The last update time of this environment. This
 12469  	// field is read-only, i.e., it cannot be set by create and update methods.
 12470  	UpdateTime string `json:"updateTime,omitempty"`
 12471  
 12472  	// ServerResponse contains the HTTP response code and headers from the server.
 12473  	googleapi.ServerResponse `json:"-"`
 12474  	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
 12475  	// unconditionally include in API requests. By default, fields with empty or
 12476  	// default values are omitted from API requests. See
 12477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12478  	// details.
 12479  	ForceSendFields []string `json:"-"`
 12480  	// NullFields is a list of field names (e.g. "AgentVersion") to include in API
 12481  	// requests with the JSON null value. By default, fields with empty values are
 12482  	// omitted from API requests. See
 12483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12484  	NullFields []string `json:"-"`
 12485  }
 12486  
 12487  func (s *GoogleCloudDialogflowV2beta1Environment) MarshalJSON() ([]byte, error) {
 12488  	type NoMethod GoogleCloudDialogflowV2beta1Environment
 12489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12490  }
 12491  
 12492  // GoogleCloudDialogflowV2beta1EnvironmentHistory: The response message for
 12493  // Environments.GetEnvironmentHistory.
 12494  type GoogleCloudDialogflowV2beta1EnvironmentHistory struct {
 12495  	// Entries: Output only. The list of agent environments. There will be a
 12496  	// maximum number of items returned based on the page_size field in the
 12497  	// request.
 12498  	Entries []*GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry `json:"entries,omitempty"`
 12499  	// NextPageToken: Output only. Token to retrieve the next page of results, or
 12500  	// empty if there are no more results in the list.
 12501  	NextPageToken string `json:"nextPageToken,omitempty"`
 12502  	// Parent: Output only. The name of the environment this history is for.
 12503  	// Supported formats: - `projects//agent/environments/` -
 12504  	// `projects//locations//agent/environments/`
 12505  	Parent string `json:"parent,omitempty"`
 12506  
 12507  	// ServerResponse contains the HTTP response code and headers from the server.
 12508  	googleapi.ServerResponse `json:"-"`
 12509  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 12510  	// include in API requests. By default, fields with empty or default values are
 12511  	// omitted from API requests. See
 12512  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12513  	// details.
 12514  	ForceSendFields []string `json:"-"`
 12515  	// NullFields is a list of field names (e.g. "Entries") to include in API
 12516  	// requests with the JSON null value. By default, fields with empty values are
 12517  	// omitted from API requests. See
 12518  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12519  	NullFields []string `json:"-"`
 12520  }
 12521  
 12522  func (s *GoogleCloudDialogflowV2beta1EnvironmentHistory) MarshalJSON() ([]byte, error) {
 12523  	type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistory
 12524  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12525  }
 12526  
 12527  // GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry: Represents an
 12528  // environment history entry.
 12529  type GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry struct {
 12530  	// AgentVersion: The agent version loaded into this environment history entry.
 12531  	AgentVersion string `json:"agentVersion,omitempty"`
 12532  	// CreateTime: The creation time of this environment history entry.
 12533  	CreateTime string `json:"createTime,omitempty"`
 12534  	// Description: The developer-provided description for this environment history
 12535  	// entry.
 12536  	Description string `json:"description,omitempty"`
 12537  	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
 12538  	// unconditionally include in API requests. By default, fields with empty or
 12539  	// default values are omitted from API requests. See
 12540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12541  	// details.
 12542  	ForceSendFields []string `json:"-"`
 12543  	// NullFields is a list of field names (e.g. "AgentVersion") to include in API
 12544  	// requests with the JSON null value. By default, fields with empty values are
 12545  	// omitted from API requests. See
 12546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12547  	NullFields []string `json:"-"`
 12548  }
 12549  
 12550  func (s *GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry) MarshalJSON() ([]byte, error) {
 12551  	type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
 12552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12553  }
 12554  
 12555  // GoogleCloudDialogflowV2beta1EventInput: Events allow for matching intents by
 12556  // event name instead of the natural language input. For instance, input “ can
 12557  // trigger a personalized welcome response. The parameter `name` may be used by
 12558  // the agent in the response: "Hello #welcome_event.name! What can I do for
 12559  // you today?".
 12560  type GoogleCloudDialogflowV2beta1EventInput struct {
 12561  	// LanguageCode: Required. The language of this query. See Language Support
 12562  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 12563  	// the currently supported language codes. Note that queries in the same
 12564  	// session do not necessarily need to specify the same language. This field is
 12565  	// ignored when used in the context of a WebhookResponse.followup_event_input
 12566  	// field, because the language was already defined in the originating detect
 12567  	// intent request.
 12568  	LanguageCode string `json:"languageCode,omitempty"`
 12569  	// Name: Required. The unique identifier of the event.
 12570  	Name string `json:"name,omitempty"`
 12571  	// Parameters: The collection of parameters associated with the event.
 12572  	// Depending on your protocol or client library language, this is a map,
 12573  	// associative array, symbol table, dictionary, or JSON object composed of a
 12574  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 12575  	// value: parameter name * MapValue type: If parameter's entity type is a
 12576  	// composite entity then use map, otherwise, depending on the parameter value
 12577  	// type, it could be one of string, number, boolean, null, list or map. *
 12578  	// MapValue value: If parameter's entity type is a composite entity then use
 12579  	// map from composite entity property names to property values, otherwise, use
 12580  	// parameter value.
 12581  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 12582  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 12583  	// unconditionally include in API requests. By default, fields with empty or
 12584  	// default values are omitted from API requests. See
 12585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12586  	// details.
 12587  	ForceSendFields []string `json:"-"`
 12588  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 12589  	// requests with the JSON null value. By default, fields with empty values are
 12590  	// omitted from API requests. See
 12591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12592  	NullFields []string `json:"-"`
 12593  }
 12594  
 12595  func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
 12596  	type NoMethod GoogleCloudDialogflowV2beta1EventInput
 12597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12598  }
 12599  
 12600  // GoogleCloudDialogflowV2beta1ExportAgentRequest: The request message for
 12601  // Agents.ExportAgent.
 12602  type GoogleCloudDialogflowV2beta1ExportAgentRequest struct {
 12603  	// AgentUri: Optional. The Google Cloud Storage
 12604  	// (https://cloud.google.com/storage/docs/) URI to export the agent to. The
 12605  	// format of this URI must be `gs:///`. If left unspecified, the serialized
 12606  	// agent is returned inline. Dialogflow performs a write operation for the
 12607  	// Cloud Storage object on the caller's behalf, so your request authentication
 12608  	// must have write permissions for the object. For more information, see
 12609  	// Dialogflow access control
 12610  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 12611  	AgentUri string `json:"agentUri,omitempty"`
 12612  	// ForceSendFields is a list of field names (e.g. "AgentUri") to
 12613  	// unconditionally include in API requests. By default, fields with empty or
 12614  	// default values are omitted from API requests. See
 12615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12616  	// details.
 12617  	ForceSendFields []string `json:"-"`
 12618  	// NullFields is a list of field names (e.g. "AgentUri") to include in API
 12619  	// requests with the JSON null value. By default, fields with empty values are
 12620  	// omitted from API requests. See
 12621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12622  	NullFields []string `json:"-"`
 12623  }
 12624  
 12625  func (s *GoogleCloudDialogflowV2beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
 12626  	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentRequest
 12627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12628  }
 12629  
 12630  // GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message for
 12631  // Agents.ExportAgent.
 12632  type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
 12633  	// AgentContent: Zip compressed raw byte content for agent.
 12634  	AgentContent string `json:"agentContent,omitempty"`
 12635  	// AgentUri: The URI to a file containing the exported agent. This field is
 12636  	// populated only if `agent_uri` is specified in `ExportAgentRequest`.
 12637  	AgentUri string `json:"agentUri,omitempty"`
 12638  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 12639  	// unconditionally include in API requests. By default, fields with empty or
 12640  	// default values are omitted from API requests. See
 12641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12642  	// details.
 12643  	ForceSendFields []string `json:"-"`
 12644  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 12645  	// requests with the JSON null value. By default, fields with empty values are
 12646  	// omitted from API requests. See
 12647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12648  	NullFields []string `json:"-"`
 12649  }
 12650  
 12651  func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
 12652  	type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
 12653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12654  }
 12655  
 12656  // GoogleCloudDialogflowV2beta1ExportOperationMetadata: Metadata related to the
 12657  // Export Data Operations (e.g. ExportDocument).
 12658  type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
 12659  	// ExportedGcsDestination: Cloud Storage file path of the exported data.
 12660  	ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
 12661  	// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to
 12662  	// unconditionally include in API requests. By default, fields with empty or
 12663  	// default values are omitted from API requests. See
 12664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12665  	// details.
 12666  	ForceSendFields []string `json:"-"`
 12667  	// NullFields is a list of field names (e.g. "ExportedGcsDestination") to
 12668  	// include in API requests with the JSON null value. By default, fields with
 12669  	// empty values are omitted from API requests. See
 12670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12671  	NullFields []string `json:"-"`
 12672  }
 12673  
 12674  func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
 12675  	type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
 12676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12677  }
 12678  
 12679  // GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from "frequently
 12680  // asked questions".
 12681  type GoogleCloudDialogflowV2beta1FaqAnswer struct {
 12682  	// Answer: The piece of text from the `source` knowledge base document.
 12683  	Answer string `json:"answer,omitempty"`
 12684  	// AnswerRecord: The name of answer record, in the format of
 12685  	// "projects//locations//answerRecords/"
 12686  	AnswerRecord string `json:"answerRecord,omitempty"`
 12687  	// Confidence: The system's confidence score that this Knowledge answer is a
 12688  	// good match for this conversational query, range from 0.0 (completely
 12689  	// uncertain) to 1.0 (completely certain).
 12690  	Confidence float64 `json:"confidence,omitempty"`
 12691  	// Metadata: A map that contains metadata about the answer and the document
 12692  	// from which it originates.
 12693  	Metadata map[string]string `json:"metadata,omitempty"`
 12694  	// Question: The corresponding FAQ question.
 12695  	Question string `json:"question,omitempty"`
 12696  	// Source: Indicates which Knowledge Document this answer was extracted from.
 12697  	// Format: `projects//locations//agent/knowledgeBases//documents/`.
 12698  	Source string `json:"source,omitempty"`
 12699  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 12700  	// include in API requests. By default, fields with empty or default values are
 12701  	// omitted from API requests. See
 12702  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12703  	// details.
 12704  	ForceSendFields []string `json:"-"`
 12705  	// NullFields is a list of field names (e.g. "Answer") to include in API
 12706  	// requests with the JSON null value. By default, fields with empty values are
 12707  	// omitted from API requests. See
 12708  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12709  	NullFields []string `json:"-"`
 12710  }
 12711  
 12712  func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
 12713  	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
 12714  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12715  }
 12716  
 12717  func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
 12718  	type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
 12719  	var s1 struct {
 12720  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 12721  		*NoMethod
 12722  	}
 12723  	s1.NoMethod = (*NoMethod)(s)
 12724  	if err := json.Unmarshal(data, &s1); err != nil {
 12725  		return err
 12726  	}
 12727  	s.Confidence = float64(s1.Confidence)
 12728  	return nil
 12729  }
 12730  
 12731  // GoogleCloudDialogflowV2beta1Fulfillment: By default, your agent responds to
 12732  // a matched intent with a static response. As an alternative, you can provide
 12733  // a more dynamic response by using fulfillment. When you enable fulfillment
 12734  // for an intent, Dialogflow responds to that intent by calling a service that
 12735  // you define. For example, if an end-user wants to schedule a haircut on
 12736  // Friday, your service can check your database and respond to the end-user
 12737  // with availability information for Friday. For more information, see the
 12738  // fulfillment guide
 12739  // (https://cloud.google.com/dialogflow/docs/fulfillment-overview).
 12740  type GoogleCloudDialogflowV2beta1Fulfillment struct {
 12741  	// DisplayName: The human-readable name of the fulfillment, unique within the
 12742  	// agent. This field is not used for Fulfillment in an Environment.
 12743  	DisplayName string `json:"displayName,omitempty"`
 12744  	// Enabled: Whether fulfillment is enabled.
 12745  	Enabled bool `json:"enabled,omitempty"`
 12746  	// Features: The field defines whether the fulfillment is enabled for certain
 12747  	// features.
 12748  	Features []*GoogleCloudDialogflowV2beta1FulfillmentFeature `json:"features,omitempty"`
 12749  	// GenericWebService: Configuration for a generic web service.
 12750  	GenericWebService *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService `json:"genericWebService,omitempty"`
 12751  	// Name: Required. The unique identifier of the fulfillment. Supported formats:
 12752  	// - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
 12753  	// This field is not used for Fulfillment in an Environment.
 12754  	Name string `json:"name,omitempty"`
 12755  
 12756  	// ServerResponse contains the HTTP response code and headers from the server.
 12757  	googleapi.ServerResponse `json:"-"`
 12758  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 12759  	// unconditionally include in API requests. By default, fields with empty or
 12760  	// default values are omitted from API requests. See
 12761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12762  	// details.
 12763  	ForceSendFields []string `json:"-"`
 12764  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 12765  	// requests with the JSON null value. By default, fields with empty values are
 12766  	// omitted from API requests. See
 12767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12768  	NullFields []string `json:"-"`
 12769  }
 12770  
 12771  func (s *GoogleCloudDialogflowV2beta1Fulfillment) MarshalJSON() ([]byte, error) {
 12772  	type NoMethod GoogleCloudDialogflowV2beta1Fulfillment
 12773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12774  }
 12775  
 12776  // GoogleCloudDialogflowV2beta1FulfillmentFeature: Whether fulfillment is
 12777  // enabled for the specific feature.
 12778  type GoogleCloudDialogflowV2beta1FulfillmentFeature struct {
 12779  	// Type: The type of the feature that enabled for fulfillment.
 12780  	//
 12781  	// Possible values:
 12782  	//   "TYPE_UNSPECIFIED" - Feature type not specified.
 12783  	//   "SMALLTALK" - Fulfillment is enabled for SmallTalk.
 12784  	Type string `json:"type,omitempty"`
 12785  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
 12786  	// include in API requests. By default, fields with empty or default values are
 12787  	// omitted from API requests. See
 12788  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12789  	// details.
 12790  	ForceSendFields []string `json:"-"`
 12791  	// NullFields is a list of field names (e.g. "Type") to include in API requests
 12792  	// with the JSON null value. By default, fields with empty values are omitted
 12793  	// from API requests. See
 12794  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12795  	NullFields []string `json:"-"`
 12796  }
 12797  
 12798  func (s *GoogleCloudDialogflowV2beta1FulfillmentFeature) MarshalJSON() ([]byte, error) {
 12799  	type NoMethod GoogleCloudDialogflowV2beta1FulfillmentFeature
 12800  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12801  }
 12802  
 12803  // GoogleCloudDialogflowV2beta1FulfillmentGenericWebService: Represents
 12804  // configuration for a generic web service. Dialogflow supports two mechanisms
 12805  // for authentications: - Basic authentication with username and password. -
 12806  // Authentication with additional authentication headers. More information
 12807  // could be found at:
 12808  // https://cloud.google.com/dialogflow/docs/fulfillment-configure.
 12809  type GoogleCloudDialogflowV2beta1FulfillmentGenericWebService struct {
 12810  	// IsCloudFunction: Optional. Indicates if generic web service is created
 12811  	// through Cloud Functions integration. Defaults to false. is_cloud_function is
 12812  	// deprecated. Cloud functions can be configured by its uri as a regular web
 12813  	// service now.
 12814  	IsCloudFunction bool `json:"isCloudFunction,omitempty"`
 12815  	// Password: The password for HTTP Basic authentication.
 12816  	Password string `json:"password,omitempty"`
 12817  	// RequestHeaders: The HTTP request headers to send together with fulfillment
 12818  	// requests.
 12819  	RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
 12820  	// Uri: Required. The fulfillment URI for receiving POST requests. It must use
 12821  	// https protocol.
 12822  	Uri string `json:"uri,omitempty"`
 12823  	// Username: The user name for HTTP Basic authentication.
 12824  	Username string `json:"username,omitempty"`
 12825  	// ForceSendFields is a list of field names (e.g. "IsCloudFunction") to
 12826  	// unconditionally include in API requests. By default, fields with empty or
 12827  	// default values are omitted from API requests. See
 12828  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12829  	// details.
 12830  	ForceSendFields []string `json:"-"`
 12831  	// NullFields is a list of field names (e.g. "IsCloudFunction") to include in
 12832  	// API requests with the JSON null value. By default, fields with empty values
 12833  	// are omitted from API requests. See
 12834  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12835  	NullFields []string `json:"-"`
 12836  }
 12837  
 12838  func (s *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService) MarshalJSON() ([]byte, error) {
 12839  	type NoMethod GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
 12840  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12841  }
 12842  
 12843  // GoogleCloudDialogflowV2beta1GcsDestination: Google Cloud Storage location
 12844  // for the output.
 12845  type GoogleCloudDialogflowV2beta1GcsDestination struct {
 12846  	// Uri: Required. The Google Cloud Storage URIs for the output. A URI is of the
 12847  	// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used
 12848  	// depends on the use case. The requesting user must have "write-permission" to
 12849  	// the bucket.
 12850  	Uri string `json:"uri,omitempty"`
 12851  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 12852  	// include in API requests. By default, fields with empty or default values are
 12853  	// omitted from API requests. See
 12854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12855  	// details.
 12856  	ForceSendFields []string `json:"-"`
 12857  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 12858  	// with the JSON null value. By default, fields with empty values are omitted
 12859  	// from API requests. See
 12860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12861  	NullFields []string `json:"-"`
 12862  }
 12863  
 12864  func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
 12865  	type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
 12866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12867  }
 12868  
 12869  // GoogleCloudDialogflowV2beta1GcsSource: Google Cloud Storage location for
 12870  // single input.
 12871  type GoogleCloudDialogflowV2beta1GcsSource struct {
 12872  	// Uri: Required. The Google Cloud Storage URIs for the inputs. A URI is of the
 12873  	// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used
 12874  	// depends on the use case.
 12875  	Uri string `json:"uri,omitempty"`
 12876  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 12877  	// include in API requests. By default, fields with empty or default values are
 12878  	// omitted from API requests. See
 12879  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12880  	// details.
 12881  	ForceSendFields []string `json:"-"`
 12882  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 12883  	// with the JSON null value. By default, fields with empty values are omitted
 12884  	// from API requests. See
 12885  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12886  	NullFields []string `json:"-"`
 12887  }
 12888  
 12889  func (s *GoogleCloudDialogflowV2beta1GcsSource) MarshalJSON() ([]byte, error) {
 12890  	type NoMethod GoogleCloudDialogflowV2beta1GcsSource
 12891  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12892  }
 12893  
 12894  // GoogleCloudDialogflowV2beta1GcsSources: Google Cloud Storage locations for
 12895  // the inputs.
 12896  type GoogleCloudDialogflowV2beta1GcsSources struct {
 12897  	// Uris: Required. Google Cloud Storage URIs for the inputs. A URI is of the
 12898  	// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used
 12899  	// depends on the use case.
 12900  	Uris []string `json:"uris,omitempty"`
 12901  	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
 12902  	// include in API requests. By default, fields with empty or default values are
 12903  	// omitted from API requests. See
 12904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12905  	// details.
 12906  	ForceSendFields []string `json:"-"`
 12907  	// NullFields is a list of field names (e.g. "Uris") to include in API requests
 12908  	// with the JSON null value. By default, fields with empty values are omitted
 12909  	// from API requests. See
 12910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12911  	NullFields []string `json:"-"`
 12912  }
 12913  
 12914  func (s *GoogleCloudDialogflowV2beta1GcsSources) MarshalJSON() ([]byte, error) {
 12915  	type NoMethod GoogleCloudDialogflowV2beta1GcsSources
 12916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12917  }
 12918  
 12919  // GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest: The request
 12920  // message for Conversations.GenerateStatelessSummary.
 12921  type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest struct {
 12922  	// ConversationProfile: Required. A ConversationProfile containing information
 12923  	// required for Summary generation. Required fields: {language_code,
 12924  	// security_settings} Optional fields: {agent_assistant_config}
 12925  	ConversationProfile *GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfile,omitempty"`
 12926  	// LatestMessage: The name of the latest conversation message used as context
 12927  	// for generating a Summary. If empty, the latest message of the conversation
 12928  	// will be used. The format is specific to the user and the names of the
 12929  	// messages provided.
 12930  	LatestMessage string `json:"latestMessage,omitempty"`
 12931  	// MaxContextSize: Max number of messages prior to and including
 12932  	// [latest_message] to use as context when compiling the suggestion. By default
 12933  	// 500 and at most 1000.
 12934  	MaxContextSize int64 `json:"maxContextSize,omitempty"`
 12935  	// StatelessConversation: Required. The conversation to suggest a summary for.
 12936  	StatelessConversation *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation `json:"statelessConversation,omitempty"`
 12937  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 12938  	// unconditionally include in API requests. By default, fields with empty or
 12939  	// default values are omitted from API requests. See
 12940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12941  	// details.
 12942  	ForceSendFields []string `json:"-"`
 12943  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 12944  	// in API requests with the JSON null value. By default, fields with empty
 12945  	// values are omitted from API requests. See
 12946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12947  	NullFields []string `json:"-"`
 12948  }
 12949  
 12950  func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) MarshalJSON() ([]byte, error) {
 12951  	type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
 12952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12953  }
 12954  
 12955  // GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversatio
 12956  // n: The minimum amount of information required to generate a Summary without
 12957  // having a Conversation resource created.
 12958  type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation struct {
 12959  	// Messages: Required. The messages that the Summary will be generated from. It
 12960  	// is expected that this message content is already redacted and does not
 12961  	// contain any PII. Required fields: {content, language_code, participant,
 12962  	// participant_role} Optional fields: {send_time} If send_time is not provided,
 12963  	// then the messages must be provided in chronological order.
 12964  	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
 12965  	// ForceSendFields is a list of field names (e.g. "Messages") to
 12966  	// unconditionally include in API requests. By default, fields with empty or
 12967  	// default values are omitted from API requests. See
 12968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12969  	// details.
 12970  	ForceSendFields []string `json:"-"`
 12971  	// NullFields is a list of field names (e.g. "Messages") to include in API
 12972  	// requests with the JSON null value. By default, fields with empty values are
 12973  	// omitted from API requests. See
 12974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12975  	NullFields []string `json:"-"`
 12976  }
 12977  
 12978  func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation) MarshalJSON() ([]byte, error) {
 12979  	type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation
 12980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12981  }
 12982  
 12983  // GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse: The response
 12984  // message for Conversations.GenerateStatelessSummary.
 12985  type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse struct {
 12986  	// ContextSize: Number of messages prior to and including
 12987  	// last_conversation_message used to compile the suggestion. It may be smaller
 12988  	// than the GenerateStatelessSummaryRequest.context_size field in the request
 12989  	// if there weren't that many messages in the conversation.
 12990  	ContextSize int64 `json:"contextSize,omitempty"`
 12991  	// LatestMessage: The name of the latest conversation message used as context
 12992  	// for compiling suggestion. The format is specific to the user and the names
 12993  	// of the messages provided.
 12994  	LatestMessage string `json:"latestMessage,omitempty"`
 12995  	// Summary: Generated summary.
 12996  	Summary *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary `json:"summary,omitempty"`
 12997  
 12998  	// ServerResponse contains the HTTP response code and headers from the server.
 12999  	googleapi.ServerResponse `json:"-"`
 13000  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 13001  	// unconditionally include in API requests. By default, fields with empty or
 13002  	// default values are omitted from API requests. See
 13003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13004  	// details.
 13005  	ForceSendFields []string `json:"-"`
 13006  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 13007  	// requests with the JSON null value. By default, fields with empty values are
 13008  	// omitted from API requests. See
 13009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13010  	NullFields []string `json:"-"`
 13011  }
 13012  
 13013  func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse) MarshalJSON() ([]byte, error) {
 13014  	type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
 13015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13016  }
 13017  
 13018  // GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary:
 13019  // Generated summary for a conversation.
 13020  type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary struct {
 13021  	// BaselineModelVersion: The baseline model version used to generate this
 13022  	// summary. It is empty if a baseline model was not used to generate this
 13023  	// summary.
 13024  	BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
 13025  	// Text: The summary content that is concatenated into one string.
 13026  	Text string `json:"text,omitempty"`
 13027  	// TextSections: The summary content that is divided into sections. The key is
 13028  	// the section's name and the value is the section's content. There is no
 13029  	// specific format for the key or value.
 13030  	TextSections map[string]string `json:"textSections,omitempty"`
 13031  	// ForceSendFields is a list of field names (e.g. "BaselineModelVersion") to
 13032  	// unconditionally include in API requests. By default, fields with empty or
 13033  	// default values are omitted from API requests. See
 13034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13035  	// details.
 13036  	ForceSendFields []string `json:"-"`
 13037  	// NullFields is a list of field names (e.g. "BaselineModelVersion") to include
 13038  	// in API requests with the JSON null value. By default, fields with empty
 13039  	// values are omitted from API requests. See
 13040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13041  	NullFields []string `json:"-"`
 13042  }
 13043  
 13044  func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary) MarshalJSON() ([]byte, error) {
 13045  	type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary
 13046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13047  }
 13048  
 13049  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig: Defines the Human
 13050  // Agent Assistant to connect to a conversation.
 13051  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig struct {
 13052  	// EndUserSuggestionConfig: Configuration for agent assistance of end user
 13053  	// participant. Currently, this feature is not general available, please
 13054  	// contact Google to get access.
 13055  	EndUserSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`
 13056  	// HumanAgentSuggestionConfig: Configuration for agent assistance of human
 13057  	// agent participant.
 13058  	HumanAgentSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`
 13059  	// MessageAnalysisConfig: Configuration for message analysis.
 13060  	MessageAnalysisConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`
 13061  	// NotificationConfig: Pub/Sub topic on which to publish new agent assistant
 13062  	// events.
 13063  	NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
 13064  	// ForceSendFields is a list of field names (e.g. "EndUserSuggestionConfig") to
 13065  	// unconditionally include in API requests. By default, fields with empty or
 13066  	// default values are omitted from API requests. See
 13067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13068  	// details.
 13069  	ForceSendFields []string `json:"-"`
 13070  	// NullFields is a list of field names (e.g. "EndUserSuggestionConfig") to
 13071  	// include in API requests with the JSON null value. By default, fields with
 13072  	// empty values are omitted from API requests. See
 13073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13074  	NullFields []string `json:"-"`
 13075  }
 13076  
 13077  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig) MarshalJSON() ([]byte, error) {
 13078  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
 13079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13080  }
 13081  
 13082  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig:
 13083  //
 13084  //	Custom conversation models used in agent assist feature. Supported feature:
 13085  //
 13086  // ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY, CONVERSATION_SUMMARIZATION.
 13087  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig struct {
 13088  	// BaselineModelVersion: Version of current baseline model. It will be ignored
 13089  	// if model is set. Valid versions are: Article Suggestion baseline model: -
 13090  	// 0.9 - 1.0 (default) Summarization baseline model: - 1.0
 13091  	BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
 13092  	// Model: Conversation model resource name. Format:
 13093  	// `projects//conversationModels/`.
 13094  	Model string `json:"model,omitempty"`
 13095  	// ForceSendFields is a list of field names (e.g. "BaselineModelVersion") to
 13096  	// unconditionally include in API requests. By default, fields with empty or
 13097  	// default values are omitted from API requests. See
 13098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13099  	// details.
 13100  	ForceSendFields []string `json:"-"`
 13101  	// NullFields is a list of field names (e.g. "BaselineModelVersion") to include
 13102  	// in API requests with the JSON null value. By default, fields with empty
 13103  	// values are omitted from API requests. See
 13104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13105  	NullFields []string `json:"-"`
 13106  }
 13107  
 13108  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig) MarshalJSON() ([]byte, error) {
 13109  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
 13110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13111  }
 13112  
 13113  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfi
 13114  // g: Config to process conversation.
 13115  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig struct {
 13116  	// RecentSentencesCount: Number of recent non-small-talk sentences to use as
 13117  	// context for article and FAQ suggestion
 13118  	RecentSentencesCount int64 `json:"recentSentencesCount,omitempty"`
 13119  	// ForceSendFields is a list of field names (e.g. "RecentSentencesCount") to
 13120  	// unconditionally include in API requests. By default, fields with empty or
 13121  	// default values are omitted from API requests. See
 13122  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13123  	// details.
 13124  	ForceSendFields []string `json:"-"`
 13125  	// NullFields is a list of field names (e.g. "RecentSentencesCount") to include
 13126  	// in API requests with the JSON null value. By default, fields with empty
 13127  	// values are omitted from API requests. See
 13128  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13129  	NullFields []string `json:"-"`
 13130  }
 13131  
 13132  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig) MarshalJSON() ([]byte, error) {
 13133  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig
 13134  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13135  }
 13136  
 13137  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig:
 13138  // Configuration for analyses to run on each conversation message.
 13139  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig struct {
 13140  	// EnableEntityExtraction: Enable entity extraction in conversation messages on
 13141  	// agent assist stage
 13142  	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
 13143  	// If unspecified, defaults to false. Currently, this feature is not general
 13144  	// available, please contact Google to get access.
 13145  	EnableEntityExtraction bool `json:"enableEntityExtraction,omitempty"`
 13146  	// EnableSentimentAnalysis: Enable sentiment analysis in conversation messages
 13147  	// on agent assist stage
 13148  	// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
 13149  	// If unspecified, defaults to false. Sentiment analysis inspects user input
 13150  	// and identifies the prevailing subjective opinion, especially to determine a
 13151  	// user's attitude as positive, negative, or neutral:
 13152  	// https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For
 13153  	// Participants.StreamingAnalyzeContent method, result will be in
 13154  	// StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For
 13155  	// Participants.AnalyzeContent method, result will be in
 13156  	// AnalyzeContentResponse.message.SentimentAnalysisResult For
 13157  	// Conversations.ListMessages method, result will be in
 13158  	// ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub
 13159  	// notification is configured, result will be in
 13160  	// ConversationEvent.new_message_payload.SentimentAnalysisResult.
 13161  	EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
 13162  	// ForceSendFields is a list of field names (e.g. "EnableEntityExtraction") to
 13163  	// unconditionally include in API requests. By default, fields with empty or
 13164  	// default values are omitted from API requests. See
 13165  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13166  	// details.
 13167  	ForceSendFields []string `json:"-"`
 13168  	// NullFields is a list of field names (e.g. "EnableEntityExtraction") to
 13169  	// include in API requests with the JSON null value. By default, fields with
 13170  	// empty values are omitted from API requests. See
 13171  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13172  	NullFields []string `json:"-"`
 13173  }
 13174  
 13175  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig) MarshalJSON() ([]byte, error) {
 13176  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
 13177  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13178  }
 13179  
 13180  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig:
 13181  // Detail human agent assistant config.
 13182  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig struct {
 13183  	// FeatureConfigs: Configuration of different suggestion features. One feature
 13184  	// can have only one config.
 13185  	FeatureConfigs []*GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`
 13186  	// GroupSuggestionResponses: If `group_suggestion_responses` is false, and
 13187  	// there are multiple `feature_configs` in `event based suggestion` or
 13188  	// StreamingAnalyzeContent, we will try to deliver suggestions to customers as
 13189  	// soon as we get new suggestion. Different type of suggestions based on the
 13190  	// same context will be in separate Pub/Sub event or
 13191  	// `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to
 13192  	// true. All the suggestions to the same participant based on the same context
 13193  	// will be grouped into a single Pub/Sub event or
 13194  	// StreamingAnalyzeContentResponse.
 13195  	GroupSuggestionResponses bool `json:"groupSuggestionResponses,omitempty"`
 13196  	// ForceSendFields is a list of field names (e.g. "FeatureConfigs") to
 13197  	// unconditionally include in API requests. By default, fields with empty or
 13198  	// default values are omitted from API requests. See
 13199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13200  	// details.
 13201  	ForceSendFields []string `json:"-"`
 13202  	// NullFields is a list of field names (e.g. "FeatureConfigs") to include in
 13203  	// API requests with the JSON null value. By default, fields with empty values
 13204  	// are omitted from API requests. See
 13205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13206  	NullFields []string `json:"-"`
 13207  }
 13208  
 13209  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig) MarshalJSON() ([]byte, error) {
 13210  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig
 13211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13212  }
 13213  
 13214  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig:
 13215  //
 13216  //	Config for suggestion features.
 13217  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig struct {
 13218  	// ConversationModelConfig: Configs of custom conversation model.
 13219  	ConversationModelConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`
 13220  	// ConversationProcessConfig: Configs for processing conversation.
 13221  	ConversationProcessConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig `json:"conversationProcessConfig,omitempty"`
 13222  	// DisableAgentQueryLogging: Optional. Disable the logging of search queries
 13223  	// sent by human agents. It can prevent those queries from being stored at
 13224  	// answer records. Supported features: KNOWLEDGE_SEARCH.
 13225  	DisableAgentQueryLogging bool `json:"disableAgentQueryLogging,omitempty"`
 13226  	// EnableConversationAugmentedQuery: Optional. Enable including conversation
 13227  	// context during query answer generation. Supported features:
 13228  	// KNOWLEDGE_SEARCH.
 13229  	EnableConversationAugmentedQuery bool `json:"enableConversationAugmentedQuery,omitempty"`
 13230  	// EnableEventBasedSuggestion: Automatically iterates all participants and
 13231  	// tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ,
 13232  	// DIALOGFLOW_ASSIST, ENTITY_EXTRACTION, KNOWLEDGE_ASSIST.
 13233  	EnableEventBasedSuggestion bool `json:"enableEventBasedSuggestion,omitempty"`
 13234  	// QueryConfig: Configs of query.
 13235  	QueryConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`
 13236  	// SuggestionFeature: The suggestion feature.
 13237  	SuggestionFeature *GoogleCloudDialogflowV2beta1SuggestionFeature `json:"suggestionFeature,omitempty"`
 13238  	// SuggestionTriggerSettings: Settings of suggestion trigger. Currently, only
 13239  	// ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use this field.
 13240  	SuggestionTriggerSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`
 13241  	// ForceSendFields is a list of field names (e.g. "ConversationModelConfig") to
 13242  	// unconditionally include in API requests. By default, fields with empty or
 13243  	// default values are omitted from API requests. See
 13244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13245  	// details.
 13246  	ForceSendFields []string `json:"-"`
 13247  	// NullFields is a list of field names (e.g. "ConversationModelConfig") to
 13248  	// include in API requests with the JSON null value. By default, fields with
 13249  	// empty values are omitted from API requests. See
 13250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13251  	NullFields []string `json:"-"`
 13252  }
 13253  
 13254  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig) MarshalJSON() ([]byte, error) {
 13255  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig
 13256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13257  }
 13258  
 13259  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig:
 13260  // Config for suggestion query.
 13261  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig struct {
 13262  	// ConfidenceThreshold: Confidence threshold of query result. Agent Assist
 13263  	// gives each suggestion a score in the range [0.0, 1.0], based on the
 13264  	// relevance between the suggestion and the current conversation context. A
 13265  	// score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only
 13266  	// suggestions with a score greater than or equal to the value of this field
 13267  	// are included in the results. For a baseline model (the default), the
 13268  	// recommended value is in the range [0.05, 0.1]. For a custom model, there is
 13269  	// no recommended value. Tune this value by starting from a very low value and
 13270  	// slowly increasing until you have desired results. If this field is not set,
 13271  	// it is default to 0.0, which means that all suggestions are returned.
 13272  	// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
 13273  	// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
 13274  	ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
 13275  	// ContextFilterSettings: Determines how recent conversation context is
 13276  	// filtered when generating suggestions. If unspecified, no messages will be
 13277  	// dropped.
 13278  	ContextFilterSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`
 13279  	// DialogflowQuerySource: Query from Dialogflow agent. It is used by
 13280  	// DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.
 13281  	DialogflowQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`
 13282  	// DocumentQuerySource: Query from knowledge base document. It is used by:
 13283  	// SMART_REPLY, SMART_COMPOSE.
 13284  	DocumentQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`
 13285  	// KnowledgeBaseQuerySource: Query from knowledgebase. It is used by:
 13286  	// ARTICLE_SUGGESTION, FAQ.
 13287  	KnowledgeBaseQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`
 13288  	// MaxResults: Maximum number of results to return. Currently, if unset,
 13289  	// defaults to 10. And the max number is 20.
 13290  	MaxResults int64 `json:"maxResults,omitempty"`
 13291  	// Sections: Optional. The customized sections chosen to return when requesting
 13292  	// a summary of a conversation.
 13293  	Sections *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections `json:"sections,omitempty"`
 13294  	// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") 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. "ConfidenceThreshold") to include
 13301  	// in API requests with the JSON null value. By default, fields with empty
 13302  	// values 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 *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) MarshalJSON() ([]byte, error) {
 13308  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
 13309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13310  }
 13311  
 13312  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) UnmarshalJSON(data []byte) error {
 13313  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
 13314  	var s1 struct {
 13315  		ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
 13316  		*NoMethod
 13317  	}
 13318  	s1.NoMethod = (*NoMethod)(s)
 13319  	if err := json.Unmarshal(data, &s1); err != nil {
 13320  		return err
 13321  	}
 13322  	s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
 13323  	return nil
 13324  }
 13325  
 13326  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigCon
 13327  // textFilterSettings: Settings that determine how to filter recent
 13328  // conversation context when generating suggestions.
 13329  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {
 13330  	// DropHandoffMessages: If set to true, the last message from virtual agent
 13331  	// (hand off message) and the message before it (trigger message of hand off)
 13332  	// are dropped.
 13333  	DropHandoffMessages bool `json:"dropHandoffMessages,omitempty"`
 13334  	// DropIvrMessages: If set to true, all messages from ivr stage are dropped.
 13335  	DropIvrMessages bool `json:"dropIvrMessages,omitempty"`
 13336  	// DropVirtualAgentMessages: If set to true, all messages from virtual agent
 13337  	// are dropped.
 13338  	DropVirtualAgentMessages bool `json:"dropVirtualAgentMessages,omitempty"`
 13339  	// ForceSendFields is a list of field names (e.g. "DropHandoffMessages") to
 13340  	// unconditionally include in API requests. By default, fields with empty or
 13341  	// default values are omitted from API requests. See
 13342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13343  	// details.
 13344  	ForceSendFields []string `json:"-"`
 13345  	// NullFields is a list of field names (e.g. "DropHandoffMessages") to include
 13346  	// in API requests with the JSON null value. By default, fields with empty
 13347  	// values are omitted from API requests. See
 13348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13349  	NullFields []string `json:"-"`
 13350  }
 13351  
 13352  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings) MarshalJSON() ([]byte, error) {
 13353  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
 13354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13355  }
 13356  
 13357  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDia
 13358  // logflowQuerySource: Dialogflow source setting. Supported feature:
 13359  // DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.
 13360  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {
 13361  	// Agent: Required. The name of a dialogflow virtual agent used for end user
 13362  	// side intent detection and suggestion. Format: `projects//locations//agent`.
 13363  	// When multiple agents are allowed in the same Dialogflow project.
 13364  	Agent string `json:"agent,omitempty"`
 13365  	// HumanAgentSideConfig: The Dialogflow assist configuration for human agent.
 13366  	HumanAgentSideConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig `json:"humanAgentSideConfig,omitempty"`
 13367  	// ForceSendFields is a list of field names (e.g. "Agent") 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. "Agent") 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 *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource) MarshalJSON() ([]byte, error) {
 13381  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
 13382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13383  }
 13384  
 13385  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDia
 13386  // logflowQuerySourceHumanAgentSideConfig: The configuration used for human
 13387  // agent side Dialogflow assist suggestion.
 13388  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig struct {
 13389  	// Agent: Optional. The name of a dialogflow virtual agent used for intent
 13390  	// detection and suggestion triggered by human agent. Format:
 13391  	// `projects//locations//agent`.
 13392  	Agent string `json:"agent,omitempty"`
 13393  	// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally
 13394  	// include in API requests. By default, fields with empty or default values are
 13395  	// omitted from API requests. See
 13396  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13397  	// details.
 13398  	ForceSendFields []string `json:"-"`
 13399  	// NullFields is a list of field names (e.g. "Agent") to include in API
 13400  	// requests with the JSON null value. By default, fields with empty values are
 13401  	// omitted from API requests. See
 13402  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13403  	NullFields []string `json:"-"`
 13404  }
 13405  
 13406  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig) MarshalJSON() ([]byte, error) {
 13407  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
 13408  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13409  }
 13410  
 13411  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDoc
 13412  // umentQuerySource: Document source settings. Supported features: SMART_REPLY,
 13413  // SMART_COMPOSE.
 13414  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {
 13415  	// Documents: Required. Knowledge documents to query from. Format:
 13416  	// `projects//locations//knowledgeBases//documents/`. Currently, only one
 13417  	// document is supported.
 13418  	Documents []string `json:"documents,omitempty"`
 13419  	// ForceSendFields is a list of field names (e.g. "Documents") to
 13420  	// unconditionally include in API requests. By default, fields with empty or
 13421  	// default values are omitted from API requests. See
 13422  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13423  	// details.
 13424  	ForceSendFields []string `json:"-"`
 13425  	// NullFields is a list of field names (e.g. "Documents") to include in API
 13426  	// requests with the JSON null value. By default, fields with empty values are
 13427  	// omitted from API requests. See
 13428  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13429  	NullFields []string `json:"-"`
 13430  }
 13431  
 13432  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource) MarshalJSON() ([]byte, error) {
 13433  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
 13434  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13435  }
 13436  
 13437  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKno
 13438  // wledgeBaseQuerySource: Knowledge base source settings. Supported features:
 13439  // ARTICLE_SUGGESTION, FAQ.
 13440  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {
 13441  	// KnowledgeBases: Required. Knowledge bases to query. Format:
 13442  	// `projects//locations//knowledgeBases/`. Currently, only one knowledge base
 13443  	// is supported.
 13444  	KnowledgeBases []string `json:"knowledgeBases,omitempty"`
 13445  	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
 13446  	// unconditionally include in API requests. By default, fields with empty or
 13447  	// default values are omitted from API requests. See
 13448  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13449  	// details.
 13450  	ForceSendFields []string `json:"-"`
 13451  	// NullFields is a list of field names (e.g. "KnowledgeBases") to include in
 13452  	// API requests with the JSON null value. By default, fields with empty values
 13453  	// are omitted from API requests. See
 13454  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13455  	NullFields []string `json:"-"`
 13456  }
 13457  
 13458  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource) MarshalJSON() ([]byte, error) {
 13459  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
 13460  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13461  }
 13462  
 13463  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSec
 13464  // tions: Custom sections to return when requesting a summary of a
 13465  // conversation. This is only supported when `baseline_model_version` == '2.0'.
 13466  // Supported features: CONVERSATION_SUMMARIZATION,
 13467  // CONVERSATION_SUMMARIZATION_VOICE.
 13468  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections struct {
 13469  	// SectionTypes: The selected sections chosen to return when requesting a
 13470  	// summary of a conversation. A duplicate selected section will be treated as a
 13471  	// single selected section. If section types are not provided, the default will
 13472  	// be {SITUATION, ACTION, RESULT}.
 13473  	//
 13474  	// Possible values:
 13475  	//   "SECTION_TYPE_UNSPECIFIED" - Undefined section type, does not return
 13476  	// anything.
 13477  	//   "SITUATION" - What the customer needs help with or has question about.
 13478  	// Section name: "situation".
 13479  	//   "ACTION" - What the agent does to help the customer. Section name:
 13480  	// "action".
 13481  	//   "RESOLUTION" - Result of the customer service. A single word describing
 13482  	// the result of the conversation. Section name: "resolution".
 13483  	//   "REASON_FOR_CANCELLATION" - Reason for cancellation if the customer
 13484  	// requests for a cancellation. "N/A" otherwise. Section name:
 13485  	// "reason_for_cancellation".
 13486  	//   "CUSTOMER_SATISFACTION" - "Unsatisfied" or "Satisfied" depending on the
 13487  	// customer's feelings at the end of the conversation. Section name:
 13488  	// "customer_satisfaction".
 13489  	//   "ENTITIES" - Key entities extracted from the conversation, such as ticket
 13490  	// number, order number, dollar amount, etc. Section names are prefixed by
 13491  	// "entities/".
 13492  	SectionTypes []string `json:"sectionTypes,omitempty"`
 13493  	// ForceSendFields is a list of field names (e.g. "SectionTypes") to
 13494  	// unconditionally include in API requests. By default, fields with empty or
 13495  	// default values are omitted from API requests. See
 13496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13497  	// details.
 13498  	ForceSendFields []string `json:"-"`
 13499  	// NullFields is a list of field names (e.g. "SectionTypes") to include in API
 13500  	// requests with the JSON null value. By default, fields with empty values are
 13501  	// omitted from API requests. See
 13502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13503  	NullFields []string `json:"-"`
 13504  }
 13505  
 13506  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections) MarshalJSON() ([]byte, error) {
 13507  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections
 13508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13509  }
 13510  
 13511  // GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSetting
 13512  // s: Settings of suggestion trigger.
 13513  type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings struct {
 13514  	// NoSmallTalk: Do not trigger if last utterance is small talk.
 13515  	NoSmallTalk bool `json:"noSmallTalk,omitempty"`
 13516  	// OnlyEndUser: Only trigger suggestion if participant role of last utterance
 13517  	// is END_USER.
 13518  	OnlyEndUser bool `json:"onlyEndUser,omitempty"`
 13519  	// ForceSendFields is a list of field names (e.g. "NoSmallTalk") to
 13520  	// unconditionally include in API requests. By default, fields with empty or
 13521  	// default values are omitted from API requests. See
 13522  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13523  	// details.
 13524  	ForceSendFields []string `json:"-"`
 13525  	// NullFields is a list of field names (e.g. "NoSmallTalk") to include in API
 13526  	// requests with the JSON null value. By default, fields with empty values are
 13527  	// omitted from API requests. See
 13528  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13529  	NullFields []string `json:"-"`
 13530  }
 13531  
 13532  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings) MarshalJSON() ([]byte, error) {
 13533  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings
 13534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13535  }
 13536  
 13537  // GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.
 13538  // Represents a notification sent to Pub/Sub subscribers for agent assistant
 13539  // events in a specific conversation.
 13540  type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
 13541  	// Conversation: The conversation this notification refers to. Format:
 13542  	// `projects//conversations/`.
 13543  	Conversation string `json:"conversation,omitempty"`
 13544  	// Participant: The participant that the suggestion is compiled for. And This
 13545  	// field is used to call Participants.ListSuggestions API. Format:
 13546  	// `projects//conversations//participants/`. It will not be set in legacy
 13547  	// workflow. HumanAgentAssistantConfig.name for more information.
 13548  	Participant string `json:"participant,omitempty"`
 13549  	// SuggestionResults: The suggestion results payload that this notification
 13550  	// refers to. It will only be set when
 13551  	// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses sets
 13552  	// to true.
 13553  	SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
 13554  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 13555  	// unconditionally include in API requests. By default, fields with empty or
 13556  	// default values are omitted from API requests. See
 13557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13558  	// details.
 13559  	ForceSendFields []string `json:"-"`
 13560  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 13561  	// requests with the JSON null value. By default, fields with empty values are
 13562  	// omitted from API requests. See
 13563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13564  	NullFields []string `json:"-"`
 13565  }
 13566  
 13567  func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
 13568  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
 13569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13570  }
 13571  
 13572  // GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig: Defines the hand off to
 13573  // a live agent, typically on which external agent service provider to connect
 13574  // to a conversation. Currently, this feature is not general available, please
 13575  // contact Google to get access.
 13576  type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig struct {
 13577  	// LivePersonConfig: Uses LivePerson (https://www.liveperson.com).
 13578  	LivePersonConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`
 13579  	// SalesforceLiveAgentConfig: Uses Salesforce Live Agent.
 13580  	SalesforceLiveAgentConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`
 13581  	// ForceSendFields is a list of field names (e.g. "LivePersonConfig") to
 13582  	// unconditionally include in API requests. By default, fields with empty or
 13583  	// default values are omitted from API requests. See
 13584  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13585  	// details.
 13586  	ForceSendFields []string `json:"-"`
 13587  	// NullFields is a list of field names (e.g. "LivePersonConfig") to include in
 13588  	// API requests with the JSON null value. By default, fields with empty values
 13589  	// are omitted from API requests. See
 13590  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13591  	NullFields []string `json:"-"`
 13592  }
 13593  
 13594  func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig) MarshalJSON() ([]byte, error) {
 13595  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
 13596  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13597  }
 13598  
 13599  // GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig:
 13600  // Configuration specific to LivePerson (https://www.liveperson.com).
 13601  type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig struct {
 13602  	// AccountNumber: Required. Account number of the LivePerson account to
 13603  	// connect. This is the account number you input at the login page.
 13604  	AccountNumber string `json:"accountNumber,omitempty"`
 13605  	// ForceSendFields is a list of field names (e.g. "AccountNumber") to
 13606  	// unconditionally include in API requests. By default, fields with empty or
 13607  	// default values are omitted from API requests. See
 13608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13609  	// details.
 13610  	ForceSendFields []string `json:"-"`
 13611  	// NullFields is a list of field names (e.g. "AccountNumber") to include in API
 13612  	// requests with the JSON null value. By default, fields with empty values are
 13613  	// omitted from API requests. See
 13614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13615  	NullFields []string `json:"-"`
 13616  }
 13617  
 13618  func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig) MarshalJSON() ([]byte, error) {
 13619  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
 13620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13621  }
 13622  
 13623  // GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig:
 13624  //
 13625  //	Configuration specific to Salesforce Live Agent.
 13626  type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {
 13627  	// ButtonId: Required. Live Agent chat button ID.
 13628  	ButtonId string `json:"buttonId,omitempty"`
 13629  	// DeploymentId: Required. Live Agent deployment ID.
 13630  	DeploymentId string `json:"deploymentId,omitempty"`
 13631  	// EndpointDomain: Required. Domain of the Live Agent endpoint for this agent.
 13632  	// You can find the endpoint URL in the `Live Agent settings` page. For example
 13633  	// if URL has the form https://d.la4-c2-phx.salesforceliveagent.com/..., you
 13634  	// should fill in d.la4-c2-phx.salesforceliveagent.com.
 13635  	EndpointDomain string `json:"endpointDomain,omitempty"`
 13636  	// OrganizationId: Required. The organization ID of the Salesforce account.
 13637  	OrganizationId string `json:"organizationId,omitempty"`
 13638  	// ForceSendFields is a list of field names (e.g. "ButtonId") to
 13639  	// unconditionally include in API requests. By default, fields with empty or
 13640  	// default values are omitted from API requests. See
 13641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13642  	// details.
 13643  	ForceSendFields []string `json:"-"`
 13644  	// NullFields is a list of field names (e.g. "ButtonId") to include in API
 13645  	// requests with the JSON null value. By default, fields with empty values are
 13646  	// omitted from API requests. See
 13647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13648  	NullFields []string `json:"-"`
 13649  }
 13650  
 13651  func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig) MarshalJSON() ([]byte, error) {
 13652  	type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig
 13653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13654  }
 13655  
 13656  // GoogleCloudDialogflowV2beta1ImportAgentRequest: The request message for
 13657  // Agents.ImportAgent.
 13658  type GoogleCloudDialogflowV2beta1ImportAgentRequest struct {
 13659  	// AgentContent: Zip compressed raw byte content for agent.
 13660  	AgentContent string `json:"agentContent,omitempty"`
 13661  	// AgentUri: The URI to a Google Cloud Storage file containing the agent to
 13662  	// import. Note: The URI must start with "gs://". Dialogflow performs a read
 13663  	// operation for the Cloud Storage object on the caller's behalf, so your
 13664  	// request authentication must have read permissions for the object. For more
 13665  	// information, see Dialogflow access control
 13666  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 13667  	AgentUri string `json:"agentUri,omitempty"`
 13668  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 13669  	// unconditionally include in API requests. By default, fields with empty or
 13670  	// default values are omitted from API requests. See
 13671  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13672  	// details.
 13673  	ForceSendFields []string `json:"-"`
 13674  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 13675  	// requests with the JSON null value. By default, fields with empty values are
 13676  	// omitted from API requests. See
 13677  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13678  	NullFields []string `json:"-"`
 13679  }
 13680  
 13681  func (s *GoogleCloudDialogflowV2beta1ImportAgentRequest) MarshalJSON() ([]byte, error) {
 13682  	type NoMethod GoogleCloudDialogflowV2beta1ImportAgentRequest
 13683  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13684  }
 13685  
 13686  // GoogleCloudDialogflowV2beta1ImportDocumentTemplate: The template used for
 13687  // importing documents.
 13688  type GoogleCloudDialogflowV2beta1ImportDocumentTemplate struct {
 13689  	// KnowledgeTypes: Required. The knowledge type of document content.
 13690  	//
 13691  	// Possible values:
 13692  	//   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or arbitrary.
 13693  	//   "FAQ" - The document content contains question and answer pairs as either
 13694  	// HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual
 13695  	// formats may fail to be parsed. CSV must have questions in the first column
 13696  	// and answers in the second, with no header. Because of this explicit format,
 13697  	// they are always parsed accurately.
 13698  	//   "EXTRACTIVE_QA" - Documents for which unstructured text is extracted and
 13699  	// used for question answering.
 13700  	//   "ARTICLE_SUGGESTION" - The entire document content as a whole can be used
 13701  	// for query results. Only for Contact Center Solutions on Dialogflow.
 13702  	//   "AGENT_FACING_SMART_REPLY" - The document contains agent-facing Smart
 13703  	// Reply entries.
 13704  	//   "SMART_REPLY" - The legacy enum for agent-facing smart reply feature.
 13705  	KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
 13706  	// Metadata: Metadata for the document. The metadata supports arbitrary
 13707  	// key-value pairs. Suggested use cases include storing a document's title, an
 13708  	// external URL distinct from the document's content_uri, etc. The max size of
 13709  	// a `key` or a `value` of the metadata is 1024 bytes.
 13710  	Metadata map[string]string `json:"metadata,omitempty"`
 13711  	// MimeType: Required. The MIME type of the document.
 13712  	MimeType string `json:"mimeType,omitempty"`
 13713  	// ForceSendFields is a list of field names (e.g. "KnowledgeTypes") to
 13714  	// unconditionally include in API requests. By default, fields with empty or
 13715  	// default values are omitted from API requests. See
 13716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13717  	// details.
 13718  	ForceSendFields []string `json:"-"`
 13719  	// NullFields is a list of field names (e.g. "KnowledgeTypes") to include in
 13720  	// API requests with the JSON null value. By default, fields with empty values
 13721  	// are omitted from API requests. See
 13722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13723  	NullFields []string `json:"-"`
 13724  }
 13725  
 13726  func (s *GoogleCloudDialogflowV2beta1ImportDocumentTemplate) MarshalJSON() ([]byte, error) {
 13727  	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentTemplate
 13728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13729  }
 13730  
 13731  // GoogleCloudDialogflowV2beta1ImportDocumentsRequest: Request message for
 13732  // Documents.ImportDocuments.
 13733  type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct {
 13734  	// DocumentTemplate: Required. Document template used for importing all the
 13735  	// documents.
 13736  	DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"`
 13737  	// GcsSource: Optional. The Google Cloud Storage location for the documents.
 13738  	// The path can include a wildcard. These URIs may have the forms `gs:///`.
 13739  	// `gs:////*.`.
 13740  	GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"`
 13741  	// ImportGcsCustomMetadata: Whether to import custom metadata from Google Cloud
 13742  	// Storage. Only valid when the document source is Google Cloud Storage URI.
 13743  	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
 13744  	// ForceSendFields is a list of field names (e.g. "DocumentTemplate") to
 13745  	// unconditionally include in API requests. By default, fields with empty or
 13746  	// default values are omitted from API requests. See
 13747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13748  	// details.
 13749  	ForceSendFields []string `json:"-"`
 13750  	// NullFields is a list of field names (e.g. "DocumentTemplate") to include in
 13751  	// API requests with the JSON null value. By default, fields with empty values
 13752  	// are omitted from API requests. See
 13753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13754  	NullFields []string `json:"-"`
 13755  }
 13756  
 13757  func (s *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
 13758  	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsRequest
 13759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13760  }
 13761  
 13762  // GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message for
 13763  // Documents.ImportDocuments.
 13764  type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
 13765  	// Warnings: Includes details about skipped documents or any other warnings.
 13766  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 13767  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 13768  	// unconditionally include in API requests. By default, fields with empty or
 13769  	// default values are omitted from API requests. See
 13770  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13771  	// details.
 13772  	ForceSendFields []string `json:"-"`
 13773  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 13774  	// requests with the JSON null value. By default, fields with empty values are
 13775  	// omitted from API requests. See
 13776  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13777  	NullFields []string `json:"-"`
 13778  }
 13779  
 13780  func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 13781  	type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
 13782  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13783  }
 13784  
 13785  // GoogleCloudDialogflowV2beta1InputAudioConfig: Instructs the speech
 13786  // recognizer on how to process the audio content.
 13787  type GoogleCloudDialogflowV2beta1InputAudioConfig struct {
 13788  	// AudioEncoding: Required. Audio encoding of the audio content to process.
 13789  	//
 13790  	// Possible values:
 13791  	//   "AUDIO_ENCODING_UNSPECIFIED" - Not specified.
 13792  	//   "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed little-endian
 13793  	// samples (Linear PCM).
 13794  	//   "AUDIO_ENCODING_FLAC" - [`FLAC`](https://xiph.org/flac/documentation.html)
 13795  	// (Free Lossless Audio Codec) is the recommended encoding because it is
 13796  	// lossless (therefore recognition is not compromised) and requires only about
 13797  	// half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
 13798  	// 24-bit samples, however, not all fields in `STREAMINFO` are supported.
 13799  	//   "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio samples
 13800  	// using G.711 PCMU/mu-law.
 13801  	//   "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec.
 13802  	// `sample_rate_hertz` must be 8000.
 13803  	//   "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec.
 13804  	// `sample_rate_hertz` must be 16000.
 13805  	//   "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg container
 13806  	// ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
 13807  	// 16000.
 13808  	//   "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy
 13809  	// encodings is not recommended, if a very low bitrate encoding is required,
 13810  	// `OGG_OPUS` is highly preferred over Speex encoding. The
 13811  	// [Speex](https://speex.org/) encoding supported by Dialogflow API has a
 13812  	// header byte in each block, as in MIME type `audio/x-speex-with-header-byte`.
 13813  	// It is a variant of the RTP Speex encoding defined in [RFC
 13814  	// 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of
 13815  	// blocks, one block per RTP packet. Each block starts with a byte containing
 13816  	// the length of the block, in bytes, followed by one or more frames of Speex
 13817  	// data, padded to an integral number of bytes (octets) as specified in RFC
 13818  	// 5574. In other words, each RTP header is replaced with a single byte
 13819  	// containing the block length. Only Speex wideband is supported.
 13820  	// `sample_rate_hertz` must be 16000.
 13821  	AudioEncoding string `json:"audioEncoding,omitempty"`
 13822  	// BargeInConfig: Configuration of barge-in behavior during the streaming of
 13823  	// input audio.
 13824  	BargeInConfig *GoogleCloudDialogflowV2beta1BargeInConfig `json:"bargeInConfig,omitempty"`
 13825  	// DisableNoSpeechRecognizedEvent: Only used in Participants.AnalyzeContent and
 13826  	// Participants.StreamingAnalyzeContent. If `false` and recognition doesn't
 13827  	// return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
 13828  	DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"`
 13829  	// EnableAutomaticPunctuation: Enable automatic punctuation option at the
 13830  	// speech backend.
 13831  	EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"`
 13832  	// EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in
 13833  	// StreamingRecognitionResult with information about the recognized speech
 13834  	// words, e.g. start and end time offsets. If false or unspecified, Speech
 13835  	// doesn't return any word-level information.
 13836  	EnableWordInfo bool `json:"enableWordInfo,omitempty"`
 13837  	// LanguageCode: Required. The language of the supplied audio. Dialogflow does
 13838  	// not do translations. See Language Support
 13839  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 13840  	// the currently supported language codes. Note that queries in the same
 13841  	// session do not necessarily need to specify the same language.
 13842  	LanguageCode string `json:"languageCode,omitempty"`
 13843  	// Model: Optional. Which Speech model to select for the given request. For
 13844  	// more information, see Speech models
 13845  	// (https://cloud.google.com/dialogflow/es/docs/speech-models).
 13846  	Model string `json:"model,omitempty"`
 13847  	// ModelVariant: Which variant of the Speech model to use.
 13848  	//
 13849  	// Possible values:
 13850  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
 13851  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
 13852  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
 13853  	// that the caller is eligible for. Please see the [Dialogflow
 13854  	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make
 13855  	// your project eligible for enhanced models.
 13856  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
 13857  	// available. See the [Cloud Speech
 13858  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 13859  	// for details about enhanced models.
 13860  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
 13861  	// does not exist for the given model and request language, Dialogflow falls
 13862  	// back to the standard variant. The [Cloud Speech
 13863  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 13864  	// describes which models have enhanced variants. * If the API caller isn't
 13865  	// eligible for enhanced models, Dialogflow returns an error. Please see the
 13866  	// [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for
 13867  	// how to make your project eligible.
 13868  	ModelVariant string `json:"modelVariant,omitempty"`
 13869  	// OptOutConformerModelMigration: If `true`, the request will opt out for STT
 13870  	// conformer model migration. This field will be deprecated once force
 13871  	// migration takes place in June 2024. Please refer to Dialogflow ES Speech
 13872  	// model migration
 13873  	// (https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
 13874  	OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
 13875  	// PhraseHints: A list of strings containing words and phrases that the speech
 13876  	// recognizer should recognize with higher likelihood. See the Cloud Speech
 13877  	// documentation
 13878  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
 13879  	// details. This field is deprecated. Please use `speech_contexts` () instead.
 13880  	// If you specify both `phrase_hints` () and `speech_contexts` (), Dialogflow
 13881  	// will treat the `phrase_hints` () as a single additional `SpeechContext` ().
 13882  	PhraseHints []string `json:"phraseHints,omitempty"`
 13883  	// SampleRateHertz: Required. Sample rate (in Hertz) of the audio content sent
 13884  	// in the query. Refer to Cloud Speech API documentation
 13885  	// (https://cloud.google.com/speech-to-text/docs/basics) for more details.
 13886  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
 13887  	// SingleUtterance: If `false` (default), recognition does not cease until the
 13888  	// client closes the stream. If `true`, the recognizer will detect a single
 13889  	// spoken utterance in input audio. Recognition ceases when it detects the
 13890  	// audio's voice has stopped or paused. In this case, once a detected intent is
 13891  	// received, the client should close the stream and start a new request with a
 13892  	// new stream as needed. Note: This setting is relevant only for streaming
 13893  	// methods. Note: When specified, InputAudioConfig.single_utterance takes
 13894  	// precedence over StreamingDetectIntentRequest.single_utterance.
 13895  	SingleUtterance bool `json:"singleUtterance,omitempty"`
 13896  	// SpeechContexts: Context information to assist speech recognition. See the
 13897  	// Cloud Speech documentation
 13898  	// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more
 13899  	// details.
 13900  	SpeechContexts []*GoogleCloudDialogflowV2beta1SpeechContext `json:"speechContexts,omitempty"`
 13901  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
 13902  	// unconditionally include in API requests. By default, fields with empty or
 13903  	// default values are omitted from API requests. See
 13904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13905  	// details.
 13906  	ForceSendFields []string `json:"-"`
 13907  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
 13908  	// requests with the JSON null value. By default, fields with empty values are
 13909  	// omitted from API requests. See
 13910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13911  	NullFields []string `json:"-"`
 13912  }
 13913  
 13914  func (s *GoogleCloudDialogflowV2beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
 13915  	type NoMethod GoogleCloudDialogflowV2beta1InputAudioConfig
 13916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13917  }
 13918  
 13919  // GoogleCloudDialogflowV2beta1Intent: An intent categorizes an end-user's
 13920  // intention for one conversation turn. For each agent, you define many
 13921  // intents, where your combined intents can handle a complete conversation.
 13922  // When an end-user writes or says something, referred to as an end-user
 13923  // expression or end-user input, Dialogflow matches the end-user input to the
 13924  // best intent in your agent. Matching an intent is also known as intent
 13925  // classification. For more information, see the intent guide
 13926  // (https://cloud.google.com/dialogflow/docs/intents-overview).
 13927  type GoogleCloudDialogflowV2beta1Intent struct {
 13928  	// Action: Optional. The name of the action associated with the intent. Note:
 13929  	// The action name must not contain whitespaces.
 13930  	Action string `json:"action,omitempty"`
 13931  	// DefaultResponsePlatforms: Optional. The list of platforms for which the
 13932  	// first responses will be copied from the messages in PLATFORM_UNSPECIFIED
 13933  	// (i.e. default platform).
 13934  	//
 13935  	// Possible values:
 13936  	//   "PLATFORM_UNSPECIFIED" - Not specified.
 13937  	//   "FACEBOOK" - Facebook.
 13938  	//   "SLACK" - Slack.
 13939  	//   "TELEGRAM" - Telegram.
 13940  	//   "KIK" - Kik.
 13941  	//   "SKYPE" - Skype.
 13942  	//   "LINE" - Line.
 13943  	//   "VIBER" - Viber.
 13944  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 13945  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 13946  	// -webhook-json)
 13947  	//   "TELEPHONY" - Telephony Gateway.
 13948  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 13949  	DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
 13950  	// DisplayName: Required. The name of this intent.
 13951  	DisplayName string `json:"displayName,omitempty"`
 13952  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 13953  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 13954  	// this information to close interaction with an end user. Default is false.
 13955  	EndInteraction bool `json:"endInteraction,omitempty"`
 13956  	// Events: Optional. The collection of event names that trigger the intent. If
 13957  	// the collection of input contexts is not empty, all of the contexts must be
 13958  	// present in the active user session for an event to trigger this intent.
 13959  	// Event names are limited to 150 characters.
 13960  	Events []string `json:"events,omitempty"`
 13961  	// FollowupIntentInfo: Output only. Information about all followup intents that
 13962  	// have this intent as a direct or indirect parent. We populate this field only
 13963  	// in the output.
 13964  	FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
 13965  	// InputContextNames: Optional. The list of context names required for this
 13966  	// intent to be triggered. Formats: - `projects//agent/sessions/-/contexts/` -
 13967  	// `projects//locations//agent/sessions/-/contexts/`
 13968  	InputContextNames []string `json:"inputContextNames,omitempty"`
 13969  	// IsFallback: Optional. Indicates whether this is a fallback intent.
 13970  	IsFallback bool `json:"isFallback,omitempty"`
 13971  	// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in
 13972  	// to handle the interaction with the user. In most cases, when you set this
 13973  	// flag to true, you would also want to set end_interaction to true as well.
 13974  	// Default is false.
 13975  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 13976  	// Messages: Optional. The collection of rich messages corresponding to the
 13977  	// `Response` field in the Dialogflow console.
 13978  	Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
 13979  	// MlDisabled: Optional. Indicates whether Machine Learning is disabled for the
 13980  	// intent. Note: If `ml_disabled` setting is set to true, then this intent is
 13981  	// not taken into account during inference in `ML ONLY` match mode. Also,
 13982  	// auto-markup in the UI is turned off.
 13983  	MlDisabled bool `json:"mlDisabled,omitempty"`
 13984  	// MlEnabled: Optional. Indicates whether Machine Learning is enabled for the
 13985  	// intent. Note: If `ml_enabled` setting is set to false, then this intent is
 13986  	// not taken into account during inference in `ML ONLY` match mode. Also,
 13987  	// auto-markup in the UI is turned off. DEPRECATED! Please use `ml_disabled`
 13988  	// field instead. NOTE: If both `ml_enabled` and `ml_disabled` are either not
 13989  	// set or false, then the default value is determined as follows: - Before
 13990  	// April 15th, 2018 the default is: ml_enabled = false / ml_disabled = true. -
 13991  	// After April 15th, 2018 the default is: ml_enabled = true / ml_disabled =
 13992  	// false.
 13993  	MlEnabled bool `json:"mlEnabled,omitempty"`
 13994  	// Name: Optional. The unique identifier of this intent. Required for
 13995  	// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported
 13996  	// formats: - `projects//agent/intents/` -
 13997  	// `projects//locations//agent/intents/`
 13998  	Name string `json:"name,omitempty"`
 13999  	// OutputContexts: Optional. The collection of contexts that are activated when
 14000  	// the intent is matched. Context messages in this collection should not set
 14001  	// the parameters field. Setting the `lifespan_count` to 0 will reset the
 14002  	// context when the intent is matched. Format:
 14003  	// `projects//agent/sessions/-/contexts/`.
 14004  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 14005  	// Parameters: Optional. The collection of parameters associated with the
 14006  	// intent.
 14007  	Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
 14008  	// ParentFollowupIntentName: Optional. The unique identifier of the parent
 14009  	// intent in the chain of followup intents. You can set this field when
 14010  	// creating an intent, for example with CreateIntent or BatchUpdateIntents, in
 14011  	// order to make this intent a followup intent. It identifies the parent
 14012  	// followup intent. Format: `projects//agent/intents/`.
 14013  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 14014  	// Priority: Optional. The priority of this intent. Higher numbers represent
 14015  	// higher priorities. - If the supplied value is unspecified or 0, the service
 14016  	// translates the value to 500,000, which corresponds to the `Normal` priority
 14017  	// in the console. - If the supplied value is negative, the intent is ignored
 14018  	// in runtime detect intent requests.
 14019  	Priority int64 `json:"priority,omitempty"`
 14020  	// ResetContexts: Optional. Indicates whether to delete all contexts in the
 14021  	// current session when this intent is matched.
 14022  	ResetContexts bool `json:"resetContexts,omitempty"`
 14023  	// RootFollowupIntentName: Output only. The unique identifier of the root
 14024  	// intent in the chain of followup intents. It identifies the correct followup
 14025  	// intents chain for this intent. Format: `projects//agent/intents/`.
 14026  	RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
 14027  	// TrainingPhrases: Optional. The collection of examples that the agent is
 14028  	// trained on.
 14029  	TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
 14030  	// WebhookState: Optional. Indicates whether webhooks are enabled for the
 14031  	// intent.
 14032  	//
 14033  	// Possible values:
 14034  	//   "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and in the
 14035  	// intent.
 14036  	//   "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in the
 14037  	// intent.
 14038  	//   "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in the agent
 14039  	// and in the intent. Also, each slot filling prompt is forwarded to the
 14040  	// webhook.
 14041  	WebhookState string `json:"webhookState,omitempty"`
 14042  
 14043  	// ServerResponse contains the HTTP response code and headers from the server.
 14044  	googleapi.ServerResponse `json:"-"`
 14045  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 14046  	// include in API requests. By default, fields with empty or default values are
 14047  	// omitted from API requests. See
 14048  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14049  	// details.
 14050  	ForceSendFields []string `json:"-"`
 14051  	// NullFields is a list of field names (e.g. "Action") to include in API
 14052  	// requests with the JSON null value. By default, fields with empty values are
 14053  	// omitted from API requests. See
 14054  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14055  	NullFields []string `json:"-"`
 14056  }
 14057  
 14058  func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
 14059  	type NoMethod GoogleCloudDialogflowV2beta1Intent
 14060  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14061  }
 14062  
 14063  // GoogleCloudDialogflowV2beta1IntentBatch: This message is a wrapper around a
 14064  // collection of intents.
 14065  type GoogleCloudDialogflowV2beta1IntentBatch struct {
 14066  	// Intents: A collection of intents.
 14067  	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
 14068  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 14069  	// include in API requests. By default, fields with empty or default values are
 14070  	// omitted from API requests. See
 14071  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14072  	// details.
 14073  	ForceSendFields []string `json:"-"`
 14074  	// NullFields is a list of field names (e.g. "Intents") to include in API
 14075  	// requests with the JSON null value. By default, fields with empty values are
 14076  	// omitted from API requests. See
 14077  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14078  	NullFields []string `json:"-"`
 14079  }
 14080  
 14081  func (s *GoogleCloudDialogflowV2beta1IntentBatch) MarshalJSON() ([]byte, error) {
 14082  	type NoMethod GoogleCloudDialogflowV2beta1IntentBatch
 14083  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14084  }
 14085  
 14086  // GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a single
 14087  // followup intent in the chain.
 14088  type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
 14089  	// FollowupIntentName: The unique identifier of the followup intent. Format:
 14090  	// `projects//agent/intents/`.
 14091  	FollowupIntentName string `json:"followupIntentName,omitempty"`
 14092  	// ParentFollowupIntentName: The unique identifier of the followup intent's
 14093  	// parent. Format: `projects//agent/intents/`.
 14094  	ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
 14095  	// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to
 14096  	// unconditionally include in API requests. By default, fields with empty or
 14097  	// default values are omitted from API requests. See
 14098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14099  	// details.
 14100  	ForceSendFields []string `json:"-"`
 14101  	// NullFields is a list of field names (e.g. "FollowupIntentName") to include
 14102  	// in API requests with the JSON null value. By default, fields with empty
 14103  	// values are omitted from API requests. See
 14104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14105  	NullFields []string `json:"-"`
 14106  }
 14107  
 14108  func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
 14109  	type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
 14110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14111  }
 14112  
 14113  // GoogleCloudDialogflowV2beta1IntentInput: Represents the intent to trigger
 14114  // programmatically rather than as a result of natural language processing. The
 14115  // intent input is only used for V3 agent.
 14116  type GoogleCloudDialogflowV2beta1IntentInput struct {
 14117  	// Intent: Required. The unique identifier of the intent in V3 agent. Format:
 14118  	// `projects//locations//locations//agents//intents/`.
 14119  	Intent string `json:"intent,omitempty"`
 14120  	// LanguageCode: Required. The language of this conversational query. See
 14121  	// Language Support
 14122  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 14123  	// the currently supported language codes.
 14124  	LanguageCode string `json:"languageCode,omitempty"`
 14125  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
 14126  	// include in API requests. By default, fields with empty or default values are
 14127  	// omitted from API requests. See
 14128  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14129  	// details.
 14130  	ForceSendFields []string `json:"-"`
 14131  	// NullFields is a list of field names (e.g. "Intent") to include in API
 14132  	// requests with the JSON null value. By default, fields with empty values are
 14133  	// omitted from API requests. See
 14134  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14135  	NullFields []string `json:"-"`
 14136  }
 14137  
 14138  func (s *GoogleCloudDialogflowV2beta1IntentInput) MarshalJSON() ([]byte, error) {
 14139  	type NoMethod GoogleCloudDialogflowV2beta1IntentInput
 14140  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14141  }
 14142  
 14143  // GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the `Response`
 14144  // field in the Dialogflow console.
 14145  type GoogleCloudDialogflowV2beta1IntentMessage struct {
 14146  	// BasicCard: Displays a basic card for Actions on Google.
 14147  	BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
 14148  	// BrowseCarouselCard: Browse carousel card for Actions on Google.
 14149  	BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
 14150  	// Card: Displays a card.
 14151  	Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
 14152  	// CarouselSelect: Displays a carousel card for Actions on Google.
 14153  	CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
 14154  	// Image: Displays an image.
 14155  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 14156  	// LinkOutSuggestion: Displays a link out suggestion chip for Actions on
 14157  	// Google.
 14158  	LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
 14159  	// ListSelect: Displays a list card for Actions on Google.
 14160  	ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
 14161  	// MediaContent: The media content card for Actions on Google.
 14162  	MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
 14163  	// Payload: A custom platform-specific response.
 14164  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 14165  	// Platform: Optional. The platform that this message is intended for.
 14166  	//
 14167  	// Possible values:
 14168  	//   "PLATFORM_UNSPECIFIED" - Not specified.
 14169  	//   "FACEBOOK" - Facebook.
 14170  	//   "SLACK" - Slack.
 14171  	//   "TELEGRAM" - Telegram.
 14172  	//   "KIK" - Kik.
 14173  	//   "SKYPE" - Skype.
 14174  	//   "LINE" - Line.
 14175  	//   "VIBER" - Viber.
 14176  	//   "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook
 14177  	// format](https://developers.google.com/assistant/actions/build/json/dialogflow
 14178  	// -webhook-json)
 14179  	//   "TELEPHONY" - Telephony Gateway.
 14180  	//   "GOOGLE_HANGOUTS" - Google Hangouts.
 14181  	Platform string `json:"platform,omitempty"`
 14182  	// QuickReplies: Displays quick replies.
 14183  	QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
 14184  	// RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card
 14185  	// response.
 14186  	RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
 14187  	// RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich card
 14188  	// response.
 14189  	RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
 14190  	// RbmText: Rich Business Messaging (RBM) text response. RBM allows businesses
 14191  	// to send enriched and branded versions of SMS. See
 14192  	// https://jibe.google.com/business-messaging.
 14193  	RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
 14194  	// SimpleResponses: Returns a voice or text-only response for Actions on
 14195  	// Google.
 14196  	SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
 14197  	// Suggestions: Displays suggestion chips for Actions on Google.
 14198  	Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
 14199  	// TableCard: Table card for Actions on Google.
 14200  	TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
 14201  	// TelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
 14202  	TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
 14203  	// TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway.
 14204  	TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
 14205  	// TelephonyTransferCall: Transfers the call in Telephony Gateway.
 14206  	TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
 14207  	// Text: Returns a text response.
 14208  	Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
 14209  	// ForceSendFields is a list of field names (e.g. "BasicCard") to
 14210  	// unconditionally include in API requests. By default, fields with empty or
 14211  	// default values are omitted from API requests. See
 14212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14213  	// details.
 14214  	ForceSendFields []string `json:"-"`
 14215  	// NullFields is a list of field names (e.g. "BasicCard") to include in API
 14216  	// requests with the JSON null value. By default, fields with empty values are
 14217  	// omitted from API requests. See
 14218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14219  	NullFields []string `json:"-"`
 14220  }
 14221  
 14222  func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
 14223  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
 14224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14225  }
 14226  
 14227  // GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card message.
 14228  // Useful for displaying information.
 14229  type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
 14230  	// Buttons: Optional. The collection of card buttons.
 14231  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
 14232  	// FormattedText: Required, unless image is present. The body text of the card.
 14233  	FormattedText string `json:"formattedText,omitempty"`
 14234  	// Image: Optional. The image for the card.
 14235  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 14236  	// Subtitle: Optional. The subtitle of the card.
 14237  	Subtitle string `json:"subtitle,omitempty"`
 14238  	// Title: Optional. The title of the card.
 14239  	Title string `json:"title,omitempty"`
 14240  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 14241  	// include in API requests. By default, fields with empty or default values are
 14242  	// omitted from API requests. See
 14243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14244  	// details.
 14245  	ForceSendFields []string `json:"-"`
 14246  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 14247  	// requests with the JSON null value. By default, fields with empty values are
 14248  	// omitted from API requests. See
 14249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14250  	NullFields []string `json:"-"`
 14251  }
 14252  
 14253  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
 14254  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
 14255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14256  }
 14257  
 14258  // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button object
 14259  // that appears at the bottom of a card.
 14260  type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
 14261  	// OpenUriAction: Required. Action to take when a user taps on the button.
 14262  	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
 14263  	// Title: Required. The title of the button.
 14264  	Title string `json:"title,omitempty"`
 14265  	// ForceSendFields is a list of field names (e.g. "OpenUriAction") to
 14266  	// unconditionally include in API requests. By default, fields with empty or
 14267  	// default values are omitted from API requests. See
 14268  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14269  	// details.
 14270  	ForceSendFields []string `json:"-"`
 14271  	// NullFields is a list of field names (e.g. "OpenUriAction") to include in API
 14272  	// requests with the JSON null value. By default, fields with empty values are
 14273  	// omitted from API requests. See
 14274  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14275  	NullFields []string `json:"-"`
 14276  }
 14277  
 14278  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
 14279  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
 14280  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14281  }
 14282  
 14283  // GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: Opens
 14284  // the given URI.
 14285  type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
 14286  	// Uri: Required. The HTTP or HTTPS scheme URI.
 14287  	Uri string `json:"uri,omitempty"`
 14288  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 14289  	// include in API requests. By default, fields with empty or default values are
 14290  	// omitted from API requests. See
 14291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14292  	// details.
 14293  	ForceSendFields []string `json:"-"`
 14294  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 14295  	// with the JSON null value. By default, fields with empty values are omitted
 14296  	// from API requests. See
 14297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14298  	NullFields []string `json:"-"`
 14299  }
 14300  
 14301  func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
 14302  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
 14303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14304  }
 14305  
 14306  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse Carousel
 14307  // Card for Actions on Google.
 14308  // https://developers.google.com/actions/assistant/responses#browsing_carousel
 14309  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
 14310  	// ImageDisplayOptions: Optional. Settings for displaying the image. Applies to
 14311  	// every image in items.
 14312  	//
 14313  	// Possible values:
 14314  	//   "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the image and
 14315  	// the image container with gray bars.
 14316  	//   "GRAY" - Fill the gaps between the image and the image container with gray
 14317  	// bars.
 14318  	//   "WHITE" - Fill the gaps between the image and the image container with
 14319  	// white bars.
 14320  	//   "CROPPED" - Image is scaled such that the image width and height match or
 14321  	// exceed the container dimensions. This may crop the top and bottom of the
 14322  	// image if the scaled image height is greater than the container height, or
 14323  	// crop the left and right of the image if the scaled image width is greater
 14324  	// than the container width. This is similar to "Zoom Mode" on a widescreen TV
 14325  	// when playing a 4:3 video.
 14326  	//   "BLURRED_BACKGROUND" - Pad the gaps between image and image frame with a
 14327  	// blurred copy of the same image.
 14328  	ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
 14329  	// Items: Required. List of items in the Browse Carousel Card. Minimum of two
 14330  	// items, maximum of ten.
 14331  	Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
 14332  	// ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") to
 14333  	// unconditionally include in API requests. By default, fields with empty or
 14334  	// default values are omitted from API requests. See
 14335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14336  	// details.
 14337  	ForceSendFields []string `json:"-"`
 14338  	// NullFields is a list of field names (e.g. "ImageDisplayOptions") to include
 14339  	// in API requests with the JSON null value. By default, fields with empty
 14340  	// values are omitted from API requests. See
 14341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14342  	NullFields []string `json:"-"`
 14343  }
 14344  
 14345  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
 14346  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
 14347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14348  }
 14349  
 14350  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard
 14351  // Item: Browsing carousel tile
 14352  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
 14353  	// Description: Optional. Description of the carousel item. Maximum of four
 14354  	// lines of text.
 14355  	Description string `json:"description,omitempty"`
 14356  	// Footer: Optional. Text that appears at the bottom of the Browse Carousel
 14357  	// Card. Maximum of one line of text.
 14358  	Footer string `json:"footer,omitempty"`
 14359  	// Image: Optional. Hero image for the carousel item.
 14360  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 14361  	// OpenUriAction: Required. Action to present to the user.
 14362  	OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
 14363  	// Title: Required. Title of the carousel item. Maximum of two lines of text.
 14364  	Title string `json:"title,omitempty"`
 14365  	// ForceSendFields is a list of field names (e.g. "Description") to
 14366  	// unconditionally include in API requests. By default, fields with empty or
 14367  	// default values are omitted from API requests. See
 14368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14369  	// details.
 14370  	ForceSendFields []string `json:"-"`
 14371  	// NullFields is a list of field names (e.g. "Description") to include in API
 14372  	// requests with the JSON null value. By default, fields with empty values are
 14373  	// omitted from API requests. See
 14374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14375  	NullFields []string `json:"-"`
 14376  }
 14377  
 14378  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
 14379  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
 14380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14381  }
 14382  
 14383  // GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCard
 14384  // ItemOpenUrlAction: Actions on Google action to open a given url.
 14385  type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
 14386  	// Url: Required. URL
 14387  	Url string `json:"url,omitempty"`
 14388  	// UrlTypeHint: Optional. Specifies the type of viewer that is used when
 14389  	// opening the URL. Defaults to opening via web browser.
 14390  	//
 14391  	// Possible values:
 14392  	//   "URL_TYPE_HINT_UNSPECIFIED" - Unspecified
 14393  	//   "AMP_ACTION" - Url would be an amp action
 14394  	//   "AMP_CONTENT" - URL that points directly to AMP content, or to a canonical
 14395  	// URL which refers to AMP content via .
 14396  	UrlTypeHint string `json:"urlTypeHint,omitempty"`
 14397  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
 14398  	// include in API requests. By default, fields with empty or default values are
 14399  	// omitted from API requests. See
 14400  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14401  	// details.
 14402  	ForceSendFields []string `json:"-"`
 14403  	// NullFields is a list of field names (e.g. "Url") to include in API requests
 14404  	// with the JSON null value. By default, fields with empty values are omitted
 14405  	// from API requests. See
 14406  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14407  	NullFields []string `json:"-"`
 14408  }
 14409  
 14410  func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
 14411  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
 14412  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14413  }
 14414  
 14415  // GoogleCloudDialogflowV2beta1IntentMessageCard: The card response message.
 14416  type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
 14417  	// Buttons: Optional. The collection of card buttons.
 14418  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
 14419  	// ImageUri: Optional. The public URI to an image file for the card.
 14420  	ImageUri string `json:"imageUri,omitempty"`
 14421  	// Subtitle: Optional. The subtitle of the card.
 14422  	Subtitle string `json:"subtitle,omitempty"`
 14423  	// Title: Optional. The title of the card.
 14424  	Title string `json:"title,omitempty"`
 14425  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 14426  	// include in API requests. By default, fields with empty or default values are
 14427  	// omitted from API requests. See
 14428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14429  	// details.
 14430  	ForceSendFields []string `json:"-"`
 14431  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 14432  	// requests with the JSON null value. By default, fields with empty values are
 14433  	// omitted from API requests. See
 14434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14435  	NullFields []string `json:"-"`
 14436  }
 14437  
 14438  func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
 14439  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
 14440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14441  }
 14442  
 14443  // GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. Contains
 14444  // information about a button.
 14445  type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
 14446  	// Postback: Optional. The text to send back to the Dialogflow API or a URI to
 14447  	// open.
 14448  	Postback string `json:"postback,omitempty"`
 14449  	// Text: Optional. The text to show on the button.
 14450  	Text string `json:"text,omitempty"`
 14451  	// ForceSendFields is a list of field names (e.g. "Postback") to
 14452  	// unconditionally include in API requests. By default, fields with empty or
 14453  	// default values are omitted from API requests. See
 14454  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14455  	// details.
 14456  	ForceSendFields []string `json:"-"`
 14457  	// NullFields is a list of field names (e.g. "Postback") to include in API
 14458  	// requests with the JSON null value. By default, fields with empty values are
 14459  	// omitted from API requests. See
 14460  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14461  	NullFields []string `json:"-"`
 14462  }
 14463  
 14464  func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
 14465  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
 14466  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14467  }
 14468  
 14469  // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for
 14470  // presenting a carousel of options to select from.
 14471  type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
 14472  	// Items: Required. Carousel items.
 14473  	Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
 14474  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 14475  	// include in API requests. By default, fields with empty or default values are
 14476  	// omitted from API requests. See
 14477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14478  	// details.
 14479  	ForceSendFields []string `json:"-"`
 14480  	// NullFields is a list of field names (e.g. "Items") to include in API
 14481  	// requests with the JSON null value. By default, fields with empty values are
 14482  	// omitted from API requests. See
 14483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14484  	NullFields []string `json:"-"`
 14485  }
 14486  
 14487  func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
 14488  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
 14489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14490  }
 14491  
 14492  // GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item in the
 14493  // carousel.
 14494  type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
 14495  	// Description: Optional. The body text of the card.
 14496  	Description string `json:"description,omitempty"`
 14497  	// Image: Optional. The image to display.
 14498  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 14499  	// Info: Required. Additional info about the option item.
 14500  	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
 14501  	// Title: Required. Title of the carousel item.
 14502  	Title string `json:"title,omitempty"`
 14503  	// ForceSendFields is a list of field names (e.g. "Description") to
 14504  	// unconditionally include in API requests. By default, fields with empty or
 14505  	// default values are omitted from API requests. See
 14506  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14507  	// details.
 14508  	ForceSendFields []string `json:"-"`
 14509  	// NullFields is a list of field names (e.g. "Description") to include in API
 14510  	// requests with the JSON null value. By default, fields with empty values are
 14511  	// omitted from API requests. See
 14512  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14513  	NullFields []string `json:"-"`
 14514  }
 14515  
 14516  func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
 14517  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
 14518  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14519  }
 14520  
 14521  // GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column properties
 14522  // for TableCard.
 14523  type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
 14524  	// Header: Required. Column heading.
 14525  	Header string `json:"header,omitempty"`
 14526  	// HorizontalAlignment: Optional. Defines text alignment for all cells in this
 14527  	// column.
 14528  	//
 14529  	// Possible values:
 14530  	//   "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading edge
 14531  	// of the column.
 14532  	//   "LEADING" - Text is aligned to the leading edge of the column.
 14533  	//   "CENTER" - Text is centered in the column.
 14534  	//   "TRAILING" - Text is aligned to the trailing edge of the column.
 14535  	HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
 14536  	// ForceSendFields is a list of field names (e.g. "Header") to unconditionally
 14537  	// include in API requests. By default, fields with empty or default values are
 14538  	// omitted from API requests. See
 14539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14540  	// details.
 14541  	ForceSendFields []string `json:"-"`
 14542  	// NullFields is a list of field names (e.g. "Header") to include in API
 14543  	// requests with the JSON null value. By default, fields with empty values are
 14544  	// omitted from API requests. See
 14545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14546  	NullFields []string `json:"-"`
 14547  }
 14548  
 14549  func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
 14550  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
 14551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14552  }
 14553  
 14554  // GoogleCloudDialogflowV2beta1IntentMessageImage: The image response message.
 14555  type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
 14556  	// AccessibilityText: A text description of the image to be used for
 14557  	// accessibility, e.g., screen readers. Required if image_uri is set for
 14558  	// CarouselSelect.
 14559  	AccessibilityText string `json:"accessibilityText,omitempty"`
 14560  	// ImageUri: Optional. The public URI to an image file.
 14561  	ImageUri string `json:"imageUri,omitempty"`
 14562  	// ForceSendFields is a list of field names (e.g. "AccessibilityText") to
 14563  	// unconditionally include in API requests. By default, fields with empty or
 14564  	// default values are omitted from API requests. See
 14565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14566  	// details.
 14567  	ForceSendFields []string `json:"-"`
 14568  	// NullFields is a list of field names (e.g. "AccessibilityText") to include in
 14569  	// API requests with the JSON null value. By default, fields with empty values
 14570  	// are omitted from API requests. See
 14571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14572  	NullFields []string `json:"-"`
 14573  }
 14574  
 14575  func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
 14576  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
 14577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14578  }
 14579  
 14580  // GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The suggestion
 14581  // chip message that allows the user to jump out to the app or website
 14582  // associated with this agent.
 14583  type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
 14584  	// DestinationName: Required. The name of the app or site this chip is linking
 14585  	// to.
 14586  	DestinationName string `json:"destinationName,omitempty"`
 14587  	// Uri: Required. The URI of the app or site to open when the user taps the
 14588  	// suggestion chip.
 14589  	Uri string `json:"uri,omitempty"`
 14590  	// ForceSendFields is a list of field names (e.g. "DestinationName") to
 14591  	// unconditionally include in API requests. By default, fields with empty or
 14592  	// default values are omitted from API requests. See
 14593  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14594  	// details.
 14595  	ForceSendFields []string `json:"-"`
 14596  	// NullFields is a list of field names (e.g. "DestinationName") to include in
 14597  	// API requests with the JSON null value. By default, fields with empty values
 14598  	// are omitted from API requests. See
 14599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14600  	NullFields []string `json:"-"`
 14601  }
 14602  
 14603  func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
 14604  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
 14605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14606  }
 14607  
 14608  // GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for presenting
 14609  // a list of options to select from.
 14610  type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
 14611  	// Items: Required. List items.
 14612  	Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
 14613  	// Subtitle: Optional. Subtitle of the list.
 14614  	Subtitle string `json:"subtitle,omitempty"`
 14615  	// Title: Optional. The overall title of the list.
 14616  	Title string `json:"title,omitempty"`
 14617  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
 14618  	// include in API requests. By default, fields with empty or default values are
 14619  	// omitted from API requests. See
 14620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14621  	// details.
 14622  	ForceSendFields []string `json:"-"`
 14623  	// NullFields is a list of field names (e.g. "Items") to include in API
 14624  	// requests with the JSON null value. By default, fields with empty values are
 14625  	// omitted from API requests. See
 14626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14627  	NullFields []string `json:"-"`
 14628  }
 14629  
 14630  func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
 14631  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
 14632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14633  }
 14634  
 14635  // GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in the
 14636  // list.
 14637  type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
 14638  	// Description: Optional. The main text describing the item.
 14639  	Description string `json:"description,omitempty"`
 14640  	// Image: Optional. The image to display.
 14641  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 14642  	// Info: Required. Additional information about this option.
 14643  	Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
 14644  	// Title: Required. The title of the list item.
 14645  	Title string `json:"title,omitempty"`
 14646  	// ForceSendFields is a list of field names (e.g. "Description") to
 14647  	// unconditionally include in API requests. By default, fields with empty or
 14648  	// default values are omitted from API requests. See
 14649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14650  	// details.
 14651  	ForceSendFields []string `json:"-"`
 14652  	// NullFields is a list of field names (e.g. "Description") to include in API
 14653  	// requests with the JSON null value. By default, fields with empty values are
 14654  	// omitted from API requests. See
 14655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14656  	NullFields []string `json:"-"`
 14657  }
 14658  
 14659  func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
 14660  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
 14661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14662  }
 14663  
 14664  // GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media content
 14665  // card for Actions on Google.
 14666  type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
 14667  	// MediaObjects: Required. List of media objects.
 14668  	MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
 14669  	// MediaType: Optional. What type of media is the content (ie "audio").
 14670  	//
 14671  	// Possible values:
 14672  	//   "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified.
 14673  	//   "AUDIO" - Response media type is audio.
 14674  	MediaType string `json:"mediaType,omitempty"`
 14675  	// ForceSendFields is a list of field names (e.g. "MediaObjects") to
 14676  	// unconditionally include in API requests. By default, fields with empty or
 14677  	// default values are omitted from API requests. See
 14678  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14679  	// details.
 14680  	ForceSendFields []string `json:"-"`
 14681  	// NullFields is a list of field names (e.g. "MediaObjects") to include in API
 14682  	// requests with the JSON null value. By default, fields with empty values are
 14683  	// omitted from API requests. See
 14684  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14685  	NullFields []string `json:"-"`
 14686  }
 14687  
 14688  func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
 14689  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
 14690  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14691  }
 14692  
 14693  // GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject:
 14694  // Response media object for media content card.
 14695  type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
 14696  	// ContentUrl: Required. Url where the media is stored.
 14697  	ContentUrl string `json:"contentUrl,omitempty"`
 14698  	// Description: Optional. Description of media card.
 14699  	Description string `json:"description,omitempty"`
 14700  	// Icon: Optional. Icon to display above media content.
 14701  	Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
 14702  	// LargeImage: Optional. Image to display above media content.
 14703  	LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
 14704  	// Name: Required. Name of media card.
 14705  	Name string `json:"name,omitempty"`
 14706  	// ForceSendFields is a list of field names (e.g. "ContentUrl") to
 14707  	// unconditionally include in API requests. By default, fields with empty or
 14708  	// default values are omitted from API requests. See
 14709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14710  	// details.
 14711  	ForceSendFields []string `json:"-"`
 14712  	// NullFields is a list of field names (e.g. "ContentUrl") to include in API
 14713  	// requests with the JSON null value. By default, fields with empty values are
 14714  	// omitted from API requests. See
 14715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14716  	NullFields []string `json:"-"`
 14717  }
 14718  
 14719  func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
 14720  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
 14721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14722  }
 14723  
 14724  // GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick replies
 14725  // response message.
 14726  type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
 14727  	// QuickReplies: Optional. The collection of quick replies.
 14728  	QuickReplies []string `json:"quickReplies,omitempty"`
 14729  	// Title: Optional. The title of the collection of quick replies.
 14730  	Title string `json:"title,omitempty"`
 14731  	// ForceSendFields is a list of field names (e.g. "QuickReplies") to
 14732  	// unconditionally include in API requests. By default, fields with empty or
 14733  	// default values are omitted from API requests. See
 14734  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14735  	// details.
 14736  	ForceSendFields []string `json:"-"`
 14737  	// NullFields is a list of field names (e.g. "QuickReplies") to include in API
 14738  	// requests with the JSON null value. By default, fields with empty values are
 14739  	// omitted from API requests. See
 14740  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14741  	NullFields []string `json:"-"`
 14742  }
 14743  
 14744  func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
 14745  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
 14746  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14747  }
 14748  
 14749  // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich Business
 14750  // Messaging (RBM) Card content
 14751  type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
 14752  	// Description: Optional. Description of the card (at most 2000 bytes). At
 14753  	// least one of the title, description or media must be set.
 14754  	Description string `json:"description,omitempty"`
 14755  	// Media: Optional. However at least one of the title, description or media
 14756  	// must be set. Media (image, GIF or a video) to include in the card.
 14757  	Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
 14758  	// Suggestions: Optional. List of suggestions to include in the card.
 14759  	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
 14760  	// Title: Optional. Title of the card (at most 200 bytes). At least one of the
 14761  	// title, description or media must be set.
 14762  	Title string `json:"title,omitempty"`
 14763  	// ForceSendFields is a list of field names (e.g. "Description") to
 14764  	// unconditionally include in API requests. By default, fields with empty or
 14765  	// default values are omitted from API requests. See
 14766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14767  	// details.
 14768  	ForceSendFields []string `json:"-"`
 14769  	// NullFields is a list of field names (e.g. "Description") to include in API
 14770  	// requests with the JSON null value. By default, fields with empty values are
 14771  	// omitted from API requests. See
 14772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14773  	NullFields []string `json:"-"`
 14774  }
 14775  
 14776  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
 14777  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
 14778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14779  }
 14780  
 14781  // GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich
 14782  // Business Messaging (RBM) Media displayed in Cards The following media-types
 14783  // are currently supported: Image Types * image/jpeg * image/jpg' * image/gif *
 14784  // image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg *
 14785  // video/mpeg4 * video/webm
 14786  type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
 14787  	// FileUri: Required. Publicly reachable URI of the file. The RBM platform
 14788  	// determines the MIME type of the file from the content-type field in the HTTP
 14789  	// headers when the platform fetches the file. The content-type field must be
 14790  	// present and accurate in the HTTP response from the URL.
 14791  	FileUri string `json:"fileUri,omitempty"`
 14792  	// Height: Required for cards with vertical orientation. The height of the
 14793  	// media within a rich card with a vertical layout. For a standalone card with
 14794  	// horizontal layout, height is not customizable, and this field is ignored.
 14795  	//
 14796  	// Possible values:
 14797  	//   "HEIGHT_UNSPECIFIED" - Not specified.
 14798  	//   "SHORT" - 112 DP.
 14799  	//   "MEDIUM" - 168 DP.
 14800  	//   "TALL" - 264 DP. Not available for rich card carousels when the card width
 14801  	// is set to small.
 14802  	Height string `json:"height,omitempty"`
 14803  	// ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If you don't
 14804  	// provide a thumbnail URI, the RBM platform displays a blank placeholder
 14805  	// thumbnail until the user's device downloads the file. Depending on the
 14806  	// user's setting, the file may not download automatically and may require the
 14807  	// user to tap a download button.
 14808  	ThumbnailUri string `json:"thumbnailUri,omitempty"`
 14809  	// ForceSendFields is a list of field names (e.g. "FileUri") to unconditionally
 14810  	// include in API requests. By default, fields with empty or default values are
 14811  	// omitted from API requests. See
 14812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14813  	// details.
 14814  	ForceSendFields []string `json:"-"`
 14815  	// NullFields is a list of field names (e.g. "FileUri") to include in API
 14816  	// requests with the JSON null value. By default, fields with empty values are
 14817  	// omitted from API requests. See
 14818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14819  	NullFields []string `json:"-"`
 14820  }
 14821  
 14822  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
 14823  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
 14824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14825  }
 14826  
 14827  // GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel Rich
 14828  // Business Messaging (RBM) rich card. Rich cards allow you to respond to users
 14829  // with more vivid content, e.g. with media and suggestions. If you want to
 14830  // show a single card with more control over the layout, please use
 14831  // RbmStandaloneCard instead.
 14832  type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
 14833  	// CardContents: Required. The cards in the carousel. A carousel must have at
 14834  	// least 2 cards and at most 10.
 14835  	CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
 14836  	// CardWidth: Required. The width of the cards in the carousel.
 14837  	//
 14838  	// Possible values:
 14839  	//   "CARD_WIDTH_UNSPECIFIED" - Not specified.
 14840  	//   "SMALL" - 120 DP. Note that tall media cannot be used.
 14841  	//   "MEDIUM" - 232 DP.
 14842  	CardWidth string `json:"cardWidth,omitempty"`
 14843  	// ForceSendFields is a list of field names (e.g. "CardContents") to
 14844  	// unconditionally include in API requests. By default, fields with empty or
 14845  	// default values are omitted from API requests. See
 14846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14847  	// details.
 14848  	ForceSendFields []string `json:"-"`
 14849  	// NullFields is a list of field names (e.g. "CardContents") to include in API
 14850  	// requests with the JSON null value. By default, fields with empty values are
 14851  	// omitted from API requests. See
 14852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14853  	NullFields []string `json:"-"`
 14854  }
 14855  
 14856  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
 14857  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
 14858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14859  }
 14860  
 14861  // GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: Standalone Rich
 14862  // Business Messaging (RBM) rich card. Rich cards allow you to respond to users
 14863  // with more vivid content, e.g. with media and suggestions. You can group
 14864  // multiple rich cards into one using RbmCarouselCard but carousel cards will
 14865  // give you less control over the card layout.
 14866  type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
 14867  	// CardContent: Required. Card content.
 14868  	CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
 14869  	// CardOrientation: Required. Orientation of the card.
 14870  	//
 14871  	// Possible values:
 14872  	//   "CARD_ORIENTATION_UNSPECIFIED" - Not specified.
 14873  	//   "HORIZONTAL" - Horizontal layout.
 14874  	//   "VERTICAL" - Vertical layout.
 14875  	CardOrientation string `json:"cardOrientation,omitempty"`
 14876  	// ThumbnailImageAlignment: Required if orientation is horizontal. Image
 14877  	// preview alignment for standalone cards with horizontal layout.
 14878  	//
 14879  	// Possible values:
 14880  	//   "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified.
 14881  	//   "LEFT" - Thumbnail preview is left-aligned.
 14882  	//   "RIGHT" - Thumbnail preview is right-aligned.
 14883  	ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
 14884  	// ForceSendFields is a list of field names (e.g. "CardContent") to
 14885  	// unconditionally include in API requests. By default, fields with empty or
 14886  	// default values are omitted from API requests. See
 14887  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14888  	// details.
 14889  	ForceSendFields []string `json:"-"`
 14890  	// NullFields is a list of field names (e.g. "CardContent") to include in API
 14891  	// requests with the JSON null value. By default, fields with empty values are
 14892  	// omitted from API requests. See
 14893  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14894  	NullFields []string `json:"-"`
 14895  }
 14896  
 14897  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
 14898  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
 14899  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14900  }
 14901  
 14902  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich Business
 14903  // Messaging (RBM) suggested client-side action that the user can choose from
 14904  // the card.
 14905  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
 14906  	// Dial: Suggested client side action: Dial a phone number
 14907  	Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
 14908  	// OpenUrl: Suggested client side action: Open a URI on device
 14909  	OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
 14910  	// PostbackData: Opaque payload that the Dialogflow receives in a user event
 14911  	// when the user taps the suggested action. This data will be also forwarded to
 14912  	// webhook to allow performing custom business logic.
 14913  	PostbackData string `json:"postbackData,omitempty"`
 14914  	// ShareLocation: Suggested client side action: Share user location
 14915  	ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
 14916  	// Text: Text to display alongside the action.
 14917  	Text string `json:"text,omitempty"`
 14918  	// ForceSendFields is a list of field names (e.g. "Dial") to unconditionally
 14919  	// include in API requests. By default, fields with empty or default values are
 14920  	// omitted from API requests. See
 14921  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14922  	// details.
 14923  	ForceSendFields []string `json:"-"`
 14924  	// NullFields is a list of field names (e.g. "Dial") to include in API requests
 14925  	// with the JSON null value. By default, fields with empty values are omitted
 14926  	// from API requests. See
 14927  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14928  	NullFields []string `json:"-"`
 14929  }
 14930  
 14931  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
 14932  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
 14933  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14934  }
 14935  
 14936  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 14937  // Dial: Opens the user's default dialer app with the specified phone number
 14938  // but does not dial automatically.
 14939  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
 14940  	// PhoneNumber: Required. The phone number to fill in the default dialer app.
 14941  	// This field should be in E.164 (https://en.wikipedia.org/wiki/E.164) format.
 14942  	// An example of a correctly formatted phone number: +15556767888.
 14943  	PhoneNumber string `json:"phoneNumber,omitempty"`
 14944  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 14945  	// unconditionally include in API requests. By default, fields with empty or
 14946  	// default values are omitted from API requests. See
 14947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14948  	// details.
 14949  	ForceSendFields []string `json:"-"`
 14950  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 14951  	// requests with the JSON null value. By default, fields with empty values are
 14952  	// omitted from API requests. See
 14953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14954  	NullFields []string `json:"-"`
 14955  }
 14956  
 14957  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
 14958  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
 14959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14960  }
 14961  
 14962  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 14963  // OpenUri: Opens the user's default web browser app to the specified uri If
 14964  // the user has an app installed that is registered as the default handler for
 14965  // the URL, then this app will be opened instead, and its icon will be used in
 14966  // the suggested action UI.
 14967  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
 14968  	// Uri: Required. The uri to open on the user device
 14969  	Uri string `json:"uri,omitempty"`
 14970  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
 14971  	// include in API requests. By default, fields with empty or default values are
 14972  	// omitted from API requests. See
 14973  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14974  	// details.
 14975  	ForceSendFields []string `json:"-"`
 14976  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
 14977  	// with the JSON null value. By default, fields with empty values are omitted
 14978  	// from API requests. See
 14979  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14980  	NullFields []string `json:"-"`
 14981  }
 14982  
 14983  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
 14984  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
 14985  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14986  }
 14987  
 14988  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedAction
 14989  // ShareLocation: Opens the device's location chooser so the user can pick a
 14990  // location to send back to the agent.
 14991  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
 14992  }
 14993  
 14994  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich Business
 14995  // Messaging (RBM) suggested reply that the user can click instead of typing in
 14996  // their own response.
 14997  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
 14998  	// PostbackData: Opaque payload that the Dialogflow receives in a user event
 14999  	// when the user taps the suggested reply. This data will be also forwarded to
 15000  	// webhook to allow performing custom business logic.
 15001  	PostbackData string `json:"postbackData,omitempty"`
 15002  	// Text: Suggested reply text.
 15003  	Text string `json:"text,omitempty"`
 15004  	// ForceSendFields is a list of field names (e.g. "PostbackData") to
 15005  	// unconditionally include in API requests. By default, fields with empty or
 15006  	// default values are omitted from API requests. See
 15007  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15008  	// details.
 15009  	ForceSendFields []string `json:"-"`
 15010  	// NullFields is a list of field names (e.g. "PostbackData") to include in API
 15011  	// requests with the JSON null value. By default, fields with empty values are
 15012  	// omitted from API requests. See
 15013  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15014  	NullFields []string `json:"-"`
 15015  }
 15016  
 15017  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
 15018  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
 15019  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15020  }
 15021  
 15022  // GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business
 15023  // Messaging (RBM) suggestion. Suggestions allow user to easily select/click a
 15024  // predefined response or perform an action (like opening a web uri).
 15025  type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
 15026  	// Action: Predefined client side actions that user can choose
 15027  	Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
 15028  	// Reply: Predefined replies for user to select instead of typing
 15029  	Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
 15030  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 15031  	// include in API requests. By default, fields with empty or default values are
 15032  	// omitted from API requests. See
 15033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15034  	// details.
 15035  	ForceSendFields []string `json:"-"`
 15036  	// NullFields is a list of field names (e.g. "Action") to include in API
 15037  	// requests with the JSON null value. By default, fields with empty values are
 15038  	// omitted from API requests. See
 15039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15040  	NullFields []string `json:"-"`
 15041  }
 15042  
 15043  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
 15044  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
 15045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15046  }
 15047  
 15048  // GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business Messaging
 15049  // (RBM) text response with suggestions.
 15050  type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
 15051  	// RbmSuggestion: Optional. One or more suggestions to show to the user.
 15052  	RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
 15053  	// Text: Required. Text sent and displayed to the user.
 15054  	Text string `json:"text,omitempty"`
 15055  	// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to
 15056  	// unconditionally include in API requests. By default, fields with empty or
 15057  	// default values are omitted from API requests. See
 15058  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15059  	// details.
 15060  	ForceSendFields []string `json:"-"`
 15061  	// NullFields is a list of field names (e.g. "RbmSuggestion") to include in API
 15062  	// requests with the JSON null value. By default, fields with empty values are
 15063  	// omitted from API requests. See
 15064  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15065  	NullFields []string `json:"-"`
 15066  }
 15067  
 15068  func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
 15069  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
 15070  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15071  }
 15072  
 15073  // GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional info
 15074  // about the select item for when it is triggered in a dialog.
 15075  type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
 15076  	// Key: Required. A unique key that will be sent back to the agent if this
 15077  	// response is given.
 15078  	Key string `json:"key,omitempty"`
 15079  	// Synonyms: Optional. A list of synonyms that can also be used to trigger this
 15080  	// item in dialog.
 15081  	Synonyms []string `json:"synonyms,omitempty"`
 15082  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
 15083  	// include in API requests. By default, fields with empty or default values are
 15084  	// omitted from API requests. See
 15085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15086  	// details.
 15087  	ForceSendFields []string `json:"-"`
 15088  	// NullFields is a list of field names (e.g. "Key") to include in API requests
 15089  	// with the JSON null value. By default, fields with empty values are omitted
 15090  	// from API requests. See
 15091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15092  	NullFields []string `json:"-"`
 15093  }
 15094  
 15095  func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
 15096  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
 15097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15098  }
 15099  
 15100  // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple response
 15101  // message containing speech or text.
 15102  type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
 15103  	// DisplayText: Optional. The text to display.
 15104  	DisplayText string `json:"displayText,omitempty"`
 15105  	// Ssml: One of text_to_speech or ssml must be provided. Structured spoken
 15106  	// response to the user in the SSML format. Mutually exclusive with
 15107  	// text_to_speech.
 15108  	Ssml string `json:"ssml,omitempty"`
 15109  	// TextToSpeech: One of text_to_speech or ssml must be provided. The plain text
 15110  	// of the speech output. Mutually exclusive with ssml.
 15111  	TextToSpeech string `json:"textToSpeech,omitempty"`
 15112  	// ForceSendFields is a list of field names (e.g. "DisplayText") to
 15113  	// unconditionally include in API requests. By default, fields with empty or
 15114  	// default values are omitted from API requests. See
 15115  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15116  	// details.
 15117  	ForceSendFields []string `json:"-"`
 15118  	// NullFields is a list of field names (e.g. "DisplayText") to include in API
 15119  	// requests with the JSON null value. By default, fields with empty values are
 15120  	// omitted from API requests. See
 15121  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15122  	NullFields []string `json:"-"`
 15123  }
 15124  
 15125  func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
 15126  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
 15127  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15128  }
 15129  
 15130  // GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The collection of
 15131  // simple response candidates. This message in
 15132  // `QueryResult.fulfillment_messages` and
 15133  // `WebhookResponse.fulfillment_messages` should contain only one
 15134  // `SimpleResponse`.
 15135  type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
 15136  	// SimpleResponses: Required. The list of simple responses.
 15137  	SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
 15138  	// ForceSendFields is a list of field names (e.g. "SimpleResponses") to
 15139  	// unconditionally include in API requests. By default, fields with empty or
 15140  	// default values are omitted from API requests. See
 15141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15142  	// details.
 15143  	ForceSendFields []string `json:"-"`
 15144  	// NullFields is a list of field names (e.g. "SimpleResponses") to include in
 15145  	// API requests with the JSON null value. By default, fields with empty values
 15146  	// are omitted from API requests. See
 15147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15148  	NullFields []string `json:"-"`
 15149  }
 15150  
 15151  func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
 15152  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
 15153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15154  }
 15155  
 15156  // GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion chip
 15157  // message that the user can tap to quickly post a reply to the conversation.
 15158  type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
 15159  	// Title: Required. The text shown the in the suggestion chip.
 15160  	Title string `json:"title,omitempty"`
 15161  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
 15162  	// include in API requests. By default, fields with empty or default values are
 15163  	// omitted from API requests. See
 15164  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15165  	// details.
 15166  	ForceSendFields []string `json:"-"`
 15167  	// NullFields is a list of field names (e.g. "Title") to include in API
 15168  	// requests with the JSON null value. By default, fields with empty values are
 15169  	// omitted from API requests. See
 15170  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15171  	NullFields []string `json:"-"`
 15172  }
 15173  
 15174  func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
 15175  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
 15176  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15177  }
 15178  
 15179  // GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection of
 15180  // suggestions.
 15181  type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
 15182  	// Suggestions: Required. The list of suggested replies.
 15183  	Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
 15184  	// ForceSendFields is a list of field names (e.g. "Suggestions") to
 15185  	// unconditionally include in API requests. By default, fields with empty or
 15186  	// default values are omitted from API requests. See
 15187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15188  	// details.
 15189  	ForceSendFields []string `json:"-"`
 15190  	// NullFields is a list of field names (e.g. "Suggestions") to include in API
 15191  	// requests with the JSON null value. By default, fields with empty values are
 15192  	// omitted from API requests. See
 15193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15194  	NullFields []string `json:"-"`
 15195  }
 15196  
 15197  func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
 15198  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
 15199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15200  }
 15201  
 15202  // GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for Actions
 15203  // on Google.
 15204  type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
 15205  	// Buttons: Optional. List of buttons for the card.
 15206  	Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
 15207  	// ColumnProperties: Optional. Display properties for the columns in this
 15208  	// table.
 15209  	ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
 15210  	// Image: Optional. Image which should be displayed on the card.
 15211  	Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
 15212  	// Rows: Optional. Rows in this table of data.
 15213  	Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
 15214  	// Subtitle: Optional. Subtitle to the title.
 15215  	Subtitle string `json:"subtitle,omitempty"`
 15216  	// Title: Required. Title of the card.
 15217  	Title string `json:"title,omitempty"`
 15218  	// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally
 15219  	// include in API requests. By default, fields with empty or default values are
 15220  	// omitted from API requests. See
 15221  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15222  	// details.
 15223  	ForceSendFields []string `json:"-"`
 15224  	// NullFields is a list of field names (e.g. "Buttons") to include in API
 15225  	// requests with the JSON null value. By default, fields with empty values are
 15226  	// omitted from API requests. See
 15227  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15228  	NullFields []string `json:"-"`
 15229  }
 15230  
 15231  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
 15232  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
 15233  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15234  }
 15235  
 15236  // GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of
 15237  // TableCardRow.
 15238  type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
 15239  	// Text: Required. Text in this cell.
 15240  	Text string `json:"text,omitempty"`
 15241  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 15242  	// include in API requests. By default, fields with empty or default values are
 15243  	// omitted from API requests. See
 15244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15245  	// details.
 15246  	ForceSendFields []string `json:"-"`
 15247  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 15248  	// with the JSON null value. By default, fields with empty values are omitted
 15249  	// from API requests. See
 15250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15251  	NullFields []string `json:"-"`
 15252  }
 15253  
 15254  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
 15255  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
 15256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15257  }
 15258  
 15259  // GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of TableCard.
 15260  type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
 15261  	// Cells: Optional. List of cells that make up this row.
 15262  	Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
 15263  	// DividerAfter: Optional. Whether to add a visual divider after this row.
 15264  	DividerAfter bool `json:"dividerAfter,omitempty"`
 15265  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
 15266  	// include in API requests. By default, fields with empty or default values are
 15267  	// omitted from API requests. See
 15268  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15269  	// details.
 15270  	ForceSendFields []string `json:"-"`
 15271  	// NullFields is a list of field names (e.g. "Cells") to include in API
 15272  	// requests with the JSON null value. By default, fields with empty values are
 15273  	// omitted from API requests. See
 15274  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15275  	NullFields []string `json:"-"`
 15276  }
 15277  
 15278  func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
 15279  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
 15280  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15281  }
 15282  
 15283  // GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays audio
 15284  // from a file in Telephony Gateway.
 15285  type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
 15286  	// AudioUri: Required. URI to a Google Cloud Storage object containing the
 15287  	// audio to play, e.g., "gs://bucket/object". The object must contain a single
 15288  	// channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object
 15289  	// must be readable by the `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`
 15290  	// service account where is the number of the Telephony Gateway project
 15291  	// (usually the same as the Dialogflow agent project). If the Google Cloud
 15292  	// Storage bucket is in the Telephony Gateway project, this permission is added
 15293  	// by default when enabling the Dialogflow V2 API. For audio from other
 15294  	// sources, consider using the `TelephonySynthesizeSpeech` message with SSML.
 15295  	AudioUri string `json:"audioUri,omitempty"`
 15296  	// ForceSendFields is a list of field names (e.g. "AudioUri") to
 15297  	// unconditionally include in API requests. By default, fields with empty or
 15298  	// default values are omitted from API requests. See
 15299  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15300  	// details.
 15301  	ForceSendFields []string `json:"-"`
 15302  	// NullFields is a list of field names (e.g. "AudioUri") to include in API
 15303  	// requests with the JSON null value. By default, fields with empty values are
 15304  	// omitted from API requests. See
 15305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15306  	NullFields []string `json:"-"`
 15307  }
 15308  
 15309  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
 15310  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
 15311  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15312  }
 15313  
 15314  // GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:
 15315  // Synthesizes speech and plays back the synthesized audio to the caller in
 15316  // Telephony Gateway. Telephony Gateway takes the synthesizer settings from
 15317  // `DetectIntentResponse.output_audio_config` which can either be set at
 15318  // request-level or can come from the agent-level synthesizer config.
 15319  type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
 15320  	// Ssml: The SSML to be synthesized. For more information, see SSML
 15321  	// (https://developers.google.com/actions/reference/ssml).
 15322  	Ssml string `json:"ssml,omitempty"`
 15323  	// Text: The raw text to be synthesized.
 15324  	Text string `json:"text,omitempty"`
 15325  	// ForceSendFields is a list of field names (e.g. "Ssml") to unconditionally
 15326  	// include in API requests. By default, fields with empty or default values are
 15327  	// omitted from API requests. See
 15328  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15329  	// details.
 15330  	ForceSendFields []string `json:"-"`
 15331  	// NullFields is a list of field names (e.g. "Ssml") to include in API requests
 15332  	// with the JSON null value. By default, fields with empty values are omitted
 15333  	// from API requests. See
 15334  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15335  	NullFields []string `json:"-"`
 15336  }
 15337  
 15338  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
 15339  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
 15340  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15341  }
 15342  
 15343  // GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: Transfers
 15344  // the call in Telephony Gateway.
 15345  type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
 15346  	// PhoneNumber: Required. The phone number to transfer the call to in E.164
 15347  	// format (https://en.wikipedia.org/wiki/E.164). We currently only allow
 15348  	// transferring to US numbers (+1xxxyyyzzzz).
 15349  	PhoneNumber string `json:"phoneNumber,omitempty"`
 15350  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 15351  	// unconditionally include in API requests. By default, fields with empty or
 15352  	// default values are omitted from API requests. See
 15353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15354  	// details.
 15355  	ForceSendFields []string `json:"-"`
 15356  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 15357  	// requests with the JSON null value. By default, fields with empty values are
 15358  	// omitted from API requests. See
 15359  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15360  	NullFields []string `json:"-"`
 15361  }
 15362  
 15363  func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
 15364  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
 15365  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15366  }
 15367  
 15368  // GoogleCloudDialogflowV2beta1IntentMessageText: The text response message.
 15369  type GoogleCloudDialogflowV2beta1IntentMessageText struct {
 15370  	// Text: Optional. The collection of the agent's responses.
 15371  	Text []string `json:"text,omitempty"`
 15372  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 15373  	// include in API requests. By default, fields with empty or default values are
 15374  	// omitted from API requests. See
 15375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15376  	// details.
 15377  	ForceSendFields []string `json:"-"`
 15378  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 15379  	// with the JSON null value. By default, fields with empty values are omitted
 15380  	// from API requests. See
 15381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15382  	NullFields []string `json:"-"`
 15383  }
 15384  
 15385  func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
 15386  	type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
 15387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15388  }
 15389  
 15390  // GoogleCloudDialogflowV2beta1IntentParameter: Represents intent parameters.
 15391  type GoogleCloudDialogflowV2beta1IntentParameter struct {
 15392  	// DefaultValue: Optional. The default value to use when the `value` yields an
 15393  	// empty result. Default values can be extracted from contexts by using the
 15394  	// following syntax: `#context_name.parameter_name`.
 15395  	DefaultValue string `json:"defaultValue,omitempty"`
 15396  	// DisplayName: Required. The name of the parameter.
 15397  	DisplayName string `json:"displayName,omitempty"`
 15398  	// EntityTypeDisplayName: Optional. The name of the entity type, prefixed with
 15399  	// `@`, that describes values of the parameter. If the parameter is required,
 15400  	// this must be provided.
 15401  	EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
 15402  	// IsList: Optional. Indicates whether the parameter represents a list of
 15403  	// values.
 15404  	IsList bool `json:"isList,omitempty"`
 15405  	// Mandatory: Optional. Indicates whether the parameter is required. That is,
 15406  	// whether the intent cannot be completed without collecting the parameter
 15407  	// value.
 15408  	Mandatory bool `json:"mandatory,omitempty"`
 15409  	// Name: The unique identifier of this parameter.
 15410  	Name string `json:"name,omitempty"`
 15411  	// Prompts: Optional. The collection of prompts that the agent can present to
 15412  	// the user in order to collect a value for the parameter.
 15413  	Prompts []string `json:"prompts,omitempty"`
 15414  	// Value: Optional. The definition of the parameter value. It can be: - a
 15415  	// constant string, - a parameter value defined as `$parameter_name`, - an
 15416  	// original parameter value defined as `$parameter_name.original`, - a
 15417  	// parameter value from some context defined as `#context_name.parameter_name`.
 15418  	Value string `json:"value,omitempty"`
 15419  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
 15420  	// unconditionally include in API requests. By default, fields with empty or
 15421  	// default values are omitted from API requests. See
 15422  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15423  	// details.
 15424  	ForceSendFields []string `json:"-"`
 15425  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
 15426  	// requests with the JSON null value. By default, fields with empty values are
 15427  	// omitted from API requests. See
 15428  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15429  	NullFields []string `json:"-"`
 15430  }
 15431  
 15432  func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
 15433  	type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
 15434  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15435  }
 15436  
 15437  // GoogleCloudDialogflowV2beta1IntentSuggestion: Represents an intent
 15438  // suggestion.
 15439  type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
 15440  	// Description: Human readable description for better understanding an intent
 15441  	// like its scope, content, result etc. Maximum character limit: 140
 15442  	// characters.
 15443  	Description string `json:"description,omitempty"`
 15444  	// DisplayName: The display name of the intent.
 15445  	DisplayName string `json:"displayName,omitempty"`
 15446  	// IntentV2: The unique identifier of this intent. Format:
 15447  	// `projects//locations//agent/intents/`.
 15448  	IntentV2 string `json:"intentV2,omitempty"`
 15449  	// ForceSendFields is a list of field names (e.g. "Description") to
 15450  	// unconditionally include in API requests. By default, fields with empty or
 15451  	// default values are omitted from API requests. See
 15452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15453  	// details.
 15454  	ForceSendFields []string `json:"-"`
 15455  	// NullFields is a list of field names (e.g. "Description") to include in API
 15456  	// requests with the JSON null value. By default, fields with empty values are
 15457  	// omitted from API requests. See
 15458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15459  	NullFields []string `json:"-"`
 15460  }
 15461  
 15462  func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
 15463  	type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
 15464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15465  }
 15466  
 15467  // GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an example that
 15468  // the agent is trained on.
 15469  type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
 15470  	// Name: Output only. The unique identifier of this training phrase.
 15471  	Name string `json:"name,omitempty"`
 15472  	// Parts: Required. The ordered list of training phrase parts. The parts are
 15473  	// concatenated in order to form the training phrase. Note: The API does not
 15474  	// automatically annotate training phrases like the Dialogflow Console does.
 15475  	// Note: Do not forget to include whitespace at part boundaries, so the
 15476  	// training phrase is well formatted when the parts are concatenated. If the
 15477  	// training phrase does not need to be annotated with parameters, you just need
 15478  	// a single part with only the Part.text field set. If you want to annotate the
 15479  	// training phrase, you must create multiple parts, where the fields of each
 15480  	// part are populated in one of two ways: - `Part.text` is set to a part of the
 15481  	// phrase that has no parameters. - `Part.text` is set to a part of the phrase
 15482  	// that you want to annotate, and the `entity_type`, `alias`, and
 15483  	// `user_defined` fields are all set.
 15484  	Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
 15485  	// TimesAddedCount: Optional. Indicates how many times this example was added
 15486  	// to the intent. Each time a developer adds an existing sample by editing an
 15487  	// intent or training, this counter is increased.
 15488  	TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
 15489  	// Type: Required. The type of the training phrase.
 15490  	//
 15491  	// Possible values:
 15492  	//   "TYPE_UNSPECIFIED" - Not specified. This value should never be used.
 15493  	//   "EXAMPLE" - Examples do not contain @-prefixed entity type names, but
 15494  	// example parts can be annotated with entity types.
 15495  	//   "TEMPLATE" - Templates are not annotated with entity types, but they can
 15496  	// contain @-prefixed entity type names as substrings. Note: Template mode has
 15497  	// been deprecated. Example mode is the only supported way to create new
 15498  	// training phrases. If you have existing training phrases in template mode,
 15499  	// they will be removed during training and it can cause a drop in agent
 15500  	// performance.
 15501  	Type string `json:"type,omitempty"`
 15502  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 15503  	// include in API requests. By default, fields with empty or default values are
 15504  	// omitted from API requests. See
 15505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15506  	// details.
 15507  	ForceSendFields []string `json:"-"`
 15508  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 15509  	// with the JSON null value. By default, fields with empty values are omitted
 15510  	// from API requests. See
 15511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15512  	NullFields []string `json:"-"`
 15513  }
 15514  
 15515  func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
 15516  	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
 15517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15518  }
 15519  
 15520  // GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a part of a
 15521  // training phrase.
 15522  type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
 15523  	// Alias: Optional. The parameter name for the value extracted from the
 15524  	// annotated part of the example. This field is required for annotated parts of
 15525  	// the training phrase.
 15526  	Alias string `json:"alias,omitempty"`
 15527  	// EntityType: Optional. The entity type name prefixed with `@`. This field is
 15528  	// required for annotated parts of the training phrase.
 15529  	EntityType string `json:"entityType,omitempty"`
 15530  	// Text: Required. The text for this part.
 15531  	Text string `json:"text,omitempty"`
 15532  	// UserDefined: Optional. Indicates whether the text was manually annotated.
 15533  	// This field is set to true when the Dialogflow Console is used to manually
 15534  	// annotate the part. When creating an annotated part with the API, you must
 15535  	// set this to true.
 15536  	UserDefined bool `json:"userDefined,omitempty"`
 15537  	// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally
 15538  	// include in API requests. By default, fields with empty or default values are
 15539  	// omitted from API requests. See
 15540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15541  	// details.
 15542  	ForceSendFields []string `json:"-"`
 15543  	// NullFields is a list of field names (e.g. "Alias") to include in API
 15544  	// requests with the JSON null value. By default, fields with empty values are
 15545  	// omitted from API requests. See
 15546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15547  	NullFields []string `json:"-"`
 15548  }
 15549  
 15550  func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
 15551  	type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
 15552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15553  }
 15554  
 15555  // GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result of
 15556  // querying a Knowledge base.
 15557  type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
 15558  	// Answers: A list of answers from Knowledge Connector.
 15559  	Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
 15560  	// ForceSendFields is a list of field names (e.g. "Answers") to unconditionally
 15561  	// include in API requests. By default, fields with empty or default values are
 15562  	// omitted from API requests. See
 15563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15564  	// details.
 15565  	ForceSendFields []string `json:"-"`
 15566  	// NullFields is a list of field names (e.g. "Answers") to include in API
 15567  	// requests with the JSON null value. By default, fields with empty values are
 15568  	// omitted from API requests. See
 15569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15570  	NullFields []string `json:"-"`
 15571  }
 15572  
 15573  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
 15574  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
 15575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15576  }
 15577  
 15578  // GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from Knowledge
 15579  // Connector.
 15580  type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
 15581  	// Answer: The piece of text from the `source` knowledge base document that
 15582  	// answers this conversational query.
 15583  	Answer string `json:"answer,omitempty"`
 15584  	// FaqQuestion: The corresponding FAQ question if the answer was extracted from
 15585  	// a FAQ Document, empty otherwise.
 15586  	FaqQuestion string `json:"faqQuestion,omitempty"`
 15587  	// MatchConfidence: The system's confidence score that this Knowledge answer is
 15588  	// a good match for this conversational query. The range is from 0.0
 15589  	// (completely uncertain) to 1.0 (completely certain). Note: The confidence
 15590  	// score is likely to vary somewhat (possibly even for identical requests), as
 15591  	// the underlying model is under constant improvement. It may be deprecated in
 15592  	// the future. We recommend using `match_confidence_level` which should be
 15593  	// generally more stable.
 15594  	MatchConfidence float64 `json:"matchConfidence,omitempty"`
 15595  	// MatchConfidenceLevel: The system's confidence level that this knowledge
 15596  	// answer is a good match for this conversational query. NOTE: The confidence
 15597  	// level for a given `` pair may change without notice, as it depends on models
 15598  	// that are constantly being improved. However, it will change less frequently
 15599  	// than the confidence score below, and should be preferred for referencing the
 15600  	// quality of an answer.
 15601  	//
 15602  	// Possible values:
 15603  	//   "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified.
 15604  	//   "LOW" - Indicates that the confidence is low.
 15605  	//   "MEDIUM" - Indicates our confidence is medium.
 15606  	//   "HIGH" - Indicates our confidence is high.
 15607  	MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
 15608  	// Source: Indicates which Knowledge Document this answer was extracted from.
 15609  	// Format: `projects//knowledgeBases//documents/`.
 15610  	Source string `json:"source,omitempty"`
 15611  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 15612  	// include in API requests. By default, fields with empty or default values are
 15613  	// omitted from API requests. See
 15614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15615  	// details.
 15616  	ForceSendFields []string `json:"-"`
 15617  	// NullFields is a list of field names (e.g. "Answer") to include in API
 15618  	// requests with the JSON null value. By default, fields with empty values are
 15619  	// omitted from API requests. See
 15620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15621  	NullFields []string `json:"-"`
 15622  }
 15623  
 15624  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
 15625  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
 15626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15627  }
 15628  
 15629  func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
 15630  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
 15631  	var s1 struct {
 15632  		MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
 15633  		*NoMethod
 15634  	}
 15635  	s1.NoMethod = (*NoMethod)(s)
 15636  	if err := json.Unmarshal(data, &s1); err != nil {
 15637  		return err
 15638  	}
 15639  	s.MatchConfidence = float64(s1.MatchConfidence)
 15640  	return nil
 15641  }
 15642  
 15643  // GoogleCloudDialogflowV2beta1KnowledgeBase: A knowledge base represents a
 15644  // collection of knowledge documents that you provide to Dialogflow. Your
 15645  // knowledge documents contain information that may be useful during
 15646  // conversations with end-users. Some Dialogflow features use knowledge bases
 15647  // when looking for a response to an end-user input. For more information, see
 15648  // the knowledge base guide
 15649  // (https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The
 15650  // `projects.agent.knowledgeBases` resource is deprecated; only use
 15651  // `projects.knowledgeBases`.
 15652  type GoogleCloudDialogflowV2beta1KnowledgeBase struct {
 15653  	// DisplayName: Required. The display name of the knowledge base. The name must
 15654  	// be 1024 bytes or less; otherwise, the creation request fails.
 15655  	DisplayName string `json:"displayName,omitempty"`
 15656  	// LanguageCode: Language which represents the KnowledgeBase. When the
 15657  	// KnowledgeBase is created/updated, this is populated for all non en-us
 15658  	// languages. If not populated, the default language en-us applies.
 15659  	LanguageCode string `json:"languageCode,omitempty"`
 15660  	// Name: The knowledge base resource name. The name must be empty when creating
 15661  	// a knowledge base. Format: `projects//locations//knowledgeBases/`.
 15662  	Name string `json:"name,omitempty"`
 15663  
 15664  	// ServerResponse contains the HTTP response code and headers from the server.
 15665  	googleapi.ServerResponse `json:"-"`
 15666  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 15667  	// unconditionally include in API requests. By default, fields with empty or
 15668  	// default values are omitted from API requests. See
 15669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15670  	// details.
 15671  	ForceSendFields []string `json:"-"`
 15672  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 15673  	// requests with the JSON null value. By default, fields with empty values are
 15674  	// omitted from API requests. See
 15675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15676  	NullFields []string `json:"-"`
 15677  }
 15678  
 15679  func (s *GoogleCloudDialogflowV2beta1KnowledgeBase) MarshalJSON() ([]byte, error) {
 15680  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeBase
 15681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15682  }
 15683  
 15684  // GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in
 15685  // google::longrunning::Operation for Knowledge operations.
 15686  type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
 15687  	// ExportOperationMetadata: Metadata for the Export Data Operation such as the
 15688  	// destination of export.
 15689  	ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
 15690  	// KnowledgeBase: The name of the knowledge base interacted with during the
 15691  	// operation.
 15692  	KnowledgeBase string `json:"knowledgeBase,omitempty"`
 15693  	// State: Required. Output only. The current state of this operation.
 15694  	//
 15695  	// Possible values:
 15696  	//   "STATE_UNSPECIFIED" - State unspecified.
 15697  	//   "PENDING" - The operation has been created.
 15698  	//   "RUNNING" - The operation is currently running.
 15699  	//   "DONE" - The operation is done, either cancelled or completed.
 15700  	State string `json:"state,omitempty"`
 15701  	// ForceSendFields is a list of field names (e.g. "ExportOperationMetadata") to
 15702  	// unconditionally include in API requests. By default, fields with empty or
 15703  	// default values are omitted from API requests. See
 15704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15705  	// details.
 15706  	ForceSendFields []string `json:"-"`
 15707  	// NullFields is a list of field names (e.g. "ExportOperationMetadata") to
 15708  	// include in API requests with the JSON null value. By default, fields with
 15709  	// empty values are omitted from API requests. See
 15710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15711  	NullFields []string `json:"-"`
 15712  }
 15713  
 15714  func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 15715  	type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
 15716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15717  }
 15718  
 15719  // GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse: Response message for
 15720  // AnswerRecords.ListAnswerRecords.
 15721  type GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse struct {
 15722  	// AnswerRecords: The list of answer records.
 15723  	AnswerRecords []*GoogleCloudDialogflowV2beta1AnswerRecord `json:"answerRecords,omitempty"`
 15724  	// NextPageToken: A token to retrieve next page of results. Or empty if there
 15725  	// are no more results. Pass this value in the
 15726  	// ListAnswerRecordsRequest.page_token field in the subsequent call to
 15727  	// `ListAnswerRecords` method to retrieve the next page of results.
 15728  	NextPageToken string `json:"nextPageToken,omitempty"`
 15729  
 15730  	// ServerResponse contains the HTTP response code and headers from the server.
 15731  	googleapi.ServerResponse `json:"-"`
 15732  	// ForceSendFields is a list of field names (e.g. "AnswerRecords") to
 15733  	// unconditionally include in API requests. By default, fields with empty or
 15734  	// default values are omitted from API requests. See
 15735  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15736  	// details.
 15737  	ForceSendFields []string `json:"-"`
 15738  	// NullFields is a list of field names (e.g. "AnswerRecords") to include in API
 15739  	// requests with the JSON null value. By default, fields with empty values are
 15740  	// omitted from API requests. See
 15741  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15742  	NullFields []string `json:"-"`
 15743  }
 15744  
 15745  func (s *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) MarshalJSON() ([]byte, error) {
 15746  	type NoMethod GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
 15747  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15748  }
 15749  
 15750  // GoogleCloudDialogflowV2beta1ListContextsResponse: The response message for
 15751  // Contexts.ListContexts.
 15752  type GoogleCloudDialogflowV2beta1ListContextsResponse struct {
 15753  	// Contexts: The list of contexts. There will be a maximum number of items
 15754  	// returned based on the page_size field in the request.
 15755  	Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
 15756  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15757  	// are no more results in the list.
 15758  	NextPageToken string `json:"nextPageToken,omitempty"`
 15759  
 15760  	// ServerResponse contains the HTTP response code and headers from the server.
 15761  	googleapi.ServerResponse `json:"-"`
 15762  	// ForceSendFields is a list of field names (e.g. "Contexts") to
 15763  	// unconditionally include in API requests. By default, fields with empty or
 15764  	// default values are omitted from API requests. See
 15765  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15766  	// details.
 15767  	ForceSendFields []string `json:"-"`
 15768  	// NullFields is a list of field names (e.g. "Contexts") to include in API
 15769  	// requests with the JSON null value. By default, fields with empty values are
 15770  	// omitted from API requests. See
 15771  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15772  	NullFields []string `json:"-"`
 15773  }
 15774  
 15775  func (s *GoogleCloudDialogflowV2beta1ListContextsResponse) MarshalJSON() ([]byte, error) {
 15776  	type NoMethod GoogleCloudDialogflowV2beta1ListContextsResponse
 15777  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15778  }
 15779  
 15780  // GoogleCloudDialogflowV2beta1ListConversationProfilesResponse: The response
 15781  // message for ConversationProfiles.ListConversationProfiles.
 15782  type GoogleCloudDialogflowV2beta1ListConversationProfilesResponse struct {
 15783  	// ConversationProfiles: The list of project conversation profiles. There is a
 15784  	// maximum number of items returned based on the page_size field in the
 15785  	// request.
 15786  	ConversationProfiles []*GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfiles,omitempty"`
 15787  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15788  	// are no more results in the list.
 15789  	NextPageToken string `json:"nextPageToken,omitempty"`
 15790  
 15791  	// ServerResponse contains the HTTP response code and headers from the server.
 15792  	googleapi.ServerResponse `json:"-"`
 15793  	// ForceSendFields is a list of field names (e.g. "ConversationProfiles") to
 15794  	// unconditionally include in API requests. By default, fields with empty or
 15795  	// default values are omitted from API requests. See
 15796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15797  	// details.
 15798  	ForceSendFields []string `json:"-"`
 15799  	// NullFields is a list of field names (e.g. "ConversationProfiles") to include
 15800  	// in API requests with the JSON null value. By default, fields with empty
 15801  	// values are omitted from API requests. See
 15802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15803  	NullFields []string `json:"-"`
 15804  }
 15805  
 15806  func (s *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) MarshalJSON() ([]byte, error) {
 15807  	type NoMethod GoogleCloudDialogflowV2beta1ListConversationProfilesResponse
 15808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15809  }
 15810  
 15811  // GoogleCloudDialogflowV2beta1ListConversationsResponse: The response message
 15812  // for Conversations.ListConversations.
 15813  type GoogleCloudDialogflowV2beta1ListConversationsResponse struct {
 15814  	// Conversations: The list of conversations. There will be a maximum number of
 15815  	// items returned based on the page_size field in the request.
 15816  	Conversations []*GoogleCloudDialogflowV2beta1Conversation `json:"conversations,omitempty"`
 15817  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15818  	// are no more results in the list.
 15819  	NextPageToken string `json:"nextPageToken,omitempty"`
 15820  
 15821  	// ServerResponse contains the HTTP response code and headers from the server.
 15822  	googleapi.ServerResponse `json:"-"`
 15823  	// ForceSendFields is a list of field names (e.g. "Conversations") to
 15824  	// unconditionally include in API requests. By default, fields with empty or
 15825  	// default values are omitted from API requests. See
 15826  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15827  	// details.
 15828  	ForceSendFields []string `json:"-"`
 15829  	// NullFields is a list of field names (e.g. "Conversations") to include in API
 15830  	// requests with the JSON null value. By default, fields with empty values are
 15831  	// omitted from API requests. See
 15832  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15833  	NullFields []string `json:"-"`
 15834  }
 15835  
 15836  func (s *GoogleCloudDialogflowV2beta1ListConversationsResponse) MarshalJSON() ([]byte, error) {
 15837  	type NoMethod GoogleCloudDialogflowV2beta1ListConversationsResponse
 15838  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15839  }
 15840  
 15841  // GoogleCloudDialogflowV2beta1ListDocumentsResponse: Response message for
 15842  // Documents.ListDocuments.
 15843  type GoogleCloudDialogflowV2beta1ListDocumentsResponse struct {
 15844  	// Documents: The list of documents.
 15845  	Documents []*GoogleCloudDialogflowV2beta1Document `json:"documents,omitempty"`
 15846  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15847  	// are no more results in the list.
 15848  	NextPageToken string `json:"nextPageToken,omitempty"`
 15849  
 15850  	// ServerResponse contains the HTTP response code and headers from the server.
 15851  	googleapi.ServerResponse `json:"-"`
 15852  	// ForceSendFields is a list of field names (e.g. "Documents") to
 15853  	// unconditionally include in API requests. By default, fields with empty or
 15854  	// default values are omitted from API requests. See
 15855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15856  	// details.
 15857  	ForceSendFields []string `json:"-"`
 15858  	// NullFields is a list of field names (e.g. "Documents") to include in API
 15859  	// requests with the JSON null value. By default, fields with empty values are
 15860  	// omitted from API requests. See
 15861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15862  	NullFields []string `json:"-"`
 15863  }
 15864  
 15865  func (s *GoogleCloudDialogflowV2beta1ListDocumentsResponse) MarshalJSON() ([]byte, error) {
 15866  	type NoMethod GoogleCloudDialogflowV2beta1ListDocumentsResponse
 15867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15868  }
 15869  
 15870  // GoogleCloudDialogflowV2beta1ListEntityTypesResponse: The response message
 15871  // for EntityTypes.ListEntityTypes.
 15872  type GoogleCloudDialogflowV2beta1ListEntityTypesResponse struct {
 15873  	// EntityTypes: The list of agent entity types. There will be a maximum number
 15874  	// of items returned based on the page_size field in the request.
 15875  	EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
 15876  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15877  	// are no more results in the list.
 15878  	NextPageToken string `json:"nextPageToken,omitempty"`
 15879  
 15880  	// ServerResponse contains the HTTP response code and headers from the server.
 15881  	googleapi.ServerResponse `json:"-"`
 15882  	// ForceSendFields is a list of field names (e.g. "EntityTypes") to
 15883  	// unconditionally include in API requests. By default, fields with empty or
 15884  	// default values are omitted from API requests. See
 15885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15886  	// details.
 15887  	ForceSendFields []string `json:"-"`
 15888  	// NullFields is a list of field names (e.g. "EntityTypes") to include in API
 15889  	// requests with the JSON null value. By default, fields with empty values are
 15890  	// omitted from API requests. See
 15891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15892  	NullFields []string `json:"-"`
 15893  }
 15894  
 15895  func (s *GoogleCloudDialogflowV2beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
 15896  	type NoMethod GoogleCloudDialogflowV2beta1ListEntityTypesResponse
 15897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15898  }
 15899  
 15900  // GoogleCloudDialogflowV2beta1ListEnvironmentsResponse: The response message
 15901  // for Environments.ListEnvironments.
 15902  type GoogleCloudDialogflowV2beta1ListEnvironmentsResponse struct {
 15903  	// Environments: The list of agent environments. There will be a maximum number
 15904  	// of items returned based on the page_size field in the request.
 15905  	Environments []*GoogleCloudDialogflowV2beta1Environment `json:"environments,omitempty"`
 15906  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15907  	// are no more results in the list.
 15908  	NextPageToken string `json:"nextPageToken,omitempty"`
 15909  
 15910  	// ServerResponse contains the HTTP response code and headers from the server.
 15911  	googleapi.ServerResponse `json:"-"`
 15912  	// ForceSendFields is a list of field names (e.g. "Environments") to
 15913  	// unconditionally include in API requests. By default, fields with empty or
 15914  	// default values are omitted from API requests. See
 15915  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15916  	// details.
 15917  	ForceSendFields []string `json:"-"`
 15918  	// NullFields is a list of field names (e.g. "Environments") to include in API
 15919  	// requests with the JSON null value. By default, fields with empty values are
 15920  	// omitted from API requests. See
 15921  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15922  	NullFields []string `json:"-"`
 15923  }
 15924  
 15925  func (s *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
 15926  	type NoMethod GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
 15927  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15928  }
 15929  
 15930  // GoogleCloudDialogflowV2beta1ListIntentsResponse: The response message for
 15931  // Intents.ListIntents.
 15932  type GoogleCloudDialogflowV2beta1ListIntentsResponse struct {
 15933  	// Intents: The list of agent intents. There will be a maximum number of items
 15934  	// returned based on the page_size field in the request.
 15935  	Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
 15936  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15937  	// are no more results in the list.
 15938  	NextPageToken string `json:"nextPageToken,omitempty"`
 15939  
 15940  	// ServerResponse contains the HTTP response code and headers from the server.
 15941  	googleapi.ServerResponse `json:"-"`
 15942  	// ForceSendFields is a list of field names (e.g. "Intents") to unconditionally
 15943  	// include in API requests. By default, fields with empty or default values are
 15944  	// omitted from API requests. See
 15945  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15946  	// details.
 15947  	ForceSendFields []string `json:"-"`
 15948  	// NullFields is a list of field names (e.g. "Intents") to include in API
 15949  	// requests with the JSON null value. By default, fields with empty values are
 15950  	// omitted from API requests. See
 15951  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15952  	NullFields []string `json:"-"`
 15953  }
 15954  
 15955  func (s *GoogleCloudDialogflowV2beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
 15956  	type NoMethod GoogleCloudDialogflowV2beta1ListIntentsResponse
 15957  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15958  }
 15959  
 15960  // GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse: Response message for
 15961  // KnowledgeBases.ListKnowledgeBases.
 15962  type GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse struct {
 15963  	// KnowledgeBases: The list of knowledge bases.
 15964  	KnowledgeBases []*GoogleCloudDialogflowV2beta1KnowledgeBase `json:"knowledgeBases,omitempty"`
 15965  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 15966  	// are no more results in the list.
 15967  	NextPageToken string `json:"nextPageToken,omitempty"`
 15968  
 15969  	// ServerResponse contains the HTTP response code and headers from the server.
 15970  	googleapi.ServerResponse `json:"-"`
 15971  	// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to
 15972  	// unconditionally include in API requests. By default, fields with empty or
 15973  	// default values are omitted from API requests. See
 15974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15975  	// details.
 15976  	ForceSendFields []string `json:"-"`
 15977  	// NullFields is a list of field names (e.g. "KnowledgeBases") to include in
 15978  	// API requests with the JSON null value. By default, fields with empty values
 15979  	// are omitted from API requests. See
 15980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15981  	NullFields []string `json:"-"`
 15982  }
 15983  
 15984  func (s *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) MarshalJSON() ([]byte, error) {
 15985  	type NoMethod GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
 15986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15987  }
 15988  
 15989  // GoogleCloudDialogflowV2beta1ListMessagesResponse: The response message for
 15990  // Conversations.ListMessages.
 15991  type GoogleCloudDialogflowV2beta1ListMessagesResponse struct {
 15992  	// Messages: Required. The list of messages. There will be a maximum number of
 15993  	// items returned based on the page_size field in the request. `messages` is
 15994  	// sorted by `create_time` in descending order.
 15995  	Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
 15996  	// NextPageToken: Optional. Token to retrieve the next page of results, or
 15997  	// empty if there are no more results in the list.
 15998  	NextPageToken string `json:"nextPageToken,omitempty"`
 15999  
 16000  	// ServerResponse contains the HTTP response code and headers from the server.
 16001  	googleapi.ServerResponse `json:"-"`
 16002  	// ForceSendFields is a list of field names (e.g. "Messages") to
 16003  	// unconditionally include in API requests. By default, fields with empty or
 16004  	// default values are omitted from API requests. See
 16005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16006  	// details.
 16007  	ForceSendFields []string `json:"-"`
 16008  	// NullFields is a list of field names (e.g. "Messages") to include in API
 16009  	// requests with the JSON null value. By default, fields with empty values are
 16010  	// omitted from API requests. See
 16011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16012  	NullFields []string `json:"-"`
 16013  }
 16014  
 16015  func (s *GoogleCloudDialogflowV2beta1ListMessagesResponse) MarshalJSON() ([]byte, error) {
 16016  	type NoMethod GoogleCloudDialogflowV2beta1ListMessagesResponse
 16017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16018  }
 16019  
 16020  // GoogleCloudDialogflowV2beta1ListParticipantsResponse: The response message
 16021  // for Participants.ListParticipants.
 16022  type GoogleCloudDialogflowV2beta1ListParticipantsResponse struct {
 16023  	// NextPageToken: Token to retrieve the next page of results or empty if there
 16024  	// are no more results in the list.
 16025  	NextPageToken string `json:"nextPageToken,omitempty"`
 16026  	// Participants: The list of participants. There is a maximum number of items
 16027  	// returned based on the page_size field in the request.
 16028  	Participants []*GoogleCloudDialogflowV2beta1Participant `json:"participants,omitempty"`
 16029  
 16030  	// ServerResponse contains the HTTP response code and headers from the server.
 16031  	googleapi.ServerResponse `json:"-"`
 16032  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 16033  	// unconditionally include in API requests. By default, fields with empty or
 16034  	// default values are omitted from API requests. See
 16035  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16036  	// details.
 16037  	ForceSendFields []string `json:"-"`
 16038  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 16039  	// requests with the JSON null value. By default, fields with empty values are
 16040  	// omitted from API requests. See
 16041  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16042  	NullFields []string `json:"-"`
 16043  }
 16044  
 16045  func (s *GoogleCloudDialogflowV2beta1ListParticipantsResponse) MarshalJSON() ([]byte, error) {
 16046  	type NoMethod GoogleCloudDialogflowV2beta1ListParticipantsResponse
 16047  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16048  }
 16049  
 16050  // GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse: The response
 16051  // message for SessionEntityTypes.ListSessionEntityTypes.
 16052  type GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse struct {
 16053  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 16054  	// are no more results in the list.
 16055  	NextPageToken string `json:"nextPageToken,omitempty"`
 16056  	// SessionEntityTypes: The list of session entity types. There will be a
 16057  	// maximum number of items returned based on the page_size field in the
 16058  	// request.
 16059  	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
 16060  
 16061  	// ServerResponse contains the HTTP response code and headers from the server.
 16062  	googleapi.ServerResponse `json:"-"`
 16063  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 16064  	// unconditionally include in API requests. By default, fields with empty or
 16065  	// default values are omitted from API requests. See
 16066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16067  	// details.
 16068  	ForceSendFields []string `json:"-"`
 16069  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 16070  	// requests with the JSON null value. By default, fields with empty values are
 16071  	// omitted from API requests. See
 16072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16073  	NullFields []string `json:"-"`
 16074  }
 16075  
 16076  func (s *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
 16077  	type NoMethod GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
 16078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16079  }
 16080  
 16081  // GoogleCloudDialogflowV2beta1ListSuggestionsResponse: The response message
 16082  // for Participants.ListSuggestions.
 16083  type GoogleCloudDialogflowV2beta1ListSuggestionsResponse struct {
 16084  	// NextPageToken: Optional. Token to retrieve the next page of results or empty
 16085  	// if there are no more results in the list.
 16086  	NextPageToken string `json:"nextPageToken,omitempty"`
 16087  	// Suggestions: Required. The list of suggestions. There will be a maximum
 16088  	// number of items returned based on the page_size field in the request.
 16089  	// `suggestions` is sorted by `create_time` in descending order.
 16090  	Suggestions []*GoogleCloudDialogflowV2beta1Suggestion `json:"suggestions,omitempty"`
 16091  
 16092  	// ServerResponse contains the HTTP response code and headers from the server.
 16093  	googleapi.ServerResponse `json:"-"`
 16094  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 16095  	// unconditionally include in API requests. By default, fields with empty or
 16096  	// default values are omitted from API requests. See
 16097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16098  	// details.
 16099  	ForceSendFields []string `json:"-"`
 16100  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 16101  	// requests with the JSON null value. By default, fields with empty values are
 16102  	// omitted from API requests. See
 16103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16104  	NullFields []string `json:"-"`
 16105  }
 16106  
 16107  func (s *GoogleCloudDialogflowV2beta1ListSuggestionsResponse) MarshalJSON() ([]byte, error) {
 16108  	type NoMethod GoogleCloudDialogflowV2beta1ListSuggestionsResponse
 16109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16110  }
 16111  
 16112  // GoogleCloudDialogflowV2beta1ListVersionsResponse: The response message for
 16113  // Versions.ListVersions.
 16114  type GoogleCloudDialogflowV2beta1ListVersionsResponse struct {
 16115  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 16116  	// are no more results in the list.
 16117  	NextPageToken string `json:"nextPageToken,omitempty"`
 16118  	// Versions: The list of agent versions. There will be a maximum number of
 16119  	// items returned based on the page_size field in the request.
 16120  	Versions []*GoogleCloudDialogflowV2beta1Version `json:"versions,omitempty"`
 16121  
 16122  	// ServerResponse contains the HTTP response code and headers from the server.
 16123  	googleapi.ServerResponse `json:"-"`
 16124  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 16125  	// unconditionally include in API requests. By default, fields with empty or
 16126  	// default values are omitted from API requests. See
 16127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16128  	// details.
 16129  	ForceSendFields []string `json:"-"`
 16130  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 16131  	// requests with the JSON null value. By default, fields with empty values are
 16132  	// omitted from API requests. See
 16133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16134  	NullFields []string `json:"-"`
 16135  }
 16136  
 16137  func (s *GoogleCloudDialogflowV2beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
 16138  	type NoMethod GoogleCloudDialogflowV2beta1ListVersionsResponse
 16139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16140  }
 16141  
 16142  // GoogleCloudDialogflowV2beta1LoggingConfig: Defines logging behavior for
 16143  // conversation lifecycle events.
 16144  type GoogleCloudDialogflowV2beta1LoggingConfig struct {
 16145  	// EnableStackdriverLogging: Whether to log conversation events like
 16146  	// CONVERSATION_STARTED to Stackdriver in the conversation project as JSON
 16147  	// format ConversationEvent protos.
 16148  	EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
 16149  	// ForceSendFields is a list of field names (e.g. "EnableStackdriverLogging")
 16150  	// to unconditionally include in API requests. By default, fields with empty or
 16151  	// default values are omitted from API requests. See
 16152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16153  	// details.
 16154  	ForceSendFields []string `json:"-"`
 16155  	// NullFields is a list of field names (e.g. "EnableStackdriverLogging") to
 16156  	// include in API requests with the JSON null value. By default, fields with
 16157  	// empty values are omitted from API requests. See
 16158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16159  	NullFields []string `json:"-"`
 16160  }
 16161  
 16162  func (s *GoogleCloudDialogflowV2beta1LoggingConfig) MarshalJSON() ([]byte, error) {
 16163  	type NoMethod GoogleCloudDialogflowV2beta1LoggingConfig
 16164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16165  }
 16166  
 16167  // GoogleCloudDialogflowV2beta1Message: Represents a message posted into a
 16168  // conversation.
 16169  type GoogleCloudDialogflowV2beta1Message struct {
 16170  	// Content: Required. The message content.
 16171  	Content string `json:"content,omitempty"`
 16172  	// CreateTime: Output only. The time when the message was created in Contact
 16173  	// Center AI.
 16174  	CreateTime string `json:"createTime,omitempty"`
 16175  	// LanguageCode: Optional. The message language. This should be a BCP-47
 16176  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:
 16177  	// "en-US".
 16178  	LanguageCode string `json:"languageCode,omitempty"`
 16179  	// MessageAnnotation: Output only. The annotation for the message.
 16180  	MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
 16181  	// Name: Optional. The unique identifier of the message. Format:
 16182  	// `projects//locations//conversations//messages/`.
 16183  	Name string `json:"name,omitempty"`
 16184  	// Participant: Output only. The participant that sends this message.
 16185  	Participant string `json:"participant,omitempty"`
 16186  	// ParticipantRole: Output only. The role of the participant.
 16187  	//
 16188  	// Possible values:
 16189  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 16190  	//   "HUMAN_AGENT" - Participant is a human agent.
 16191  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 16192  	// Dialogflow agent.
 16193  	//   "END_USER" - Participant is an end user that has called or chatted with
 16194  	// Dialogflow services.
 16195  	ParticipantRole string `json:"participantRole,omitempty"`
 16196  	// SendTime: Optional. The time when the message was sent.
 16197  	SendTime string `json:"sendTime,omitempty"`
 16198  	// SentimentAnalysis: Output only. The sentiment analysis result for the
 16199  	// message.
 16200  	SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
 16201  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 16202  	// include in API requests. By default, fields with empty or default values are
 16203  	// omitted from API requests. See
 16204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16205  	// details.
 16206  	ForceSendFields []string `json:"-"`
 16207  	// NullFields is a list of field names (e.g. "Content") to include in API
 16208  	// requests with the JSON null value. By default, fields with empty values are
 16209  	// omitted from API requests. See
 16210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16211  	NullFields []string `json:"-"`
 16212  }
 16213  
 16214  func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
 16215  	type NoMethod GoogleCloudDialogflowV2beta1Message
 16216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16217  }
 16218  
 16219  // GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result of
 16220  // annotation for the message.
 16221  type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
 16222  	// ContainEntities: Required. Indicates whether the text message contains
 16223  	// entities.
 16224  	ContainEntities bool `json:"containEntities,omitempty"`
 16225  	// Parts: Optional. The collection of annotated message parts ordered by their
 16226  	// position in the message. You can recover the annotated message by
 16227  	// concatenating [AnnotatedMessagePart.text].
 16228  	Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
 16229  	// ForceSendFields is a list of field names (e.g. "ContainEntities") to
 16230  	// unconditionally include in API requests. By default, fields with empty or
 16231  	// default values are omitted from API requests. See
 16232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16233  	// details.
 16234  	ForceSendFields []string `json:"-"`
 16235  	// NullFields is a list of field names (e.g. "ContainEntities") to include in
 16236  	// API requests with the JSON null value. By default, fields with empty values
 16237  	// are omitted from API requests. See
 16238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16239  	NullFields []string `json:"-"`
 16240  }
 16241  
 16242  func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
 16243  	type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
 16244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16245  }
 16246  
 16247  // GoogleCloudDialogflowV2beta1NotificationConfig: Defines notification
 16248  // behavior.
 16249  type GoogleCloudDialogflowV2beta1NotificationConfig struct {
 16250  	// MessageFormat: Format of message.
 16251  	//
 16252  	// Possible values:
 16253  	//   "MESSAGE_FORMAT_UNSPECIFIED" - If it is unspecified, PROTO will be used.
 16254  	//   "PROTO" - Pub/Sub message will be serialized proto.
 16255  	//   "JSON" - Pub/Sub message will be json.
 16256  	MessageFormat string `json:"messageFormat,omitempty"`
 16257  	// Topic: Name of the Pub/Sub topic to publish conversation events like
 16258  	// CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony
 16259  	// integration to receive notification, make sure either this topic is in the
 16260  	// same project as the conversation or you grant
 16261  	// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
 16262  	// Agent` role in the topic project. For chat integration to receive
 16263  	// notification, make sure API caller has been granted the `Dialogflow Service
 16264  	// Agent` role for the topic. Format: `projects//locations//topics/`.
 16265  	Topic string `json:"topic,omitempty"`
 16266  	// ForceSendFields is a list of field names (e.g. "MessageFormat") to
 16267  	// unconditionally include in API requests. By default, fields with empty or
 16268  	// default values are omitted from API requests. See
 16269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16270  	// details.
 16271  	ForceSendFields []string `json:"-"`
 16272  	// NullFields is a list of field names (e.g. "MessageFormat") to include in API
 16273  	// requests with the JSON null value. By default, fields with empty values are
 16274  	// omitted from API requests. See
 16275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16276  	NullFields []string `json:"-"`
 16277  }
 16278  
 16279  func (s *GoogleCloudDialogflowV2beta1NotificationConfig) MarshalJSON() ([]byte, error) {
 16280  	type NoMethod GoogleCloudDialogflowV2beta1NotificationConfig
 16281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16282  }
 16283  
 16284  // GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents the
 16285  // contents of the original request that was passed to the
 16286  // `[Streaming]DetectIntent` call.
 16287  type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
 16288  	// Payload: Optional. This field is set to the value of the
 16289  	// `QueryParameters.payload` field passed in the request. Some integrations
 16290  	// that query a Dialogflow agent may provide additional information in the
 16291  	// payload. In particular, for the Dialogflow Phone Gateway integration, this
 16292  	// field has the form: { "telephony": { "caller_id": "+18558363987" } } Note:
 16293  	// The caller ID field (`caller_id`) will be redacted for Trial Edition agents
 16294  	// and populated with the caller ID in E.164 format
 16295  	// (https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents.
 16296  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 16297  	// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It
 16298  	// is set by Dialogflow-owned servers.
 16299  	Source string `json:"source,omitempty"`
 16300  	// Version: Optional. The version of the protocol used for this request. This
 16301  	// field is AoG-specific.
 16302  	Version string `json:"version,omitempty"`
 16303  	// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally
 16304  	// include in API requests. By default, fields with empty or default values are
 16305  	// omitted from API requests. See
 16306  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16307  	// details.
 16308  	ForceSendFields []string `json:"-"`
 16309  	// NullFields is a list of field names (e.g. "Payload") to include in API
 16310  	// requests with the JSON null value. By default, fields with empty values are
 16311  	// omitted from API requests. See
 16312  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16313  	NullFields []string `json:"-"`
 16314  }
 16315  
 16316  func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
 16317  	type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
 16318  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16319  }
 16320  
 16321  // GoogleCloudDialogflowV2beta1OutputAudio: Represents the natural language
 16322  // speech audio to be played to the end user.
 16323  type GoogleCloudDialogflowV2beta1OutputAudio struct {
 16324  	// Audio: Required. The natural language speech audio.
 16325  	Audio string `json:"audio,omitempty"`
 16326  	// Config: Required. Instructs the speech synthesizer how to generate the
 16327  	// speech audio.
 16328  	Config *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"config,omitempty"`
 16329  	// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally
 16330  	// include in API requests. By default, fields with empty or default values are
 16331  	// omitted from API requests. See
 16332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16333  	// details.
 16334  	ForceSendFields []string `json:"-"`
 16335  	// NullFields is a list of field names (e.g. "Audio") to include in API
 16336  	// requests with the JSON null value. By default, fields with empty values are
 16337  	// omitted from API requests. See
 16338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16339  	NullFields []string `json:"-"`
 16340  }
 16341  
 16342  func (s *GoogleCloudDialogflowV2beta1OutputAudio) MarshalJSON() ([]byte, error) {
 16343  	type NoMethod GoogleCloudDialogflowV2beta1OutputAudio
 16344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16345  }
 16346  
 16347  // GoogleCloudDialogflowV2beta1OutputAudioConfig: Instructs the speech
 16348  // synthesizer how to generate the output audio content. If this audio config
 16349  // is supplied in a request, it overrides all existing text-to-speech settings
 16350  // applied to the agent.
 16351  type GoogleCloudDialogflowV2beta1OutputAudioConfig struct {
 16352  	// AudioEncoding: Required. Audio encoding of the synthesized audio content.
 16353  	//
 16354  	// Possible values:
 16355  	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
 16356  	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
 16357  	// little-endian samples (Linear PCM). Audio content returned as LINEAR16 also
 16358  	// contains a WAV header.
 16359  	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
 16360  	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
 16361  	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an ogg
 16362  	// container. The result will be a file which can be played natively on
 16363  	// Android, and in browsers (at least Chrome and Firefox). The quality of the
 16364  	// encoding is considerably higher than MP3 while using approximately the same
 16365  	// bitrate.
 16366  	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
 16367  	// samples using G.711 PCMU/mu-law.
 16368  	AudioEncoding string `json:"audioEncoding,omitempty"`
 16369  	// SampleRateHertz: The synthesis sample rate (in hertz) for this audio. If not
 16370  	// provided, then the synthesizer will use the default sample rate based on the
 16371  	// audio encoding. If this is different from the voice's natural sample rate,
 16372  	// then the synthesizer will honor this request by converting to the desired
 16373  	// sample rate (which might result in worse audio quality).
 16374  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
 16375  	// SynthesizeSpeechConfig: Configuration of how speech should be synthesized.
 16376  	SynthesizeSpeechConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
 16377  	// ForceSendFields is a list of field names (e.g. "AudioEncoding") to
 16378  	// unconditionally include in API requests. By default, fields with empty or
 16379  	// default values are omitted from API requests. See
 16380  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16381  	// details.
 16382  	ForceSendFields []string `json:"-"`
 16383  	// NullFields is a list of field names (e.g. "AudioEncoding") to include in API
 16384  	// requests with the JSON null value. By default, fields with empty values are
 16385  	// omitted from API requests. See
 16386  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16387  	NullFields []string `json:"-"`
 16388  }
 16389  
 16390  func (s *GoogleCloudDialogflowV2beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
 16391  	type NoMethod GoogleCloudDialogflowV2beta1OutputAudioConfig
 16392  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16393  }
 16394  
 16395  // GoogleCloudDialogflowV2beta1Participant: Represents a conversation
 16396  // participant (human agent, virtual agent, end-user).
 16397  type GoogleCloudDialogflowV2beta1Participant struct {
 16398  	// DocumentsMetadataFilters: Optional. Key-value filters on the metadata of
 16399  	// documents returned by article suggestion. If specified, article suggestion
 16400  	// only returns suggested documents that match all filters in their
 16401  	// Document.metadata. Multiple values for a metadata key should be concatenated
 16402  	// by comma. For example, filters to match all documents that have 'US' or 'CA'
 16403  	// in their market metadata values and 'agent' in their user metadata values
 16404  	// will be ``` documents_metadata_filters { key: "market" value: "US,CA" }
 16405  	// documents_metadata_filters { key: "user" value: "agent" } ```
 16406  	DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
 16407  	// Name: Optional. The unique identifier of this participant. Format:
 16408  	// `projects//locations//conversations//participants/`.
 16409  	Name string `json:"name,omitempty"`
 16410  	// ObfuscatedExternalUserId: Optional. Obfuscated user id that should be
 16411  	// associated with the created participant. You can specify a user id as
 16412  	// follows: 1. If you set this field in CreateParticipantRequest or
 16413  	// UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the
 16414  	// participant. 2. If you set this field in AnalyzeContent or
 16415  	// StreamingAnalyzeContent, Dialogflow will update
 16416  	// Participant.obfuscated_external_user_id. Dialogflow uses this user id for
 16417  	// billing and measurement. If a user with the same obfuscated_external_user_id
 16418  	// is created in a later conversation, Dialogflow will know it's the same user.
 16419  	// Dialogflow also uses this user id for Agent Assist suggestion
 16420  	// personalization. For example, Dialogflow can use it to provide personalized
 16421  	// smart reply suggestions for this user. Note: * Please never pass raw user
 16422  	// ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only
 16423  	// accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like
 16424  	// SHA-512. * The length of the user id must be <= 256 characters.
 16425  	ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
 16426  	// Role: Immutable. The role this participant plays in the conversation. This
 16427  	// field must be set during participant creation and is then immutable.
 16428  	//
 16429  	// Possible values:
 16430  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 16431  	//   "HUMAN_AGENT" - Participant is a human agent.
 16432  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 16433  	// Dialogflow agent.
 16434  	//   "END_USER" - Participant is an end user that has called or chatted with
 16435  	// Dialogflow services.
 16436  	Role string `json:"role,omitempty"`
 16437  
 16438  	// ServerResponse contains the HTTP response code and headers from the server.
 16439  	googleapi.ServerResponse `json:"-"`
 16440  	// ForceSendFields is a list of field names (e.g. "DocumentsMetadataFilters")
 16441  	// to unconditionally include in API requests. By default, fields with empty or
 16442  	// default values are omitted from API requests. See
 16443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16444  	// details.
 16445  	ForceSendFields []string `json:"-"`
 16446  	// NullFields is a list of field names (e.g. "DocumentsMetadataFilters") to
 16447  	// include in API requests with the JSON null value. By default, fields with
 16448  	// empty values are omitted from API requests. See
 16449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16450  	NullFields []string `json:"-"`
 16451  }
 16452  
 16453  func (s *GoogleCloudDialogflowV2beta1Participant) MarshalJSON() ([]byte, error) {
 16454  	type NoMethod GoogleCloudDialogflowV2beta1Participant
 16455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16456  }
 16457  
 16458  // GoogleCloudDialogflowV2beta1QueryInput: Represents the query input. It can
 16459  // contain either: 1. An audio config which instructs the speech recognizer how
 16460  // to process the speech audio. 2. A conversational query in the form of text.
 16461  // 3. An event that specifies which intent to trigger.
 16462  type GoogleCloudDialogflowV2beta1QueryInput struct {
 16463  	// AudioConfig: Instructs the speech recognizer how to process the speech
 16464  	// audio.
 16465  	AudioConfig *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"audioConfig,omitempty"`
 16466  	// Dtmf: The DTMF digits used to invoke intent and fill in parameter value.
 16467  	Dtmf *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents `json:"dtmf,omitempty"`
 16468  	// Event: The event to be processed.
 16469  	Event *GoogleCloudDialogflowV2beta1EventInput `json:"event,omitempty"`
 16470  	// Text: The natural language text to be processed.
 16471  	Text *GoogleCloudDialogflowV2beta1TextInput `json:"text,omitempty"`
 16472  	// ForceSendFields is a list of field names (e.g. "AudioConfig") to
 16473  	// unconditionally include in API requests. By default, fields with empty or
 16474  	// default values are omitted from API requests. See
 16475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16476  	// details.
 16477  	ForceSendFields []string `json:"-"`
 16478  	// NullFields is a list of field names (e.g. "AudioConfig") to include in API
 16479  	// requests with the JSON null value. By default, fields with empty values are
 16480  	// omitted from API requests. See
 16481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16482  	NullFields []string `json:"-"`
 16483  }
 16484  
 16485  func (s *GoogleCloudDialogflowV2beta1QueryInput) MarshalJSON() ([]byte, error) {
 16486  	type NoMethod GoogleCloudDialogflowV2beta1QueryInput
 16487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16488  }
 16489  
 16490  // GoogleCloudDialogflowV2beta1QueryParameters: Represents the parameters of
 16491  // the conversational query.
 16492  type GoogleCloudDialogflowV2beta1QueryParameters struct {
 16493  	// Contexts: The collection of contexts to be activated before this query is
 16494  	// executed.
 16495  	Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
 16496  	// GeoLocation: The geo location of this conversational query.
 16497  	GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
 16498  	// KnowledgeBaseNames: KnowledgeBases to get alternative results from. If not
 16499  	// set, the KnowledgeBases enabled in the agent (through UI) will be used.
 16500  	// Format: `projects//knowledgeBases/`.
 16501  	KnowledgeBaseNames []string `json:"knowledgeBaseNames,omitempty"`
 16502  	// Payload: This field can be used to pass custom data to your webhook.
 16503  	// Arbitrary JSON objects are supported. If supplied, the value is used to
 16504  	// populate the `WebhookRequest.original_detect_intent_request.payload` field
 16505  	// sent to your webhook.
 16506  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 16507  	// Platform: The platform of the virtual agent response messages. If not empty,
 16508  	// only emits messages from this platform in the response. Valid values are the
 16509  	// enum names of platform.
 16510  	Platform string `json:"platform,omitempty"`
 16511  	// ResetContexts: Specifies whether to delete all contexts in the current
 16512  	// session before the new ones are activated.
 16513  	ResetContexts bool `json:"resetContexts,omitempty"`
 16514  	// SentimentAnalysisRequestConfig: Configures the type of sentiment analysis to
 16515  	// perform. If not provided, sentiment analysis is not performed. Note:
 16516  	// Sentiment Analysis is only currently available for Essentials Edition
 16517  	// agents.
 16518  	SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"`
 16519  	// SessionEntityTypes: Additional session entity types to replace or extend
 16520  	// developer entity types with. The entity synonyms apply to all languages and
 16521  	// persist for the session of this query.
 16522  	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
 16523  	// SubAgents: For mega agent query, directly specify which sub agents to query.
 16524  	// If any specified sub agent is not linked to the mega agent, an error will be
 16525  	// returned. If empty, Dialogflow will decide which sub agents to query. If
 16526  	// specified for a non-mega-agent query, will be silently ignored.
 16527  	SubAgents []*GoogleCloudDialogflowV2beta1SubAgent `json:"subAgents,omitempty"`
 16528  	// TimeZone: The time zone of this conversational query from the time zone
 16529  	// database (https://www.iana.org/time-zones), e.g., America/New_York,
 16530  	// Europe/Paris. If not provided, the time zone specified in agent settings is
 16531  	// used.
 16532  	TimeZone string `json:"timeZone,omitempty"`
 16533  	// WebhookHeaders: This field can be used to pass HTTP headers for a webhook
 16534  	// call. These headers will be sent to webhook along with the headers that have
 16535  	// been configured through Dialogflow web console. The headers defined within
 16536  	// this field will overwrite the headers configured through Dialogflow console
 16537  	// if there is a conflict. Header names are case-insensitive. Google's
 16538  	// specified headers are not allowed. Including: "Host", "Content-Length",
 16539  	// "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since",
 16540  	// "If-None-Match", "X-Forwarded-For", etc.
 16541  	WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
 16542  	// ForceSendFields is a list of field names (e.g. "Contexts") to
 16543  	// unconditionally include in API requests. By default, fields with empty or
 16544  	// default values are omitted from API requests. See
 16545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16546  	// details.
 16547  	ForceSendFields []string `json:"-"`
 16548  	// NullFields is a list of field names (e.g. "Contexts") to include in API
 16549  	// requests with the JSON null value. By default, fields with empty values are
 16550  	// omitted from API requests. See
 16551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16552  	NullFields []string `json:"-"`
 16553  }
 16554  
 16555  func (s *GoogleCloudDialogflowV2beta1QueryParameters) MarshalJSON() ([]byte, error) {
 16556  	type NoMethod GoogleCloudDialogflowV2beta1QueryParameters
 16557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16558  }
 16559  
 16560  // GoogleCloudDialogflowV2beta1QueryResult: Represents the result of
 16561  // conversational query or event processing.
 16562  type GoogleCloudDialogflowV2beta1QueryResult struct {
 16563  	// Action: The action name from the matched intent.
 16564  	Action string `json:"action,omitempty"`
 16565  	// AllRequiredParamsPresent: This field is set to: - `false` if the matched
 16566  	// intent has required parameters and not all of the required parameter values
 16567  	// have been collected. - `true` if all required parameter values have been
 16568  	// collected, or if the matched intent doesn't contain any required parameters.
 16569  	AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
 16570  	// CancelsSlotFilling: Indicates whether the conversational query triggers a
 16571  	// cancellation for slot filling. For more information, see the cancel slot
 16572  	// filling documentation
 16573  	// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
 16574  	CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
 16575  	// DiagnosticInfo: Free-form diagnostic information for the associated detect
 16576  	// intent request. The fields of this data can change without notice, so you
 16577  	// should not write code that depends on its structure. The data may contain: -
 16578  	// webhook call latency - webhook errors
 16579  	DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
 16580  	// FulfillmentMessages: The collection of rich messages to present to the user.
 16581  	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
 16582  	// FulfillmentText: The text to be pronounced to the user or shown on the
 16583  	// screen. Note: This is a legacy field, `fulfillment_messages` should be
 16584  	// preferred.
 16585  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 16586  	// Intent: The intent that matched the conversational query. Some, not all
 16587  	// fields are filled in this message, including but not limited to: `name`,
 16588  	// `display_name`, `end_interaction` and `is_fallback`.
 16589  	Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
 16590  	// IntentDetectionConfidence: The intent detection confidence. Values range
 16591  	// from 0.0 (completely uncertain) to 1.0 (completely certain). This value is
 16592  	// for informational purpose only and is only used to help match the best
 16593  	// intent within the classification threshold. This value may change for the
 16594  	// same end-user expression at any time due to a model retraining or change in
 16595  	// implementation. If there are `multiple knowledge_answers` messages, this
 16596  	// value is set to the greatest `knowledgeAnswers.match_confidence` value in
 16597  	// the list.
 16598  	IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
 16599  	// KnowledgeAnswers: The result from Knowledge Connector (if any), ordered by
 16600  	// decreasing `KnowledgeAnswers.match_confidence`.
 16601  	KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
 16602  	// LanguageCode: The language that was triggered during intent detection. See
 16603  	// Language Support
 16604  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 16605  	// the currently supported language codes.
 16606  	LanguageCode string `json:"languageCode,omitempty"`
 16607  	// OutputContexts: The collection of output contexts. If applicable,
 16608  	// `output_contexts.parameters` contains entries with name `.original`
 16609  	// containing the original parameter values before the query.
 16610  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 16611  	// Parameters: The collection of extracted parameters. Depending on your
 16612  	// protocol or client library language, this is a map, associative array,
 16613  	// symbol table, dictionary, or JSON object composed of a collection of
 16614  	// (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter
 16615  	// name * MapValue type: If parameter's entity type is a composite entity then
 16616  	// use map, otherwise, depending on the parameter value type, it could be one
 16617  	// of string, number, boolean, null, list or map. * MapValue value: If
 16618  	// parameter's entity type is a composite entity then use map from composite
 16619  	// entity property names to property values, otherwise, use parameter value.
 16620  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 16621  	// QueryText: The original conversational query text: - If natural language
 16622  	// text was provided as input, `query_text` contains a copy of the input. - If
 16623  	// natural language speech audio was provided as input, `query_text` contains
 16624  	// the speech recognition result. If speech recognizer produced multiple
 16625  	// alternatives, a particular one is picked. - If automatic spell correction is
 16626  	// enabled, `query_text` will contain the corrected user input.
 16627  	QueryText string `json:"queryText,omitempty"`
 16628  	// SentimentAnalysisResult: The sentiment analysis result, which depends on the
 16629  	// `sentiment_analysis_request_config` specified in the request.
 16630  	SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
 16631  	// SpeechRecognitionConfidence: The Speech recognition confidence between 0.0
 16632  	// and 1.0. A higher number indicates an estimated greater likelihood that the
 16633  	// recognized words are correct. The default of 0.0 is a sentinel value
 16634  	// indicating that confidence was not set. This field is not guaranteed to be
 16635  	// accurate or set. In particular this field isn't set for
 16636  	// StreamingDetectIntent since the streaming endpoint has separate confidence
 16637  	// estimates per portion of the audio in StreamingRecognitionResult.
 16638  	SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
 16639  	// WebhookPayload: If the query was fulfilled by a webhook call, this field is
 16640  	// set to the value of the `payload` field returned in the webhook response.
 16641  	WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
 16642  	// WebhookSource: If the query was fulfilled by a webhook call, this field is
 16643  	// set to the value of the `source` field returned in the webhook response.
 16644  	WebhookSource string `json:"webhookSource,omitempty"`
 16645  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
 16646  	// include in API requests. By default, fields with empty or default values are
 16647  	// 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. "Action") 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 *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
 16659  	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
 16660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16661  }
 16662  
 16663  func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
 16664  	type NoMethod GoogleCloudDialogflowV2beta1QueryResult
 16665  	var s1 struct {
 16666  		IntentDetectionConfidence   gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
 16667  		SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
 16668  		*NoMethod
 16669  	}
 16670  	s1.NoMethod = (*NoMethod)(s)
 16671  	if err := json.Unmarshal(data, &s1); err != nil {
 16672  		return err
 16673  	}
 16674  	s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
 16675  	s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
 16676  	return nil
 16677  }
 16678  
 16679  // GoogleCloudDialogflowV2beta1ReloadDocumentRequest: Request message for
 16680  // Documents.ReloadDocument.
 16681  type GoogleCloudDialogflowV2beta1ReloadDocumentRequest struct {
 16682  	// GcsSource: The path for a Cloud Storage source file for reloading document
 16683  	// content. If not provided, the Document's existing source will be reloaded.
 16684  	GcsSource *GoogleCloudDialogflowV2beta1GcsSource `json:"gcsSource,omitempty"`
 16685  	// ImportGcsCustomMetadata: Whether to import custom metadata from Google Cloud
 16686  	// Storage. Only valid when the document source is Google Cloud Storage URI.
 16687  	ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
 16688  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
 16689  	// unconditionally include in API requests. By default, fields with empty or
 16690  	// default values are omitted from API requests. See
 16691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16692  	// details.
 16693  	ForceSendFields []string `json:"-"`
 16694  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
 16695  	// requests with the JSON null value. By default, fields with empty values are
 16696  	// omitted from API requests. See
 16697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16698  	NullFields []string `json:"-"`
 16699  }
 16700  
 16701  func (s *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) MarshalJSON() ([]byte, error) {
 16702  	type NoMethod GoogleCloudDialogflowV2beta1ReloadDocumentRequest
 16703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16704  }
 16705  
 16706  // GoogleCloudDialogflowV2beta1ResponseMessage: Response messages from an
 16707  // automated agent.
 16708  type GoogleCloudDialogflowV2beta1ResponseMessage struct {
 16709  	// EndInteraction: A signal that indicates the interaction with the Dialogflow
 16710  	// agent has ended.
 16711  	EndInteraction *GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
 16712  	// LiveAgentHandoff: Hands off conversation to a live agent.
 16713  	LiveAgentHandoff *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
 16714  	// MixedAudio: An audio response message composed of both the synthesized
 16715  	// Dialogflow agent responses and the audios hosted in places known to the
 16716  	// client.
 16717  	MixedAudio *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
 16718  	// Payload: Returns a response containing a custom, platform-specific payload.
 16719  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 16720  	// TelephonyTransferCall: A signal that the client should transfer the phone
 16721  	// call connected to this agent to a third-party endpoint.
 16722  	TelephonyTransferCall *GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
 16723  	// Text: Returns a text response.
 16724  	Text *GoogleCloudDialogflowV2beta1ResponseMessageText `json:"text,omitempty"`
 16725  	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
 16726  	// unconditionally include in API requests. By default, fields with empty or
 16727  	// default values are omitted from API requests. See
 16728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16729  	// details.
 16730  	ForceSendFields []string `json:"-"`
 16731  	// NullFields is a list of field names (e.g. "EndInteraction") to include in
 16732  	// API requests with the JSON null value. By default, fields with empty values
 16733  	// are omitted from API requests. See
 16734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16735  	NullFields []string `json:"-"`
 16736  }
 16737  
 16738  func (s *GoogleCloudDialogflowV2beta1ResponseMessage) MarshalJSON() ([]byte, error) {
 16739  	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessage
 16740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16741  }
 16742  
 16743  // GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction: Indicates that
 16744  // interaction with the Dialogflow agent has ended.
 16745  type GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction struct {
 16746  }
 16747  
 16748  // GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff: Indicates that
 16749  // the conversation should be handed off to a human agent. Dialogflow only uses
 16750  // this to determine which conversations were handed off to a human agent for
 16751  // measurement purposes. What else to do with this signal is up to you and your
 16752  // handoff procedures. You may set this, for example: * In the entry
 16753  // fulfillment of a CX Page if entering the page indicates something went
 16754  // extremely wrong in the conversation. * In a webhook response when you
 16755  // determine that the customer issue can only be handled by a human.
 16756  type GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff struct {
 16757  	// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't
 16758  	// impose any structure on this.
 16759  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 16760  	// ForceSendFields is a list of field names (e.g. "Metadata") to
 16761  	// unconditionally include in API requests. By default, fields with empty or
 16762  	// default values are omitted from API requests. See
 16763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16764  	// details.
 16765  	ForceSendFields []string `json:"-"`
 16766  	// NullFields is a list of field names (e.g. "Metadata") to include in API
 16767  	// requests with the JSON null value. By default, fields with empty values are
 16768  	// omitted from API requests. See
 16769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16770  	NullFields []string `json:"-"`
 16771  }
 16772  
 16773  func (s *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
 16774  	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff
 16775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16776  }
 16777  
 16778  // GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio: Represents an audio
 16779  // message that is composed of both segments synthesized from the Dialogflow
 16780  // agent prompts and ones hosted externally at the specified URIs.
 16781  type GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio struct {
 16782  	// Segments: Segments this audio response is composed of.
 16783  	Segments []*GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
 16784  	// ForceSendFields is a list of field names (e.g. "Segments") to
 16785  	// unconditionally include in API requests. By default, fields with empty or
 16786  	// default values are omitted from API requests. See
 16787  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16788  	// details.
 16789  	ForceSendFields []string `json:"-"`
 16790  	// NullFields is a list of field names (e.g. "Segments") to include in API
 16791  	// requests with the JSON null value. By default, fields with empty values are
 16792  	// omitted from API requests. See
 16793  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16794  	NullFields []string `json:"-"`
 16795  }
 16796  
 16797  func (s *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
 16798  	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio
 16799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16800  }
 16801  
 16802  // GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment: Represents one
 16803  // segment of audio.
 16804  type GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment struct {
 16805  	// AllowPlaybackInterruption: Whether the playback of this segment can be
 16806  	// interrupted by the end user's speech and the client should then start the
 16807  	// next Dialogflow request.
 16808  	AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
 16809  	// Audio: Raw audio synthesized from the Dialogflow agent's response using the
 16810  	// output config specified in the request.
 16811  	Audio string `json:"audio,omitempty"`
 16812  	// Uri: Client-specific URI that points to an audio clip accessible to the
 16813  	// client.
 16814  	Uri string `json:"uri,omitempty"`
 16815  	// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")
 16816  	// to unconditionally include in API requests. By default, fields with empty or
 16817  	// default values are omitted from API requests. See
 16818  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16819  	// details.
 16820  	ForceSendFields []string `json:"-"`
 16821  	// NullFields is a list of field names (e.g. "AllowPlaybackInterruption") to
 16822  	// include in API requests with the JSON null value. By default, fields with
 16823  	// empty values are omitted from API requests. See
 16824  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16825  	NullFields []string `json:"-"`
 16826  }
 16827  
 16828  func (s *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
 16829  	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment
 16830  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16831  }
 16832  
 16833  // GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall: Represents
 16834  // the signal that telles the client to transfer the phone call connected to
 16835  // the agent to a third-party endpoint.
 16836  type GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall struct {
 16837  	// PhoneNumber: Transfer the call to a phone number in E.164 format
 16838  	// (https://en.wikipedia.org/wiki/E.164).
 16839  	PhoneNumber string `json:"phoneNumber,omitempty"`
 16840  	// SipUri: Transfer the call to a SIP endpoint.
 16841  	SipUri string `json:"sipUri,omitempty"`
 16842  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
 16843  	// unconditionally include in API requests. By default, fields with empty or
 16844  	// default values are omitted from API requests. See
 16845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16846  	// details.
 16847  	ForceSendFields []string `json:"-"`
 16848  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
 16849  	// requests with the JSON null value. By default, fields with empty values are
 16850  	// omitted from API requests. See
 16851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16852  	NullFields []string `json:"-"`
 16853  }
 16854  
 16855  func (s *GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
 16856  	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall
 16857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16858  }
 16859  
 16860  // GoogleCloudDialogflowV2beta1ResponseMessageText: The text response message.
 16861  type GoogleCloudDialogflowV2beta1ResponseMessageText struct {
 16862  	// Text: A collection of text responses.
 16863  	Text []string `json:"text,omitempty"`
 16864  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 16865  	// include in API requests. By default, fields with empty or default values are
 16866  	// omitted from API requests. See
 16867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16868  	// details.
 16869  	ForceSendFields []string `json:"-"`
 16870  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 16871  	// with the JSON null value. By default, fields with empty values are omitted
 16872  	// from API requests. See
 16873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16874  	NullFields []string `json:"-"`
 16875  }
 16876  
 16877  func (s *GoogleCloudDialogflowV2beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
 16878  	type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageText
 16879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16880  }
 16881  
 16882  // GoogleCloudDialogflowV2beta1RestoreAgentRequest: The request message for
 16883  // Agents.RestoreAgent.
 16884  type GoogleCloudDialogflowV2beta1RestoreAgentRequest struct {
 16885  	// AgentContent: Zip compressed raw byte content for agent.
 16886  	AgentContent string `json:"agentContent,omitempty"`
 16887  	// AgentUri: The URI to a Google Cloud Storage file containing the agent to
 16888  	// restore. Note: The URI must start with "gs://". Dialogflow performs a read
 16889  	// operation for the Cloud Storage object on the caller's behalf, so your
 16890  	// request authentication must have read permissions for the object. For more
 16891  	// information, see Dialogflow access control
 16892  	// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
 16893  	AgentUri string `json:"agentUri,omitempty"`
 16894  	// ForceSendFields is a list of field names (e.g. "AgentContent") to
 16895  	// unconditionally include in API requests. By default, fields with empty or
 16896  	// default values are omitted from API requests. See
 16897  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16898  	// details.
 16899  	ForceSendFields []string `json:"-"`
 16900  	// NullFields is a list of field names (e.g. "AgentContent") to include in API
 16901  	// requests with the JSON null value. By default, fields with empty values are
 16902  	// omitted from API requests. See
 16903  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16904  	NullFields []string `json:"-"`
 16905  }
 16906  
 16907  func (s *GoogleCloudDialogflowV2beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
 16908  	type NoMethod GoogleCloudDialogflowV2beta1RestoreAgentRequest
 16909  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16910  }
 16911  
 16912  // GoogleCloudDialogflowV2beta1SearchAgentsResponse: The response message for
 16913  // Agents.SearchAgents.
 16914  type GoogleCloudDialogflowV2beta1SearchAgentsResponse struct {
 16915  	// Agents: The list of agents. There will be a maximum number of items returned
 16916  	// based on the page_size field in the request.
 16917  	Agents []*GoogleCloudDialogflowV2beta1Agent `json:"agents,omitempty"`
 16918  	// NextPageToken: Token to retrieve the next page of results, or empty if there
 16919  	// are no more results in the list.
 16920  	NextPageToken string `json:"nextPageToken,omitempty"`
 16921  
 16922  	// ServerResponse contains the HTTP response code and headers from the server.
 16923  	googleapi.ServerResponse `json:"-"`
 16924  	// ForceSendFields is a list of field names (e.g. "Agents") to unconditionally
 16925  	// include in API requests. By default, fields with empty or default values are
 16926  	// omitted from API requests. See
 16927  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16928  	// details.
 16929  	ForceSendFields []string `json:"-"`
 16930  	// NullFields is a list of field names (e.g. "Agents") to include in API
 16931  	// requests with the JSON null value. By default, fields with empty values are
 16932  	// omitted from API requests. See
 16933  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16934  	NullFields []string `json:"-"`
 16935  }
 16936  
 16937  func (s *GoogleCloudDialogflowV2beta1SearchAgentsResponse) MarshalJSON() ([]byte, error) {
 16938  	type NoMethod GoogleCloudDialogflowV2beta1SearchAgentsResponse
 16939  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16940  }
 16941  
 16942  // GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer: Represents a
 16943  // SearchKnowledge answer.
 16944  type GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer struct {
 16945  	// Answer: The piece of text from the knowledge base documents that answers the
 16946  	// search query
 16947  	Answer string `json:"answer,omitempty"`
 16948  	// AnswerRecord: The name of the answer record. Format:
 16949  	// `projects//locations//answer Records/`
 16950  	AnswerRecord string `json:"answerRecord,omitempty"`
 16951  	// AnswerSources: All sources used to generate the answer.
 16952  	AnswerSources []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`
 16953  	// AnswerType: The type of the answer.
 16954  	//
 16955  	// Possible values:
 16956  	//   "ANSWER_TYPE_UNSPECIFIED" - The answer has a unspecified type.
 16957  	//   "FAQ" - The answer is from FAQ documents.
 16958  	//   "GENERATIVE" - The answer is from generative model.
 16959  	//   "INTENT" - The answer is from intent matching.
 16960  	AnswerType string `json:"answerType,omitempty"`
 16961  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 16962  	// include in API requests. By default, fields with empty or default values are
 16963  	// omitted from API requests. See
 16964  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16965  	// details.
 16966  	ForceSendFields []string `json:"-"`
 16967  	// NullFields is a list of field names (e.g. "Answer") to include in API
 16968  	// requests with the JSON null value. By default, fields with empty values are
 16969  	// omitted from API requests. See
 16970  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16971  	NullFields []string `json:"-"`
 16972  }
 16973  
 16974  func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) {
 16975  	type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
 16976  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16977  }
 16978  
 16979  // GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource: The sources
 16980  // of the answers.
 16981  type GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource struct {
 16982  	// Snippet: The relevant snippet of the article.
 16983  	Snippet string `json:"snippet,omitempty"`
 16984  	// Title: The title of the article.
 16985  	Title string `json:"title,omitempty"`
 16986  	// Uri: The URI of the article.
 16987  	Uri string `json:"uri,omitempty"`
 16988  	// ForceSendFields is a list of field names (e.g. "Snippet") to unconditionally
 16989  	// include in API requests. By default, fields with empty or default values are
 16990  	// omitted from API requests. See
 16991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16992  	// details.
 16993  	ForceSendFields []string `json:"-"`
 16994  	// NullFields is a list of field names (e.g. "Snippet") to include in API
 16995  	// requests with the JSON null value. By default, fields with empty values are
 16996  	// omitted from API requests. See
 16997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16998  	NullFields []string `json:"-"`
 16999  }
 17000  
 17001  func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) {
 17002  	type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource
 17003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17004  }
 17005  
 17006  // GoogleCloudDialogflowV2beta1SearchKnowledgeRequest: The request message for
 17007  // Conversations.SearchKnowledge.
 17008  type GoogleCloudDialogflowV2beta1SearchKnowledgeRequest struct {
 17009  	// Conversation: The conversation (between human agent and end user) where the
 17010  	// search request is triggered. Format: `projects//locations//conversations/`.
 17011  	Conversation string `json:"conversation,omitempty"`
 17012  	// ConversationProfile: Required. The conversation profile used to configure
 17013  	// the search. Format: `projects//locations//conversationProfiles/`.
 17014  	ConversationProfile string `json:"conversationProfile,omitempty"`
 17015  	// LatestMessage: The name of the latest conversation message when the request
 17016  	// is triggered. Format: `projects//locations//conversations//messages/`.
 17017  	LatestMessage string `json:"latestMessage,omitempty"`
 17018  	// Parent: The parent resource contains the conversation profile Format:
 17019  	// 'projects/' or `projects//locations/`.
 17020  	Parent string `json:"parent,omitempty"`
 17021  	// Query: Required. The natural language text query for knowledge search.
 17022  	Query *GoogleCloudDialogflowV2beta1TextInput `json:"query,omitempty"`
 17023  	// SessionId: The ID of the search session. The session_id can be combined with
 17024  	// Dialogflow V3 Agent ID retrieved from conversation profile or on its own to
 17025  	// identify a search session. The search history of the same session will
 17026  	// impact the search result. It's up to the API caller to choose an appropriate
 17027  	// `Session ID`. It can be a random number or some type of session identifiers
 17028  	// (preferably hashed). The length must not exceed 36 characters.
 17029  	SessionId string `json:"sessionId,omitempty"`
 17030  	// ForceSendFields is a list of field names (e.g. "Conversation") to
 17031  	// unconditionally include in API requests. By default, fields with empty or
 17032  	// default values are omitted from API requests. See
 17033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17034  	// details.
 17035  	ForceSendFields []string `json:"-"`
 17036  	// NullFields is a list of field names (e.g. "Conversation") to include in API
 17037  	// requests with the JSON null value. By default, fields with empty values are
 17038  	// omitted from API requests. See
 17039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17040  	NullFields []string `json:"-"`
 17041  }
 17042  
 17043  func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) MarshalJSON() ([]byte, error) {
 17044  	type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
 17045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17046  }
 17047  
 17048  // GoogleCloudDialogflowV2beta1SearchKnowledgeResponse: The response message
 17049  // for Conversations.SearchKnowledge.
 17050  type GoogleCloudDialogflowV2beta1SearchKnowledgeResponse struct {
 17051  	// Answers: Most relevant snippets extracted from articles in the given
 17052  	// knowledge base, ordered by confidence.
 17053  	Answers []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer `json:"answers,omitempty"`
 17054  	// RewrittenQuery: The rewritten query used to search knowledge.
 17055  	RewrittenQuery string `json:"rewrittenQuery,omitempty"`
 17056  
 17057  	// ServerResponse contains the HTTP response code and headers from the server.
 17058  	googleapi.ServerResponse `json:"-"`
 17059  	// ForceSendFields is a list of field names (e.g. "Answers") to unconditionally
 17060  	// include in API requests. By default, fields with empty or default values are
 17061  	// omitted from API requests. See
 17062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17063  	// details.
 17064  	ForceSendFields []string `json:"-"`
 17065  	// NullFields is a list of field names (e.g. "Answers") to include in API
 17066  	// requests with the JSON null value. By default, fields with empty values are
 17067  	// omitted from API requests. See
 17068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17069  	NullFields []string `json:"-"`
 17070  }
 17071  
 17072  func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeResponse) MarshalJSON() ([]byte, error) {
 17073  	type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
 17074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17075  }
 17076  
 17077  // GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as
 17078  // positive/negative feeling or association, for a unit of analysis, such as
 17079  // the query text. See:
 17080  // https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values
 17081  // for how to interpret the result.
 17082  type GoogleCloudDialogflowV2beta1Sentiment struct {
 17083  	// Magnitude: A non-negative number in the [0, +inf) range, which represents
 17084  	// the absolute magnitude of sentiment, regardless of score (positive or
 17085  	// negative).
 17086  	Magnitude float64 `json:"magnitude,omitempty"`
 17087  	// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
 17088  	// sentiment).
 17089  	Score float64 `json:"score,omitempty"`
 17090  	// ForceSendFields is a list of field names (e.g. "Magnitude") to
 17091  	// unconditionally include in API requests. By default, fields with empty or
 17092  	// default values are omitted from API requests. See
 17093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17094  	// details.
 17095  	ForceSendFields []string `json:"-"`
 17096  	// NullFields is a list of field names (e.g. "Magnitude") to include in API
 17097  	// requests with the JSON null value. By default, fields with empty values are
 17098  	// omitted from API requests. See
 17099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17100  	NullFields []string `json:"-"`
 17101  }
 17102  
 17103  func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
 17104  	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
 17105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17106  }
 17107  
 17108  func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
 17109  	type NoMethod GoogleCloudDialogflowV2beta1Sentiment
 17110  	var s1 struct {
 17111  		Magnitude gensupport.JSONFloat64 `json:"magnitude"`
 17112  		Score     gensupport.JSONFloat64 `json:"score"`
 17113  		*NoMethod
 17114  	}
 17115  	s1.NoMethod = (*NoMethod)(s)
 17116  	if err := json.Unmarshal(data, &s1); err != nil {
 17117  		return err
 17118  	}
 17119  	s.Magnitude = float64(s1.Magnitude)
 17120  	s.Score = float64(s1.Score)
 17121  	return nil
 17122  }
 17123  
 17124  // GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig: Configures the
 17125  // types of sentiment analysis to perform.
 17126  type GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig struct {
 17127  	// AnalyzeQueryTextSentiment: Instructs the service to perform sentiment
 17128  	// analysis on `query_text`. If not provided, sentiment analysis is not
 17129  	// performed on `query_text`.
 17130  	AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
 17131  	// ForceSendFields is a list of field names (e.g. "AnalyzeQueryTextSentiment")
 17132  	// to unconditionally include in API requests. By default, fields with empty or
 17133  	// default values are 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. "AnalyzeQueryTextSentiment") to
 17138  	// include in API requests with the JSON null value. By default, fields with
 17139  	// empty values are 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 *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error) {
 17145  	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
 17146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17147  }
 17148  
 17149  // GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of sentiment
 17150  // analysis. Sentiment analysis inspects user input and identifies the
 17151  // prevailing subjective opinion, especially to determine a user's attitude as
 17152  // positive, negative, or neutral. For Participants.DetectIntent, it needs to
 17153  // be configured in DetectIntentRequest.query_params. For
 17154  // Participants.StreamingDetectIntent, it needs to be configured in
 17155  // StreamingDetectIntentRequest.query_params. And for
 17156  // Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it
 17157  // needs to be configured in ConversationProfile.human_agent_assistant_config
 17158  type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
 17159  	// QueryTextSentiment: The sentiment analysis result for `query_text`.
 17160  	QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
 17161  	// ForceSendFields is a list of field names (e.g. "QueryTextSentiment") to
 17162  	// unconditionally include in API requests. By default, fields with empty or
 17163  	// default values are omitted from API requests. See
 17164  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17165  	// details.
 17166  	ForceSendFields []string `json:"-"`
 17167  	// NullFields is a list of field names (e.g. "QueryTextSentiment") to include
 17168  	// in API requests with the JSON null value. By default, fields with empty
 17169  	// values are omitted from API requests. See
 17170  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17171  	NullFields []string `json:"-"`
 17172  }
 17173  
 17174  func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
 17175  	type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
 17176  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17177  }
 17178  
 17179  // GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a
 17180  // conversation between a Dialogflow agent and an end-user. You can create
 17181  // special entities, called session entities, during a session. Session
 17182  // entities can extend or replace custom entity types and only exist during the
 17183  // session that they were created for. All session data, including session
 17184  // entities, is stored by Dialogflow for 20 minutes. For more information, see
 17185  // the session entity guide
 17186  // (https://cloud.google.com/dialogflow/docs/entities-session).
 17187  type GoogleCloudDialogflowV2beta1SessionEntityType struct {
 17188  	// Entities: Required. The collection of entities associated with this session
 17189  	// entity type.
 17190  	Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
 17191  	// EntityOverrideMode: Required. Indicates whether the additional data should
 17192  	// override or supplement the custom entity type definition.
 17193  	//
 17194  	// Possible values:
 17195  	//   "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value should be
 17196  	// never used.
 17197  	//   "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session entities
 17198  	// overrides the collection of entities in the corresponding custom entity
 17199  	// type.
 17200  	//   "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session entities
 17201  	// extends the collection of entities in the corresponding custom entity type.
 17202  	// Note: Even in this override mode calls to `ListSessionEntityTypes`,
 17203  	// `GetSessionEntityType`, `CreateSessionEntityType` and
 17204  	// `UpdateSessionEntityType` only return the additional entities added in this
 17205  	// session entity type. If you want to get the supplemented list, please call
 17206  	// EntityTypes.GetEntityType on the custom entity type and merge.
 17207  	EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
 17208  	// Name: Required. The unique identifier of this session entity type. Supported
 17209  	// formats: - `projects//agent/sessions//entityTypes/` -
 17210  	// `projects//locations//agent/sessions//entityTypes/` -
 17211  	// `projects//agent/environments//users//sessions//entityTypes/` -
 17212  	// `projects//locations//agent/environments/ /users//sessions//entityTypes/` If
 17213  	// `Location ID` is not specified we assume default 'us' location. If
 17214  	// `Environment ID` is not specified, we assume default 'draft' environment. If
 17215  	// `User ID` is not specified, we assume default '-' user. `` must be the
 17216  	// display name of an existing entity type in the same agent that will be
 17217  	// overridden or supplemented.
 17218  	Name string `json:"name,omitempty"`
 17219  
 17220  	// ServerResponse contains the HTTP response code and headers from the server.
 17221  	googleapi.ServerResponse `json:"-"`
 17222  	// ForceSendFields is a list of field names (e.g. "Entities") to
 17223  	// unconditionally include in API requests. By default, fields with empty or
 17224  	// default values are omitted from API requests. See
 17225  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17226  	// details.
 17227  	ForceSendFields []string `json:"-"`
 17228  	// NullFields is a list of field names (e.g. "Entities") to include in API
 17229  	// requests with the JSON null value. By default, fields with empty values are
 17230  	// omitted from API requests. See
 17231  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17232  	NullFields []string `json:"-"`
 17233  }
 17234  
 17235  func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
 17236  	type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
 17237  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17238  }
 17239  
 17240  // GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata:
 17241  // Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
 17242  type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
 17243  	// ConversationProfile: The resource name of the conversation profile. Format:
 17244  	// `projects//locations//conversationProfiles/`
 17245  	ConversationProfile string `json:"conversationProfile,omitempty"`
 17246  	// CreateTime: Timestamp whe the request was created. The time is measured on
 17247  	// server side.
 17248  	CreateTime string `json:"createTime,omitempty"`
 17249  	// ParticipantRole: Required. The participant role to add or update the
 17250  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 17251  	//
 17252  	// Possible values:
 17253  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 17254  	//   "HUMAN_AGENT" - Participant is a human agent.
 17255  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 17256  	// Dialogflow agent.
 17257  	//   "END_USER" - Participant is an end user that has called or chatted with
 17258  	// Dialogflow services.
 17259  	ParticipantRole string `json:"participantRole,omitempty"`
 17260  	// SuggestionFeatureType: Required. The type of the suggestion feature to add
 17261  	// or update.
 17262  	//
 17263  	// Possible values:
 17264  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 17265  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 17266  	//   "FAQ" - Run FAQ model.
 17267  	//   "SMART_REPLY" - Run smart reply model for chat.
 17268  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 17269  	// return automated agent response as suggestion.
 17270  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 17271  	// chat.
 17272  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 17273  	// text generated query.
 17274  	SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
 17275  	// ForceSendFields is a list of field names (e.g. "ConversationProfile") to
 17276  	// unconditionally include in API requests. By default, fields with empty or
 17277  	// default values are omitted from API requests. See
 17278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17279  	// details.
 17280  	ForceSendFields []string `json:"-"`
 17281  	// NullFields is a list of field names (e.g. "ConversationProfile") to include
 17282  	// in API requests with the JSON null value. By default, fields with empty
 17283  	// values are omitted from API requests. See
 17284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17285  	NullFields []string `json:"-"`
 17286  }
 17287  
 17288  func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
 17289  	type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
 17290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17291  }
 17292  
 17293  // GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest: The request
 17294  // message for ConversationProfiles.SetSuggestionFeature.
 17295  type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest struct {
 17296  	// ParticipantRole: Required. The participant role to add or update the
 17297  	// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.
 17298  	//
 17299  	// Possible values:
 17300  	//   "ROLE_UNSPECIFIED" - Participant role not set.
 17301  	//   "HUMAN_AGENT" - Participant is a human agent.
 17302  	//   "AUTOMATED_AGENT" - Participant is an automated agent, such as a
 17303  	// Dialogflow agent.
 17304  	//   "END_USER" - Participant is an end user that has called or chatted with
 17305  	// Dialogflow services.
 17306  	ParticipantRole string `json:"participantRole,omitempty"`
 17307  	// SuggestionFeatureConfig: Required. The suggestion feature config to add or
 17308  	// update.
 17309  	SuggestionFeatureConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"suggestionFeatureConfig,omitempty"`
 17310  	// ForceSendFields is a list of field names (e.g. "ParticipantRole") to
 17311  	// unconditionally include in API requests. By default, fields with empty or
 17312  	// default values are omitted from API requests. See
 17313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17314  	// details.
 17315  	ForceSendFields []string `json:"-"`
 17316  	// NullFields is a list of field names (e.g. "ParticipantRole") to include in
 17317  	// API requests with the JSON null value. By default, fields with empty values
 17318  	// are omitted from API requests. See
 17319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17320  	NullFields []string `json:"-"`
 17321  }
 17322  
 17323  func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
 17324  	type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest
 17325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17326  }
 17327  
 17328  // GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart reply
 17329  // answer.
 17330  type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
 17331  	// AnswerRecord: The name of answer record, in the format of
 17332  	// "projects//locations//answerRecords/"
 17333  	AnswerRecord string `json:"answerRecord,omitempty"`
 17334  	// Confidence: Smart reply confidence. The system's confidence score that this
 17335  	// reply is a good match for this conversation, as a value from 0.0 (completely
 17336  	// uncertain) to 1.0 (completely certain).
 17337  	Confidence float64 `json:"confidence,omitempty"`
 17338  	// Reply: The content of the reply.
 17339  	Reply string `json:"reply,omitempty"`
 17340  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 17341  	// unconditionally include in API requests. By default, fields with empty or
 17342  	// default values are omitted from API requests. See
 17343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17344  	// details.
 17345  	ForceSendFields []string `json:"-"`
 17346  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 17347  	// requests with the JSON null value. By default, fields with empty values are
 17348  	// omitted from API requests. See
 17349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17350  	NullFields []string `json:"-"`
 17351  }
 17352  
 17353  func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
 17354  	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
 17355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17356  }
 17357  
 17358  func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
 17359  	type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
 17360  	var s1 struct {
 17361  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 17362  		*NoMethod
 17363  	}
 17364  	s1.NoMethod = (*NoMethod)(s)
 17365  	if err := json.Unmarshal(data, &s1); err != nil {
 17366  		return err
 17367  	}
 17368  	s.Confidence = float64(s1.Confidence)
 17369  	return nil
 17370  }
 17371  
 17372  // GoogleCloudDialogflowV2beta1SpeechContext: Hints for the speech recognizer
 17373  // to help with recognition in a specific conversation state.
 17374  type GoogleCloudDialogflowV2beta1SpeechContext struct {
 17375  	// Boost: Optional. Boost for this context compared to other contexts: * If the
 17376  	// boost is positive, Dialogflow will increase the probability that the phrases
 17377  	// in this context are recognized over similar sounding phrases. * If the boost
 17378  	// is unspecified or non-positive, Dialogflow will not apply any boost.
 17379  	// Dialogflow recommends that you use boosts in the range (0, 20] and that you
 17380  	// find a value that fits your use case with binary search.
 17381  	Boost float64 `json:"boost,omitempty"`
 17382  	// Phrases: Optional. A list of strings containing words and phrases that the
 17383  	// speech recognizer should recognize with higher likelihood. This list can be
 17384  	// used to: * improve accuracy for words and phrases you expect the user to
 17385  	// say, e.g. typical commands for your Dialogflow agent * add additional words
 17386  	// to the speech recognizer vocabulary * ... See the Cloud Speech documentation
 17387  	// (https://cloud.google.com/speech-to-text/quotas) for usage limits.
 17388  	Phrases []string `json:"phrases,omitempty"`
 17389  	// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
 17390  	// include in API requests. By default, fields with empty or default values are
 17391  	// 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. "Boost") 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 *GoogleCloudDialogflowV2beta1SpeechContext) MarshalJSON() ([]byte, error) {
 17403  	type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
 17404  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17405  }
 17406  
 17407  func (s *GoogleCloudDialogflowV2beta1SpeechContext) UnmarshalJSON(data []byte) error {
 17408  	type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
 17409  	var s1 struct {
 17410  		Boost gensupport.JSONFloat64 `json:"boost"`
 17411  		*NoMethod
 17412  	}
 17413  	s1.NoMethod = (*NoMethod)(s)
 17414  	if err := json.Unmarshal(data, &s1); err != nil {
 17415  		return err
 17416  	}
 17417  	s.Boost = float64(s1.Boost)
 17418  	return nil
 17419  }
 17420  
 17421  // GoogleCloudDialogflowV2beta1SpeechToTextConfig: Configures speech
 17422  // transcription for ConversationProfile.
 17423  type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct {
 17424  	// Model: Which Speech model to select. Select the model best suited to your
 17425  	// domain to get best results. If a model is not explicitly specified, then
 17426  	// Dialogflow auto-selects a model based on other parameters in the
 17427  	// SpeechToTextConfig and Agent settings. If enhanced speech model is enabled
 17428  	// for the agent and an enhanced version of the specified model for the
 17429  	// language does not exist, then the speech is recognized using the standard
 17430  	// version of the specified model. Refer to Cloud Speech API documentation
 17431  	// (https://cloud.google.com/speech-to-text/docs/basics#select-model) for more
 17432  	// details. If you specify a model, the following models typically have the
 17433  	// best performance: - phone_call (best for Agent Assist and telephony) -
 17434  	// latest_short (best for Dialogflow non-telephony) - command_and_search Leave
 17435  	// this field unspecified to use Agent Speech settings
 17436  	// (https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
 17437  	// for model selection.
 17438  	Model string `json:"model,omitempty"`
 17439  	// SpeechModelVariant: The speech model used in speech to text.
 17440  	// `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
 17441  	// `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and
 17442  	// StreamingAnalyzeContentRequest request. If enhanced model variant is
 17443  	// specified and an enhanced version of the specified model for the language
 17444  	// does not exist, then it would emit an error.
 17445  	//
 17446  	// Possible values:
 17447  	//   "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In this
 17448  	// case Dialogflow defaults to USE_BEST_AVAILABLE.
 17449  	//   "USE_BEST_AVAILABLE" - Use the best available variant of the Speech model
 17450  	// that the caller is eligible for. Please see the [Dialogflow
 17451  	// docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make
 17452  	// your project eligible for enhanced models.
 17453  	//   "USE_STANDARD" - Use standard model variant even if an enhanced model is
 17454  	// available. See the [Cloud Speech
 17455  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 17456  	// for details about enhanced models.
 17457  	//   "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced variant
 17458  	// does not exist for the given model and request language, Dialogflow falls
 17459  	// back to the standard variant. The [Cloud Speech
 17460  	// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
 17461  	// describes which models have enhanced variants. * If the API caller isn't
 17462  	// eligible for enhanced models, Dialogflow returns an error. Please see the
 17463  	// [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for
 17464  	// how to make your project eligible.
 17465  	SpeechModelVariant string `json:"speechModelVariant,omitempty"`
 17466  	// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting
 17467  	// endpointer sensitivy as seconds of timeout value.
 17468  	UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
 17469  	// ForceSendFields is a list of field names (e.g. "Model") to unconditionally
 17470  	// include in API requests. By default, fields with empty or default values are
 17471  	// omitted from API requests. See
 17472  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17473  	// details.
 17474  	ForceSendFields []string `json:"-"`
 17475  	// NullFields is a list of field names (e.g. "Model") to include in API
 17476  	// requests with the JSON null value. By default, fields with empty values are
 17477  	// omitted from API requests. See
 17478  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17479  	NullFields []string `json:"-"`
 17480  }
 17481  
 17482  func (s *GoogleCloudDialogflowV2beta1SpeechToTextConfig) MarshalJSON() ([]byte, error) {
 17483  	type NoMethod GoogleCloudDialogflowV2beta1SpeechToTextConfig
 17484  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17485  }
 17486  
 17487  // GoogleCloudDialogflowV2beta1SubAgent: Contains basic configuration for a
 17488  // sub-agent.
 17489  type GoogleCloudDialogflowV2beta1SubAgent struct {
 17490  	// Environment: Optional. The unique identifier (`environment name` in
 17491  	// dialogflow console) of this sub-agent environment. Assumes draft environment
 17492  	// if `environment` is not set.
 17493  	Environment string `json:"environment,omitempty"`
 17494  	// Project: Required. The project of this agent. Format: `projects/` or
 17495  	// `projects//locations/`.
 17496  	Project string `json:"project,omitempty"`
 17497  	// ForceSendFields is a list of field names (e.g. "Environment") to
 17498  	// unconditionally include in API requests. By default, fields with empty or
 17499  	// default values are omitted from API requests. See
 17500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17501  	// details.
 17502  	ForceSendFields []string `json:"-"`
 17503  	// NullFields is a list of field names (e.g. "Environment") to include in API
 17504  	// requests with the JSON null value. By default, fields with empty values are
 17505  	// omitted from API requests. See
 17506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17507  	NullFields []string `json:"-"`
 17508  }
 17509  
 17510  func (s *GoogleCloudDialogflowV2beta1SubAgent) MarshalJSON() ([]byte, error) {
 17511  	type NoMethod GoogleCloudDialogflowV2beta1SubAgent
 17512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17513  }
 17514  
 17515  // GoogleCloudDialogflowV2beta1SuggestArticlesRequest: The request message for
 17516  // Participants.SuggestArticles.
 17517  type GoogleCloudDialogflowV2beta1SuggestArticlesRequest struct {
 17518  	// AssistQueryParams: Optional. Parameters for a human assist query.
 17519  	AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
 17520  	// ContextSize: Optional. Max number of messages prior to and including
 17521  	// latest_message to use as context when compiling the suggestion. By default
 17522  	// 20 and at most 50.
 17523  	ContextSize int64 `json:"contextSize,omitempty"`
 17524  	// LatestMessage: Optional. The name of the latest conversation message to
 17525  	// compile suggestion for. If empty, it will be the latest message of the
 17526  	// conversation. Format: `projects//locations//conversations//messages/`.
 17527  	LatestMessage string `json:"latestMessage,omitempty"`
 17528  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 17529  	// unconditionally include in API requests. By default, fields with empty or
 17530  	// default values are omitted from API requests. See
 17531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17532  	// details.
 17533  	ForceSendFields []string `json:"-"`
 17534  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
 17535  	// API requests with the JSON null value. By default, fields with empty values
 17536  	// are omitted from API requests. See
 17537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17538  	NullFields []string `json:"-"`
 17539  }
 17540  
 17541  func (s *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) MarshalJSON() ([]byte, error) {
 17542  	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesRequest
 17543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17544  }
 17545  
 17546  // GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response message
 17547  // for Participants.SuggestArticles.
 17548  type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
 17549  	// ArticleAnswers: Output only. Articles ordered by score in descending order.
 17550  	ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
 17551  	// ContextSize: Number of messages prior to and including latest_message to
 17552  	// compile the suggestion. It may be smaller than the
 17553  	// SuggestArticlesResponse.context_size field in the request if there aren't
 17554  	// that many messages in the conversation.
 17555  	ContextSize int64 `json:"contextSize,omitempty"`
 17556  	// LatestMessage: The name of the latest conversation message used to compile
 17557  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 17558  	LatestMessage string `json:"latestMessage,omitempty"`
 17559  
 17560  	// ServerResponse contains the HTTP response code and headers from the server.
 17561  	googleapi.ServerResponse `json:"-"`
 17562  	// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to
 17563  	// unconditionally include in API requests. By default, fields with empty or
 17564  	// default values are omitted from API requests. See
 17565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17566  	// details.
 17567  	ForceSendFields []string `json:"-"`
 17568  	// NullFields is a list of field names (e.g. "ArticleAnswers") to include in
 17569  	// API requests with the JSON null value. By default, fields with empty values
 17570  	// are omitted from API requests. See
 17571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17572  	NullFields []string `json:"-"`
 17573  }
 17574  
 17575  func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
 17576  	type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
 17577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17578  }
 17579  
 17580  // GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest: The request
 17581  // message for Conversations.SuggestConversationSummary.
 17582  type GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest struct {
 17583  	// AssistQueryParams: Parameters for a human assist query. Only used for
 17584  	// POC/demo purpose.
 17585  	AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
 17586  	// ContextSize: Max number of messages prior to and including [latest_message]
 17587  	// to use as context when compiling the suggestion. By default 500 and at most
 17588  	// 1000.
 17589  	ContextSize int64 `json:"contextSize,omitempty"`
 17590  	// LatestMessage: The name of the latest conversation message used as context
 17591  	// for compiling suggestion. If empty, the latest message of the conversation
 17592  	// will be used. Format: `projects//locations//conversations//messages/`.
 17593  	LatestMessage string `json:"latestMessage,omitempty"`
 17594  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 17595  	// unconditionally include in API requests. By default, fields with empty or
 17596  	// default values are omitted from API requests. See
 17597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17598  	// details.
 17599  	ForceSendFields []string `json:"-"`
 17600  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
 17601  	// API requests with the JSON null value. By default, fields with empty values
 17602  	// are omitted from API requests. See
 17603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17604  	NullFields []string `json:"-"`
 17605  }
 17606  
 17607  func (s *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) MarshalJSON() ([]byte, error) {
 17608  	type NoMethod GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
 17609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17610  }
 17611  
 17612  // GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse: The response
 17613  // message for Conversations.SuggestConversationSummary.
 17614  type GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse struct {
 17615  	// ContextSize: Number of messages prior to and including
 17616  	// last_conversation_message used to compile the suggestion. It may be smaller
 17617  	// than the SuggestSummaryRequest.context_size field in the request if there
 17618  	// weren't that many messages in the conversation.
 17619  	ContextSize int64 `json:"contextSize,omitempty"`
 17620  	// LatestMessage: The name of the latest conversation message used as context
 17621  	// for compiling suggestion. Format:
 17622  	// `projects//locations//conversations//messages/`.
 17623  	LatestMessage string `json:"latestMessage,omitempty"`
 17624  	// Summary: Generated summary.
 17625  	Summary *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary `json:"summary,omitempty"`
 17626  
 17627  	// ServerResponse contains the HTTP response code and headers from the server.
 17628  	googleapi.ServerResponse `json:"-"`
 17629  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 17630  	// unconditionally include in API requests. By default, fields with empty or
 17631  	// default values are omitted from API requests. See
 17632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17633  	// details.
 17634  	ForceSendFields []string `json:"-"`
 17635  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 17636  	// requests with the JSON null value. By default, fields with empty values are
 17637  	// omitted from API requests. See
 17638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17639  	NullFields []string `json:"-"`
 17640  }
 17641  
 17642  func (s *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse) MarshalJSON() ([]byte, error) {
 17643  	type NoMethod GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
 17644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17645  }
 17646  
 17647  // GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary:
 17648  // Generated summary for a conversation.
 17649  type GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary struct {
 17650  	// AnswerRecord: The name of the answer record. Format:
 17651  	// "projects//answerRecords/"
 17652  	AnswerRecord string `json:"answerRecord,omitempty"`
 17653  	// BaselineModelVersion: The baseline model version used to generate this
 17654  	// summary. It is empty if a baseline model was not used to generate this
 17655  	// summary.
 17656  	BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
 17657  	// Text: The summary content that is concatenated into one string.
 17658  	Text string `json:"text,omitempty"`
 17659  	// TextSections: The summary content that is divided into sections. The key is
 17660  	// the section's name and the value is the section's content. There is no
 17661  	// specific format for the key or value.
 17662  	TextSections map[string]string `json:"textSections,omitempty"`
 17663  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 17664  	// unconditionally include in API requests. By default, fields with empty or
 17665  	// default values are omitted from API requests. See
 17666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17667  	// details.
 17668  	ForceSendFields []string `json:"-"`
 17669  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 17670  	// requests with the JSON null value. By default, fields with empty values are
 17671  	// omitted from API requests. See
 17672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17673  	NullFields []string `json:"-"`
 17674  }
 17675  
 17676  func (s *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary) MarshalJSON() ([]byte, error) {
 17677  	type NoMethod GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary
 17678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17679  }
 17680  
 17681  // GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse: The response
 17682  // message for Participants.SuggestDialogflowAssists.
 17683  type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
 17684  	// ContextSize: Number of messages prior to and including latest_message to
 17685  	// compile the suggestion. It may be smaller than the
 17686  	// SuggestDialogflowAssistsRequest.context_size field in the request if there
 17687  	// aren't that many messages in the conversation.
 17688  	ContextSize int64 `json:"contextSize,omitempty"`
 17689  	// DialogflowAssistAnswers: Output only. Multiple reply options provided by
 17690  	// Dialogflow assist service. The order is based on the rank of the model
 17691  	// prediction.
 17692  	DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
 17693  	// LatestMessage: The name of the latest conversation message used to suggest
 17694  	// answer. Format: `projects//locations//conversations//messages/`.
 17695  	LatestMessage string `json:"latestMessage,omitempty"`
 17696  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 17697  	// unconditionally include in API requests. By default, fields with empty or
 17698  	// default values are omitted from API requests. See
 17699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17700  	// details.
 17701  	ForceSendFields []string `json:"-"`
 17702  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 17703  	// requests with the JSON null value. By default, fields with empty values are
 17704  	// omitted from API requests. See
 17705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17706  	NullFields []string `json:"-"`
 17707  }
 17708  
 17709  func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
 17710  	type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
 17711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17712  }
 17713  
 17714  // GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest: The request message
 17715  // for Participants.SuggestFaqAnswers.
 17716  type GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest struct {
 17717  	// AssistQueryParams: Optional. Parameters for a human assist query.
 17718  	AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
 17719  	// ContextSize: Optional. Max number of messages prior to and including
 17720  	// [latest_message] to use as context when compiling the suggestion. By default
 17721  	// 20 and at most 50.
 17722  	ContextSize int64 `json:"contextSize,omitempty"`
 17723  	// LatestMessage: Optional. The name of the latest conversation message to
 17724  	// compile suggestion for. If empty, it will be the latest message of the
 17725  	// conversation. Format: `projects//locations//conversations//messages/`.
 17726  	LatestMessage string `json:"latestMessage,omitempty"`
 17727  	// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to
 17728  	// unconditionally include in API requests. By default, fields with empty or
 17729  	// default values are omitted from API requests. See
 17730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17731  	// details.
 17732  	ForceSendFields []string `json:"-"`
 17733  	// NullFields is a list of field names (e.g. "AssistQueryParams") to include in
 17734  	// API requests with the JSON null value. By default, fields with empty values
 17735  	// are omitted from API requests. See
 17736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17737  	NullFields []string `json:"-"`
 17738  }
 17739  
 17740  func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) MarshalJSON() ([]byte, error) {
 17741  	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
 17742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17743  }
 17744  
 17745  // GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request message
 17746  // for Participants.SuggestFaqAnswers.
 17747  type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
 17748  	// ContextSize: Number of messages prior to and including latest_message to
 17749  	// compile the suggestion. It may be smaller than the
 17750  	// SuggestFaqAnswersRequest.context_size field in the request if there aren't
 17751  	// that many messages in the conversation.
 17752  	ContextSize int64 `json:"contextSize,omitempty"`
 17753  	// FaqAnswers: Output only. Answers extracted from FAQ documents.
 17754  	FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
 17755  	// LatestMessage: The name of the latest conversation message used to compile
 17756  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 17757  	LatestMessage string `json:"latestMessage,omitempty"`
 17758  
 17759  	// ServerResponse contains the HTTP response code and headers from the server.
 17760  	googleapi.ServerResponse `json:"-"`
 17761  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 17762  	// unconditionally include in API requests. By default, fields with empty or
 17763  	// default values are omitted from API requests. See
 17764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17765  	// details.
 17766  	ForceSendFields []string `json:"-"`
 17767  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 17768  	// requests with the JSON null value. By default, fields with empty values are
 17769  	// omitted from API requests. See
 17770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17771  	NullFields []string `json:"-"`
 17772  }
 17773  
 17774  func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
 17775  	type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
 17776  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17777  }
 17778  
 17779  // GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest: The request message
 17780  // for Participants.SuggestSmartReplies.
 17781  type GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest struct {
 17782  	// ContextSize: Optional. Max number of messages prior to and including
 17783  	// [latest_message] to use as context when compiling the suggestion. By default
 17784  	// 20 and at most 50.
 17785  	ContextSize int64 `json:"contextSize,omitempty"`
 17786  	// CurrentTextInput: The current natural language text segment to compile
 17787  	// suggestion for. This provides a way for user to get follow up smart reply
 17788  	// suggestion after a smart reply selection, without sending a text message.
 17789  	CurrentTextInput *GoogleCloudDialogflowV2beta1TextInput `json:"currentTextInput,omitempty"`
 17790  	// LatestMessage: The name of the latest conversation message to compile
 17791  	// suggestion for. If empty, it will be the latest message of the conversation.
 17792  	// Format: `projects//locations//conversations//messages/`.
 17793  	LatestMessage string `json:"latestMessage,omitempty"`
 17794  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 17795  	// unconditionally include in API requests. By default, fields with empty or
 17796  	// default values are omitted from API requests. See
 17797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17798  	// details.
 17799  	ForceSendFields []string `json:"-"`
 17800  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 17801  	// requests with the JSON null value. By default, fields with empty values are
 17802  	// omitted from API requests. See
 17803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17804  	NullFields []string `json:"-"`
 17805  }
 17806  
 17807  func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) MarshalJSON() ([]byte, error) {
 17808  	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
 17809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17810  }
 17811  
 17812  // GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The response
 17813  // message for Participants.SuggestSmartReplies.
 17814  type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
 17815  	// ContextSize: Number of messages prior to and including latest_message to
 17816  	// compile the suggestion. It may be smaller than the
 17817  	// SuggestSmartRepliesRequest.context_size field in the request if there aren't
 17818  	// that many messages in the conversation.
 17819  	ContextSize int64 `json:"contextSize,omitempty"`
 17820  	// LatestMessage: The name of the latest conversation message used to compile
 17821  	// suggestion for. Format: `projects//locations//conversations//messages/`.
 17822  	LatestMessage string `json:"latestMessage,omitempty"`
 17823  	// SmartReplyAnswers: Output only. Multiple reply options provided by smart
 17824  	// reply service. The order is based on the rank of the model prediction. The
 17825  	// maximum number of the returned replies is set in SmartReplyConfig.
 17826  	SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
 17827  
 17828  	// ServerResponse contains the HTTP response code and headers from the server.
 17829  	googleapi.ServerResponse `json:"-"`
 17830  	// ForceSendFields is a list of field names (e.g. "ContextSize") to
 17831  	// unconditionally include in API requests. By default, fields with empty or
 17832  	// default values are omitted from API requests. See
 17833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17834  	// details.
 17835  	ForceSendFields []string `json:"-"`
 17836  	// NullFields is a list of field names (e.g. "ContextSize") to include in API
 17837  	// requests with the JSON null value. By default, fields with empty values are
 17838  	// omitted from API requests. See
 17839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17840  	NullFields []string `json:"-"`
 17841  }
 17842  
 17843  func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
 17844  	type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
 17845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17846  }
 17847  
 17848  // GoogleCloudDialogflowV2beta1Suggestion: Represents a suggestion for a human
 17849  // agent.
 17850  type GoogleCloudDialogflowV2beta1Suggestion struct {
 17851  	// Articles: Output only. Articles ordered by score in descending order.
 17852  	Articles []*GoogleCloudDialogflowV2beta1SuggestionArticle `json:"articles,omitempty"`
 17853  	// CreateTime: Output only. The time the suggestion was created.
 17854  	CreateTime string `json:"createTime,omitempty"`
 17855  	// FaqAnswers: Output only. Answers extracted from FAQ documents.
 17856  	FaqAnswers []*GoogleCloudDialogflowV2beta1SuggestionFaqAnswer `json:"faqAnswers,omitempty"`
 17857  	// LatestMessage: Output only. Latest message used as context to compile this
 17858  	// suggestion. Format: `projects//locations//conversations//messages/`.
 17859  	LatestMessage string `json:"latestMessage,omitempty"`
 17860  	// Name: Output only. The name of this suggestion. Format:
 17861  	// `projects//locations//conversations//participants/*/suggestions/`.
 17862  	Name string `json:"name,omitempty"`
 17863  	// ForceSendFields is a list of field names (e.g. "Articles") to
 17864  	// unconditionally include in API requests. By default, fields with empty or
 17865  	// default values are omitted from API requests. See
 17866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17867  	// details.
 17868  	ForceSendFields []string `json:"-"`
 17869  	// NullFields is a list of field names (e.g. "Articles") to include in API
 17870  	// requests with the JSON null value. By default, fields with empty values are
 17871  	// omitted from API requests. See
 17872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17873  	NullFields []string `json:"-"`
 17874  }
 17875  
 17876  func (s *GoogleCloudDialogflowV2beta1Suggestion) MarshalJSON() ([]byte, error) {
 17877  	type NoMethod GoogleCloudDialogflowV2beta1Suggestion
 17878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17879  }
 17880  
 17881  // GoogleCloudDialogflowV2beta1SuggestionArticle: Represents suggested article.
 17882  type GoogleCloudDialogflowV2beta1SuggestionArticle struct {
 17883  	// AnswerRecord: Output only. The name of answer record, in the format of
 17884  	// "projects//locations//answerRecords/"
 17885  	AnswerRecord string `json:"answerRecord,omitempty"`
 17886  	// Metadata: Output only. A map that contains metadata about the answer and the
 17887  	// document from which it originates.
 17888  	Metadata map[string]string `json:"metadata,omitempty"`
 17889  	// Snippets: Output only. Article snippets.
 17890  	Snippets []string `json:"snippets,omitempty"`
 17891  	// Title: Output only. The article title.
 17892  	Title string `json:"title,omitempty"`
 17893  	// Uri: Output only. The article URI.
 17894  	Uri string `json:"uri,omitempty"`
 17895  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 17896  	// unconditionally include in API requests. By default, fields with empty or
 17897  	// default values are omitted from API requests. See
 17898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17899  	// details.
 17900  	ForceSendFields []string `json:"-"`
 17901  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 17902  	// requests with the JSON null value. By default, fields with empty values are
 17903  	// omitted from API requests. See
 17904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17905  	NullFields []string `json:"-"`
 17906  }
 17907  
 17908  func (s *GoogleCloudDialogflowV2beta1SuggestionArticle) MarshalJSON() ([]byte, error) {
 17909  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionArticle
 17910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17911  }
 17912  
 17913  // GoogleCloudDialogflowV2beta1SuggestionFaqAnswer: Represents suggested answer
 17914  // from "frequently asked questions".
 17915  type GoogleCloudDialogflowV2beta1SuggestionFaqAnswer struct {
 17916  	// Answer: Output only. The piece of text from the `source` knowledge base
 17917  	// document.
 17918  	Answer string `json:"answer,omitempty"`
 17919  	// AnswerRecord: Output only. The name of answer record, in the format of
 17920  	// "projects//locations//answerRecords/"
 17921  	AnswerRecord string `json:"answerRecord,omitempty"`
 17922  	// Confidence: The system's confidence score that this Knowledge answer is a
 17923  	// good match for this conversational query, range from 0.0 (completely
 17924  	// uncertain) to 1.0 (completely certain).
 17925  	Confidence float64 `json:"confidence,omitempty"`
 17926  	// Metadata: Output only. A map that contains metadata about the answer and the
 17927  	// document from which it originates.
 17928  	Metadata map[string]string `json:"metadata,omitempty"`
 17929  	// Question: Output only. The corresponding FAQ question.
 17930  	Question string `json:"question,omitempty"`
 17931  	// Source: Output only. Indicates which Knowledge Document this answer was
 17932  	// extracted from. Format:
 17933  	// `projects//locations//agent/knowledgeBases//documents/`.
 17934  	Source string `json:"source,omitempty"`
 17935  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 17936  	// include in API requests. By default, fields with empty or default values are
 17937  	// omitted from API requests. See
 17938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17939  	// details.
 17940  	ForceSendFields []string `json:"-"`
 17941  	// NullFields is a list of field names (e.g. "Answer") to include in API
 17942  	// requests with the JSON null value. By default, fields with empty values are
 17943  	// omitted from API requests. See
 17944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17945  	NullFields []string `json:"-"`
 17946  }
 17947  
 17948  func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) MarshalJSON() ([]byte, error) {
 17949  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
 17950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17951  }
 17952  
 17953  func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) UnmarshalJSON(data []byte) error {
 17954  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
 17955  	var s1 struct {
 17956  		Confidence gensupport.JSONFloat64 `json:"confidence"`
 17957  		*NoMethod
 17958  	}
 17959  	s1.NoMethod = (*NoMethod)(s)
 17960  	if err := json.Unmarshal(data, &s1); err != nil {
 17961  		return err
 17962  	}
 17963  	s.Confidence = float64(s1.Confidence)
 17964  	return nil
 17965  }
 17966  
 17967  // GoogleCloudDialogflowV2beta1SuggestionFeature: The type of Human Agent
 17968  // Assistant API suggestion to perform, and the maximum number of results to
 17969  // return for that type. Multiple `Feature` objects can be specified in the
 17970  // `features` list.
 17971  type GoogleCloudDialogflowV2beta1SuggestionFeature struct {
 17972  	// Type: Type of Human Agent Assistant API feature to request.
 17973  	//
 17974  	// Possible values:
 17975  	//   "TYPE_UNSPECIFIED" - Unspecified feature type.
 17976  	//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.
 17977  	//   "FAQ" - Run FAQ model.
 17978  	//   "SMART_REPLY" - Run smart reply model for chat.
 17979  	//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will
 17980  	// return automated agent response as suggestion.
 17981  	//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for
 17982  	// chat.
 17983  	//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or
 17984  	// text generated query.
 17985  	Type string `json:"type,omitempty"`
 17986  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
 17987  	// include in API requests. By default, fields with empty or default values are
 17988  	// omitted from API requests. See
 17989  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17990  	// details.
 17991  	ForceSendFields []string `json:"-"`
 17992  	// NullFields is a list of field names (e.g. "Type") to include in API requests
 17993  	// with the JSON null value. By default, fields with empty values are omitted
 17994  	// from API requests. See
 17995  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17996  	NullFields []string `json:"-"`
 17997  }
 17998  
 17999  func (s *GoogleCloudDialogflowV2beta1SuggestionFeature) MarshalJSON() ([]byte, error) {
 18000  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionFeature
 18001  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18002  }
 18003  
 18004  // GoogleCloudDialogflowV2beta1SuggestionInput: Represents the selection of a
 18005  // suggestion.
 18006  type GoogleCloudDialogflowV2beta1SuggestionInput struct {
 18007  	// AnswerRecord: Required. The ID of a suggestion selected by the human agent.
 18008  	// The suggestion(s) were generated in a previous call to request Dialogflow
 18009  	// assist. The format is: `projects//locations//answerRecords/` where is an
 18010  	// alphanumeric string.
 18011  	AnswerRecord string `json:"answerRecord,omitempty"`
 18012  	// IntentInput: The intent to be triggered on V3 agent.
 18013  	IntentInput *GoogleCloudDialogflowV2beta1IntentInput `json:"intentInput,omitempty"`
 18014  	// Parameters: In Dialogflow assist for v3, the user can submit a form by
 18015  	// sending a SuggestionInput. The form is uniquely determined by the
 18016  	// answer_record field, which identifies a v3 QueryResult containing the
 18017  	// current page. The form parameters are specified via the parameters field.
 18018  	// Depending on your protocol or client library language, this is a map,
 18019  	// associative array, symbol table, dictionary, or JSON object composed of a
 18020  	// collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey
 18021  	// value: parameter name * MapValue type: If parameter's entity type is a
 18022  	// composite entity then use map, otherwise, depending on the parameter value
 18023  	// type, it could be one of string, number, boolean, null, list or map. *
 18024  	// MapValue value: If parameter's entity type is a composite entity then use
 18025  	// map from composite entity property names to property values, otherwise, use
 18026  	// parameter value.
 18027  	Parameters googleapi.RawMessage `json:"parameters,omitempty"`
 18028  	// TextOverride: Optional. If the customer edited the suggestion before using
 18029  	// it, include the revised text here.
 18030  	TextOverride *GoogleCloudDialogflowV2beta1TextInput `json:"textOverride,omitempty"`
 18031  	// ForceSendFields is a list of field names (e.g. "AnswerRecord") to
 18032  	// unconditionally include in API requests. By default, fields with empty or
 18033  	// default values are omitted from API requests. See
 18034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18035  	// details.
 18036  	ForceSendFields []string `json:"-"`
 18037  	// NullFields is a list of field names (e.g. "AnswerRecord") to include in API
 18038  	// requests with the JSON null value. By default, fields with empty values are
 18039  	// omitted from API requests. See
 18040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18041  	NullFields []string `json:"-"`
 18042  }
 18043  
 18044  func (s *GoogleCloudDialogflowV2beta1SuggestionInput) MarshalJSON() ([]byte, error) {
 18045  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionInput
 18046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18047  }
 18048  
 18049  // GoogleCloudDialogflowV2beta1SuggestionResult: One response of different type
 18050  // of suggestion response which is used in the response of
 18051  // Participants.AnalyzeContent and Participants.AnalyzeContent, as well as
 18052  // HumanAgentAssistantEvent.
 18053  type GoogleCloudDialogflowV2beta1SuggestionResult struct {
 18054  	// Error: Error status if the request failed.
 18055  	Error *GoogleRpcStatus `json:"error,omitempty"`
 18056  	// SuggestArticlesResponse: SuggestArticlesResponse if request is for
 18057  	// ARTICLE_SUGGESTION.
 18058  	SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
 18059  	// SuggestDialogflowAssistsResponse: SuggestDialogflowAssistsResponse if
 18060  	// request is for DIALOGFLOW_ASSIST.
 18061  	SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
 18062  	// SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if request
 18063  	// is for ENTITY_EXTRACTION.
 18064  	SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
 18065  	// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for
 18066  	// FAQ_ANSWER.
 18067  	SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
 18068  	// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for
 18069  	// SMART_REPLY.
 18070  	SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
 18071  	// ForceSendFields is a list of field names (e.g. "Error") to unconditionally
 18072  	// include in API requests. By default, fields with empty or default values are
 18073  	// omitted from API requests. See
 18074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18075  	// details.
 18076  	ForceSendFields []string `json:"-"`
 18077  	// NullFields is a list of field names (e.g. "Error") to include in API
 18078  	// requests with the JSON null value. By default, fields with empty values are
 18079  	// omitted from API requests. See
 18080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18081  	NullFields []string `json:"-"`
 18082  }
 18083  
 18084  func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
 18085  	type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
 18086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18087  }
 18088  
 18089  // GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig: Configuration of how
 18090  // speech should be synthesized.
 18091  type GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig struct {
 18092  	// EffectsProfileId: Optional. An identifier which selects 'audio effects'
 18093  	// profiles that are applied on (post synthesized) text to speech. Effects are
 18094  	// applied on top of each other in the order they are given.
 18095  	EffectsProfileId []string `json:"effectsProfileId,omitempty"`
 18096  	// Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means
 18097  	// increase 20 semitones from the original pitch. -20 means decrease 20
 18098  	// semitones from the original pitch.
 18099  	Pitch float64 `json:"pitch,omitempty"`
 18100  	// SpeakingRate: Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0
 18101  	// is the normal native speed supported by the specific voice. 2.0 is twice as
 18102  	// fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
 18103  	// speed. Any other values < 0.25 or > 4.0 will return an error.
 18104  	SpeakingRate float64 `json:"speakingRate,omitempty"`
 18105  	// Voice: Optional. The desired voice of the synthesized audio.
 18106  	Voice *GoogleCloudDialogflowV2beta1VoiceSelectionParams `json:"voice,omitempty"`
 18107  	// VolumeGainDb: Optional. Volume gain (in dB) of the normal native volume
 18108  	// supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
 18109  	// set to a value of 0.0 (dB), will play at normal native signal amplitude. A
 18110  	// value of -6.0 (dB) will play at approximately half the amplitude of the
 18111  	// normal native signal amplitude. A value of +6.0 (dB) will play at
 18112  	// approximately twice the amplitude of the normal native signal amplitude. We
 18113  	// strongly recommend not to exceed +10 (dB) as there's usually no effective
 18114  	// increase in loudness for any value greater than that.
 18115  	VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
 18116  	// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to
 18117  	// unconditionally include in API requests. By default, fields with empty or
 18118  	// default values are omitted from API requests. See
 18119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18120  	// details.
 18121  	ForceSendFields []string `json:"-"`
 18122  	// NullFields is a list of field names (e.g. "EffectsProfileId") to include in
 18123  	// API requests with the JSON null value. By default, fields with empty values
 18124  	// are omitted from API requests. See
 18125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18126  	NullFields []string `json:"-"`
 18127  }
 18128  
 18129  func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
 18130  	type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
 18131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18132  }
 18133  
 18134  func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
 18135  	type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
 18136  	var s1 struct {
 18137  		Pitch        gensupport.JSONFloat64 `json:"pitch"`
 18138  		SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
 18139  		VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
 18140  		*NoMethod
 18141  	}
 18142  	s1.NoMethod = (*NoMethod)(s)
 18143  	if err := json.Unmarshal(data, &s1); err != nil {
 18144  		return err
 18145  	}
 18146  	s.Pitch = float64(s1.Pitch)
 18147  	s.SpeakingRate = float64(s1.SpeakingRate)
 18148  	s.VolumeGainDb = float64(s1.VolumeGainDb)
 18149  	return nil
 18150  }
 18151  
 18152  // GoogleCloudDialogflowV2beta1TelephonyDtmfEvents: A wrapper of repeated
 18153  // TelephonyDtmf digits.
 18154  type GoogleCloudDialogflowV2beta1TelephonyDtmfEvents struct {
 18155  	// DtmfEvents: A sequence of TelephonyDtmf digits.
 18156  	//
 18157  	// Possible values:
 18158  	//   "TELEPHONY_DTMF_UNSPECIFIED" - Not specified. This value may be used to
 18159  	// indicate an absent digit.
 18160  	//   "DTMF_ONE" - Number: '1'.
 18161  	//   "DTMF_TWO" - Number: '2'.
 18162  	//   "DTMF_THREE" - Number: '3'.
 18163  	//   "DTMF_FOUR" - Number: '4'.
 18164  	//   "DTMF_FIVE" - Number: '5'.
 18165  	//   "DTMF_SIX" - Number: '6'.
 18166  	//   "DTMF_SEVEN" - Number: '7'.
 18167  	//   "DTMF_EIGHT" - Number: '8'.
 18168  	//   "DTMF_NINE" - Number: '9'.
 18169  	//   "DTMF_ZERO" - Number: '0'.
 18170  	//   "DTMF_A" - Letter: 'A'.
 18171  	//   "DTMF_B" - Letter: 'B'.
 18172  	//   "DTMF_C" - Letter: 'C'.
 18173  	//   "DTMF_D" - Letter: 'D'.
 18174  	//   "DTMF_STAR" - Asterisk/star: '*'.
 18175  	//   "DTMF_POUND" - Pound/diamond/hash/square/gate/octothorpe: '#'.
 18176  	DtmfEvents []string `json:"dtmfEvents,omitempty"`
 18177  	// ForceSendFields is a list of field names (e.g. "DtmfEvents") to
 18178  	// unconditionally include in API requests. By default, fields with empty or
 18179  	// default values are omitted from API requests. See
 18180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18181  	// details.
 18182  	ForceSendFields []string `json:"-"`
 18183  	// NullFields is a list of field names (e.g. "DtmfEvents") to include in API
 18184  	// requests with the JSON null value. By default, fields with empty values are
 18185  	// omitted from API requests. See
 18186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18187  	NullFields []string `json:"-"`
 18188  }
 18189  
 18190  func (s *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents) MarshalJSON() ([]byte, error) {
 18191  	type NoMethod GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
 18192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18193  }
 18194  
 18195  // GoogleCloudDialogflowV2beta1TextInput: Represents the natural language text
 18196  // to be processed.
 18197  type GoogleCloudDialogflowV2beta1TextInput struct {
 18198  	// LanguageCode: Required. The language of this conversational query. See
 18199  	// Language Support
 18200  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 18201  	// the currently supported language codes. Note that queries in the same
 18202  	// session do not necessarily need to specify the same language.
 18203  	LanguageCode string `json:"languageCode,omitempty"`
 18204  	// Text: Required. The UTF-8 encoded natural language text to be processed.
 18205  	// Text length must not exceed 256 characters for virtual agent interactions.
 18206  	Text string `json:"text,omitempty"`
 18207  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 18208  	// unconditionally include in API requests. By default, fields with empty or
 18209  	// default values are omitted from API requests. See
 18210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18211  	// details.
 18212  	ForceSendFields []string `json:"-"`
 18213  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 18214  	// requests with the JSON null value. By default, fields with empty values are
 18215  	// omitted from API requests. See
 18216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18217  	NullFields []string `json:"-"`
 18218  }
 18219  
 18220  func (s *GoogleCloudDialogflowV2beta1TextInput) MarshalJSON() ([]byte, error) {
 18221  	type NoMethod GoogleCloudDialogflowV2beta1TextInput
 18222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18223  }
 18224  
 18225  // GoogleCloudDialogflowV2beta1TextToSpeechSettings: Instructs the speech
 18226  // synthesizer on how to generate the output audio content.
 18227  type GoogleCloudDialogflowV2beta1TextToSpeechSettings struct {
 18228  	// EnableTextToSpeech: Optional. Indicates whether text to speech is enabled.
 18229  	// Even when this field is false, other settings in this proto are still
 18230  	// retained.
 18231  	EnableTextToSpeech bool `json:"enableTextToSpeech,omitempty"`
 18232  	// OutputAudioEncoding: Required. Audio encoding of the synthesized audio
 18233  	// content.
 18234  	//
 18235  	// Possible values:
 18236  	//   "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified.
 18237  	//   "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed
 18238  	// little-endian samples (Linear PCM). Audio content returned as LINEAR16 also
 18239  	// contains a WAV header.
 18240  	//   "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps.
 18241  	//   "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" - MP3 audio at 64kbps.
 18242  	//   "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an ogg
 18243  	// container. The result will be a file which can be played natively on
 18244  	// Android, and in browsers (at least Chrome and Firefox). The quality of the
 18245  	// encoding is considerably higher than MP3 while using approximately the same
 18246  	// bitrate.
 18247  	//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio
 18248  	// samples using G.711 PCMU/mu-law.
 18249  	OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"`
 18250  	// SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this
 18251  	// audio. If not provided, then the synthesizer will use the default sample
 18252  	// rate based on the audio encoding. If this is different from the voice's
 18253  	// natural sample rate, then the synthesizer will honor this request by
 18254  	// converting to the desired sample rate (which might result in worse audio
 18255  	// quality).
 18256  	SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
 18257  	// SynthesizeSpeechConfigs: Optional. Configuration of how speech should be
 18258  	// synthesized, mapping from language
 18259  	// (https://cloud.google.com/dialogflow/docs/reference/language) to
 18260  	// SynthesizeSpeechConfig.
 18261  	SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
 18262  	// ForceSendFields is a list of field names (e.g. "EnableTextToSpeech") to
 18263  	// unconditionally include in API requests. By default, fields with empty or
 18264  	// default values are omitted from API requests. See
 18265  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18266  	// details.
 18267  	ForceSendFields []string `json:"-"`
 18268  	// NullFields is a list of field names (e.g. "EnableTextToSpeech") to include
 18269  	// in API requests with the JSON null value. By default, fields with empty
 18270  	// values are omitted from API requests. See
 18271  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18272  	NullFields []string `json:"-"`
 18273  }
 18274  
 18275  func (s *GoogleCloudDialogflowV2beta1TextToSpeechSettings) MarshalJSON() ([]byte, error) {
 18276  	type NoMethod GoogleCloudDialogflowV2beta1TextToSpeechSettings
 18277  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18278  }
 18279  
 18280  // GoogleCloudDialogflowV2beta1TrainAgentRequest: The request message for
 18281  // Agents.TrainAgent.
 18282  type GoogleCloudDialogflowV2beta1TrainAgentRequest struct {
 18283  }
 18284  
 18285  // GoogleCloudDialogflowV2beta1ValidationError: Represents a single validation
 18286  // error.
 18287  type GoogleCloudDialogflowV2beta1ValidationError struct {
 18288  	// Entries: The names of the entries that the error is associated with. Format:
 18289  	// - `projects//agent`, if the error is associated with the entire agent. -
 18290  	// `projects//agent/intents/`, if the error is associated with certain intents.
 18291  	// - `projects//agent/intents//trainingPhrases/`, if the error is associated
 18292  	// with certain intent training phrases. -
 18293  	// `projects//agent/intents//parameters/`, if the error is associated with
 18294  	// certain intent parameters. - `projects//agent/entities/`, if the error is
 18295  	// associated with certain entities.
 18296  	Entries []string `json:"entries,omitempty"`
 18297  	// ErrorMessage: The detailed error message.
 18298  	ErrorMessage string `json:"errorMessage,omitempty"`
 18299  	// Severity: The severity of the error.
 18300  	//
 18301  	// Possible values:
 18302  	//   "SEVERITY_UNSPECIFIED" - Not specified. This value should never be used.
 18303  	//   "INFO" - The agent doesn't follow Dialogflow best practices.
 18304  	//   "WARNING" - The agent may not behave as expected.
 18305  	//   "ERROR" - The agent may experience partial failures.
 18306  	//   "CRITICAL" - The agent may completely fail.
 18307  	Severity string `json:"severity,omitempty"`
 18308  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 18309  	// include in API requests. By default, fields with empty or default values are
 18310  	// omitted from API requests. See
 18311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18312  	// details.
 18313  	ForceSendFields []string `json:"-"`
 18314  	// NullFields is a list of field names (e.g. "Entries") to include in API
 18315  	// requests with the JSON null value. By default, fields with empty values are
 18316  	// omitted from API requests. See
 18317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18318  	NullFields []string `json:"-"`
 18319  }
 18320  
 18321  func (s *GoogleCloudDialogflowV2beta1ValidationError) MarshalJSON() ([]byte, error) {
 18322  	type NoMethod GoogleCloudDialogflowV2beta1ValidationError
 18323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18324  }
 18325  
 18326  // GoogleCloudDialogflowV2beta1ValidationResult: Represents the output of agent
 18327  // validation.
 18328  type GoogleCloudDialogflowV2beta1ValidationResult struct {
 18329  	// ValidationErrors: Contains all validation errors.
 18330  	ValidationErrors []*GoogleCloudDialogflowV2beta1ValidationError `json:"validationErrors,omitempty"`
 18331  
 18332  	// ServerResponse contains the HTTP response code and headers from the server.
 18333  	googleapi.ServerResponse `json:"-"`
 18334  	// ForceSendFields is a list of field names (e.g. "ValidationErrors") to
 18335  	// unconditionally include in API requests. By default, fields with empty or
 18336  	// default values are omitted from API requests. See
 18337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18338  	// details.
 18339  	ForceSendFields []string `json:"-"`
 18340  	// NullFields is a list of field names (e.g. "ValidationErrors") to include in
 18341  	// API requests with the JSON null value. By default, fields with empty values
 18342  	// are omitted from API requests. See
 18343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18344  	NullFields []string `json:"-"`
 18345  }
 18346  
 18347  func (s *GoogleCloudDialogflowV2beta1ValidationResult) MarshalJSON() ([]byte, error) {
 18348  	type NoMethod GoogleCloudDialogflowV2beta1ValidationResult
 18349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18350  }
 18351  
 18352  // GoogleCloudDialogflowV2beta1Version: You can create multiple versions of
 18353  // your agent and publish them to separate environments. When you edit an
 18354  // agent, you are editing the draft agent. At any point, you can save the draft
 18355  // agent as an agent version, which is an immutable snapshot of your agent.
 18356  // When you save the draft agent, it is published to the default environment.
 18357  // When you create agent versions, you can publish them to custom environments.
 18358  // You can create a variety of custom environments for: - testing - development
 18359  // - production - etc. For more information, see the versions and environments
 18360  // guide (https://cloud.google.com/dialogflow/docs/agents-versions).
 18361  type GoogleCloudDialogflowV2beta1Version struct {
 18362  	// CreateTime: Output only. The creation time of this version. This field is
 18363  	// read-only, i.e., it cannot be set by create and update methods.
 18364  	CreateTime string `json:"createTime,omitempty"`
 18365  	// Description: Optional. The developer-provided description of this version.
 18366  	Description string `json:"description,omitempty"`
 18367  	// Name: Output only. The unique identifier of this agent version. Supported
 18368  	// formats: - `projects//agent/versions/` -
 18369  	// `projects//locations//agent/versions/`
 18370  	Name string `json:"name,omitempty"`
 18371  	// Status: Output only. The status of this version. This field is read-only and
 18372  	// cannot be set by create and update methods.
 18373  	//
 18374  	// Possible values:
 18375  	//   "VERSION_STATUS_UNSPECIFIED" - Not specified. This value is not used.
 18376  	//   "IN_PROGRESS" - Version is not ready to serve (e.g. training is in
 18377  	// progress).
 18378  	//   "READY" - Version is ready to serve.
 18379  	//   "FAILED" - Version training failed.
 18380  	Status string `json:"status,omitempty"`
 18381  	// VersionNumber: Output only. The sequential number of this version. This
 18382  	// field is read-only which means it cannot be set by create and update
 18383  	// methods.
 18384  	VersionNumber int64 `json:"versionNumber,omitempty"`
 18385  
 18386  	// ServerResponse contains the HTTP response code and headers from the server.
 18387  	googleapi.ServerResponse `json:"-"`
 18388  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 18389  	// unconditionally include in API requests. By default, fields with empty or
 18390  	// default values are omitted from API requests. See
 18391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18392  	// details.
 18393  	ForceSendFields []string `json:"-"`
 18394  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 18395  	// requests with the JSON null value. By default, fields with empty values are
 18396  	// omitted from API requests. See
 18397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18398  	NullFields []string `json:"-"`
 18399  }
 18400  
 18401  func (s *GoogleCloudDialogflowV2beta1Version) MarshalJSON() ([]byte, error) {
 18402  	type NoMethod GoogleCloudDialogflowV2beta1Version
 18403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18404  }
 18405  
 18406  // GoogleCloudDialogflowV2beta1VoiceSelectionParams: Description of which voice
 18407  // to use for speech synthesis.
 18408  type GoogleCloudDialogflowV2beta1VoiceSelectionParams struct {
 18409  	// Name: Optional. The name of the voice. If not set, the service will choose a
 18410  	// voice based on the other parameters such as language_code and ssml_gender.
 18411  	// For the list of available voices, please refer to Supported voices and
 18412  	// languages (https://cloud.google.com/text-to-speech/docs/voices).
 18413  	Name string `json:"name,omitempty"`
 18414  	// SsmlGender: Optional. The preferred gender of the voice. If not set, the
 18415  	// service will choose a voice based on the other parameters such as
 18416  	// language_code and name. Note that this is only a preference, not
 18417  	// requirement. If a voice of the appropriate gender is not available, the
 18418  	// synthesizer should substitute a voice with a different gender rather than
 18419  	// failing the request.
 18420  	//
 18421  	// Possible values:
 18422  	//   "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which means that
 18423  	// the client doesn't care which gender the selected voice will have.
 18424  	//   "SSML_VOICE_GENDER_MALE" - A male voice.
 18425  	//   "SSML_VOICE_GENDER_FEMALE" - A female voice.
 18426  	//   "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice.
 18427  	SsmlGender string `json:"ssmlGender,omitempty"`
 18428  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 18429  	// include in API requests. By default, fields with empty or default values are
 18430  	// omitted from API requests. See
 18431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18432  	// details.
 18433  	ForceSendFields []string `json:"-"`
 18434  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 18435  	// with the JSON null value. By default, fields with empty values are omitted
 18436  	// from API requests. See
 18437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18438  	NullFields []string `json:"-"`
 18439  }
 18440  
 18441  func (s *GoogleCloudDialogflowV2beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
 18442  	type NoMethod GoogleCloudDialogflowV2beta1VoiceSelectionParams
 18443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18444  }
 18445  
 18446  // GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a
 18447  // webhook call.
 18448  type GoogleCloudDialogflowV2beta1WebhookRequest struct {
 18449  	// AlternativeQueryResults: Alternative query results from KnowledgeService.
 18450  	AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
 18451  	// OriginalDetectIntentRequest: Optional. The contents of the original request
 18452  	// that was passed to `[Streaming]DetectIntent` call.
 18453  	OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
 18454  	// QueryResult: The result of the conversational query or event processing.
 18455  	// Contains the same value as `[Streaming]DetectIntentResponse.query_result`.
 18456  	QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
 18457  	// ResponseId: The unique identifier of the response. Contains the same value
 18458  	// as `[Streaming]DetectIntentResponse.response_id`.
 18459  	ResponseId string `json:"responseId,omitempty"`
 18460  	// Session: The unique identifier of detectIntent request session. Can be used
 18461  	// to identify end-user inside webhook implementation. Supported formats: -
 18462  	// `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 18463  	// `projects//agent/environments//users//sessions/`, -
 18464  	// `projects//locations//agent/environments//users//sessions/`,
 18465  	Session string `json:"session,omitempty"`
 18466  	// ForceSendFields is a list of field names (e.g. "AlternativeQueryResults") to
 18467  	// unconditionally include in API requests. By default, fields with empty or
 18468  	// default values are omitted from API requests. See
 18469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18470  	// details.
 18471  	ForceSendFields []string `json:"-"`
 18472  	// NullFields is a list of field names (e.g. "AlternativeQueryResults") to
 18473  	// include in API requests with the JSON null value. By default, fields with
 18474  	// empty values are omitted from API requests. See
 18475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18476  	NullFields []string `json:"-"`
 18477  }
 18478  
 18479  func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
 18480  	type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
 18481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18482  }
 18483  
 18484  // GoogleCloudDialogflowV2beta1WebhookResponse: The response message for a
 18485  // webhook call. This response is validated by the Dialogflow server. If
 18486  // validation fails, an error will be returned in the
 18487  // QueryResult.diagnostic_info field. Setting JSON fields to an empty value
 18488  // with the wrong type is a common error. To avoid this error: - Use "" for
 18489  // empty strings - Use `{}` or `null` for empty objects - Use `[]` or `null`
 18490  // for empty arrays For more information, see the Protocol Buffers Language
 18491  // Guide (https://developers.google.com/protocol-buffers/docs/proto3#json).
 18492  type GoogleCloudDialogflowV2beta1WebhookResponse struct {
 18493  	// EndInteraction: Optional. Indicates that this intent ends an interaction.
 18494  	// Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use
 18495  	// this information to close interaction with an end user. Default is false.
 18496  	EndInteraction bool `json:"endInteraction,omitempty"`
 18497  	// FollowupEventInput: Optional. Invokes the supplied events. When this field
 18498  	// is set, Dialogflow ignores the `fulfillment_text`, `fulfillment_messages`,
 18499  	// and `payload` fields.
 18500  	FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
 18501  	// FulfillmentMessages: Optional. The rich response messages intended for the
 18502  	// end-user. When provided, Dialogflow uses this field to populate
 18503  	// QueryResult.fulfillment_messages sent to the integration or API caller.
 18504  	FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
 18505  	// FulfillmentText: Optional. The text response message intended for the
 18506  	// end-user. It is recommended to use `fulfillment_messages.text.text[0]`
 18507  	// instead. When provided, Dialogflow uses this field to populate
 18508  	// QueryResult.fulfillment_text sent to the integration or API caller.
 18509  	FulfillmentText string `json:"fulfillmentText,omitempty"`
 18510  	// LiveAgentHandoff: Indicates that a live agent should be brought in to handle
 18511  	// the interaction with the user. In most cases, when you set this flag to
 18512  	// true, you would also want to set end_interaction to true as well. Default is
 18513  	// false.
 18514  	LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
 18515  	// OutputContexts: Optional. The collection of output contexts that will
 18516  	// overwrite currently active contexts for the session and reset their
 18517  	// lifespans. When provided, Dialogflow uses this field to populate
 18518  	// QueryResult.output_contexts sent to the integration or API caller.
 18519  	OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
 18520  	// Payload: Optional. This field can be used to pass custom data from your
 18521  	// webhook to the integration or API caller. Arbitrary JSON objects are
 18522  	// supported. When provided, Dialogflow uses this field to populate
 18523  	// QueryResult.webhook_payload sent to the integration or API caller. This
 18524  	// field is also used by the Google Assistant integration
 18525  	// (https://cloud.google.com/dialogflow/docs/integrations/aog) for rich
 18526  	// response messages. See the format definition at Google Assistant Dialogflow
 18527  	// webhook format
 18528  	// (https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
 18529  	Payload googleapi.RawMessage `json:"payload,omitempty"`
 18530  	// SessionEntityTypes: Optional. Additional session entity types to replace or
 18531  	// extend developer entity types with. The entity synonyms apply to all
 18532  	// languages and persist for the session. Setting this data from a webhook
 18533  	// overwrites the session entity types that have been set using `detectIntent`,
 18534  	// `streamingDetectIntent` or SessionEntityType management methods.
 18535  	SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
 18536  	// Source: Optional. A custom field used to identify the webhook source.
 18537  	// Arbitrary strings are supported. When provided, Dialogflow uses this field
 18538  	// to populate QueryResult.webhook_source sent to the integration or API
 18539  	// caller.
 18540  	Source string `json:"source,omitempty"`
 18541  	// ForceSendFields is a list of field names (e.g. "EndInteraction") to
 18542  	// unconditionally include in API requests. By default, fields with empty or
 18543  	// default values are omitted from API requests. See
 18544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18545  	// details.
 18546  	ForceSendFields []string `json:"-"`
 18547  	// NullFields is a list of field names (e.g. "EndInteraction") to include in
 18548  	// API requests with the JSON null value. By default, fields with empty values
 18549  	// are omitted from API requests. See
 18550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18551  	NullFields []string `json:"-"`
 18552  }
 18553  
 18554  func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
 18555  	type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
 18556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18557  }
 18558  
 18559  // GoogleCloudDialogflowV3alpha1ConversationSignals: This message is used to
 18560  // hold all the Conversation Signals data, which will be converted to JSON and
 18561  // exported to BigQuery.
 18562  type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
 18563  	// TurnSignals: Required. Turn signals for the current turn.
 18564  	TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
 18565  	// ForceSendFields is a list of field names (e.g. "TurnSignals") to
 18566  	// unconditionally include in API requests. By default, fields with empty or
 18567  	// default values are omitted from API requests. See
 18568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18569  	// details.
 18570  	ForceSendFields []string `json:"-"`
 18571  	// NullFields is a list of field names (e.g. "TurnSignals") to include in API
 18572  	// requests with the JSON null value. By default, fields with empty values are
 18573  	// omitted from API requests. See
 18574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18575  	NullFields []string `json:"-"`
 18576  }
 18577  
 18578  func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
 18579  	type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
 18580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18581  }
 18582  
 18583  // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: Metadata for
 18584  // CreateDocument operation.
 18585  type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
 18586  	// GenericMetadata: The generic information of the operation.
 18587  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18588  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18589  	// unconditionally include in API requests. By default, fields with empty or
 18590  	// default values are omitted from API requests. See
 18591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18592  	// details.
 18593  	ForceSendFields []string `json:"-"`
 18594  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18595  	// API requests with the JSON null value. By default, fields with empty values
 18596  	// are omitted from API requests. See
 18597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18598  	NullFields []string `json:"-"`
 18599  }
 18600  
 18601  func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18602  	type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
 18603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18604  }
 18605  
 18606  // GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata: Metadata for
 18607  // DeleteDocument operation.
 18608  type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
 18609  	// GenericMetadata: The generic information of the operation.
 18610  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18611  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18612  	// unconditionally include in API requests. By default, fields with empty or
 18613  	// default values are omitted from API requests. See
 18614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18615  	// details.
 18616  	ForceSendFields []string `json:"-"`
 18617  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18618  	// API requests with the JSON null value. By default, fields with empty values
 18619  	// are omitted from API requests. See
 18620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18621  	NullFields []string `json:"-"`
 18622  }
 18623  
 18624  func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18625  	type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
 18626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18627  }
 18628  
 18629  // GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata: Metadata in
 18630  // google::longrunning::Operation for Knowledge operations.
 18631  type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
 18632  	// State: Required. Output only. The current state of this operation.
 18633  	//
 18634  	// Possible values:
 18635  	//   "STATE_UNSPECIFIED" - State unspecified.
 18636  	//   "PENDING" - The operation has been created.
 18637  	//   "RUNNING" - The operation is currently running.
 18638  	//   "DONE" - The operation is done, either cancelled or completed.
 18639  	State string `json:"state,omitempty"`
 18640  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
 18641  	// include in API requests. By default, fields with empty or default values are
 18642  	// omitted from API requests. See
 18643  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18644  	// details.
 18645  	ForceSendFields []string `json:"-"`
 18646  	// NullFields is a list of field names (e.g. "State") to include in API
 18647  	// requests with the JSON null value. By default, fields with empty values are
 18648  	// omitted from API requests. See
 18649  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18650  	NullFields []string `json:"-"`
 18651  }
 18652  
 18653  func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
 18654  	type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
 18655  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18656  }
 18657  
 18658  // GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata: Metadata for
 18659  // ImportDocuments operation.
 18660  type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
 18661  	// GenericMetadata: The generic information of the operation.
 18662  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18663  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18664  	// unconditionally include in API requests. By default, fields with empty or
 18665  	// default values are omitted from API requests. See
 18666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18667  	// details.
 18668  	ForceSendFields []string `json:"-"`
 18669  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18670  	// API requests with the JSON null value. By default, fields with empty values
 18671  	// are omitted from API requests. See
 18672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18673  	NullFields []string `json:"-"`
 18674  }
 18675  
 18676  func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
 18677  	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
 18678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18679  }
 18680  
 18681  // GoogleCloudDialogflowV3alpha1ImportDocumentsResponse: Response message for
 18682  // Documents.ImportDocuments.
 18683  type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
 18684  	// Warnings: Includes details about skipped documents or any other warnings.
 18685  	Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
 18686  	// ForceSendFields is a list of field names (e.g. "Warnings") to
 18687  	// unconditionally include in API requests. By default, fields with empty or
 18688  	// default values are omitted from API requests. See
 18689  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18690  	// details.
 18691  	ForceSendFields []string `json:"-"`
 18692  	// NullFields is a list of field names (e.g. "Warnings") to include in API
 18693  	// requests with the JSON null value. By default, fields with empty values are
 18694  	// omitted from API requests. See
 18695  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18696  	NullFields []string `json:"-"`
 18697  }
 18698  
 18699  func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 18700  	type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
 18701  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18702  }
 18703  
 18704  // GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata: Metadata for
 18705  // ReloadDocument operation.
 18706  type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
 18707  	// GenericMetadata: The generic information of the operation.
 18708  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18709  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18710  	// unconditionally include in API requests. By default, fields with empty or
 18711  	// default values are omitted from API requests. See
 18712  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18713  	// details.
 18714  	ForceSendFields []string `json:"-"`
 18715  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18716  	// API requests with the JSON null value. By default, fields with empty values
 18717  	// are omitted from API requests. See
 18718  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18719  	NullFields []string `json:"-"`
 18720  }
 18721  
 18722  func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18723  	type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
 18724  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18725  }
 18726  
 18727  // GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals that
 18728  // were extracted for a single turn of the conversation.
 18729  type GoogleCloudDialogflowV3alpha1TurnSignals struct {
 18730  	// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.
 18731  	AgentEscalated bool `json:"agentEscalated,omitempty"`
 18732  	// DtmfUsed: Whether user was using DTMF input.
 18733  	DtmfUsed bool `json:"dtmfUsed,omitempty"`
 18734  	// FailureReasons: Failure reasons of the turn.
 18735  	//
 18736  	// Possible values:
 18737  	//   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.
 18738  	//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.
 18739  	//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.
 18740  	FailureReasons []string `json:"failureReasons,omitempty"`
 18741  	// NoMatch: Whether NLU predicted NO_MATCH.
 18742  	NoMatch bool `json:"noMatch,omitempty"`
 18743  	// NoUserInput: Whether user provided no input.
 18744  	NoUserInput bool `json:"noUserInput,omitempty"`
 18745  	// ReachedEndPage: Whether turn resulted in End Session page.
 18746  	ReachedEndPage bool `json:"reachedEndPage,omitempty"`
 18747  	// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment
 18748  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 18749  	SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
 18750  	// SentimentScore: Sentiment score of the user utterance if sentiment
 18751  	// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.
 18752  	SentimentScore float64 `json:"sentimentScore,omitempty"`
 18753  	// TriggeredAbandonmentEvent: Whether agent has triggered the event
 18754  	// corresponding to user abandoning the conversation.
 18755  	TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
 18756  	// UserEscalated: Whether user was specifically asking for a live agent.
 18757  	UserEscalated bool `json:"userEscalated,omitempty"`
 18758  	// WebhookStatuses: Human-readable statuses of the webhooks triggered during
 18759  	// this turn.
 18760  	WebhookStatuses []string `json:"webhookStatuses,omitempty"`
 18761  	// ForceSendFields is a list of field names (e.g. "AgentEscalated") to
 18762  	// unconditionally include in API requests. By default, fields with empty or
 18763  	// default values are omitted from API requests. See
 18764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18765  	// details.
 18766  	ForceSendFields []string `json:"-"`
 18767  	// NullFields is a list of field names (e.g. "AgentEscalated") to include in
 18768  	// API requests with the JSON null value. By default, fields with empty values
 18769  	// are omitted from API requests. See
 18770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18771  	NullFields []string `json:"-"`
 18772  }
 18773  
 18774  func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
 18775  	type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
 18776  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18777  }
 18778  
 18779  func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
 18780  	type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
 18781  	var s1 struct {
 18782  		SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
 18783  		SentimentScore     gensupport.JSONFloat64 `json:"sentimentScore"`
 18784  		*NoMethod
 18785  	}
 18786  	s1.NoMethod = (*NoMethod)(s)
 18787  	if err := json.Unmarshal(data, &s1); err != nil {
 18788  		return err
 18789  	}
 18790  	s.SentimentMagnitude = float64(s1.SentimentMagnitude)
 18791  	s.SentimentScore = float64(s1.SentimentScore)
 18792  	return nil
 18793  }
 18794  
 18795  // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: Metadata for
 18796  // UpdateDocument operation.
 18797  type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
 18798  	// GenericMetadata: The generic information of the operation.
 18799  	GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
 18800  	// ForceSendFields is a list of field names (e.g. "GenericMetadata") to
 18801  	// unconditionally include in API requests. By default, fields with empty or
 18802  	// default values are omitted from API requests. See
 18803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18804  	// details.
 18805  	ForceSendFields []string `json:"-"`
 18806  	// NullFields is a list of field names (e.g. "GenericMetadata") to include in
 18807  	// API requests with the JSON null value. By default, fields with empty values
 18808  	// are omitted from API requests. See
 18809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18810  	NullFields []string `json:"-"`
 18811  }
 18812  
 18813  func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
 18814  	type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
 18815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18816  }
 18817  
 18818  // GoogleCloudLocationListLocationsResponse: The response message for
 18819  // Locations.ListLocations.
 18820  type GoogleCloudLocationListLocationsResponse struct {
 18821  	// Locations: A list of locations that matches the specified filter in the
 18822  	// request.
 18823  	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
 18824  	// NextPageToken: The standard List next-page token.
 18825  	NextPageToken string `json:"nextPageToken,omitempty"`
 18826  
 18827  	// ServerResponse contains the HTTP response code and headers from the server.
 18828  	googleapi.ServerResponse `json:"-"`
 18829  	// ForceSendFields is a list of field names (e.g. "Locations") to
 18830  	// unconditionally include in API requests. By default, fields with empty or
 18831  	// default values are omitted from API requests. See
 18832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18833  	// details.
 18834  	ForceSendFields []string `json:"-"`
 18835  	// NullFields is a list of field names (e.g. "Locations") to include in API
 18836  	// requests with the JSON null value. By default, fields with empty values are
 18837  	// omitted from API requests. See
 18838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18839  	NullFields []string `json:"-"`
 18840  }
 18841  
 18842  func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
 18843  	type NoMethod GoogleCloudLocationListLocationsResponse
 18844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18845  }
 18846  
 18847  // GoogleCloudLocationLocation: A resource that represents a Google Cloud
 18848  // location.
 18849  type GoogleCloudLocationLocation struct {
 18850  	// DisplayName: The friendly name for this location, typically a nearby city
 18851  	// name. For example, "Tokyo".
 18852  	DisplayName string `json:"displayName,omitempty"`
 18853  	// Labels: Cross-service attributes for the location. For example
 18854  	// {"cloud.googleapis.com/region": "us-east1"}
 18855  	Labels map[string]string `json:"labels,omitempty"`
 18856  	// LocationId: The canonical id for this location. For example: "us-east1".
 18857  	LocationId string `json:"locationId,omitempty"`
 18858  	// Metadata: Service-specific metadata. For example the available capacity at
 18859  	// the given location.
 18860  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 18861  	// Name: Resource name for the location, which may vary between
 18862  	// implementations. For example:
 18863  	// "projects/example-project/locations/us-east1"
 18864  	Name string `json:"name,omitempty"`
 18865  
 18866  	// ServerResponse contains the HTTP response code and headers from the server.
 18867  	googleapi.ServerResponse `json:"-"`
 18868  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 18869  	// unconditionally include in API requests. By default, fields with empty or
 18870  	// default values are omitted from API requests. See
 18871  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18872  	// details.
 18873  	ForceSendFields []string `json:"-"`
 18874  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 18875  	// requests with the JSON null value. By default, fields with empty values are
 18876  	// omitted from API requests. See
 18877  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18878  	NullFields []string `json:"-"`
 18879  }
 18880  
 18881  func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
 18882  	type NoMethod GoogleCloudLocationLocation
 18883  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18884  }
 18885  
 18886  // GoogleLongrunningListOperationsResponse: The response message for
 18887  // Operations.ListOperations.
 18888  type GoogleLongrunningListOperationsResponse struct {
 18889  	// NextPageToken: The standard List next-page token.
 18890  	NextPageToken string `json:"nextPageToken,omitempty"`
 18891  	// Operations: A list of operations that matches the specified filter in the
 18892  	// request.
 18893  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 18894  
 18895  	// ServerResponse contains the HTTP response code and headers from the server.
 18896  	googleapi.ServerResponse `json:"-"`
 18897  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 18898  	// unconditionally include in API requests. By default, fields with empty or
 18899  	// default values are omitted from API requests. See
 18900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18901  	// details.
 18902  	ForceSendFields []string `json:"-"`
 18903  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 18904  	// requests with the JSON null value. By default, fields with empty values are
 18905  	// omitted from API requests. See
 18906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18907  	NullFields []string `json:"-"`
 18908  }
 18909  
 18910  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 18911  	type NoMethod GoogleLongrunningListOperationsResponse
 18912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18913  }
 18914  
 18915  // GoogleLongrunningOperation: This resource represents a long-running
 18916  // operation that is the result of a network API call.
 18917  type GoogleLongrunningOperation struct {
 18918  	// Done: If the value is `false`, it means the operation is still in progress.
 18919  	// If `true`, the operation is completed, and either `error` or `response` is
 18920  	// available.
 18921  	Done bool `json:"done,omitempty"`
 18922  	// Error: The error result of the operation in case of failure or cancellation.
 18923  	Error *GoogleRpcStatus `json:"error,omitempty"`
 18924  	// Metadata: Service-specific metadata associated with the operation. It
 18925  	// typically contains progress information and common metadata such as create
 18926  	// time. Some services might not provide such metadata. Any method that returns
 18927  	// a long-running operation should document the metadata type, if any.
 18928  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 18929  	// Name: The server-assigned name, which is only unique within the same service
 18930  	// that originally returns it. If you use the default HTTP mapping, the `name`
 18931  	// should be a resource name ending with `operations/{unique_id}`.
 18932  	Name string `json:"name,omitempty"`
 18933  	// Response: The normal, successful response of the operation. If the original
 18934  	// method returns no data on success, such as `Delete`, the response is
 18935  	// `google.protobuf.Empty`. If the original method is standard
 18936  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 18937  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 18938  	// original method name. For example, if the original method name is
 18939  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 18940  	Response googleapi.RawMessage `json:"response,omitempty"`
 18941  
 18942  	// ServerResponse contains the HTTP response code and headers from the server.
 18943  	googleapi.ServerResponse `json:"-"`
 18944  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 18945  	// include in API requests. By default, fields with empty or default values are
 18946  	// omitted from API requests. See
 18947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18948  	// details.
 18949  	ForceSendFields []string `json:"-"`
 18950  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 18951  	// with the JSON null value. By default, fields with empty values are omitted
 18952  	// from API requests. See
 18953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18954  	NullFields []string `json:"-"`
 18955  }
 18956  
 18957  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 18958  	type NoMethod GoogleLongrunningOperation
 18959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 18960  }
 18961  
 18962  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 18963  // defining duplicated empty messages in your APIs. A typical example is to use
 18964  // it as the request or the response type of an API method. For instance:
 18965  // service Foo { rpc Bar(google.protobuf.Empty) returns
 18966  // (google.protobuf.Empty); }
 18967  type GoogleProtobufEmpty struct {
 18968  	// ServerResponse contains the HTTP response code and headers from the server.
 18969  	googleapi.ServerResponse `json:"-"`
 18970  }
 18971  
 18972  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 18973  // suitable for different programming environments, including REST APIs and RPC
 18974  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 18975  // contains three pieces of data: error code, error message, and error details.
 18976  // You can find out more about this error model and how to work with it in the
 18977  // API Design Guide (https://cloud.google.com/apis/design/errors).
 18978  type GoogleRpcStatus struct {
 18979  	// Code: The status code, which should be an enum value of google.rpc.Code.
 18980  	Code int64 `json:"code,omitempty"`
 18981  	// Details: A list of messages that carry the error details. There is a common
 18982  	// set of message types for APIs to use.
 18983  	Details []googleapi.RawMessage `json:"details,omitempty"`
 18984  	// Message: A developer-facing error message, which should be in English. Any
 18985  	// user-facing error message should be localized and sent in the
 18986  	// google.rpc.Status.details field, or localized by the client.
 18987  	Message string `json:"message,omitempty"`
 18988  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 18989  	// include in API requests. By default, fields with empty or default values are
 18990  	// omitted from API requests. See
 18991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 18992  	// details.
 18993  	ForceSendFields []string `json:"-"`
 18994  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 18995  	// with the JSON null value. By default, fields with empty values are omitted
 18996  	// from API requests. See
 18997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 18998  	NullFields []string `json:"-"`
 18999  }
 19000  
 19001  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 19002  	type NoMethod GoogleRpcStatus
 19003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 19004  }
 19005  
 19006  // GoogleTypeLatLng: An object that represents a latitude/longitude pair. This
 19007  // is expressed as a pair of doubles to represent degrees latitude and degrees
 19008  // longitude. Unless specified otherwise, this object must conform to the WGS84
 19009  // standard. Values must be within normalized ranges.
 19010  type GoogleTypeLatLng struct {
 19011  	// Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0].
 19012  	Latitude float64 `json:"latitude,omitempty"`
 19013  	// Longitude: The longitude in degrees. It must be in the range [-180.0,
 19014  	// +180.0].
 19015  	Longitude float64 `json:"longitude,omitempty"`
 19016  	// ForceSendFields is a list of field names (e.g. "Latitude") to
 19017  	// unconditionally include in API requests. By default, fields with empty or
 19018  	// default values are omitted from API requests. See
 19019  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 19020  	// details.
 19021  	ForceSendFields []string `json:"-"`
 19022  	// NullFields is a list of field names (e.g. "Latitude") to include in API
 19023  	// requests with the JSON null value. By default, fields with empty values are
 19024  	// omitted from API requests. See
 19025  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 19026  	NullFields []string `json:"-"`
 19027  }
 19028  
 19029  func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
 19030  	type NoMethod GoogleTypeLatLng
 19031  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 19032  }
 19033  
 19034  func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
 19035  	type NoMethod GoogleTypeLatLng
 19036  	var s1 struct {
 19037  		Latitude  gensupport.JSONFloat64 `json:"latitude"`
 19038  		Longitude gensupport.JSONFloat64 `json:"longitude"`
 19039  		*NoMethod
 19040  	}
 19041  	s1.NoMethod = (*NoMethod)(s)
 19042  	if err := json.Unmarshal(data, &s1); err != nil {
 19043  		return err
 19044  	}
 19045  	s.Latitude = float64(s1.Latitude)
 19046  	s.Longitude = float64(s1.Longitude)
 19047  	return nil
 19048  }
 19049  
 19050  type ProjectsDeleteAgentCall struct {
 19051  	s          *Service
 19052  	parent     string
 19053  	urlParams_ gensupport.URLParams
 19054  	ctx_       context.Context
 19055  	header_    http.Header
 19056  }
 19057  
 19058  // DeleteAgent: Deletes the specified agent.
 19059  //
 19060  //   - parent: The project that the agent to delete is associated with. Format:
 19061  //     `projects/` or `projects//locations/`.
 19062  func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall {
 19063  	c := &ProjectsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19064  	c.parent = parent
 19065  	return c
 19066  }
 19067  
 19068  // Fields allows partial responses to be retrieved. See
 19069  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19070  // details.
 19071  func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall {
 19072  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19073  	return c
 19074  }
 19075  
 19076  // Context sets the context to be used in this call's Do method.
 19077  func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall {
 19078  	c.ctx_ = ctx
 19079  	return c
 19080  }
 19081  
 19082  // Header returns a http.Header that can be modified by the caller to add
 19083  // headers to the request.
 19084  func (c *ProjectsDeleteAgentCall) Header() http.Header {
 19085  	if c.header_ == nil {
 19086  		c.header_ = make(http.Header)
 19087  	}
 19088  	return c.header_
 19089  }
 19090  
 19091  func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
 19092  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19093  	var body io.Reader = nil
 19094  	c.urlParams_.Set("alt", alt)
 19095  	c.urlParams_.Set("prettyPrint", "false")
 19096  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
 19097  	urls += "?" + c.urlParams_.Encode()
 19098  	req, err := http.NewRequest("DELETE", urls, body)
 19099  	if err != nil {
 19100  		return nil, err
 19101  	}
 19102  	req.Header = reqHeaders
 19103  	googleapi.Expand(req.URL, map[string]string{
 19104  		"parent": c.parent,
 19105  	})
 19106  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19107  }
 19108  
 19109  // Do executes the "dialogflow.projects.deleteAgent" call.
 19110  // Any non-2xx status code is an error. Response headers are in either
 19111  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19112  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19113  // check whether the returned error was because http.StatusNotModified was
 19114  // returned.
 19115  func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19116  	gensupport.SetOptions(c.urlParams_, opts...)
 19117  	res, err := c.doRequest("json")
 19118  	if res != nil && res.StatusCode == http.StatusNotModified {
 19119  		if res.Body != nil {
 19120  			res.Body.Close()
 19121  		}
 19122  		return nil, gensupport.WrapError(&googleapi.Error{
 19123  			Code:   res.StatusCode,
 19124  			Header: res.Header,
 19125  		})
 19126  	}
 19127  	if err != nil {
 19128  		return nil, err
 19129  	}
 19130  	defer googleapi.CloseBody(res)
 19131  	if err := googleapi.CheckResponse(res); err != nil {
 19132  		return nil, gensupport.WrapError(err)
 19133  	}
 19134  	ret := &GoogleProtobufEmpty{
 19135  		ServerResponse: googleapi.ServerResponse{
 19136  			Header:         res.Header,
 19137  			HTTPStatusCode: res.StatusCode,
 19138  		},
 19139  	}
 19140  	target := &ret
 19141  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19142  		return nil, err
 19143  	}
 19144  	return ret, nil
 19145  }
 19146  
 19147  type ProjectsGetAgentCall struct {
 19148  	s            *Service
 19149  	parent       string
 19150  	urlParams_   gensupport.URLParams
 19151  	ifNoneMatch_ string
 19152  	ctx_         context.Context
 19153  	header_      http.Header
 19154  }
 19155  
 19156  // GetAgent: Retrieves the specified agent.
 19157  //
 19158  //   - parent: The project that the agent to fetch is associated with. Format:
 19159  //     `projects/` or `projects//locations/`.
 19160  func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall {
 19161  	c := &ProjectsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19162  	c.parent = parent
 19163  	return c
 19164  }
 19165  
 19166  // Fields allows partial responses to be retrieved. See
 19167  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19168  // details.
 19169  func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall {
 19170  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19171  	return c
 19172  }
 19173  
 19174  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19175  // object's ETag matches the given value. This is useful for getting updates
 19176  // only after the object has changed since the last request.
 19177  func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall {
 19178  	c.ifNoneMatch_ = entityTag
 19179  	return c
 19180  }
 19181  
 19182  // Context sets the context to be used in this call's Do method.
 19183  func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall {
 19184  	c.ctx_ = ctx
 19185  	return c
 19186  }
 19187  
 19188  // Header returns a http.Header that can be modified by the caller to add
 19189  // headers to the request.
 19190  func (c *ProjectsGetAgentCall) Header() http.Header {
 19191  	if c.header_ == nil {
 19192  		c.header_ = make(http.Header)
 19193  	}
 19194  	return c.header_
 19195  }
 19196  
 19197  func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) {
 19198  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19199  	if c.ifNoneMatch_ != "" {
 19200  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19201  	}
 19202  	var body io.Reader = nil
 19203  	c.urlParams_.Set("alt", alt)
 19204  	c.urlParams_.Set("prettyPrint", "false")
 19205  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
 19206  	urls += "?" + c.urlParams_.Encode()
 19207  	req, err := http.NewRequest("GET", urls, body)
 19208  	if err != nil {
 19209  		return nil, err
 19210  	}
 19211  	req.Header = reqHeaders
 19212  	googleapi.Expand(req.URL, map[string]string{
 19213  		"parent": c.parent,
 19214  	})
 19215  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19216  }
 19217  
 19218  // Do executes the "dialogflow.projects.getAgent" call.
 19219  // Any non-2xx status code is an error. Response headers are in either
 19220  // *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a response
 19221  // was returned at all) in error.(*googleapi.Error).Header. Use
 19222  // googleapi.IsNotModified to check whether the returned error was because
 19223  // http.StatusNotModified was returned.
 19224  func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
 19225  	gensupport.SetOptions(c.urlParams_, opts...)
 19226  	res, err := c.doRequest("json")
 19227  	if res != nil && res.StatusCode == http.StatusNotModified {
 19228  		if res.Body != nil {
 19229  			res.Body.Close()
 19230  		}
 19231  		return nil, gensupport.WrapError(&googleapi.Error{
 19232  			Code:   res.StatusCode,
 19233  			Header: res.Header,
 19234  		})
 19235  	}
 19236  	if err != nil {
 19237  		return nil, err
 19238  	}
 19239  	defer googleapi.CloseBody(res)
 19240  	if err := googleapi.CheckResponse(res); err != nil {
 19241  		return nil, gensupport.WrapError(err)
 19242  	}
 19243  	ret := &GoogleCloudDialogflowV2beta1Agent{
 19244  		ServerResponse: googleapi.ServerResponse{
 19245  			Header:         res.Header,
 19246  			HTTPStatusCode: res.StatusCode,
 19247  		},
 19248  	}
 19249  	target := &ret
 19250  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19251  		return nil, err
 19252  	}
 19253  	return ret, nil
 19254  }
 19255  
 19256  type ProjectsSetAgentCall struct {
 19257  	s                                 *Service
 19258  	parent                            string
 19259  	googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
 19260  	urlParams_                        gensupport.URLParams
 19261  	ctx_                              context.Context
 19262  	header_                           http.Header
 19263  }
 19264  
 19265  // SetAgent: Creates/updates the specified agent. Note: You should always train
 19266  // an agent prior to sending it queries. See the training documentation
 19267  // (https://cloud.google.com/dialogflow/es/docs/training).
 19268  //
 19269  //   - parent: The project of this agent. Format: `projects/` or
 19270  //     `projects//locations/`.
 19271  func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsSetAgentCall {
 19272  	c := &ProjectsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19273  	c.parent = parent
 19274  	c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
 19275  	return c
 19276  }
 19277  
 19278  // UpdateMask sets the optional parameter "updateMask": The mask to control
 19279  // which fields get updated.
 19280  func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall {
 19281  	c.urlParams_.Set("updateMask", updateMask)
 19282  	return c
 19283  }
 19284  
 19285  // Fields allows partial responses to be retrieved. See
 19286  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19287  // details.
 19288  func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall {
 19289  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19290  	return c
 19291  }
 19292  
 19293  // Context sets the context to be used in this call's Do method.
 19294  func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall {
 19295  	c.ctx_ = ctx
 19296  	return c
 19297  }
 19298  
 19299  // Header returns a http.Header that can be modified by the caller to add
 19300  // headers to the request.
 19301  func (c *ProjectsSetAgentCall) Header() http.Header {
 19302  	if c.header_ == nil {
 19303  		c.header_ = make(http.Header)
 19304  	}
 19305  	return c.header_
 19306  }
 19307  
 19308  func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) {
 19309  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19310  	var body io.Reader = nil
 19311  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
 19312  	if err != nil {
 19313  		return nil, err
 19314  	}
 19315  	c.urlParams_.Set("alt", alt)
 19316  	c.urlParams_.Set("prettyPrint", "false")
 19317  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
 19318  	urls += "?" + c.urlParams_.Encode()
 19319  	req, err := http.NewRequest("POST", urls, body)
 19320  	if err != nil {
 19321  		return nil, err
 19322  	}
 19323  	req.Header = reqHeaders
 19324  	googleapi.Expand(req.URL, map[string]string{
 19325  		"parent": c.parent,
 19326  	})
 19327  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19328  }
 19329  
 19330  // Do executes the "dialogflow.projects.setAgent" call.
 19331  // Any non-2xx status code is an error. Response headers are in either
 19332  // *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a response
 19333  // was returned at all) in error.(*googleapi.Error).Header. Use
 19334  // googleapi.IsNotModified to check whether the returned error was because
 19335  // http.StatusNotModified was returned.
 19336  func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
 19337  	gensupport.SetOptions(c.urlParams_, opts...)
 19338  	res, err := c.doRequest("json")
 19339  	if res != nil && res.StatusCode == http.StatusNotModified {
 19340  		if res.Body != nil {
 19341  			res.Body.Close()
 19342  		}
 19343  		return nil, gensupport.WrapError(&googleapi.Error{
 19344  			Code:   res.StatusCode,
 19345  			Header: res.Header,
 19346  		})
 19347  	}
 19348  	if err != nil {
 19349  		return nil, err
 19350  	}
 19351  	defer googleapi.CloseBody(res)
 19352  	if err := googleapi.CheckResponse(res); err != nil {
 19353  		return nil, gensupport.WrapError(err)
 19354  	}
 19355  	ret := &GoogleCloudDialogflowV2beta1Agent{
 19356  		ServerResponse: googleapi.ServerResponse{
 19357  			Header:         res.Header,
 19358  			HTTPStatusCode: res.StatusCode,
 19359  		},
 19360  	}
 19361  	target := &ret
 19362  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19363  		return nil, err
 19364  	}
 19365  	return ret, nil
 19366  }
 19367  
 19368  type ProjectsAgentExportCall struct {
 19369  	s                                              *Service
 19370  	parent                                         string
 19371  	googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
 19372  	urlParams_                                     gensupport.URLParams
 19373  	ctx_                                           context.Context
 19374  	header_                                        http.Header
 19375  }
 19376  
 19377  // Export: Exports the specified agent to a ZIP file. This method is a
 19378  // long-running operation
 19379  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19380  // The returned `Operation` type has the following method-specific fields: -
 19381  // `metadata`: An empty Struct message
 19382  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19383  // - `response`: ExportAgentResponse
 19384  //
 19385  //   - parent: The project that the agent to export is associated with. Format:
 19386  //     `projects/` or `projects//locations/`.
 19387  func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsAgentExportCall {
 19388  	c := &ProjectsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19389  	c.parent = parent
 19390  	c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
 19391  	return c
 19392  }
 19393  
 19394  // Fields allows partial responses to be retrieved. See
 19395  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19396  // details.
 19397  func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall {
 19398  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19399  	return c
 19400  }
 19401  
 19402  // Context sets the context to be used in this call's Do method.
 19403  func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall {
 19404  	c.ctx_ = ctx
 19405  	return c
 19406  }
 19407  
 19408  // Header returns a http.Header that can be modified by the caller to add
 19409  // headers to the request.
 19410  func (c *ProjectsAgentExportCall) Header() http.Header {
 19411  	if c.header_ == nil {
 19412  		c.header_ = make(http.Header)
 19413  	}
 19414  	return c.header_
 19415  }
 19416  
 19417  func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) {
 19418  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19419  	var body io.Reader = nil
 19420  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
 19421  	if err != nil {
 19422  		return nil, err
 19423  	}
 19424  	c.urlParams_.Set("alt", alt)
 19425  	c.urlParams_.Set("prettyPrint", "false")
 19426  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
 19427  	urls += "?" + c.urlParams_.Encode()
 19428  	req, err := http.NewRequest("POST", urls, body)
 19429  	if err != nil {
 19430  		return nil, err
 19431  	}
 19432  	req.Header = reqHeaders
 19433  	googleapi.Expand(req.URL, map[string]string{
 19434  		"parent": c.parent,
 19435  	})
 19436  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19437  }
 19438  
 19439  // Do executes the "dialogflow.projects.agent.export" call.
 19440  // Any non-2xx status code is an error. Response headers are in either
 19441  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19442  // returned at all) in error.(*googleapi.Error).Header. Use
 19443  // googleapi.IsNotModified to check whether the returned error was because
 19444  // http.StatusNotModified was returned.
 19445  func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19446  	gensupport.SetOptions(c.urlParams_, opts...)
 19447  	res, err := c.doRequest("json")
 19448  	if res != nil && res.StatusCode == http.StatusNotModified {
 19449  		if res.Body != nil {
 19450  			res.Body.Close()
 19451  		}
 19452  		return nil, gensupport.WrapError(&googleapi.Error{
 19453  			Code:   res.StatusCode,
 19454  			Header: res.Header,
 19455  		})
 19456  	}
 19457  	if err != nil {
 19458  		return nil, err
 19459  	}
 19460  	defer googleapi.CloseBody(res)
 19461  	if err := googleapi.CheckResponse(res); err != nil {
 19462  		return nil, gensupport.WrapError(err)
 19463  	}
 19464  	ret := &GoogleLongrunningOperation{
 19465  		ServerResponse: googleapi.ServerResponse{
 19466  			Header:         res.Header,
 19467  			HTTPStatusCode: res.StatusCode,
 19468  		},
 19469  	}
 19470  	target := &ret
 19471  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19472  		return nil, err
 19473  	}
 19474  	return ret, nil
 19475  }
 19476  
 19477  type ProjectsAgentGetFulfillmentCall struct {
 19478  	s            *Service
 19479  	name         string
 19480  	urlParams_   gensupport.URLParams
 19481  	ifNoneMatch_ string
 19482  	ctx_         context.Context
 19483  	header_      http.Header
 19484  }
 19485  
 19486  // GetFulfillment: Retrieves the fulfillment.
 19487  //
 19488  //   - name: The name of the fulfillment. Supported formats: -
 19489  //     `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`.
 19490  func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall {
 19491  	c := &ProjectsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19492  	c.name = name
 19493  	return c
 19494  }
 19495  
 19496  // Fields allows partial responses to be retrieved. See
 19497  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19498  // details.
 19499  func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall {
 19500  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19501  	return c
 19502  }
 19503  
 19504  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19505  // object's ETag matches the given value. This is useful for getting updates
 19506  // only after the object has changed since the last request.
 19507  func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall {
 19508  	c.ifNoneMatch_ = entityTag
 19509  	return c
 19510  }
 19511  
 19512  // Context sets the context to be used in this call's Do method.
 19513  func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall {
 19514  	c.ctx_ = ctx
 19515  	return c
 19516  }
 19517  
 19518  // Header returns a http.Header that can be modified by the caller to add
 19519  // headers to the request.
 19520  func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header {
 19521  	if c.header_ == nil {
 19522  		c.header_ = make(http.Header)
 19523  	}
 19524  	return c.header_
 19525  }
 19526  
 19527  func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 19528  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19529  	if c.ifNoneMatch_ != "" {
 19530  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19531  	}
 19532  	var body io.Reader = nil
 19533  	c.urlParams_.Set("alt", alt)
 19534  	c.urlParams_.Set("prettyPrint", "false")
 19535  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 19536  	urls += "?" + c.urlParams_.Encode()
 19537  	req, err := http.NewRequest("GET", urls, body)
 19538  	if err != nil {
 19539  		return nil, err
 19540  	}
 19541  	req.Header = reqHeaders
 19542  	googleapi.Expand(req.URL, map[string]string{
 19543  		"name": c.name,
 19544  	})
 19545  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19546  }
 19547  
 19548  // Do executes the "dialogflow.projects.agent.getFulfillment" call.
 19549  // Any non-2xx status code is an error. Response headers are in either
 19550  // *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if a
 19551  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19552  // googleapi.IsNotModified to check whether the returned error was because
 19553  // http.StatusNotModified was returned.
 19554  func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
 19555  	gensupport.SetOptions(c.urlParams_, opts...)
 19556  	res, err := c.doRequest("json")
 19557  	if res != nil && res.StatusCode == http.StatusNotModified {
 19558  		if res.Body != nil {
 19559  			res.Body.Close()
 19560  		}
 19561  		return nil, gensupport.WrapError(&googleapi.Error{
 19562  			Code:   res.StatusCode,
 19563  			Header: res.Header,
 19564  		})
 19565  	}
 19566  	if err != nil {
 19567  		return nil, err
 19568  	}
 19569  	defer googleapi.CloseBody(res)
 19570  	if err := googleapi.CheckResponse(res); err != nil {
 19571  		return nil, gensupport.WrapError(err)
 19572  	}
 19573  	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
 19574  		ServerResponse: googleapi.ServerResponse{
 19575  			Header:         res.Header,
 19576  			HTTPStatusCode: res.StatusCode,
 19577  		},
 19578  	}
 19579  	target := &ret
 19580  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19581  		return nil, err
 19582  	}
 19583  	return ret, nil
 19584  }
 19585  
 19586  type ProjectsAgentGetValidationResultCall struct {
 19587  	s            *Service
 19588  	parent       string
 19589  	urlParams_   gensupport.URLParams
 19590  	ifNoneMatch_ string
 19591  	ctx_         context.Context
 19592  	header_      http.Header
 19593  }
 19594  
 19595  // GetValidationResult: Gets agent validation result. Agent validation is
 19596  // performed during training time and is updated automatically when training is
 19597  // completed.
 19598  //
 19599  //   - parent: The project that the agent is associated with. Format: `projects/`
 19600  //     or `projects//locations/`.
 19601  func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall {
 19602  	c := &ProjectsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19603  	c.parent = parent
 19604  	return c
 19605  }
 19606  
 19607  // LanguageCode sets the optional parameter "languageCode": The language for
 19608  // which you want a validation result. If not specified, the agent's default
 19609  // language is used. Many languages
 19610  // (https://cloud.google.com/dialogflow/docs/reference/language) are supported.
 19611  // Note: languages must be enabled in the agent before they can be used.
 19612  func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall {
 19613  	c.urlParams_.Set("languageCode", languageCode)
 19614  	return c
 19615  }
 19616  
 19617  // Fields allows partial responses to be retrieved. See
 19618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19619  // details.
 19620  func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall {
 19621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19622  	return c
 19623  }
 19624  
 19625  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19626  // object's ETag matches the given value. This is useful for getting updates
 19627  // only after the object has changed since the last request.
 19628  func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall {
 19629  	c.ifNoneMatch_ = entityTag
 19630  	return c
 19631  }
 19632  
 19633  // Context sets the context to be used in this call's Do method.
 19634  func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall {
 19635  	c.ctx_ = ctx
 19636  	return c
 19637  }
 19638  
 19639  // Header returns a http.Header that can be modified by the caller to add
 19640  // headers to the request.
 19641  func (c *ProjectsAgentGetValidationResultCall) Header() http.Header {
 19642  	if c.header_ == nil {
 19643  		c.header_ = make(http.Header)
 19644  	}
 19645  	return c.header_
 19646  }
 19647  
 19648  func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
 19649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19650  	if c.ifNoneMatch_ != "" {
 19651  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19652  	}
 19653  	var body io.Reader = nil
 19654  	c.urlParams_.Set("alt", alt)
 19655  	c.urlParams_.Set("prettyPrint", "false")
 19656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
 19657  	urls += "?" + c.urlParams_.Encode()
 19658  	req, err := http.NewRequest("GET", urls, body)
 19659  	if err != nil {
 19660  		return nil, err
 19661  	}
 19662  	req.Header = reqHeaders
 19663  	googleapi.Expand(req.URL, map[string]string{
 19664  		"parent": c.parent,
 19665  	})
 19666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19667  }
 19668  
 19669  // Do executes the "dialogflow.projects.agent.getValidationResult" call.
 19670  // Any non-2xx status code is an error. Response headers are in either
 19671  // *GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header or (if a
 19672  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19673  // googleapi.IsNotModified to check whether the returned error was because
 19674  // http.StatusNotModified was returned.
 19675  func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
 19676  	gensupport.SetOptions(c.urlParams_, opts...)
 19677  	res, err := c.doRequest("json")
 19678  	if res != nil && res.StatusCode == http.StatusNotModified {
 19679  		if res.Body != nil {
 19680  			res.Body.Close()
 19681  		}
 19682  		return nil, gensupport.WrapError(&googleapi.Error{
 19683  			Code:   res.StatusCode,
 19684  			Header: res.Header,
 19685  		})
 19686  	}
 19687  	if err != nil {
 19688  		return nil, err
 19689  	}
 19690  	defer googleapi.CloseBody(res)
 19691  	if err := googleapi.CheckResponse(res); err != nil {
 19692  		return nil, gensupport.WrapError(err)
 19693  	}
 19694  	ret := &GoogleCloudDialogflowV2beta1ValidationResult{
 19695  		ServerResponse: googleapi.ServerResponse{
 19696  			Header:         res.Header,
 19697  			HTTPStatusCode: res.StatusCode,
 19698  		},
 19699  	}
 19700  	target := &ret
 19701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19702  		return nil, err
 19703  	}
 19704  	return ret, nil
 19705  }
 19706  
 19707  type ProjectsAgentImportCall struct {
 19708  	s                                              *Service
 19709  	parent                                         string
 19710  	googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
 19711  	urlParams_                                     gensupport.URLParams
 19712  	ctx_                                           context.Context
 19713  	header_                                        http.Header
 19714  }
 19715  
 19716  // Import: Imports the specified agent from a ZIP file. Uploads new intents and
 19717  // entity types without deleting the existing ones. Intents and entity types
 19718  // with the same name are replaced with the new versions from
 19719  // ImportAgentRequest. After the import, the imported draft agent will be
 19720  // trained automatically (unless disabled in agent settings). However, once the
 19721  // import is done, training may not be completed yet. Please call TrainAgent
 19722  // and wait for the operation it returns in order to train explicitly. This
 19723  // method is a long-running operation
 19724  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19725  // The returned `Operation` type has the following method-specific fields: -
 19726  // `metadata`: An empty Struct message
 19727  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19728  // - `response`: An Empty message
 19729  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 19730  // The operation only tracks when importing is complete, not when it is done
 19731  // training. Note: You should always train an agent prior to sending it
 19732  // queries. See the training documentation
 19733  // (https://cloud.google.com/dialogflow/es/docs/training).
 19734  //
 19735  //   - parent: The project that the agent to import is associated with. Format:
 19736  //     `projects/` or `projects//locations/`.
 19737  func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsAgentImportCall {
 19738  	c := &ProjectsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19739  	c.parent = parent
 19740  	c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
 19741  	return c
 19742  }
 19743  
 19744  // Fields allows partial responses to be retrieved. See
 19745  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19746  // details.
 19747  func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall {
 19748  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19749  	return c
 19750  }
 19751  
 19752  // Context sets the context to be used in this call's Do method.
 19753  func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall {
 19754  	c.ctx_ = ctx
 19755  	return c
 19756  }
 19757  
 19758  // Header returns a http.Header that can be modified by the caller to add
 19759  // headers to the request.
 19760  func (c *ProjectsAgentImportCall) Header() http.Header {
 19761  	if c.header_ == nil {
 19762  		c.header_ = make(http.Header)
 19763  	}
 19764  	return c.header_
 19765  }
 19766  
 19767  func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) {
 19768  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19769  	var body io.Reader = nil
 19770  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
 19771  	if err != nil {
 19772  		return nil, err
 19773  	}
 19774  	c.urlParams_.Set("alt", alt)
 19775  	c.urlParams_.Set("prettyPrint", "false")
 19776  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
 19777  	urls += "?" + c.urlParams_.Encode()
 19778  	req, err := http.NewRequest("POST", urls, body)
 19779  	if err != nil {
 19780  		return nil, err
 19781  	}
 19782  	req.Header = reqHeaders
 19783  	googleapi.Expand(req.URL, map[string]string{
 19784  		"parent": c.parent,
 19785  	})
 19786  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19787  }
 19788  
 19789  // Do executes the "dialogflow.projects.agent.import" call.
 19790  // Any non-2xx status code is an error. Response headers are in either
 19791  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19792  // returned at all) in error.(*googleapi.Error).Header. Use
 19793  // googleapi.IsNotModified to check whether the returned error was because
 19794  // http.StatusNotModified was returned.
 19795  func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19796  	gensupport.SetOptions(c.urlParams_, opts...)
 19797  	res, err := c.doRequest("json")
 19798  	if res != nil && res.StatusCode == http.StatusNotModified {
 19799  		if res.Body != nil {
 19800  			res.Body.Close()
 19801  		}
 19802  		return nil, gensupport.WrapError(&googleapi.Error{
 19803  			Code:   res.StatusCode,
 19804  			Header: res.Header,
 19805  		})
 19806  	}
 19807  	if err != nil {
 19808  		return nil, err
 19809  	}
 19810  	defer googleapi.CloseBody(res)
 19811  	if err := googleapi.CheckResponse(res); err != nil {
 19812  		return nil, gensupport.WrapError(err)
 19813  	}
 19814  	ret := &GoogleLongrunningOperation{
 19815  		ServerResponse: googleapi.ServerResponse{
 19816  			Header:         res.Header,
 19817  			HTTPStatusCode: res.StatusCode,
 19818  		},
 19819  	}
 19820  	target := &ret
 19821  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19822  		return nil, err
 19823  	}
 19824  	return ret, nil
 19825  }
 19826  
 19827  type ProjectsAgentRestoreCall struct {
 19828  	s                                               *Service
 19829  	parent                                          string
 19830  	googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
 19831  	urlParams_                                      gensupport.URLParams
 19832  	ctx_                                            context.Context
 19833  	header_                                         http.Header
 19834  }
 19835  
 19836  // Restore: Restores the specified agent from a ZIP file. Replaces the current
 19837  // agent version with a new one. All the intents and entity types in the older
 19838  // version are deleted. After the restore, the restored draft agent will be
 19839  // trained automatically (unless disabled in agent settings). However, once the
 19840  // restore is done, training may not be completed yet. Please call TrainAgent
 19841  // and wait for the operation it returns in order to train explicitly. This
 19842  // method is a long-running operation
 19843  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 19844  // The returned `Operation` type has the following method-specific fields: -
 19845  // `metadata`: An empty Struct message
 19846  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 19847  // - `response`: An Empty message
 19848  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 19849  // The operation only tracks when restoring is complete, not when it is done
 19850  // training. Note: You should always train an agent prior to sending it
 19851  // queries. See the training documentation
 19852  // (https://cloud.google.com/dialogflow/es/docs/training).
 19853  //
 19854  //   - parent: The project that the agent to restore is associated with. Format:
 19855  //     `projects/` or `projects//locations/`.
 19856  func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsAgentRestoreCall {
 19857  	c := &ProjectsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19858  	c.parent = parent
 19859  	c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
 19860  	return c
 19861  }
 19862  
 19863  // Fields allows partial responses to be retrieved. See
 19864  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19865  // details.
 19866  func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall {
 19867  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19868  	return c
 19869  }
 19870  
 19871  // Context sets the context to be used in this call's Do method.
 19872  func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall {
 19873  	c.ctx_ = ctx
 19874  	return c
 19875  }
 19876  
 19877  // Header returns a http.Header that can be modified by the caller to add
 19878  // headers to the request.
 19879  func (c *ProjectsAgentRestoreCall) Header() http.Header {
 19880  	if c.header_ == nil {
 19881  		c.header_ = make(http.Header)
 19882  	}
 19883  	return c.header_
 19884  }
 19885  
 19886  func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
 19887  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19888  	var body io.Reader = nil
 19889  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
 19890  	if err != nil {
 19891  		return nil, err
 19892  	}
 19893  	c.urlParams_.Set("alt", alt)
 19894  	c.urlParams_.Set("prettyPrint", "false")
 19895  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
 19896  	urls += "?" + c.urlParams_.Encode()
 19897  	req, err := http.NewRequest("POST", urls, body)
 19898  	if err != nil {
 19899  		return nil, err
 19900  	}
 19901  	req.Header = reqHeaders
 19902  	googleapi.Expand(req.URL, map[string]string{
 19903  		"parent": c.parent,
 19904  	})
 19905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19906  }
 19907  
 19908  // Do executes the "dialogflow.projects.agent.restore" call.
 19909  // Any non-2xx status code is an error. Response headers are in either
 19910  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19911  // returned at all) in error.(*googleapi.Error).Header. Use
 19912  // googleapi.IsNotModified to check whether the returned error was because
 19913  // http.StatusNotModified was returned.
 19914  func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19915  	gensupport.SetOptions(c.urlParams_, opts...)
 19916  	res, err := c.doRequest("json")
 19917  	if res != nil && res.StatusCode == http.StatusNotModified {
 19918  		if res.Body != nil {
 19919  			res.Body.Close()
 19920  		}
 19921  		return nil, gensupport.WrapError(&googleapi.Error{
 19922  			Code:   res.StatusCode,
 19923  			Header: res.Header,
 19924  		})
 19925  	}
 19926  	if err != nil {
 19927  		return nil, err
 19928  	}
 19929  	defer googleapi.CloseBody(res)
 19930  	if err := googleapi.CheckResponse(res); err != nil {
 19931  		return nil, gensupport.WrapError(err)
 19932  	}
 19933  	ret := &GoogleLongrunningOperation{
 19934  		ServerResponse: googleapi.ServerResponse{
 19935  			Header:         res.Header,
 19936  			HTTPStatusCode: res.StatusCode,
 19937  		},
 19938  	}
 19939  	target := &ret
 19940  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19941  		return nil, err
 19942  	}
 19943  	return ret, nil
 19944  }
 19945  
 19946  type ProjectsAgentSearchCall struct {
 19947  	s            *Service
 19948  	parent       string
 19949  	urlParams_   gensupport.URLParams
 19950  	ifNoneMatch_ string
 19951  	ctx_         context.Context
 19952  	header_      http.Header
 19953  }
 19954  
 19955  // Search: Returns the list of agents. Since there is at most one
 19956  // conversational agent per project, this method is useful primarily for
 19957  // listing all agents across projects the caller has access to. One can achieve
 19958  // that with a wildcard project collection id "-". Refer to List
 19959  // Sub-Collections
 19960  // (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
 19961  //
 19962  //   - parent: The project to list agents from. Format: `projects/` or
 19963  //     `projects//locations/`.
 19964  func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall {
 19965  	c := &ProjectsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19966  	c.parent = parent
 19967  	return c
 19968  }
 19969  
 19970  // PageSize sets the optional parameter "pageSize": The maximum number of items
 19971  // to return in a single page. By default 100 and at most 1000.
 19972  func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall {
 19973  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19974  	return c
 19975  }
 19976  
 19977  // PageToken sets the optional parameter "pageToken": The next_page_token value
 19978  // returned from a previous list request.
 19979  func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall {
 19980  	c.urlParams_.Set("pageToken", pageToken)
 19981  	return c
 19982  }
 19983  
 19984  // Fields allows partial responses to be retrieved. See
 19985  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19986  // details.
 19987  func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall {
 19988  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19989  	return c
 19990  }
 19991  
 19992  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19993  // object's ETag matches the given value. This is useful for getting updates
 19994  // only after the object has changed since the last request.
 19995  func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall {
 19996  	c.ifNoneMatch_ = entityTag
 19997  	return c
 19998  }
 19999  
 20000  // Context sets the context to be used in this call's Do method.
 20001  func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall {
 20002  	c.ctx_ = ctx
 20003  	return c
 20004  }
 20005  
 20006  // Header returns a http.Header that can be modified by the caller to add
 20007  // headers to the request.
 20008  func (c *ProjectsAgentSearchCall) Header() http.Header {
 20009  	if c.header_ == nil {
 20010  		c.header_ = make(http.Header)
 20011  	}
 20012  	return c.header_
 20013  }
 20014  
 20015  func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
 20016  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20017  	if c.ifNoneMatch_ != "" {
 20018  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20019  	}
 20020  	var body io.Reader = nil
 20021  	c.urlParams_.Set("alt", alt)
 20022  	c.urlParams_.Set("prettyPrint", "false")
 20023  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
 20024  	urls += "?" + c.urlParams_.Encode()
 20025  	req, err := http.NewRequest("GET", urls, body)
 20026  	if err != nil {
 20027  		return nil, err
 20028  	}
 20029  	req.Header = reqHeaders
 20030  	googleapi.Expand(req.URL, map[string]string{
 20031  		"parent": c.parent,
 20032  	})
 20033  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20034  }
 20035  
 20036  // Do executes the "dialogflow.projects.agent.search" call.
 20037  // Any non-2xx status code is an error. Response headers are in either
 20038  // *GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Header or
 20039  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 20040  // googleapi.IsNotModified to check whether the returned error was because
 20041  // http.StatusNotModified was returned.
 20042  func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
 20043  	gensupport.SetOptions(c.urlParams_, opts...)
 20044  	res, err := c.doRequest("json")
 20045  	if res != nil && res.StatusCode == http.StatusNotModified {
 20046  		if res.Body != nil {
 20047  			res.Body.Close()
 20048  		}
 20049  		return nil, gensupport.WrapError(&googleapi.Error{
 20050  			Code:   res.StatusCode,
 20051  			Header: res.Header,
 20052  		})
 20053  	}
 20054  	if err != nil {
 20055  		return nil, err
 20056  	}
 20057  	defer googleapi.CloseBody(res)
 20058  	if err := googleapi.CheckResponse(res); err != nil {
 20059  		return nil, gensupport.WrapError(err)
 20060  	}
 20061  	ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
 20062  		ServerResponse: googleapi.ServerResponse{
 20063  			Header:         res.Header,
 20064  			HTTPStatusCode: res.StatusCode,
 20065  		},
 20066  	}
 20067  	target := &ret
 20068  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20069  		return nil, err
 20070  	}
 20071  	return ret, nil
 20072  }
 20073  
 20074  // Pages invokes f for each page of results.
 20075  // A non-nil error returned from f will halt the iteration.
 20076  // The provided context supersedes any context provided to the Context method.
 20077  func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
 20078  	c.ctx_ = ctx
 20079  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20080  	for {
 20081  		x, err := c.Do()
 20082  		if err != nil {
 20083  			return err
 20084  		}
 20085  		if err := f(x); err != nil {
 20086  			return err
 20087  		}
 20088  		if x.NextPageToken == "" {
 20089  			return nil
 20090  		}
 20091  		c.PageToken(x.NextPageToken)
 20092  	}
 20093  }
 20094  
 20095  type ProjectsAgentTrainCall struct {
 20096  	s                                             *Service
 20097  	parent                                        string
 20098  	googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
 20099  	urlParams_                                    gensupport.URLParams
 20100  	ctx_                                          context.Context
 20101  	header_                                       http.Header
 20102  }
 20103  
 20104  // Train: Trains the specified agent. This method is a long-running operation
 20105  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 20106  // The returned `Operation` type has the following method-specific fields: -
 20107  // `metadata`: An empty Struct message
 20108  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 20109  // - `response`: An Empty message
 20110  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 20111  // Note: You should always train an agent prior to sending it queries. See the
 20112  // training documentation
 20113  // (https://cloud.google.com/dialogflow/es/docs/training).
 20114  //
 20115  //   - parent: The project that the agent to train is associated with. Format:
 20116  //     `projects/` or `projects//locations/`.
 20117  func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsAgentTrainCall {
 20118  	c := &ProjectsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20119  	c.parent = parent
 20120  	c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
 20121  	return c
 20122  }
 20123  
 20124  // Fields allows partial responses to be retrieved. See
 20125  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20126  // details.
 20127  func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall {
 20128  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20129  	return c
 20130  }
 20131  
 20132  // Context sets the context to be used in this call's Do method.
 20133  func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall {
 20134  	c.ctx_ = ctx
 20135  	return c
 20136  }
 20137  
 20138  // Header returns a http.Header that can be modified by the caller to add
 20139  // headers to the request.
 20140  func (c *ProjectsAgentTrainCall) Header() http.Header {
 20141  	if c.header_ == nil {
 20142  		c.header_ = make(http.Header)
 20143  	}
 20144  	return c.header_
 20145  }
 20146  
 20147  func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
 20148  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20149  	var body io.Reader = nil
 20150  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
 20151  	if err != nil {
 20152  		return nil, err
 20153  	}
 20154  	c.urlParams_.Set("alt", alt)
 20155  	c.urlParams_.Set("prettyPrint", "false")
 20156  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
 20157  	urls += "?" + c.urlParams_.Encode()
 20158  	req, err := http.NewRequest("POST", urls, body)
 20159  	if err != nil {
 20160  		return nil, err
 20161  	}
 20162  	req.Header = reqHeaders
 20163  	googleapi.Expand(req.URL, map[string]string{
 20164  		"parent": c.parent,
 20165  	})
 20166  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20167  }
 20168  
 20169  // Do executes the "dialogflow.projects.agent.train" call.
 20170  // Any non-2xx status code is an error. Response headers are in either
 20171  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20172  // returned at all) in error.(*googleapi.Error).Header. Use
 20173  // googleapi.IsNotModified to check whether the returned error was because
 20174  // http.StatusNotModified was returned.
 20175  func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20176  	gensupport.SetOptions(c.urlParams_, opts...)
 20177  	res, err := c.doRequest("json")
 20178  	if res != nil && res.StatusCode == http.StatusNotModified {
 20179  		if res.Body != nil {
 20180  			res.Body.Close()
 20181  		}
 20182  		return nil, gensupport.WrapError(&googleapi.Error{
 20183  			Code:   res.StatusCode,
 20184  			Header: res.Header,
 20185  		})
 20186  	}
 20187  	if err != nil {
 20188  		return nil, err
 20189  	}
 20190  	defer googleapi.CloseBody(res)
 20191  	if err := googleapi.CheckResponse(res); err != nil {
 20192  		return nil, gensupport.WrapError(err)
 20193  	}
 20194  	ret := &GoogleLongrunningOperation{
 20195  		ServerResponse: googleapi.ServerResponse{
 20196  			Header:         res.Header,
 20197  			HTTPStatusCode: res.StatusCode,
 20198  		},
 20199  	}
 20200  	target := &ret
 20201  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20202  		return nil, err
 20203  	}
 20204  	return ret, nil
 20205  }
 20206  
 20207  type ProjectsAgentUpdateFulfillmentCall struct {
 20208  	s                                       *Service
 20209  	nameid                                  string
 20210  	googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
 20211  	urlParams_                              gensupport.URLParams
 20212  	ctx_                                    context.Context
 20213  	header_                                 http.Header
 20214  }
 20215  
 20216  // UpdateFulfillment: Updates the fulfillment.
 20217  //
 20218  //   - name: The unique identifier of the fulfillment. Supported formats: -
 20219  //     `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
 20220  //     This field is not used for Fulfillment in an Environment.
 20221  func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsAgentUpdateFulfillmentCall {
 20222  	c := &ProjectsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20223  	c.nameid = nameid
 20224  	c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
 20225  	return c
 20226  }
 20227  
 20228  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 20229  // control which fields get updated. If the mask is not present, all fields
 20230  // will be updated.
 20231  func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall {
 20232  	c.urlParams_.Set("updateMask", updateMask)
 20233  	return c
 20234  }
 20235  
 20236  // Fields allows partial responses to be retrieved. See
 20237  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20238  // details.
 20239  func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall {
 20240  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20241  	return c
 20242  }
 20243  
 20244  // Context sets the context to be used in this call's Do method.
 20245  func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall {
 20246  	c.ctx_ = ctx
 20247  	return c
 20248  }
 20249  
 20250  // Header returns a http.Header that can be modified by the caller to add
 20251  // headers to the request.
 20252  func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header {
 20253  	if c.header_ == nil {
 20254  		c.header_ = make(http.Header)
 20255  	}
 20256  	return c.header_
 20257  }
 20258  
 20259  func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 20260  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20261  	var body io.Reader = nil
 20262  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
 20263  	if err != nil {
 20264  		return nil, err
 20265  	}
 20266  	c.urlParams_.Set("alt", alt)
 20267  	c.urlParams_.Set("prettyPrint", "false")
 20268  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 20269  	urls += "?" + c.urlParams_.Encode()
 20270  	req, err := http.NewRequest("PATCH", urls, body)
 20271  	if err != nil {
 20272  		return nil, err
 20273  	}
 20274  	req.Header = reqHeaders
 20275  	googleapi.Expand(req.URL, map[string]string{
 20276  		"name": c.nameid,
 20277  	})
 20278  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20279  }
 20280  
 20281  // Do executes the "dialogflow.projects.agent.updateFulfillment" call.
 20282  // Any non-2xx status code is an error. Response headers are in either
 20283  // *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if a
 20284  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20285  // googleapi.IsNotModified to check whether the returned error was because
 20286  // http.StatusNotModified was returned.
 20287  func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
 20288  	gensupport.SetOptions(c.urlParams_, opts...)
 20289  	res, err := c.doRequest("json")
 20290  	if res != nil && res.StatusCode == http.StatusNotModified {
 20291  		if res.Body != nil {
 20292  			res.Body.Close()
 20293  		}
 20294  		return nil, gensupport.WrapError(&googleapi.Error{
 20295  			Code:   res.StatusCode,
 20296  			Header: res.Header,
 20297  		})
 20298  	}
 20299  	if err != nil {
 20300  		return nil, err
 20301  	}
 20302  	defer googleapi.CloseBody(res)
 20303  	if err := googleapi.CheckResponse(res); err != nil {
 20304  		return nil, gensupport.WrapError(err)
 20305  	}
 20306  	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
 20307  		ServerResponse: googleapi.ServerResponse{
 20308  			Header:         res.Header,
 20309  			HTTPStatusCode: res.StatusCode,
 20310  		},
 20311  	}
 20312  	target := &ret
 20313  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20314  		return nil, err
 20315  	}
 20316  	return ret, nil
 20317  }
 20318  
 20319  type ProjectsAgentEntityTypesBatchDeleteCall struct {
 20320  	s                                                         *Service
 20321  	parent                                                    string
 20322  	googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
 20323  	urlParams_                                                gensupport.URLParams
 20324  	ctx_                                                      context.Context
 20325  	header_                                                   http.Header
 20326  }
 20327  
 20328  // BatchDelete: Deletes entity types in the specified agent. This method is a
 20329  // long-running operation
 20330  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 20331  // The returned `Operation` type has the following method-specific fields: -
 20332  // `metadata`: An empty Struct message
 20333  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 20334  // - `response`: An Empty message
 20335  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 20336  // Note: You should always train an agent prior to sending it queries. See the
 20337  // training documentation
 20338  // (https://cloud.google.com/dialogflow/es/docs/training).
 20339  //
 20340  //   - parent: The name of the agent to delete all entities types for. Supported
 20341  //     formats: - `projects//agent`, - `projects//locations//agent`.
 20342  func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall {
 20343  	c := &ProjectsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20344  	c.parent = parent
 20345  	c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
 20346  	return c
 20347  }
 20348  
 20349  // Fields allows partial responses to be retrieved. See
 20350  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20351  // details.
 20352  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall {
 20353  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20354  	return c
 20355  }
 20356  
 20357  // Context sets the context to be used in this call's Do method.
 20358  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall {
 20359  	c.ctx_ = ctx
 20360  	return c
 20361  }
 20362  
 20363  // Header returns a http.Header that can be modified by the caller to add
 20364  // headers to the request.
 20365  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header {
 20366  	if c.header_ == nil {
 20367  		c.header_ = make(http.Header)
 20368  	}
 20369  	return c.header_
 20370  }
 20371  
 20372  func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 20373  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20374  	var body io.Reader = nil
 20375  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
 20376  	if err != nil {
 20377  		return nil, err
 20378  	}
 20379  	c.urlParams_.Set("alt", alt)
 20380  	c.urlParams_.Set("prettyPrint", "false")
 20381  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
 20382  	urls += "?" + c.urlParams_.Encode()
 20383  	req, err := http.NewRequest("POST", urls, body)
 20384  	if err != nil {
 20385  		return nil, err
 20386  	}
 20387  	req.Header = reqHeaders
 20388  	googleapi.Expand(req.URL, map[string]string{
 20389  		"parent": c.parent,
 20390  	})
 20391  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20392  }
 20393  
 20394  // Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call.
 20395  // Any non-2xx status code is an error. Response headers are in either
 20396  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20397  // returned at all) in error.(*googleapi.Error).Header. Use
 20398  // googleapi.IsNotModified to check whether the returned error was because
 20399  // http.StatusNotModified was returned.
 20400  func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20401  	gensupport.SetOptions(c.urlParams_, opts...)
 20402  	res, err := c.doRequest("json")
 20403  	if res != nil && res.StatusCode == http.StatusNotModified {
 20404  		if res.Body != nil {
 20405  			res.Body.Close()
 20406  		}
 20407  		return nil, gensupport.WrapError(&googleapi.Error{
 20408  			Code:   res.StatusCode,
 20409  			Header: res.Header,
 20410  		})
 20411  	}
 20412  	if err != nil {
 20413  		return nil, err
 20414  	}
 20415  	defer googleapi.CloseBody(res)
 20416  	if err := googleapi.CheckResponse(res); err != nil {
 20417  		return nil, gensupport.WrapError(err)
 20418  	}
 20419  	ret := &GoogleLongrunningOperation{
 20420  		ServerResponse: googleapi.ServerResponse{
 20421  			Header:         res.Header,
 20422  			HTTPStatusCode: res.StatusCode,
 20423  		},
 20424  	}
 20425  	target := &ret
 20426  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20427  		return nil, err
 20428  	}
 20429  	return ret, nil
 20430  }
 20431  
 20432  type ProjectsAgentEntityTypesBatchUpdateCall struct {
 20433  	s                                                         *Service
 20434  	parent                                                    string
 20435  	googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
 20436  	urlParams_                                                gensupport.URLParams
 20437  	ctx_                                                      context.Context
 20438  	header_                                                   http.Header
 20439  }
 20440  
 20441  // BatchUpdate: Updates/Creates multiple entity types in the specified agent.
 20442  // This method is a long-running operation
 20443  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 20444  // The returned `Operation` type has the following method-specific fields: -
 20445  // `metadata`: An empty Struct message
 20446  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 20447  // - `response`: BatchUpdateEntityTypesResponse Note: You should always train
 20448  // an agent prior to sending it queries. See the training documentation
 20449  // (https://cloud.google.com/dialogflow/es/docs/training).
 20450  //
 20451  //   - parent: The name of the agent to update or create entity types in.
 20452  //     Supported formats: - `projects//agent` - `projects//locations//agent`.
 20453  func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall {
 20454  	c := &ProjectsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20455  	c.parent = parent
 20456  	c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
 20457  	return c
 20458  }
 20459  
 20460  // Fields allows partial responses to be retrieved. See
 20461  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20462  // details.
 20463  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall {
 20464  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20465  	return c
 20466  }
 20467  
 20468  // Context sets the context to be used in this call's Do method.
 20469  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall {
 20470  	c.ctx_ = ctx
 20471  	return c
 20472  }
 20473  
 20474  // Header returns a http.Header that can be modified by the caller to add
 20475  // headers to the request.
 20476  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header {
 20477  	if c.header_ == nil {
 20478  		c.header_ = make(http.Header)
 20479  	}
 20480  	return c.header_
 20481  }
 20482  
 20483  func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 20484  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20485  	var body io.Reader = nil
 20486  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
 20487  	if err != nil {
 20488  		return nil, err
 20489  	}
 20490  	c.urlParams_.Set("alt", alt)
 20491  	c.urlParams_.Set("prettyPrint", "false")
 20492  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
 20493  	urls += "?" + c.urlParams_.Encode()
 20494  	req, err := http.NewRequest("POST", urls, body)
 20495  	if err != nil {
 20496  		return nil, err
 20497  	}
 20498  	req.Header = reqHeaders
 20499  	googleapi.Expand(req.URL, map[string]string{
 20500  		"parent": c.parent,
 20501  	})
 20502  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20503  }
 20504  
 20505  // Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call.
 20506  // Any non-2xx status code is an error. Response headers are in either
 20507  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20508  // returned at all) in error.(*googleapi.Error).Header. Use
 20509  // googleapi.IsNotModified to check whether the returned error was because
 20510  // http.StatusNotModified was returned.
 20511  func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20512  	gensupport.SetOptions(c.urlParams_, opts...)
 20513  	res, err := c.doRequest("json")
 20514  	if res != nil && res.StatusCode == http.StatusNotModified {
 20515  		if res.Body != nil {
 20516  			res.Body.Close()
 20517  		}
 20518  		return nil, gensupport.WrapError(&googleapi.Error{
 20519  			Code:   res.StatusCode,
 20520  			Header: res.Header,
 20521  		})
 20522  	}
 20523  	if err != nil {
 20524  		return nil, err
 20525  	}
 20526  	defer googleapi.CloseBody(res)
 20527  	if err := googleapi.CheckResponse(res); err != nil {
 20528  		return nil, gensupport.WrapError(err)
 20529  	}
 20530  	ret := &GoogleLongrunningOperation{
 20531  		ServerResponse: googleapi.ServerResponse{
 20532  			Header:         res.Header,
 20533  			HTTPStatusCode: res.StatusCode,
 20534  		},
 20535  	}
 20536  	target := &ret
 20537  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20538  		return nil, err
 20539  	}
 20540  	return ret, nil
 20541  }
 20542  
 20543  type ProjectsAgentEntityTypesCreateCall struct {
 20544  	s                                      *Service
 20545  	parent                                 string
 20546  	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
 20547  	urlParams_                             gensupport.URLParams
 20548  	ctx_                                   context.Context
 20549  	header_                                http.Header
 20550  }
 20551  
 20552  // Create: Creates an entity type in the specified agent. Note: You should
 20553  // always train an agent prior to sending it queries. See the training
 20554  // documentation (https://cloud.google.com/dialogflow/es/docs/training).
 20555  //
 20556  //   - parent: The agent to create a entity type for. Supported formats: -
 20557  //     `projects//agent` - `projects//locations//agent`.
 20558  func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesCreateCall {
 20559  	c := &ProjectsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20560  	c.parent = parent
 20561  	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
 20562  	return c
 20563  }
 20564  
 20565  // LanguageCode sets the optional parameter "languageCode": The language used
 20566  // to access language-specific data. If not specified, the agent's default
 20567  // language is used. For more information, see Multilingual intent and entity
 20568  // data
 20569  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20570  func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall {
 20571  	c.urlParams_.Set("languageCode", languageCode)
 20572  	return c
 20573  }
 20574  
 20575  // Fields allows partial responses to be retrieved. See
 20576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20577  // details.
 20578  func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall {
 20579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20580  	return c
 20581  }
 20582  
 20583  // Context sets the context to be used in this call's Do method.
 20584  func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall {
 20585  	c.ctx_ = ctx
 20586  	return c
 20587  }
 20588  
 20589  // Header returns a http.Header that can be modified by the caller to add
 20590  // headers to the request.
 20591  func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header {
 20592  	if c.header_ == nil {
 20593  		c.header_ = make(http.Header)
 20594  	}
 20595  	return c.header_
 20596  }
 20597  
 20598  func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 20599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20600  	var body io.Reader = nil
 20601  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
 20602  	if err != nil {
 20603  		return nil, err
 20604  	}
 20605  	c.urlParams_.Set("alt", alt)
 20606  	c.urlParams_.Set("prettyPrint", "false")
 20607  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 20608  	urls += "?" + c.urlParams_.Encode()
 20609  	req, err := http.NewRequest("POST", urls, body)
 20610  	if err != nil {
 20611  		return nil, err
 20612  	}
 20613  	req.Header = reqHeaders
 20614  	googleapi.Expand(req.URL, map[string]string{
 20615  		"parent": c.parent,
 20616  	})
 20617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20618  }
 20619  
 20620  // Do executes the "dialogflow.projects.agent.entityTypes.create" call.
 20621  // Any non-2xx status code is an error. Response headers are in either
 20622  // *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if a
 20623  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20624  // googleapi.IsNotModified to check whether the returned error was because
 20625  // http.StatusNotModified was returned.
 20626  func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
 20627  	gensupport.SetOptions(c.urlParams_, opts...)
 20628  	res, err := c.doRequest("json")
 20629  	if res != nil && res.StatusCode == http.StatusNotModified {
 20630  		if res.Body != nil {
 20631  			res.Body.Close()
 20632  		}
 20633  		return nil, gensupport.WrapError(&googleapi.Error{
 20634  			Code:   res.StatusCode,
 20635  			Header: res.Header,
 20636  		})
 20637  	}
 20638  	if err != nil {
 20639  		return nil, err
 20640  	}
 20641  	defer googleapi.CloseBody(res)
 20642  	if err := googleapi.CheckResponse(res); err != nil {
 20643  		return nil, gensupport.WrapError(err)
 20644  	}
 20645  	ret := &GoogleCloudDialogflowV2beta1EntityType{
 20646  		ServerResponse: googleapi.ServerResponse{
 20647  			Header:         res.Header,
 20648  			HTTPStatusCode: res.StatusCode,
 20649  		},
 20650  	}
 20651  	target := &ret
 20652  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20653  		return nil, err
 20654  	}
 20655  	return ret, nil
 20656  }
 20657  
 20658  type ProjectsAgentEntityTypesDeleteCall struct {
 20659  	s          *Service
 20660  	name       string
 20661  	urlParams_ gensupport.URLParams
 20662  	ctx_       context.Context
 20663  	header_    http.Header
 20664  }
 20665  
 20666  // Delete: Deletes the specified entity type. Note: You should always train an
 20667  // agent prior to sending it queries. See the training documentation
 20668  // (https://cloud.google.com/dialogflow/es/docs/training).
 20669  //
 20670  //   - name: The name of the entity type to delete. Supported formats: -
 20671  //     `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.
 20672  func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall {
 20673  	c := &ProjectsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20674  	c.name = name
 20675  	return c
 20676  }
 20677  
 20678  // Fields allows partial responses to be retrieved. See
 20679  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20680  // details.
 20681  func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall {
 20682  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20683  	return c
 20684  }
 20685  
 20686  // Context sets the context to be used in this call's Do method.
 20687  func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall {
 20688  	c.ctx_ = ctx
 20689  	return c
 20690  }
 20691  
 20692  // Header returns a http.Header that can be modified by the caller to add
 20693  // headers to the request.
 20694  func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header {
 20695  	if c.header_ == nil {
 20696  		c.header_ = make(http.Header)
 20697  	}
 20698  	return c.header_
 20699  }
 20700  
 20701  func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 20702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20703  	var body io.Reader = nil
 20704  	c.urlParams_.Set("alt", alt)
 20705  	c.urlParams_.Set("prettyPrint", "false")
 20706  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 20707  	urls += "?" + c.urlParams_.Encode()
 20708  	req, err := http.NewRequest("DELETE", urls, body)
 20709  	if err != nil {
 20710  		return nil, err
 20711  	}
 20712  	req.Header = reqHeaders
 20713  	googleapi.Expand(req.URL, map[string]string{
 20714  		"name": c.name,
 20715  	})
 20716  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20717  }
 20718  
 20719  // Do executes the "dialogflow.projects.agent.entityTypes.delete" call.
 20720  // Any non-2xx status code is an error. Response headers are in either
 20721  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20722  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20723  // check whether the returned error was because http.StatusNotModified was
 20724  // returned.
 20725  func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20726  	gensupport.SetOptions(c.urlParams_, opts...)
 20727  	res, err := c.doRequest("json")
 20728  	if res != nil && res.StatusCode == http.StatusNotModified {
 20729  		if res.Body != nil {
 20730  			res.Body.Close()
 20731  		}
 20732  		return nil, gensupport.WrapError(&googleapi.Error{
 20733  			Code:   res.StatusCode,
 20734  			Header: res.Header,
 20735  		})
 20736  	}
 20737  	if err != nil {
 20738  		return nil, err
 20739  	}
 20740  	defer googleapi.CloseBody(res)
 20741  	if err := googleapi.CheckResponse(res); err != nil {
 20742  		return nil, gensupport.WrapError(err)
 20743  	}
 20744  	ret := &GoogleProtobufEmpty{
 20745  		ServerResponse: googleapi.ServerResponse{
 20746  			Header:         res.Header,
 20747  			HTTPStatusCode: res.StatusCode,
 20748  		},
 20749  	}
 20750  	target := &ret
 20751  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20752  		return nil, err
 20753  	}
 20754  	return ret, nil
 20755  }
 20756  
 20757  type ProjectsAgentEntityTypesGetCall struct {
 20758  	s            *Service
 20759  	name         string
 20760  	urlParams_   gensupport.URLParams
 20761  	ifNoneMatch_ string
 20762  	ctx_         context.Context
 20763  	header_      http.Header
 20764  }
 20765  
 20766  // Get: Retrieves the specified entity type.
 20767  //
 20768  //   - name: The name of the entity type. Supported formats: -
 20769  //     `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.
 20770  func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall {
 20771  	c := &ProjectsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20772  	c.name = name
 20773  	return c
 20774  }
 20775  
 20776  // LanguageCode sets the optional parameter "languageCode": The language used
 20777  // to access language-specific data. If not specified, the agent's default
 20778  // language is used. For more information, see Multilingual intent and entity
 20779  // data
 20780  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20781  func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall {
 20782  	c.urlParams_.Set("languageCode", languageCode)
 20783  	return c
 20784  }
 20785  
 20786  // Fields allows partial responses to be retrieved. See
 20787  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20788  // details.
 20789  func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall {
 20790  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20791  	return c
 20792  }
 20793  
 20794  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20795  // object's ETag matches the given value. This is useful for getting updates
 20796  // only after the object has changed since the last request.
 20797  func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall {
 20798  	c.ifNoneMatch_ = entityTag
 20799  	return c
 20800  }
 20801  
 20802  // Context sets the context to be used in this call's Do method.
 20803  func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall {
 20804  	c.ctx_ = ctx
 20805  	return c
 20806  }
 20807  
 20808  // Header returns a http.Header that can be modified by the caller to add
 20809  // headers to the request.
 20810  func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header {
 20811  	if c.header_ == nil {
 20812  		c.header_ = make(http.Header)
 20813  	}
 20814  	return c.header_
 20815  }
 20816  
 20817  func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 20818  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20819  	if c.ifNoneMatch_ != "" {
 20820  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20821  	}
 20822  	var body io.Reader = nil
 20823  	c.urlParams_.Set("alt", alt)
 20824  	c.urlParams_.Set("prettyPrint", "false")
 20825  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 20826  	urls += "?" + c.urlParams_.Encode()
 20827  	req, err := http.NewRequest("GET", urls, body)
 20828  	if err != nil {
 20829  		return nil, err
 20830  	}
 20831  	req.Header = reqHeaders
 20832  	googleapi.Expand(req.URL, map[string]string{
 20833  		"name": c.name,
 20834  	})
 20835  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20836  }
 20837  
 20838  // Do executes the "dialogflow.projects.agent.entityTypes.get" call.
 20839  // Any non-2xx status code is an error. Response headers are in either
 20840  // *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if a
 20841  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20842  // googleapi.IsNotModified to check whether the returned error was because
 20843  // http.StatusNotModified was returned.
 20844  func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
 20845  	gensupport.SetOptions(c.urlParams_, opts...)
 20846  	res, err := c.doRequest("json")
 20847  	if res != nil && res.StatusCode == http.StatusNotModified {
 20848  		if res.Body != nil {
 20849  			res.Body.Close()
 20850  		}
 20851  		return nil, gensupport.WrapError(&googleapi.Error{
 20852  			Code:   res.StatusCode,
 20853  			Header: res.Header,
 20854  		})
 20855  	}
 20856  	if err != nil {
 20857  		return nil, err
 20858  	}
 20859  	defer googleapi.CloseBody(res)
 20860  	if err := googleapi.CheckResponse(res); err != nil {
 20861  		return nil, gensupport.WrapError(err)
 20862  	}
 20863  	ret := &GoogleCloudDialogflowV2beta1EntityType{
 20864  		ServerResponse: googleapi.ServerResponse{
 20865  			Header:         res.Header,
 20866  			HTTPStatusCode: res.StatusCode,
 20867  		},
 20868  	}
 20869  	target := &ret
 20870  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20871  		return nil, err
 20872  	}
 20873  	return ret, nil
 20874  }
 20875  
 20876  type ProjectsAgentEntityTypesListCall struct {
 20877  	s            *Service
 20878  	parent       string
 20879  	urlParams_   gensupport.URLParams
 20880  	ifNoneMatch_ string
 20881  	ctx_         context.Context
 20882  	header_      http.Header
 20883  }
 20884  
 20885  // List: Returns the list of all entity types in the specified agent.
 20886  //
 20887  //   - parent: The agent to list all entity types from. Supported formats: -
 20888  //     `projects//agent` - `projects//locations//agent`.
 20889  func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall {
 20890  	c := &ProjectsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20891  	c.parent = parent
 20892  	return c
 20893  }
 20894  
 20895  // LanguageCode sets the optional parameter "languageCode": The language used
 20896  // to access language-specific data. If not specified, the agent's default
 20897  // language is used. For more information, see Multilingual intent and entity
 20898  // data
 20899  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 20900  func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall {
 20901  	c.urlParams_.Set("languageCode", languageCode)
 20902  	return c
 20903  }
 20904  
 20905  // PageSize sets the optional parameter "pageSize": The maximum number of items
 20906  // to return in a single page. By default 100 and at most 1000.
 20907  func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall {
 20908  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20909  	return c
 20910  }
 20911  
 20912  // PageToken sets the optional parameter "pageToken": The next_page_token value
 20913  // returned from a previous list request.
 20914  func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall {
 20915  	c.urlParams_.Set("pageToken", pageToken)
 20916  	return c
 20917  }
 20918  
 20919  // Fields allows partial responses to be retrieved. See
 20920  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20921  // details.
 20922  func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall {
 20923  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20924  	return c
 20925  }
 20926  
 20927  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20928  // object's ETag matches the given value. This is useful for getting updates
 20929  // only after the object has changed since the last request.
 20930  func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall {
 20931  	c.ifNoneMatch_ = entityTag
 20932  	return c
 20933  }
 20934  
 20935  // Context sets the context to be used in this call's Do method.
 20936  func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall {
 20937  	c.ctx_ = ctx
 20938  	return c
 20939  }
 20940  
 20941  // Header returns a http.Header that can be modified by the caller to add
 20942  // headers to the request.
 20943  func (c *ProjectsAgentEntityTypesListCall) Header() http.Header {
 20944  	if c.header_ == nil {
 20945  		c.header_ = make(http.Header)
 20946  	}
 20947  	return c.header_
 20948  }
 20949  
 20950  func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 20951  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20952  	if c.ifNoneMatch_ != "" {
 20953  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20954  	}
 20955  	var body io.Reader = nil
 20956  	c.urlParams_.Set("alt", alt)
 20957  	c.urlParams_.Set("prettyPrint", "false")
 20958  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 20959  	urls += "?" + c.urlParams_.Encode()
 20960  	req, err := http.NewRequest("GET", urls, body)
 20961  	if err != nil {
 20962  		return nil, err
 20963  	}
 20964  	req.Header = reqHeaders
 20965  	googleapi.Expand(req.URL, map[string]string{
 20966  		"parent": c.parent,
 20967  	})
 20968  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20969  }
 20970  
 20971  // Do executes the "dialogflow.projects.agent.entityTypes.list" call.
 20972  // Any non-2xx status code is an error. Response headers are in either
 20973  // *GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.Header
 20974  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 20975  // Use googleapi.IsNotModified to check whether the returned error was because
 20976  // http.StatusNotModified was returned.
 20977  func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
 20978  	gensupport.SetOptions(c.urlParams_, opts...)
 20979  	res, err := c.doRequest("json")
 20980  	if res != nil && res.StatusCode == http.StatusNotModified {
 20981  		if res.Body != nil {
 20982  			res.Body.Close()
 20983  		}
 20984  		return nil, gensupport.WrapError(&googleapi.Error{
 20985  			Code:   res.StatusCode,
 20986  			Header: res.Header,
 20987  		})
 20988  	}
 20989  	if err != nil {
 20990  		return nil, err
 20991  	}
 20992  	defer googleapi.CloseBody(res)
 20993  	if err := googleapi.CheckResponse(res); err != nil {
 20994  		return nil, gensupport.WrapError(err)
 20995  	}
 20996  	ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
 20997  		ServerResponse: googleapi.ServerResponse{
 20998  			Header:         res.Header,
 20999  			HTTPStatusCode: res.StatusCode,
 21000  		},
 21001  	}
 21002  	target := &ret
 21003  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21004  		return nil, err
 21005  	}
 21006  	return ret, nil
 21007  }
 21008  
 21009  // Pages invokes f for each page of results.
 21010  // A non-nil error returned from f will halt the iteration.
 21011  // The provided context supersedes any context provided to the Context method.
 21012  func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
 21013  	c.ctx_ = ctx
 21014  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21015  	for {
 21016  		x, err := c.Do()
 21017  		if err != nil {
 21018  			return err
 21019  		}
 21020  		if err := f(x); err != nil {
 21021  			return err
 21022  		}
 21023  		if x.NextPageToken == "" {
 21024  			return nil
 21025  		}
 21026  		c.PageToken(x.NextPageToken)
 21027  	}
 21028  }
 21029  
 21030  type ProjectsAgentEntityTypesPatchCall struct {
 21031  	s                                      *Service
 21032  	nameid                                 string
 21033  	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
 21034  	urlParams_                             gensupport.URLParams
 21035  	ctx_                                   context.Context
 21036  	header_                                http.Header
 21037  }
 21038  
 21039  // Patch: Updates the specified entity type. Note: You should always train an
 21040  // agent prior to sending it queries. See the training documentation
 21041  // (https://cloud.google.com/dialogflow/es/docs/training).
 21042  //
 21043  //   - name: The unique identifier of the entity type. Required for
 21044  //     EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
 21045  //     methods. Supported formats: - `projects//agent/entityTypes/` -
 21046  //     `projects//locations//agent/entityTypes/`.
 21047  func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesPatchCall {
 21048  	c := &ProjectsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21049  	c.nameid = nameid
 21050  	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
 21051  	return c
 21052  }
 21053  
 21054  // LanguageCode sets the optional parameter "languageCode": The language used
 21055  // to access language-specific data. If not specified, the agent's default
 21056  // language is used. For more information, see Multilingual intent and entity
 21057  // data
 21058  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 21059  func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall {
 21060  	c.urlParams_.Set("languageCode", languageCode)
 21061  	return c
 21062  }
 21063  
 21064  // UpdateMask sets the optional parameter "updateMask": The mask to control
 21065  // which fields get updated.
 21066  func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall {
 21067  	c.urlParams_.Set("updateMask", updateMask)
 21068  	return c
 21069  }
 21070  
 21071  // Fields allows partial responses to be retrieved. See
 21072  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21073  // details.
 21074  func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall {
 21075  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21076  	return c
 21077  }
 21078  
 21079  // Context sets the context to be used in this call's Do method.
 21080  func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall {
 21081  	c.ctx_ = ctx
 21082  	return c
 21083  }
 21084  
 21085  // Header returns a http.Header that can be modified by the caller to add
 21086  // headers to the request.
 21087  func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header {
 21088  	if c.header_ == nil {
 21089  		c.header_ = make(http.Header)
 21090  	}
 21091  	return c.header_
 21092  }
 21093  
 21094  func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 21095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21096  	var body io.Reader = nil
 21097  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
 21098  	if err != nil {
 21099  		return nil, err
 21100  	}
 21101  	c.urlParams_.Set("alt", alt)
 21102  	c.urlParams_.Set("prettyPrint", "false")
 21103  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 21104  	urls += "?" + c.urlParams_.Encode()
 21105  	req, err := http.NewRequest("PATCH", urls, body)
 21106  	if err != nil {
 21107  		return nil, err
 21108  	}
 21109  	req.Header = reqHeaders
 21110  	googleapi.Expand(req.URL, map[string]string{
 21111  		"name": c.nameid,
 21112  	})
 21113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21114  }
 21115  
 21116  // Do executes the "dialogflow.projects.agent.entityTypes.patch" call.
 21117  // Any non-2xx status code is an error. Response headers are in either
 21118  // *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if a
 21119  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21120  // googleapi.IsNotModified to check whether the returned error was because
 21121  // http.StatusNotModified was returned.
 21122  func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
 21123  	gensupport.SetOptions(c.urlParams_, opts...)
 21124  	res, err := c.doRequest("json")
 21125  	if res != nil && res.StatusCode == http.StatusNotModified {
 21126  		if res.Body != nil {
 21127  			res.Body.Close()
 21128  		}
 21129  		return nil, gensupport.WrapError(&googleapi.Error{
 21130  			Code:   res.StatusCode,
 21131  			Header: res.Header,
 21132  		})
 21133  	}
 21134  	if err != nil {
 21135  		return nil, err
 21136  	}
 21137  	defer googleapi.CloseBody(res)
 21138  	if err := googleapi.CheckResponse(res); err != nil {
 21139  		return nil, gensupport.WrapError(err)
 21140  	}
 21141  	ret := &GoogleCloudDialogflowV2beta1EntityType{
 21142  		ServerResponse: googleapi.ServerResponse{
 21143  			Header:         res.Header,
 21144  			HTTPStatusCode: res.StatusCode,
 21145  		},
 21146  	}
 21147  	target := &ret
 21148  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21149  		return nil, err
 21150  	}
 21151  	return ret, nil
 21152  }
 21153  
 21154  type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
 21155  	s                                                      *Service
 21156  	parent                                                 string
 21157  	googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
 21158  	urlParams_                                             gensupport.URLParams
 21159  	ctx_                                                   context.Context
 21160  	header_                                                http.Header
 21161  }
 21162  
 21163  // BatchCreate: Creates multiple new entities in the specified entity type.
 21164  // This method is a long-running operation
 21165  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 21166  // The returned `Operation` type has the following method-specific fields: -
 21167  // `metadata`: An empty Struct message
 21168  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21169  // - `response`: An Empty message
 21170  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 21171  // Note: You should always train an agent prior to sending it queries. See the
 21172  // training documentation
 21173  // (https://cloud.google.com/dialogflow/es/docs/training).
 21174  //
 21175  //   - parent: The name of the entity type to create entities in. Supported
 21176  //     formats: - `projects//agent/entityTypes/` -
 21177  //     `projects//locations//agent/entityTypes/`.
 21178  func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
 21179  	c := &ProjectsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21180  	c.parent = parent
 21181  	c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
 21182  	return c
 21183  }
 21184  
 21185  // Fields allows partial responses to be retrieved. See
 21186  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21187  // details.
 21188  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
 21189  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21190  	return c
 21191  }
 21192  
 21193  // Context sets the context to be used in this call's Do method.
 21194  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
 21195  	c.ctx_ = ctx
 21196  	return c
 21197  }
 21198  
 21199  // Header returns a http.Header that can be modified by the caller to add
 21200  // headers to the request.
 21201  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
 21202  	if c.header_ == nil {
 21203  		c.header_ = make(http.Header)
 21204  	}
 21205  	return c.header_
 21206  }
 21207  
 21208  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 21209  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21210  	var body io.Reader = nil
 21211  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
 21212  	if err != nil {
 21213  		return nil, err
 21214  	}
 21215  	c.urlParams_.Set("alt", alt)
 21216  	c.urlParams_.Set("prettyPrint", "false")
 21217  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
 21218  	urls += "?" + c.urlParams_.Encode()
 21219  	req, err := http.NewRequest("POST", urls, body)
 21220  	if err != nil {
 21221  		return nil, err
 21222  	}
 21223  	req.Header = reqHeaders
 21224  	googleapi.Expand(req.URL, map[string]string{
 21225  		"parent": c.parent,
 21226  	})
 21227  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21228  }
 21229  
 21230  // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call.
 21231  // Any non-2xx status code is an error. Response headers are in either
 21232  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21233  // returned at all) in error.(*googleapi.Error).Header. Use
 21234  // googleapi.IsNotModified to check whether the returned error was because
 21235  // http.StatusNotModified was returned.
 21236  func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21237  	gensupport.SetOptions(c.urlParams_, opts...)
 21238  	res, err := c.doRequest("json")
 21239  	if res != nil && res.StatusCode == http.StatusNotModified {
 21240  		if res.Body != nil {
 21241  			res.Body.Close()
 21242  		}
 21243  		return nil, gensupport.WrapError(&googleapi.Error{
 21244  			Code:   res.StatusCode,
 21245  			Header: res.Header,
 21246  		})
 21247  	}
 21248  	if err != nil {
 21249  		return nil, err
 21250  	}
 21251  	defer googleapi.CloseBody(res)
 21252  	if err := googleapi.CheckResponse(res); err != nil {
 21253  		return nil, gensupport.WrapError(err)
 21254  	}
 21255  	ret := &GoogleLongrunningOperation{
 21256  		ServerResponse: googleapi.ServerResponse{
 21257  			Header:         res.Header,
 21258  			HTTPStatusCode: res.StatusCode,
 21259  		},
 21260  	}
 21261  	target := &ret
 21262  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21263  		return nil, err
 21264  	}
 21265  	return ret, nil
 21266  }
 21267  
 21268  type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
 21269  	s                                                      *Service
 21270  	parent                                                 string
 21271  	googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
 21272  	urlParams_                                             gensupport.URLParams
 21273  	ctx_                                                   context.Context
 21274  	header_                                                http.Header
 21275  }
 21276  
 21277  // BatchDelete: Deletes entities in the specified entity type. This method is a
 21278  // long-running operation
 21279  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 21280  // The returned `Operation` type has the following method-specific fields: -
 21281  // `metadata`: An empty Struct message
 21282  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21283  // - `response`: An Empty message
 21284  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 21285  // Note: You should always train an agent prior to sending it queries. See the
 21286  // training documentation
 21287  // (https://cloud.google.com/dialogflow/es/docs/training).
 21288  //
 21289  //   - parent: The name of the entity type to delete entries for. Supported
 21290  //     formats: - `projects//agent/entityTypes/` -
 21291  //     `projects//locations//agent/entityTypes/`.
 21292  func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
 21293  	c := &ProjectsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21294  	c.parent = parent
 21295  	c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
 21296  	return c
 21297  }
 21298  
 21299  // Fields allows partial responses to be retrieved. See
 21300  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21301  // details.
 21302  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
 21303  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21304  	return c
 21305  }
 21306  
 21307  // Context sets the context to be used in this call's Do method.
 21308  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
 21309  	c.ctx_ = ctx
 21310  	return c
 21311  }
 21312  
 21313  // Header returns a http.Header that can be modified by the caller to add
 21314  // headers to the request.
 21315  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
 21316  	if c.header_ == nil {
 21317  		c.header_ = make(http.Header)
 21318  	}
 21319  	return c.header_
 21320  }
 21321  
 21322  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 21323  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21324  	var body io.Reader = nil
 21325  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
 21326  	if err != nil {
 21327  		return nil, err
 21328  	}
 21329  	c.urlParams_.Set("alt", alt)
 21330  	c.urlParams_.Set("prettyPrint", "false")
 21331  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
 21332  	urls += "?" + c.urlParams_.Encode()
 21333  	req, err := http.NewRequest("POST", urls, body)
 21334  	if err != nil {
 21335  		return nil, err
 21336  	}
 21337  	req.Header = reqHeaders
 21338  	googleapi.Expand(req.URL, map[string]string{
 21339  		"parent": c.parent,
 21340  	})
 21341  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21342  }
 21343  
 21344  // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call.
 21345  // Any non-2xx status code is an error. Response headers are in either
 21346  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21347  // returned at all) in error.(*googleapi.Error).Header. Use
 21348  // googleapi.IsNotModified to check whether the returned error was because
 21349  // http.StatusNotModified was returned.
 21350  func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21351  	gensupport.SetOptions(c.urlParams_, opts...)
 21352  	res, err := c.doRequest("json")
 21353  	if res != nil && res.StatusCode == http.StatusNotModified {
 21354  		if res.Body != nil {
 21355  			res.Body.Close()
 21356  		}
 21357  		return nil, gensupport.WrapError(&googleapi.Error{
 21358  			Code:   res.StatusCode,
 21359  			Header: res.Header,
 21360  		})
 21361  	}
 21362  	if err != nil {
 21363  		return nil, err
 21364  	}
 21365  	defer googleapi.CloseBody(res)
 21366  	if err := googleapi.CheckResponse(res); err != nil {
 21367  		return nil, gensupport.WrapError(err)
 21368  	}
 21369  	ret := &GoogleLongrunningOperation{
 21370  		ServerResponse: googleapi.ServerResponse{
 21371  			Header:         res.Header,
 21372  			HTTPStatusCode: res.StatusCode,
 21373  		},
 21374  	}
 21375  	target := &ret
 21376  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21377  		return nil, err
 21378  	}
 21379  	return ret, nil
 21380  }
 21381  
 21382  type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
 21383  	s                                                      *Service
 21384  	parent                                                 string
 21385  	googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
 21386  	urlParams_                                             gensupport.URLParams
 21387  	ctx_                                                   context.Context
 21388  	header_                                                http.Header
 21389  }
 21390  
 21391  // BatchUpdate: Updates or creates multiple entities in the specified entity
 21392  // type. This method does not affect entities in the entity type that aren't
 21393  // explicitly specified in the request. Note: You should always train an agent
 21394  // prior to sending it queries. See the training documentation
 21395  // (https://cloud.google.com/dialogflow/es/docs/training). This method is a
 21396  // long-running operation
 21397  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 21398  // The returned `Operation` type has the following method-specific fields: -
 21399  // `metadata`: An empty Struct message
 21400  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 21401  // - `response`: An Empty message
 21402  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 21403  //
 21404  //   - parent: The name of the entity type to update or create entities in.
 21405  //     Supported formats: - `projects//agent/entityTypes/` -
 21406  //     `projects//locations//agent/entityTypes/`.
 21407  func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
 21408  	c := &ProjectsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21409  	c.parent = parent
 21410  	c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
 21411  	return c
 21412  }
 21413  
 21414  // Fields allows partial responses to be retrieved. See
 21415  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21416  // details.
 21417  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
 21418  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21419  	return c
 21420  }
 21421  
 21422  // Context sets the context to be used in this call's Do method.
 21423  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
 21424  	c.ctx_ = ctx
 21425  	return c
 21426  }
 21427  
 21428  // Header returns a http.Header that can be modified by the caller to add
 21429  // headers to the request.
 21430  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
 21431  	if c.header_ == nil {
 21432  		c.header_ = make(http.Header)
 21433  	}
 21434  	return c.header_
 21435  }
 21436  
 21437  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 21438  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21439  	var body io.Reader = nil
 21440  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
 21441  	if err != nil {
 21442  		return nil, err
 21443  	}
 21444  	c.urlParams_.Set("alt", alt)
 21445  	c.urlParams_.Set("prettyPrint", "false")
 21446  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
 21447  	urls += "?" + c.urlParams_.Encode()
 21448  	req, err := http.NewRequest("POST", urls, body)
 21449  	if err != nil {
 21450  		return nil, err
 21451  	}
 21452  	req.Header = reqHeaders
 21453  	googleapi.Expand(req.URL, map[string]string{
 21454  		"parent": c.parent,
 21455  	})
 21456  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21457  }
 21458  
 21459  // Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call.
 21460  // Any non-2xx status code is an error. Response headers are in either
 21461  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21462  // returned at all) in error.(*googleapi.Error).Header. Use
 21463  // googleapi.IsNotModified to check whether the returned error was because
 21464  // http.StatusNotModified was returned.
 21465  func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21466  	gensupport.SetOptions(c.urlParams_, opts...)
 21467  	res, err := c.doRequest("json")
 21468  	if res != nil && res.StatusCode == http.StatusNotModified {
 21469  		if res.Body != nil {
 21470  			res.Body.Close()
 21471  		}
 21472  		return nil, gensupport.WrapError(&googleapi.Error{
 21473  			Code:   res.StatusCode,
 21474  			Header: res.Header,
 21475  		})
 21476  	}
 21477  	if err != nil {
 21478  		return nil, err
 21479  	}
 21480  	defer googleapi.CloseBody(res)
 21481  	if err := googleapi.CheckResponse(res); err != nil {
 21482  		return nil, gensupport.WrapError(err)
 21483  	}
 21484  	ret := &GoogleLongrunningOperation{
 21485  		ServerResponse: googleapi.ServerResponse{
 21486  			Header:         res.Header,
 21487  			HTTPStatusCode: res.StatusCode,
 21488  		},
 21489  	}
 21490  	target := &ret
 21491  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21492  		return nil, err
 21493  	}
 21494  	return ret, nil
 21495  }
 21496  
 21497  type ProjectsAgentEnvironmentsCreateCall struct {
 21498  	s                                       *Service
 21499  	parent                                  string
 21500  	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
 21501  	urlParams_                              gensupport.URLParams
 21502  	ctx_                                    context.Context
 21503  	header_                                 http.Header
 21504  }
 21505  
 21506  // Create: Creates an agent environment.
 21507  //
 21508  //   - parent: The agent to create an environment for. Supported formats: -
 21509  //     `projects//agent` - `projects//locations//agent`.
 21510  func (r *ProjectsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsCreateCall {
 21511  	c := &ProjectsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21512  	c.parent = parent
 21513  	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
 21514  	return c
 21515  }
 21516  
 21517  // EnvironmentId sets the optional parameter "environmentId": Required. The
 21518  // unique id of the new environment.
 21519  func (c *ProjectsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsAgentEnvironmentsCreateCall {
 21520  	c.urlParams_.Set("environmentId", environmentId)
 21521  	return c
 21522  }
 21523  
 21524  // Fields allows partial responses to be retrieved. See
 21525  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21526  // details.
 21527  func (c *ProjectsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsCreateCall {
 21528  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21529  	return c
 21530  }
 21531  
 21532  // Context sets the context to be used in this call's Do method.
 21533  func (c *ProjectsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsCreateCall {
 21534  	c.ctx_ = ctx
 21535  	return c
 21536  }
 21537  
 21538  // Header returns a http.Header that can be modified by the caller to add
 21539  // headers to the request.
 21540  func (c *ProjectsAgentEnvironmentsCreateCall) Header() http.Header {
 21541  	if c.header_ == nil {
 21542  		c.header_ = make(http.Header)
 21543  	}
 21544  	return c.header_
 21545  }
 21546  
 21547  func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 21548  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21549  	var body io.Reader = nil
 21550  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
 21551  	if err != nil {
 21552  		return nil, err
 21553  	}
 21554  	c.urlParams_.Set("alt", alt)
 21555  	c.urlParams_.Set("prettyPrint", "false")
 21556  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
 21557  	urls += "?" + c.urlParams_.Encode()
 21558  	req, err := http.NewRequest("POST", urls, body)
 21559  	if err != nil {
 21560  		return nil, err
 21561  	}
 21562  	req.Header = reqHeaders
 21563  	googleapi.Expand(req.URL, map[string]string{
 21564  		"parent": c.parent,
 21565  	})
 21566  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21567  }
 21568  
 21569  // Do executes the "dialogflow.projects.agent.environments.create" call.
 21570  // Any non-2xx status code is an error. Response headers are in either
 21571  // *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if a
 21572  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21573  // googleapi.IsNotModified to check whether the returned error was because
 21574  // http.StatusNotModified was returned.
 21575  func (c *ProjectsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
 21576  	gensupport.SetOptions(c.urlParams_, opts...)
 21577  	res, err := c.doRequest("json")
 21578  	if res != nil && res.StatusCode == http.StatusNotModified {
 21579  		if res.Body != nil {
 21580  			res.Body.Close()
 21581  		}
 21582  		return nil, gensupport.WrapError(&googleapi.Error{
 21583  			Code:   res.StatusCode,
 21584  			Header: res.Header,
 21585  		})
 21586  	}
 21587  	if err != nil {
 21588  		return nil, err
 21589  	}
 21590  	defer googleapi.CloseBody(res)
 21591  	if err := googleapi.CheckResponse(res); err != nil {
 21592  		return nil, gensupport.WrapError(err)
 21593  	}
 21594  	ret := &GoogleCloudDialogflowV2beta1Environment{
 21595  		ServerResponse: googleapi.ServerResponse{
 21596  			Header:         res.Header,
 21597  			HTTPStatusCode: res.StatusCode,
 21598  		},
 21599  	}
 21600  	target := &ret
 21601  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21602  		return nil, err
 21603  	}
 21604  	return ret, nil
 21605  }
 21606  
 21607  type ProjectsAgentEnvironmentsDeleteCall struct {
 21608  	s          *Service
 21609  	name       string
 21610  	urlParams_ gensupport.URLParams
 21611  	ctx_       context.Context
 21612  	header_    http.Header
 21613  }
 21614  
 21615  // Delete: Deletes the specified agent environment.
 21616  //
 21617  //   - name: The name of the environment to delete. / Format: -
 21618  //     `projects//agent/environments/` -
 21619  //     `projects//locations//agent/environments/`.
 21620  func (r *ProjectsAgentEnvironmentsService) Delete(name string) *ProjectsAgentEnvironmentsDeleteCall {
 21621  	c := &ProjectsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21622  	c.name = name
 21623  	return c
 21624  }
 21625  
 21626  // Fields allows partial responses to be retrieved. See
 21627  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21628  // details.
 21629  func (c *ProjectsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsDeleteCall {
 21630  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21631  	return c
 21632  }
 21633  
 21634  // Context sets the context to be used in this call's Do method.
 21635  func (c *ProjectsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsDeleteCall {
 21636  	c.ctx_ = ctx
 21637  	return c
 21638  }
 21639  
 21640  // Header returns a http.Header that can be modified by the caller to add
 21641  // headers to the request.
 21642  func (c *ProjectsAgentEnvironmentsDeleteCall) Header() http.Header {
 21643  	if c.header_ == nil {
 21644  		c.header_ = make(http.Header)
 21645  	}
 21646  	return c.header_
 21647  }
 21648  
 21649  func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21650  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21651  	var body io.Reader = nil
 21652  	c.urlParams_.Set("alt", alt)
 21653  	c.urlParams_.Set("prettyPrint", "false")
 21654  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 21655  	urls += "?" + c.urlParams_.Encode()
 21656  	req, err := http.NewRequest("DELETE", urls, body)
 21657  	if err != nil {
 21658  		return nil, err
 21659  	}
 21660  	req.Header = reqHeaders
 21661  	googleapi.Expand(req.URL, map[string]string{
 21662  		"name": c.name,
 21663  	})
 21664  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21665  }
 21666  
 21667  // Do executes the "dialogflow.projects.agent.environments.delete" call.
 21668  // Any non-2xx status code is an error. Response headers are in either
 21669  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21670  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21671  // check whether the returned error was because http.StatusNotModified was
 21672  // returned.
 21673  func (c *ProjectsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21674  	gensupport.SetOptions(c.urlParams_, opts...)
 21675  	res, err := c.doRequest("json")
 21676  	if res != nil && res.StatusCode == http.StatusNotModified {
 21677  		if res.Body != nil {
 21678  			res.Body.Close()
 21679  		}
 21680  		return nil, gensupport.WrapError(&googleapi.Error{
 21681  			Code:   res.StatusCode,
 21682  			Header: res.Header,
 21683  		})
 21684  	}
 21685  	if err != nil {
 21686  		return nil, err
 21687  	}
 21688  	defer googleapi.CloseBody(res)
 21689  	if err := googleapi.CheckResponse(res); err != nil {
 21690  		return nil, gensupport.WrapError(err)
 21691  	}
 21692  	ret := &GoogleProtobufEmpty{
 21693  		ServerResponse: googleapi.ServerResponse{
 21694  			Header:         res.Header,
 21695  			HTTPStatusCode: res.StatusCode,
 21696  		},
 21697  	}
 21698  	target := &ret
 21699  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21700  		return nil, err
 21701  	}
 21702  	return ret, nil
 21703  }
 21704  
 21705  type ProjectsAgentEnvironmentsGetCall struct {
 21706  	s            *Service
 21707  	name         string
 21708  	urlParams_   gensupport.URLParams
 21709  	ifNoneMatch_ string
 21710  	ctx_         context.Context
 21711  	header_      http.Header
 21712  }
 21713  
 21714  // Get: Retrieves the specified agent environment.
 21715  //
 21716  //   - name: The name of the environment. Supported formats: -
 21717  //     `projects//agent/environments/` -
 21718  //     `projects//locations//agent/environments/`.
 21719  func (r *ProjectsAgentEnvironmentsService) Get(name string) *ProjectsAgentEnvironmentsGetCall {
 21720  	c := &ProjectsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21721  	c.name = name
 21722  	return c
 21723  }
 21724  
 21725  // Fields allows partial responses to be retrieved. See
 21726  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21727  // details.
 21728  func (c *ProjectsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetCall {
 21729  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21730  	return c
 21731  }
 21732  
 21733  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21734  // object's ETag matches the given value. This is useful for getting updates
 21735  // only after the object has changed since the last request.
 21736  func (c *ProjectsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetCall {
 21737  	c.ifNoneMatch_ = entityTag
 21738  	return c
 21739  }
 21740  
 21741  // Context sets the context to be used in this call's Do method.
 21742  func (c *ProjectsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetCall {
 21743  	c.ctx_ = ctx
 21744  	return c
 21745  }
 21746  
 21747  // Header returns a http.Header that can be modified by the caller to add
 21748  // headers to the request.
 21749  func (c *ProjectsAgentEnvironmentsGetCall) Header() http.Header {
 21750  	if c.header_ == nil {
 21751  		c.header_ = make(http.Header)
 21752  	}
 21753  	return c.header_
 21754  }
 21755  
 21756  func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 21757  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21758  	if c.ifNoneMatch_ != "" {
 21759  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21760  	}
 21761  	var body io.Reader = nil
 21762  	c.urlParams_.Set("alt", alt)
 21763  	c.urlParams_.Set("prettyPrint", "false")
 21764  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 21765  	urls += "?" + c.urlParams_.Encode()
 21766  	req, err := http.NewRequest("GET", urls, body)
 21767  	if err != nil {
 21768  		return nil, err
 21769  	}
 21770  	req.Header = reqHeaders
 21771  	googleapi.Expand(req.URL, map[string]string{
 21772  		"name": c.name,
 21773  	})
 21774  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21775  }
 21776  
 21777  // Do executes the "dialogflow.projects.agent.environments.get" call.
 21778  // Any non-2xx status code is an error. Response headers are in either
 21779  // *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if a
 21780  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21781  // googleapi.IsNotModified to check whether the returned error was because
 21782  // http.StatusNotModified was returned.
 21783  func (c *ProjectsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
 21784  	gensupport.SetOptions(c.urlParams_, opts...)
 21785  	res, err := c.doRequest("json")
 21786  	if res != nil && res.StatusCode == http.StatusNotModified {
 21787  		if res.Body != nil {
 21788  			res.Body.Close()
 21789  		}
 21790  		return nil, gensupport.WrapError(&googleapi.Error{
 21791  			Code:   res.StatusCode,
 21792  			Header: res.Header,
 21793  		})
 21794  	}
 21795  	if err != nil {
 21796  		return nil, err
 21797  	}
 21798  	defer googleapi.CloseBody(res)
 21799  	if err := googleapi.CheckResponse(res); err != nil {
 21800  		return nil, gensupport.WrapError(err)
 21801  	}
 21802  	ret := &GoogleCloudDialogflowV2beta1Environment{
 21803  		ServerResponse: googleapi.ServerResponse{
 21804  			Header:         res.Header,
 21805  			HTTPStatusCode: res.StatusCode,
 21806  		},
 21807  	}
 21808  	target := &ret
 21809  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21810  		return nil, err
 21811  	}
 21812  	return ret, nil
 21813  }
 21814  
 21815  type ProjectsAgentEnvironmentsGetHistoryCall struct {
 21816  	s            *Service
 21817  	parent       string
 21818  	urlParams_   gensupport.URLParams
 21819  	ifNoneMatch_ string
 21820  	ctx_         context.Context
 21821  	header_      http.Header
 21822  }
 21823  
 21824  // GetHistory: Gets the history of the specified environment.
 21825  //
 21826  //   - parent: The name of the environment to retrieve history for. Supported
 21827  //     formats: - `projects//agent/environments/` -
 21828  //     `projects//locations//agent/environments/`.
 21829  func (r *ProjectsAgentEnvironmentsService) GetHistory(parent string) *ProjectsAgentEnvironmentsGetHistoryCall {
 21830  	c := &ProjectsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21831  	c.parent = parent
 21832  	return c
 21833  }
 21834  
 21835  // PageSize sets the optional parameter "pageSize": The maximum number of items
 21836  // to return in a single page. By default 100 and at most 1000.
 21837  func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsGetHistoryCall {
 21838  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21839  	return c
 21840  }
 21841  
 21842  // PageToken sets the optional parameter "pageToken": The next_page_token value
 21843  // returned from a previous list request.
 21844  func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsGetHistoryCall {
 21845  	c.urlParams_.Set("pageToken", pageToken)
 21846  	return c
 21847  }
 21848  
 21849  // Fields allows partial responses to be retrieved. See
 21850  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21851  // details.
 21852  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetHistoryCall {
 21853  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21854  	return c
 21855  }
 21856  
 21857  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21858  // object's ETag matches the given value. This is useful for getting updates
 21859  // only after the object has changed since the last request.
 21860  func (c *ProjectsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetHistoryCall {
 21861  	c.ifNoneMatch_ = entityTag
 21862  	return c
 21863  }
 21864  
 21865  // Context sets the context to be used in this call's Do method.
 21866  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetHistoryCall {
 21867  	c.ctx_ = ctx
 21868  	return c
 21869  }
 21870  
 21871  // Header returns a http.Header that can be modified by the caller to add
 21872  // headers to the request.
 21873  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Header() http.Header {
 21874  	if c.header_ == nil {
 21875  		c.header_ = make(http.Header)
 21876  	}
 21877  	return c.header_
 21878  }
 21879  
 21880  func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
 21881  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21882  	if c.ifNoneMatch_ != "" {
 21883  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21884  	}
 21885  	var body io.Reader = nil
 21886  	c.urlParams_.Set("alt", alt)
 21887  	c.urlParams_.Set("prettyPrint", "false")
 21888  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
 21889  	urls += "?" + c.urlParams_.Encode()
 21890  	req, err := http.NewRequest("GET", urls, body)
 21891  	if err != nil {
 21892  		return nil, err
 21893  	}
 21894  	req.Header = reqHeaders
 21895  	googleapi.Expand(req.URL, map[string]string{
 21896  		"parent": c.parent,
 21897  	})
 21898  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21899  }
 21900  
 21901  // Do executes the "dialogflow.projects.agent.environments.getHistory" call.
 21902  // Any non-2xx status code is an error. Response headers are in either
 21903  // *GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header or (if
 21904  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 21905  // googleapi.IsNotModified to check whether the returned error was because
 21906  // http.StatusNotModified was returned.
 21907  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
 21908  	gensupport.SetOptions(c.urlParams_, opts...)
 21909  	res, err := c.doRequest("json")
 21910  	if res != nil && res.StatusCode == http.StatusNotModified {
 21911  		if res.Body != nil {
 21912  			res.Body.Close()
 21913  		}
 21914  		return nil, gensupport.WrapError(&googleapi.Error{
 21915  			Code:   res.StatusCode,
 21916  			Header: res.Header,
 21917  		})
 21918  	}
 21919  	if err != nil {
 21920  		return nil, err
 21921  	}
 21922  	defer googleapi.CloseBody(res)
 21923  	if err := googleapi.CheckResponse(res); err != nil {
 21924  		return nil, gensupport.WrapError(err)
 21925  	}
 21926  	ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
 21927  		ServerResponse: googleapi.ServerResponse{
 21928  			Header:         res.Header,
 21929  			HTTPStatusCode: res.StatusCode,
 21930  		},
 21931  	}
 21932  	target := &ret
 21933  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21934  		return nil, err
 21935  	}
 21936  	return ret, nil
 21937  }
 21938  
 21939  // Pages invokes f for each page of results.
 21940  // A non-nil error returned from f will halt the iteration.
 21941  // The provided context supersedes any context provided to the Context method.
 21942  func (c *ProjectsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
 21943  	c.ctx_ = ctx
 21944  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21945  	for {
 21946  		x, err := c.Do()
 21947  		if err != nil {
 21948  			return err
 21949  		}
 21950  		if err := f(x); err != nil {
 21951  			return err
 21952  		}
 21953  		if x.NextPageToken == "" {
 21954  			return nil
 21955  		}
 21956  		c.PageToken(x.NextPageToken)
 21957  	}
 21958  }
 21959  
 21960  type ProjectsAgentEnvironmentsListCall struct {
 21961  	s            *Service
 21962  	parent       string
 21963  	urlParams_   gensupport.URLParams
 21964  	ifNoneMatch_ string
 21965  	ctx_         context.Context
 21966  	header_      http.Header
 21967  }
 21968  
 21969  // List: Returns the list of all non-draft environments of the specified agent.
 21970  //
 21971  //   - parent: The agent to list all environments from. Format: -
 21972  //     `projects//agent` - `projects//locations//agent`.
 21973  func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall {
 21974  	c := &ProjectsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21975  	c.parent = parent
 21976  	return c
 21977  }
 21978  
 21979  // PageSize sets the optional parameter "pageSize": The maximum number of items
 21980  // to return in a single page. By default 100 and at most 1000.
 21981  func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall {
 21982  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21983  	return c
 21984  }
 21985  
 21986  // PageToken sets the optional parameter "pageToken": The next_page_token value
 21987  // returned from a previous list request.
 21988  func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall {
 21989  	c.urlParams_.Set("pageToken", pageToken)
 21990  	return c
 21991  }
 21992  
 21993  // Fields allows partial responses to be retrieved. See
 21994  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21995  // details.
 21996  func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall {
 21997  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21998  	return c
 21999  }
 22000  
 22001  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22002  // object's ETag matches the given value. This is useful for getting updates
 22003  // only after the object has changed since the last request.
 22004  func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall {
 22005  	c.ifNoneMatch_ = entityTag
 22006  	return c
 22007  }
 22008  
 22009  // Context sets the context to be used in this call's Do method.
 22010  func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall {
 22011  	c.ctx_ = ctx
 22012  	return c
 22013  }
 22014  
 22015  // Header returns a http.Header that can be modified by the caller to add
 22016  // headers to the request.
 22017  func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header {
 22018  	if c.header_ == nil {
 22019  		c.header_ = make(http.Header)
 22020  	}
 22021  	return c.header_
 22022  }
 22023  
 22024  func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
 22025  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22026  	if c.ifNoneMatch_ != "" {
 22027  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22028  	}
 22029  	var body io.Reader = nil
 22030  	c.urlParams_.Set("alt", alt)
 22031  	c.urlParams_.Set("prettyPrint", "false")
 22032  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
 22033  	urls += "?" + c.urlParams_.Encode()
 22034  	req, err := http.NewRequest("GET", urls, body)
 22035  	if err != nil {
 22036  		return nil, err
 22037  	}
 22038  	req.Header = reqHeaders
 22039  	googleapi.Expand(req.URL, map[string]string{
 22040  		"parent": c.parent,
 22041  	})
 22042  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22043  }
 22044  
 22045  // Do executes the "dialogflow.projects.agent.environments.list" call.
 22046  // Any non-2xx status code is an error. Response headers are in either
 22047  // *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.Header
 22048  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 22049  // Use googleapi.IsNotModified to check whether the returned error was because
 22050  // http.StatusNotModified was returned.
 22051  func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
 22052  	gensupport.SetOptions(c.urlParams_, opts...)
 22053  	res, err := c.doRequest("json")
 22054  	if res != nil && res.StatusCode == http.StatusNotModified {
 22055  		if res.Body != nil {
 22056  			res.Body.Close()
 22057  		}
 22058  		return nil, gensupport.WrapError(&googleapi.Error{
 22059  			Code:   res.StatusCode,
 22060  			Header: res.Header,
 22061  		})
 22062  	}
 22063  	if err != nil {
 22064  		return nil, err
 22065  	}
 22066  	defer googleapi.CloseBody(res)
 22067  	if err := googleapi.CheckResponse(res); err != nil {
 22068  		return nil, gensupport.WrapError(err)
 22069  	}
 22070  	ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
 22071  		ServerResponse: googleapi.ServerResponse{
 22072  			Header:         res.Header,
 22073  			HTTPStatusCode: res.StatusCode,
 22074  		},
 22075  	}
 22076  	target := &ret
 22077  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22078  		return nil, err
 22079  	}
 22080  	return ret, nil
 22081  }
 22082  
 22083  // Pages invokes f for each page of results.
 22084  // A non-nil error returned from f will halt the iteration.
 22085  // The provided context supersedes any context provided to the Context method.
 22086  func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
 22087  	c.ctx_ = ctx
 22088  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22089  	for {
 22090  		x, err := c.Do()
 22091  		if err != nil {
 22092  			return err
 22093  		}
 22094  		if err := f(x); err != nil {
 22095  			return err
 22096  		}
 22097  		if x.NextPageToken == "" {
 22098  			return nil
 22099  		}
 22100  		c.PageToken(x.NextPageToken)
 22101  	}
 22102  }
 22103  
 22104  type ProjectsAgentEnvironmentsPatchCall struct {
 22105  	s                                       *Service
 22106  	nameid                                  string
 22107  	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
 22108  	urlParams_                              gensupport.URLParams
 22109  	ctx_                                    context.Context
 22110  	header_                                 http.Header
 22111  }
 22112  
 22113  // Patch: Updates the specified agent environment. This method allows you to
 22114  // deploy new agent versions into the environment. When an environment is
 22115  // pointed to a new agent version by setting `environment.agent_version`, the
 22116  // environment is temporarily set to the `LOADING` state. During that time, the
 22117  // environment keeps on serving the previous version of the agent. After the
 22118  // new agent version is done loading, the environment is set back to the
 22119  // `RUNNING` state. You can use "-" as Environment ID in environment name to
 22120  // update version in "draft" environment. WARNING: this will negate all recent
 22121  // changes to draft and can't be undone. You may want to save the draft to a
 22122  // version before calling this function.
 22123  //
 22124  //   - name: Output only. The unique identifier of this agent environment.
 22125  //     Supported formats: - `projects//agent/environments/` -
 22126  //     `projects//locations//agent/environments/`.
 22127  func (r *ProjectsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsPatchCall {
 22128  	c := &ProjectsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22129  	c.nameid = nameid
 22130  	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
 22131  	return c
 22132  }
 22133  
 22134  // AllowLoadToDraftAndDiscardChanges sets the optional parameter
 22135  // "allowLoadToDraftAndDiscardChanges": This field is used to prevent
 22136  // accidental overwrite of the draft environment, which is an operation that
 22137  // cannot be undone. To confirm that the caller desires this overwrite, this
 22138  // field must be explicitly set to true when updating the draft environment
 22139  // (environment ID = `-`).
 22140  func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsAgentEnvironmentsPatchCall {
 22141  	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
 22142  	return c
 22143  }
 22144  
 22145  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 22146  // control which fields get updated.
 22147  func (c *ProjectsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsPatchCall {
 22148  	c.urlParams_.Set("updateMask", updateMask)
 22149  	return c
 22150  }
 22151  
 22152  // Fields allows partial responses to be retrieved. See
 22153  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22154  // details.
 22155  func (c *ProjectsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsPatchCall {
 22156  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22157  	return c
 22158  }
 22159  
 22160  // Context sets the context to be used in this call's Do method.
 22161  func (c *ProjectsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsPatchCall {
 22162  	c.ctx_ = ctx
 22163  	return c
 22164  }
 22165  
 22166  // Header returns a http.Header that can be modified by the caller to add
 22167  // headers to the request.
 22168  func (c *ProjectsAgentEnvironmentsPatchCall) Header() http.Header {
 22169  	if c.header_ == nil {
 22170  		c.header_ = make(http.Header)
 22171  	}
 22172  	return c.header_
 22173  }
 22174  
 22175  func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
 22176  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22177  	var body io.Reader = nil
 22178  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
 22179  	if err != nil {
 22180  		return nil, err
 22181  	}
 22182  	c.urlParams_.Set("alt", alt)
 22183  	c.urlParams_.Set("prettyPrint", "false")
 22184  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 22185  	urls += "?" + c.urlParams_.Encode()
 22186  	req, err := http.NewRequest("PATCH", urls, body)
 22187  	if err != nil {
 22188  		return nil, err
 22189  	}
 22190  	req.Header = reqHeaders
 22191  	googleapi.Expand(req.URL, map[string]string{
 22192  		"name": c.nameid,
 22193  	})
 22194  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22195  }
 22196  
 22197  // Do executes the "dialogflow.projects.agent.environments.patch" call.
 22198  // Any non-2xx status code is an error. Response headers are in either
 22199  // *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if a
 22200  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22201  // googleapi.IsNotModified to check whether the returned error was because
 22202  // http.StatusNotModified was returned.
 22203  func (c *ProjectsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
 22204  	gensupport.SetOptions(c.urlParams_, opts...)
 22205  	res, err := c.doRequest("json")
 22206  	if res != nil && res.StatusCode == http.StatusNotModified {
 22207  		if res.Body != nil {
 22208  			res.Body.Close()
 22209  		}
 22210  		return nil, gensupport.WrapError(&googleapi.Error{
 22211  			Code:   res.StatusCode,
 22212  			Header: res.Header,
 22213  		})
 22214  	}
 22215  	if err != nil {
 22216  		return nil, err
 22217  	}
 22218  	defer googleapi.CloseBody(res)
 22219  	if err := googleapi.CheckResponse(res); err != nil {
 22220  		return nil, gensupport.WrapError(err)
 22221  	}
 22222  	ret := &GoogleCloudDialogflowV2beta1Environment{
 22223  		ServerResponse: googleapi.ServerResponse{
 22224  			Header:         res.Header,
 22225  			HTTPStatusCode: res.StatusCode,
 22226  		},
 22227  	}
 22228  	target := &ret
 22229  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22230  		return nil, err
 22231  	}
 22232  	return ret, nil
 22233  }
 22234  
 22235  type ProjectsAgentEnvironmentsIntentsListCall struct {
 22236  	s            *Service
 22237  	parent       string
 22238  	urlParams_   gensupport.URLParams
 22239  	ifNoneMatch_ string
 22240  	ctx_         context.Context
 22241  	header_      http.Header
 22242  }
 22243  
 22244  // List: Returns the list of all intents in the specified agent.
 22245  //
 22246  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 22247  //     `projects//locations//agent`. Alternatively, you can specify the
 22248  //     environment to list intents for. Format: `projects//agent/environments/`
 22249  //     or `projects//locations//agent/environments/`. Note: training phrases of
 22250  //     the intents will not be returned for non-draft environment.
 22251  func (r *ProjectsAgentEnvironmentsIntentsService) List(parent string) *ProjectsAgentEnvironmentsIntentsListCall {
 22252  	c := &ProjectsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22253  	c.parent = parent
 22254  	return c
 22255  }
 22256  
 22257  // IntentView sets the optional parameter "intentView": The resource view to
 22258  // apply to the returned intent.
 22259  //
 22260  // Possible values:
 22261  //
 22262  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 22263  //
 22264  // response.
 22265  //
 22266  //	"INTENT_VIEW_FULL" - All fields are populated.
 22267  func (c *ProjectsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsAgentEnvironmentsIntentsListCall {
 22268  	c.urlParams_.Set("intentView", intentView)
 22269  	return c
 22270  }
 22271  
 22272  // LanguageCode sets the optional parameter "languageCode": The language used
 22273  // to access language-specific data. If not specified, the agent's default
 22274  // language is used. For more information, see Multilingual intent and entity
 22275  // data
 22276  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 22277  func (c *ProjectsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentEnvironmentsIntentsListCall {
 22278  	c.urlParams_.Set("languageCode", languageCode)
 22279  	return c
 22280  }
 22281  
 22282  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22283  // to return in a single page. By default 100 and at most 1000.
 22284  func (c *ProjectsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsIntentsListCall {
 22285  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22286  	return c
 22287  }
 22288  
 22289  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22290  // returned from a previous list request.
 22291  func (c *ProjectsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsIntentsListCall {
 22292  	c.urlParams_.Set("pageToken", pageToken)
 22293  	return c
 22294  }
 22295  
 22296  // Fields allows partial responses to be retrieved. See
 22297  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22298  // details.
 22299  func (c *ProjectsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsIntentsListCall {
 22300  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22301  	return c
 22302  }
 22303  
 22304  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22305  // object's ETag matches the given value. This is useful for getting updates
 22306  // only after the object has changed since the last request.
 22307  func (c *ProjectsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsIntentsListCall {
 22308  	c.ifNoneMatch_ = entityTag
 22309  	return c
 22310  }
 22311  
 22312  // Context sets the context to be used in this call's Do method.
 22313  func (c *ProjectsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsIntentsListCall {
 22314  	c.ctx_ = ctx
 22315  	return c
 22316  }
 22317  
 22318  // Header returns a http.Header that can be modified by the caller to add
 22319  // headers to the request.
 22320  func (c *ProjectsAgentEnvironmentsIntentsListCall) Header() http.Header {
 22321  	if c.header_ == nil {
 22322  		c.header_ = make(http.Header)
 22323  	}
 22324  	return c.header_
 22325  }
 22326  
 22327  func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
 22328  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22329  	if c.ifNoneMatch_ != "" {
 22330  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22331  	}
 22332  	var body io.Reader = nil
 22333  	c.urlParams_.Set("alt", alt)
 22334  	c.urlParams_.Set("prettyPrint", "false")
 22335  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
 22336  	urls += "?" + c.urlParams_.Encode()
 22337  	req, err := http.NewRequest("GET", urls, body)
 22338  	if err != nil {
 22339  		return nil, err
 22340  	}
 22341  	req.Header = reqHeaders
 22342  	googleapi.Expand(req.URL, map[string]string{
 22343  		"parent": c.parent,
 22344  	})
 22345  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22346  }
 22347  
 22348  // Do executes the "dialogflow.projects.agent.environments.intents.list" call.
 22349  // Any non-2xx status code is an error. Response headers are in either
 22350  // *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or
 22351  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 22352  // googleapi.IsNotModified to check whether the returned error was because
 22353  // http.StatusNotModified was returned.
 22354  func (c *ProjectsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
 22355  	gensupport.SetOptions(c.urlParams_, opts...)
 22356  	res, err := c.doRequest("json")
 22357  	if res != nil && res.StatusCode == http.StatusNotModified {
 22358  		if res.Body != nil {
 22359  			res.Body.Close()
 22360  		}
 22361  		return nil, gensupport.WrapError(&googleapi.Error{
 22362  			Code:   res.StatusCode,
 22363  			Header: res.Header,
 22364  		})
 22365  	}
 22366  	if err != nil {
 22367  		return nil, err
 22368  	}
 22369  	defer googleapi.CloseBody(res)
 22370  	if err := googleapi.CheckResponse(res); err != nil {
 22371  		return nil, gensupport.WrapError(err)
 22372  	}
 22373  	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
 22374  		ServerResponse: googleapi.ServerResponse{
 22375  			Header:         res.Header,
 22376  			HTTPStatusCode: res.StatusCode,
 22377  		},
 22378  	}
 22379  	target := &ret
 22380  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22381  		return nil, err
 22382  	}
 22383  	return ret, nil
 22384  }
 22385  
 22386  // Pages invokes f for each page of results.
 22387  // A non-nil error returned from f will halt the iteration.
 22388  // The provided context supersedes any context provided to the Context method.
 22389  func (c *ProjectsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
 22390  	c.ctx_ = ctx
 22391  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22392  	for {
 22393  		x, err := c.Do()
 22394  		if err != nil {
 22395  			return err
 22396  		}
 22397  		if err := f(x); err != nil {
 22398  			return err
 22399  		}
 22400  		if x.NextPageToken == "" {
 22401  			return nil
 22402  		}
 22403  		c.PageToken(x.NextPageToken)
 22404  	}
 22405  }
 22406  
 22407  type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
 22408  	s          *Service
 22409  	parent     string
 22410  	urlParams_ gensupport.URLParams
 22411  	ctx_       context.Context
 22412  	header_    http.Header
 22413  }
 22414  
 22415  // DeleteContexts: Deletes all active contexts in the specified session.
 22416  //
 22417  //   - parent: The name of the session to delete all contexts from. Supported
 22418  //     formats: - `projects//agent/sessions/, -
 22419  //     `projects//locations//agent/sessions/`, -
 22420  //     `projects//agent/environments//users//sessions/`, -
 22421  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 22422  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 22423  //     is not specified we assume default 'draft' environment. If `User ID` is
 22424  //     not specified, we assume default '-' user.
 22425  func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 22426  	c := &ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22427  	c.parent = parent
 22428  	return c
 22429  }
 22430  
 22431  // Fields allows partial responses to be retrieved. See
 22432  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22433  // details.
 22434  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 22435  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22436  	return c
 22437  }
 22438  
 22439  // Context sets the context to be used in this call's Do method.
 22440  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 22441  	c.ctx_ = ctx
 22442  	return c
 22443  }
 22444  
 22445  // Header returns a http.Header that can be modified by the caller to add
 22446  // headers to the request.
 22447  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
 22448  	if c.header_ == nil {
 22449  		c.header_ = make(http.Header)
 22450  	}
 22451  	return c.header_
 22452  }
 22453  
 22454  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 22455  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22456  	var body io.Reader = nil
 22457  	c.urlParams_.Set("alt", alt)
 22458  	c.urlParams_.Set("prettyPrint", "false")
 22459  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 22460  	urls += "?" + c.urlParams_.Encode()
 22461  	req, err := http.NewRequest("DELETE", urls, body)
 22462  	if err != nil {
 22463  		return nil, err
 22464  	}
 22465  	req.Header = reqHeaders
 22466  	googleapi.Expand(req.URL, map[string]string{
 22467  		"parent": c.parent,
 22468  	})
 22469  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22470  }
 22471  
 22472  // Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call.
 22473  // Any non-2xx status code is an error. Response headers are in either
 22474  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22475  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22476  // check whether the returned error was because http.StatusNotModified was
 22477  // returned.
 22478  func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22479  	gensupport.SetOptions(c.urlParams_, opts...)
 22480  	res, err := c.doRequest("json")
 22481  	if res != nil && res.StatusCode == http.StatusNotModified {
 22482  		if res.Body != nil {
 22483  			res.Body.Close()
 22484  		}
 22485  		return nil, gensupport.WrapError(&googleapi.Error{
 22486  			Code:   res.StatusCode,
 22487  			Header: res.Header,
 22488  		})
 22489  	}
 22490  	if err != nil {
 22491  		return nil, err
 22492  	}
 22493  	defer googleapi.CloseBody(res)
 22494  	if err := googleapi.CheckResponse(res); err != nil {
 22495  		return nil, gensupport.WrapError(err)
 22496  	}
 22497  	ret := &GoogleProtobufEmpty{
 22498  		ServerResponse: googleapi.ServerResponse{
 22499  			Header:         res.Header,
 22500  			HTTPStatusCode: res.StatusCode,
 22501  		},
 22502  	}
 22503  	target := &ret
 22504  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22505  		return nil, err
 22506  	}
 22507  	return ret, nil
 22508  }
 22509  
 22510  type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
 22511  	s                                               *Service
 22512  	sessionid                                       string
 22513  	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
 22514  	urlParams_                                      gensupport.URLParams
 22515  	ctx_                                            context.Context
 22516  	header_                                         http.Header
 22517  }
 22518  
 22519  // DetectIntent: Processes a natural language query and returns structured,
 22520  // actionable data as a result. This method is not idempotent, because it may
 22521  // cause contexts and session entity types to be updated, which in turn might
 22522  // affect results of future queries. If you might use Agent Assist
 22523  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 22524  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 22525  // `AnalyzeContent` has additional functionality for Agent Assist and other
 22526  // CCAI products. Note: Always use agent versions for production traffic. See
 22527  // Versions and environments
 22528  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 22529  //
 22530  // - session: The name of the session this query is sent to. Supported formats:
 22531  //   - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 22532  //     `projects//agent/environments//users//sessions/`, -
 22533  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 22534  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 22535  //     is not specified, we assume default 'draft' environment (`Environment ID`
 22536  //     might be referred to as environment name at some places). If `User ID` is
 22537  //     not specified, we are using "-". It's up to the API caller to choose an
 22538  //     appropriate `Session ID` and `User Id`. They can be a random number or
 22539  //     some type of user and session identifiers (preferably hashed). The length
 22540  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 22541  //     information, see the API interactions guide
 22542  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 22543  //     agent versions for production traffic. See Versions and environments
 22544  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 22545  func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
 22546  	c := &ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22547  	c.sessionid = sessionid
 22548  	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
 22549  	return c
 22550  }
 22551  
 22552  // Fields allows partial responses to be retrieved. See
 22553  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22554  // details.
 22555  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
 22556  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22557  	return c
 22558  }
 22559  
 22560  // Context sets the context to be used in this call's Do method.
 22561  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
 22562  	c.ctx_ = ctx
 22563  	return c
 22564  }
 22565  
 22566  // Header returns a http.Header that can be modified by the caller to add
 22567  // headers to the request.
 22568  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
 22569  	if c.header_ == nil {
 22570  		c.header_ = make(http.Header)
 22571  	}
 22572  	return c.header_
 22573  }
 22574  
 22575  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 22576  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22577  	var body io.Reader = nil
 22578  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
 22579  	if err != nil {
 22580  		return nil, err
 22581  	}
 22582  	c.urlParams_.Set("alt", alt)
 22583  	c.urlParams_.Set("prettyPrint", "false")
 22584  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
 22585  	urls += "?" + c.urlParams_.Encode()
 22586  	req, err := http.NewRequest("POST", urls, body)
 22587  	if err != nil {
 22588  		return nil, err
 22589  	}
 22590  	req.Header = reqHeaders
 22591  	googleapi.Expand(req.URL, map[string]string{
 22592  		"session": c.sessionid,
 22593  	})
 22594  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22595  }
 22596  
 22597  // Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call.
 22598  // Any non-2xx status code is an error. Response headers are in either
 22599  // *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or
 22600  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 22601  // googleapi.IsNotModified to check whether the returned error was because
 22602  // http.StatusNotModified was returned.
 22603  func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
 22604  	gensupport.SetOptions(c.urlParams_, opts...)
 22605  	res, err := c.doRequest("json")
 22606  	if res != nil && res.StatusCode == http.StatusNotModified {
 22607  		if res.Body != nil {
 22608  			res.Body.Close()
 22609  		}
 22610  		return nil, gensupport.WrapError(&googleapi.Error{
 22611  			Code:   res.StatusCode,
 22612  			Header: res.Header,
 22613  		})
 22614  	}
 22615  	if err != nil {
 22616  		return nil, err
 22617  	}
 22618  	defer googleapi.CloseBody(res)
 22619  	if err := googleapi.CheckResponse(res); err != nil {
 22620  		return nil, gensupport.WrapError(err)
 22621  	}
 22622  	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
 22623  		ServerResponse: googleapi.ServerResponse{
 22624  			Header:         res.Header,
 22625  			HTTPStatusCode: res.StatusCode,
 22626  		},
 22627  	}
 22628  	target := &ret
 22629  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22630  		return nil, err
 22631  	}
 22632  	return ret, nil
 22633  }
 22634  
 22635  type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
 22636  	s                                   *Service
 22637  	parent                              string
 22638  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 22639  	urlParams_                          gensupport.URLParams
 22640  	ctx_                                context.Context
 22641  	header_                             http.Header
 22642  }
 22643  
 22644  // Create: Creates a context. If the specified context already exists,
 22645  // overrides the context.
 22646  //
 22647  //   - parent: The session to create a context for. Supported formats: -
 22648  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 22649  //     `projects//agent/environments//users//sessions/`, -
 22650  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 22651  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 22652  //     is not specified, we assume default 'draft' environment. If `User ID` is
 22653  //     not specified, we assume default '-' user.
 22654  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
 22655  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22656  	c.parent = parent
 22657  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 22658  	return c
 22659  }
 22660  
 22661  // Fields allows partial responses to be retrieved. See
 22662  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22663  // details.
 22664  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
 22665  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22666  	return c
 22667  }
 22668  
 22669  // Context sets the context to be used in this call's Do method.
 22670  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
 22671  	c.ctx_ = ctx
 22672  	return c
 22673  }
 22674  
 22675  // Header returns a http.Header that can be modified by the caller to add
 22676  // headers to the request.
 22677  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
 22678  	if c.header_ == nil {
 22679  		c.header_ = make(http.Header)
 22680  	}
 22681  	return c.header_
 22682  }
 22683  
 22684  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 22685  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22686  	var body io.Reader = nil
 22687  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 22688  	if err != nil {
 22689  		return nil, err
 22690  	}
 22691  	c.urlParams_.Set("alt", alt)
 22692  	c.urlParams_.Set("prettyPrint", "false")
 22693  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 22694  	urls += "?" + c.urlParams_.Encode()
 22695  	req, err := http.NewRequest("POST", urls, body)
 22696  	if err != nil {
 22697  		return nil, err
 22698  	}
 22699  	req.Header = reqHeaders
 22700  	googleapi.Expand(req.URL, map[string]string{
 22701  		"parent": c.parent,
 22702  	})
 22703  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22704  }
 22705  
 22706  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call.
 22707  // Any non-2xx status code is an error. Response headers are in either
 22708  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 22709  // was returned at all) in error.(*googleapi.Error).Header. Use
 22710  // googleapi.IsNotModified to check whether the returned error was because
 22711  // http.StatusNotModified was returned.
 22712  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 22713  	gensupport.SetOptions(c.urlParams_, opts...)
 22714  	res, err := c.doRequest("json")
 22715  	if res != nil && res.StatusCode == http.StatusNotModified {
 22716  		if res.Body != nil {
 22717  			res.Body.Close()
 22718  		}
 22719  		return nil, gensupport.WrapError(&googleapi.Error{
 22720  			Code:   res.StatusCode,
 22721  			Header: res.Header,
 22722  		})
 22723  	}
 22724  	if err != nil {
 22725  		return nil, err
 22726  	}
 22727  	defer googleapi.CloseBody(res)
 22728  	if err := googleapi.CheckResponse(res); err != nil {
 22729  		return nil, gensupport.WrapError(err)
 22730  	}
 22731  	ret := &GoogleCloudDialogflowV2beta1Context{
 22732  		ServerResponse: googleapi.ServerResponse{
 22733  			Header:         res.Header,
 22734  			HTTPStatusCode: res.StatusCode,
 22735  		},
 22736  	}
 22737  	target := &ret
 22738  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22739  		return nil, err
 22740  	}
 22741  	return ret, nil
 22742  }
 22743  
 22744  type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
 22745  	s          *Service
 22746  	name       string
 22747  	urlParams_ gensupport.URLParams
 22748  	ctx_       context.Context
 22749  	header_    http.Header
 22750  }
 22751  
 22752  // Delete: Deletes the specified context.
 22753  //
 22754  //   - name: The name of the context to delete. Supported formats: -
 22755  //     `projects//agent/sessions//contexts/`, -
 22756  //     `projects//locations//agent/sessions//contexts/`, -
 22757  //     `projects//agent/environments//users//sessions//contexts/`, -
 22758  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 22759  //     `Location ID` is not specified we assume default 'us' location. If
 22760  //     `Environment ID` is not specified, we assume default 'draft' environment.
 22761  //     If `User ID` is not specified, we assume default '-' user.
 22762  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 22763  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22764  	c.name = name
 22765  	return c
 22766  }
 22767  
 22768  // Fields allows partial responses to be retrieved. See
 22769  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22770  // details.
 22771  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 22772  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22773  	return c
 22774  }
 22775  
 22776  // Context sets the context to be used in this call's Do method.
 22777  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 22778  	c.ctx_ = ctx
 22779  	return c
 22780  }
 22781  
 22782  // Header returns a http.Header that can be modified by the caller to add
 22783  // headers to the request.
 22784  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
 22785  	if c.header_ == nil {
 22786  		c.header_ = make(http.Header)
 22787  	}
 22788  	return c.header_
 22789  }
 22790  
 22791  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 22792  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22793  	var body io.Reader = nil
 22794  	c.urlParams_.Set("alt", alt)
 22795  	c.urlParams_.Set("prettyPrint", "false")
 22796  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 22797  	urls += "?" + c.urlParams_.Encode()
 22798  	req, err := http.NewRequest("DELETE", urls, body)
 22799  	if err != nil {
 22800  		return nil, err
 22801  	}
 22802  	req.Header = reqHeaders
 22803  	googleapi.Expand(req.URL, map[string]string{
 22804  		"name": c.name,
 22805  	})
 22806  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22807  }
 22808  
 22809  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call.
 22810  // Any non-2xx status code is an error. Response headers are in either
 22811  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22812  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22813  // check whether the returned error was because http.StatusNotModified was
 22814  // returned.
 22815  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22816  	gensupport.SetOptions(c.urlParams_, opts...)
 22817  	res, err := c.doRequest("json")
 22818  	if res != nil && res.StatusCode == http.StatusNotModified {
 22819  		if res.Body != nil {
 22820  			res.Body.Close()
 22821  		}
 22822  		return nil, gensupport.WrapError(&googleapi.Error{
 22823  			Code:   res.StatusCode,
 22824  			Header: res.Header,
 22825  		})
 22826  	}
 22827  	if err != nil {
 22828  		return nil, err
 22829  	}
 22830  	defer googleapi.CloseBody(res)
 22831  	if err := googleapi.CheckResponse(res); err != nil {
 22832  		return nil, gensupport.WrapError(err)
 22833  	}
 22834  	ret := &GoogleProtobufEmpty{
 22835  		ServerResponse: googleapi.ServerResponse{
 22836  			Header:         res.Header,
 22837  			HTTPStatusCode: res.StatusCode,
 22838  		},
 22839  	}
 22840  	target := &ret
 22841  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22842  		return nil, err
 22843  	}
 22844  	return ret, nil
 22845  }
 22846  
 22847  type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
 22848  	s            *Service
 22849  	name         string
 22850  	urlParams_   gensupport.URLParams
 22851  	ifNoneMatch_ string
 22852  	ctx_         context.Context
 22853  	header_      http.Header
 22854  }
 22855  
 22856  // Get: Retrieves the specified context.
 22857  //
 22858  //   - name: The name of the context. Supported formats: -
 22859  //     `projects//agent/sessions//contexts/`, -
 22860  //     `projects//locations//agent/sessions//contexts/`, -
 22861  //     `projects//agent/environments//users//sessions//contexts/`, -
 22862  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 22863  //     `Location ID` is not specified we assume default 'us' location. If
 22864  //     `Environment ID` is not specified, we assume default 'draft' environment.
 22865  //     If `User ID` is not specified, we assume default '-' user.
 22866  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22867  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22868  	c.name = name
 22869  	return c
 22870  }
 22871  
 22872  // Fields allows partial responses to be retrieved. See
 22873  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22874  // details.
 22875  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22876  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22877  	return c
 22878  }
 22879  
 22880  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22881  // object's ETag matches the given value. This is useful for getting updates
 22882  // only after the object has changed since the last request.
 22883  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22884  	c.ifNoneMatch_ = entityTag
 22885  	return c
 22886  }
 22887  
 22888  // Context sets the context to be used in this call's Do method.
 22889  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
 22890  	c.ctx_ = ctx
 22891  	return c
 22892  }
 22893  
 22894  // Header returns a http.Header that can be modified by the caller to add
 22895  // headers to the request.
 22896  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
 22897  	if c.header_ == nil {
 22898  		c.header_ = make(http.Header)
 22899  	}
 22900  	return c.header_
 22901  }
 22902  
 22903  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 22904  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22905  	if c.ifNoneMatch_ != "" {
 22906  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22907  	}
 22908  	var body io.Reader = nil
 22909  	c.urlParams_.Set("alt", alt)
 22910  	c.urlParams_.Set("prettyPrint", "false")
 22911  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 22912  	urls += "?" + c.urlParams_.Encode()
 22913  	req, err := http.NewRequest("GET", urls, body)
 22914  	if err != nil {
 22915  		return nil, err
 22916  	}
 22917  	req.Header = reqHeaders
 22918  	googleapi.Expand(req.URL, map[string]string{
 22919  		"name": c.name,
 22920  	})
 22921  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22922  }
 22923  
 22924  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call.
 22925  // Any non-2xx status code is an error. Response headers are in either
 22926  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 22927  // was returned at all) in error.(*googleapi.Error).Header. Use
 22928  // googleapi.IsNotModified to check whether the returned error was because
 22929  // http.StatusNotModified was returned.
 22930  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 22931  	gensupport.SetOptions(c.urlParams_, opts...)
 22932  	res, err := c.doRequest("json")
 22933  	if res != nil && res.StatusCode == http.StatusNotModified {
 22934  		if res.Body != nil {
 22935  			res.Body.Close()
 22936  		}
 22937  		return nil, gensupport.WrapError(&googleapi.Error{
 22938  			Code:   res.StatusCode,
 22939  			Header: res.Header,
 22940  		})
 22941  	}
 22942  	if err != nil {
 22943  		return nil, err
 22944  	}
 22945  	defer googleapi.CloseBody(res)
 22946  	if err := googleapi.CheckResponse(res); err != nil {
 22947  		return nil, gensupport.WrapError(err)
 22948  	}
 22949  	ret := &GoogleCloudDialogflowV2beta1Context{
 22950  		ServerResponse: googleapi.ServerResponse{
 22951  			Header:         res.Header,
 22952  			HTTPStatusCode: res.StatusCode,
 22953  		},
 22954  	}
 22955  	target := &ret
 22956  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22957  		return nil, err
 22958  	}
 22959  	return ret, nil
 22960  }
 22961  
 22962  type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
 22963  	s            *Service
 22964  	parent       string
 22965  	urlParams_   gensupport.URLParams
 22966  	ifNoneMatch_ string
 22967  	ctx_         context.Context
 22968  	header_      http.Header
 22969  }
 22970  
 22971  // List: Returns the list of all contexts in the specified session.
 22972  //
 22973  //   - parent: The session to list all contexts from. Supported formats: -
 22974  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 22975  //     `projects//agent/environments//users//sessions/`, -
 22976  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 22977  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 22978  //     is not specified, we assume default 'draft' environment. If `User ID` is
 22979  //     not specified, we assume default '-' user.
 22980  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22981  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22982  	c.parent = parent
 22983  	return c
 22984  }
 22985  
 22986  // PageSize sets the optional parameter "pageSize": The maximum number of items
 22987  // to return in a single page. By default 100 and at most 1000.
 22988  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22989  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22990  	return c
 22991  }
 22992  
 22993  // PageToken sets the optional parameter "pageToken": The next_page_token value
 22994  // returned from a previous list request.
 22995  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 22996  	c.urlParams_.Set("pageToken", pageToken)
 22997  	return c
 22998  }
 22999  
 23000  // Fields allows partial responses to be retrieved. See
 23001  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23002  // details.
 23003  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 23004  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23005  	return c
 23006  }
 23007  
 23008  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23009  // object's ETag matches the given value. This is useful for getting updates
 23010  // only after the object has changed since the last request.
 23011  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 23012  	c.ifNoneMatch_ = entityTag
 23013  	return c
 23014  }
 23015  
 23016  // Context sets the context to be used in this call's Do method.
 23017  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
 23018  	c.ctx_ = ctx
 23019  	return c
 23020  }
 23021  
 23022  // Header returns a http.Header that can be modified by the caller to add
 23023  // headers to the request.
 23024  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
 23025  	if c.header_ == nil {
 23026  		c.header_ = make(http.Header)
 23027  	}
 23028  	return c.header_
 23029  }
 23030  
 23031  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 23032  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23033  	if c.ifNoneMatch_ != "" {
 23034  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23035  	}
 23036  	var body io.Reader = nil
 23037  	c.urlParams_.Set("alt", alt)
 23038  	c.urlParams_.Set("prettyPrint", "false")
 23039  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 23040  	urls += "?" + c.urlParams_.Encode()
 23041  	req, err := http.NewRequest("GET", urls, body)
 23042  	if err != nil {
 23043  		return nil, err
 23044  	}
 23045  	req.Header = reqHeaders
 23046  	googleapi.Expand(req.URL, map[string]string{
 23047  		"parent": c.parent,
 23048  	})
 23049  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23050  }
 23051  
 23052  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call.
 23053  // Any non-2xx status code is an error. Response headers are in either
 23054  // *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or
 23055  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 23056  // googleapi.IsNotModified to check whether the returned error was because
 23057  // http.StatusNotModified was returned.
 23058  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
 23059  	gensupport.SetOptions(c.urlParams_, opts...)
 23060  	res, err := c.doRequest("json")
 23061  	if res != nil && res.StatusCode == http.StatusNotModified {
 23062  		if res.Body != nil {
 23063  			res.Body.Close()
 23064  		}
 23065  		return nil, gensupport.WrapError(&googleapi.Error{
 23066  			Code:   res.StatusCode,
 23067  			Header: res.Header,
 23068  		})
 23069  	}
 23070  	if err != nil {
 23071  		return nil, err
 23072  	}
 23073  	defer googleapi.CloseBody(res)
 23074  	if err := googleapi.CheckResponse(res); err != nil {
 23075  		return nil, gensupport.WrapError(err)
 23076  	}
 23077  	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
 23078  		ServerResponse: googleapi.ServerResponse{
 23079  			Header:         res.Header,
 23080  			HTTPStatusCode: res.StatusCode,
 23081  		},
 23082  	}
 23083  	target := &ret
 23084  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23085  		return nil, err
 23086  	}
 23087  	return ret, nil
 23088  }
 23089  
 23090  // Pages invokes f for each page of results.
 23091  // A non-nil error returned from f will halt the iteration.
 23092  // The provided context supersedes any context provided to the Context method.
 23093  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
 23094  	c.ctx_ = ctx
 23095  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23096  	for {
 23097  		x, err := c.Do()
 23098  		if err != nil {
 23099  			return err
 23100  		}
 23101  		if err := f(x); err != nil {
 23102  			return err
 23103  		}
 23104  		if x.NextPageToken == "" {
 23105  			return nil
 23106  		}
 23107  		c.PageToken(x.NextPageToken)
 23108  	}
 23109  }
 23110  
 23111  type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
 23112  	s                                   *Service
 23113  	nameid                              string
 23114  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 23115  	urlParams_                          gensupport.URLParams
 23116  	ctx_                                context.Context
 23117  	header_                             http.Header
 23118  }
 23119  
 23120  // Patch: Updates the specified context.
 23121  //
 23122  //   - name: The unique identifier of the context. Supported formats: -
 23123  //     `projects//agent/sessions//contexts/`, -
 23124  //     `projects//locations//agent/sessions//contexts/`, -
 23125  //     `projects//agent/environments//users//sessions//contexts/`, -
 23126  //     `projects//locations//agent/environments//users//sessions//contexts/`, The
 23127  //     `Context ID` is always converted to lowercase, may only contain characters
 23128  //     in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID`
 23129  //     is not specified, we assume default 'draft' environment. If `User ID` is
 23130  //     not specified, we assume default '-' user. The following context names are
 23131  //     reserved for internal use by Dialogflow. You should not use these contexts
 23132  //     or create contexts with these names: * `__system_counters__` *
 23133  //     `*_id_dialog_context` * `*_dialog_params_size`.
 23134  func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 23135  	c := &ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23136  	c.nameid = nameid
 23137  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 23138  	return c
 23139  }
 23140  
 23141  // UpdateMask sets the optional parameter "updateMask": The mask to control
 23142  // which fields get updated.
 23143  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 23144  	c.urlParams_.Set("updateMask", updateMask)
 23145  	return c
 23146  }
 23147  
 23148  // Fields allows partial responses to be retrieved. See
 23149  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23150  // details.
 23151  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 23152  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23153  	return c
 23154  }
 23155  
 23156  // Context sets the context to be used in this call's Do method.
 23157  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
 23158  	c.ctx_ = ctx
 23159  	return c
 23160  }
 23161  
 23162  // Header returns a http.Header that can be modified by the caller to add
 23163  // headers to the request.
 23164  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
 23165  	if c.header_ == nil {
 23166  		c.header_ = make(http.Header)
 23167  	}
 23168  	return c.header_
 23169  }
 23170  
 23171  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 23172  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23173  	var body io.Reader = nil
 23174  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 23175  	if err != nil {
 23176  		return nil, err
 23177  	}
 23178  	c.urlParams_.Set("alt", alt)
 23179  	c.urlParams_.Set("prettyPrint", "false")
 23180  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 23181  	urls += "?" + c.urlParams_.Encode()
 23182  	req, err := http.NewRequest("PATCH", urls, body)
 23183  	if err != nil {
 23184  		return nil, err
 23185  	}
 23186  	req.Header = reqHeaders
 23187  	googleapi.Expand(req.URL, map[string]string{
 23188  		"name": c.nameid,
 23189  	})
 23190  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23191  }
 23192  
 23193  // Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call.
 23194  // Any non-2xx status code is an error. Response headers are in either
 23195  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 23196  // was returned at all) in error.(*googleapi.Error).Header. Use
 23197  // googleapi.IsNotModified to check whether the returned error was because
 23198  // http.StatusNotModified was returned.
 23199  func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 23200  	gensupport.SetOptions(c.urlParams_, opts...)
 23201  	res, err := c.doRequest("json")
 23202  	if res != nil && res.StatusCode == http.StatusNotModified {
 23203  		if res.Body != nil {
 23204  			res.Body.Close()
 23205  		}
 23206  		return nil, gensupport.WrapError(&googleapi.Error{
 23207  			Code:   res.StatusCode,
 23208  			Header: res.Header,
 23209  		})
 23210  	}
 23211  	if err != nil {
 23212  		return nil, err
 23213  	}
 23214  	defer googleapi.CloseBody(res)
 23215  	if err := googleapi.CheckResponse(res); err != nil {
 23216  		return nil, gensupport.WrapError(err)
 23217  	}
 23218  	ret := &GoogleCloudDialogflowV2beta1Context{
 23219  		ServerResponse: googleapi.ServerResponse{
 23220  			Header:         res.Header,
 23221  			HTTPStatusCode: res.StatusCode,
 23222  		},
 23223  	}
 23224  	target := &ret
 23225  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23226  		return nil, err
 23227  	}
 23228  	return ret, nil
 23229  }
 23230  
 23231  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
 23232  	s                                             *Service
 23233  	parent                                        string
 23234  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 23235  	urlParams_                                    gensupport.URLParams
 23236  	ctx_                                          context.Context
 23237  	header_                                       http.Header
 23238  }
 23239  
 23240  // Create: Creates a session entity type. If the specified session entity type
 23241  // already exists, overrides the session entity type. This method doesn't work
 23242  // with Google Assistant integration. Contact Dialogflow support if you need to
 23243  // use session entities with Google Assistant integration.
 23244  //
 23245  //   - parent: The session to create a session entity type for. Supported
 23246  //     formats: - `projects//agent/sessions/, -
 23247  //     `projects//locations//agent/sessions/`, -
 23248  //     `projects//agent/environments//users//sessions/`, -
 23249  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 23250  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 23251  //     is not specified, we assume default 'draft' environment. If `User ID` is
 23252  //     not specified, we assume default '-' user.
 23253  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 23254  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23255  	c.parent = parent
 23256  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 23257  	return c
 23258  }
 23259  
 23260  // Fields allows partial responses to be retrieved. See
 23261  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23262  // details.
 23263  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 23264  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23265  	return c
 23266  }
 23267  
 23268  // Context sets the context to be used in this call's Do method.
 23269  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 23270  	c.ctx_ = ctx
 23271  	return c
 23272  }
 23273  
 23274  // Header returns a http.Header that can be modified by the caller to add
 23275  // headers to the request.
 23276  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
 23277  	if c.header_ == nil {
 23278  		c.header_ = make(http.Header)
 23279  	}
 23280  	return c.header_
 23281  }
 23282  
 23283  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 23284  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23285  	var body io.Reader = nil
 23286  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 23287  	if err != nil {
 23288  		return nil, err
 23289  	}
 23290  	c.urlParams_.Set("alt", alt)
 23291  	c.urlParams_.Set("prettyPrint", "false")
 23292  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 23293  	urls += "?" + c.urlParams_.Encode()
 23294  	req, err := http.NewRequest("POST", urls, body)
 23295  	if err != nil {
 23296  		return nil, err
 23297  	}
 23298  	req.Header = reqHeaders
 23299  	googleapi.Expand(req.URL, map[string]string{
 23300  		"parent": c.parent,
 23301  	})
 23302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23303  }
 23304  
 23305  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call.
 23306  // Any non-2xx status code is an error. Response headers are in either
 23307  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 23308  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23309  // googleapi.IsNotModified to check whether the returned error was because
 23310  // http.StatusNotModified was returned.
 23311  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 23312  	gensupport.SetOptions(c.urlParams_, opts...)
 23313  	res, err := c.doRequest("json")
 23314  	if res != nil && res.StatusCode == http.StatusNotModified {
 23315  		if res.Body != nil {
 23316  			res.Body.Close()
 23317  		}
 23318  		return nil, gensupport.WrapError(&googleapi.Error{
 23319  			Code:   res.StatusCode,
 23320  			Header: res.Header,
 23321  		})
 23322  	}
 23323  	if err != nil {
 23324  		return nil, err
 23325  	}
 23326  	defer googleapi.CloseBody(res)
 23327  	if err := googleapi.CheckResponse(res); err != nil {
 23328  		return nil, gensupport.WrapError(err)
 23329  	}
 23330  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 23331  		ServerResponse: googleapi.ServerResponse{
 23332  			Header:         res.Header,
 23333  			HTTPStatusCode: res.StatusCode,
 23334  		},
 23335  	}
 23336  	target := &ret
 23337  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23338  		return nil, err
 23339  	}
 23340  	return ret, nil
 23341  }
 23342  
 23343  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
 23344  	s          *Service
 23345  	name       string
 23346  	urlParams_ gensupport.URLParams
 23347  	ctx_       context.Context
 23348  	header_    http.Header
 23349  }
 23350  
 23351  // Delete: Deletes the specified session entity type. This method doesn't work
 23352  // with Google Assistant integration. Contact Dialogflow support if you need to
 23353  // use session entities with Google Assistant integration.
 23354  //
 23355  //   - name: The name of the entity type to delete. Supported formats: -
 23356  //     `projects//agent/sessions//entityTypes/` -
 23357  //     `projects//locations//agent/sessions//entityTypes/` -
 23358  //     `projects//agent/environments//users//sessions//entityTypes/` -
 23359  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 23360  //     If `Location ID` is not specified we assume default 'us' location. If
 23361  //     `Environment ID` is not specified, we assume default 'draft' environment.
 23362  //     If `User ID` is not specified, we assume default '-' user.
 23363  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 23364  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23365  	c.name = name
 23366  	return c
 23367  }
 23368  
 23369  // Fields allows partial responses to be retrieved. See
 23370  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23371  // details.
 23372  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 23373  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23374  	return c
 23375  }
 23376  
 23377  // Context sets the context to be used in this call's Do method.
 23378  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 23379  	c.ctx_ = ctx
 23380  	return c
 23381  }
 23382  
 23383  // Header returns a http.Header that can be modified by the caller to add
 23384  // headers to the request.
 23385  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
 23386  	if c.header_ == nil {
 23387  		c.header_ = make(http.Header)
 23388  	}
 23389  	return c.header_
 23390  }
 23391  
 23392  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 23393  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23394  	var body io.Reader = nil
 23395  	c.urlParams_.Set("alt", alt)
 23396  	c.urlParams_.Set("prettyPrint", "false")
 23397  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 23398  	urls += "?" + c.urlParams_.Encode()
 23399  	req, err := http.NewRequest("DELETE", urls, body)
 23400  	if err != nil {
 23401  		return nil, err
 23402  	}
 23403  	req.Header = reqHeaders
 23404  	googleapi.Expand(req.URL, map[string]string{
 23405  		"name": c.name,
 23406  	})
 23407  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23408  }
 23409  
 23410  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call.
 23411  // Any non-2xx status code is an error. Response headers are in either
 23412  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23413  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23414  // check whether the returned error was because http.StatusNotModified was
 23415  // returned.
 23416  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23417  	gensupport.SetOptions(c.urlParams_, opts...)
 23418  	res, err := c.doRequest("json")
 23419  	if res != nil && res.StatusCode == http.StatusNotModified {
 23420  		if res.Body != nil {
 23421  			res.Body.Close()
 23422  		}
 23423  		return nil, gensupport.WrapError(&googleapi.Error{
 23424  			Code:   res.StatusCode,
 23425  			Header: res.Header,
 23426  		})
 23427  	}
 23428  	if err != nil {
 23429  		return nil, err
 23430  	}
 23431  	defer googleapi.CloseBody(res)
 23432  	if err := googleapi.CheckResponse(res); err != nil {
 23433  		return nil, gensupport.WrapError(err)
 23434  	}
 23435  	ret := &GoogleProtobufEmpty{
 23436  		ServerResponse: googleapi.ServerResponse{
 23437  			Header:         res.Header,
 23438  			HTTPStatusCode: res.StatusCode,
 23439  		},
 23440  	}
 23441  	target := &ret
 23442  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23443  		return nil, err
 23444  	}
 23445  	return ret, nil
 23446  }
 23447  
 23448  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
 23449  	s            *Service
 23450  	name         string
 23451  	urlParams_   gensupport.URLParams
 23452  	ifNoneMatch_ string
 23453  	ctx_         context.Context
 23454  	header_      http.Header
 23455  }
 23456  
 23457  // Get: Retrieves the specified session entity type. This method doesn't work
 23458  // with Google Assistant integration. Contact Dialogflow support if you need to
 23459  // use session entities with Google Assistant integration.
 23460  //
 23461  //   - name: The name of the session entity type. Supported formats: -
 23462  //     `projects//agent/sessions//entityTypes/` -
 23463  //     `projects//locations//agent/sessions//entityTypes/` -
 23464  //     `projects//agent/environments//users//sessions//entityTypes/` -
 23465  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 23466  //     If `Location ID` is not specified we assume default 'us' location. If
 23467  //     `Environment ID` is not specified, we assume default 'draft' environment.
 23468  //     If `User ID` is not specified, we assume default '-' user.
 23469  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23470  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23471  	c.name = name
 23472  	return c
 23473  }
 23474  
 23475  // Fields allows partial responses to be retrieved. See
 23476  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23477  // details.
 23478  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23479  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23480  	return c
 23481  }
 23482  
 23483  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23484  // object's ETag matches the given value. This is useful for getting updates
 23485  // only after the object has changed since the last request.
 23486  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23487  	c.ifNoneMatch_ = entityTag
 23488  	return c
 23489  }
 23490  
 23491  // Context sets the context to be used in this call's Do method.
 23492  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 23493  	c.ctx_ = ctx
 23494  	return c
 23495  }
 23496  
 23497  // Header returns a http.Header that can be modified by the caller to add
 23498  // headers to the request.
 23499  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
 23500  	if c.header_ == nil {
 23501  		c.header_ = make(http.Header)
 23502  	}
 23503  	return c.header_
 23504  }
 23505  
 23506  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 23507  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23508  	if c.ifNoneMatch_ != "" {
 23509  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23510  	}
 23511  	var body io.Reader = nil
 23512  	c.urlParams_.Set("alt", alt)
 23513  	c.urlParams_.Set("prettyPrint", "false")
 23514  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 23515  	urls += "?" + c.urlParams_.Encode()
 23516  	req, err := http.NewRequest("GET", urls, body)
 23517  	if err != nil {
 23518  		return nil, err
 23519  	}
 23520  	req.Header = reqHeaders
 23521  	googleapi.Expand(req.URL, map[string]string{
 23522  		"name": c.name,
 23523  	})
 23524  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23525  }
 23526  
 23527  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call.
 23528  // Any non-2xx status code is an error. Response headers are in either
 23529  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 23530  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23531  // googleapi.IsNotModified to check whether the returned error was because
 23532  // http.StatusNotModified was returned.
 23533  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 23534  	gensupport.SetOptions(c.urlParams_, opts...)
 23535  	res, err := c.doRequest("json")
 23536  	if res != nil && res.StatusCode == http.StatusNotModified {
 23537  		if res.Body != nil {
 23538  			res.Body.Close()
 23539  		}
 23540  		return nil, gensupport.WrapError(&googleapi.Error{
 23541  			Code:   res.StatusCode,
 23542  			Header: res.Header,
 23543  		})
 23544  	}
 23545  	if err != nil {
 23546  		return nil, err
 23547  	}
 23548  	defer googleapi.CloseBody(res)
 23549  	if err := googleapi.CheckResponse(res); err != nil {
 23550  		return nil, gensupport.WrapError(err)
 23551  	}
 23552  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 23553  		ServerResponse: googleapi.ServerResponse{
 23554  			Header:         res.Header,
 23555  			HTTPStatusCode: res.StatusCode,
 23556  		},
 23557  	}
 23558  	target := &ret
 23559  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23560  		return nil, err
 23561  	}
 23562  	return ret, nil
 23563  }
 23564  
 23565  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
 23566  	s            *Service
 23567  	parent       string
 23568  	urlParams_   gensupport.URLParams
 23569  	ifNoneMatch_ string
 23570  	ctx_         context.Context
 23571  	header_      http.Header
 23572  }
 23573  
 23574  // List: Returns the list of all session entity types in the specified session.
 23575  // This method doesn't work with Google Assistant integration. Contact
 23576  // Dialogflow support if you need to use session entities with Google Assistant
 23577  // integration.
 23578  //
 23579  //   - parent: The session to list all session entity types from. Supported
 23580  //     formats: - `projects//agent/sessions/, -
 23581  //     `projects//locations//agent/sessions/`, -
 23582  //     `projects//agent/environments//users//sessions/`, -
 23583  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 23584  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 23585  //     is not specified, we assume default 'draft' environment. If `User ID` is
 23586  //     not specified, we assume default '-' user.
 23587  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23588  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23589  	c.parent = parent
 23590  	return c
 23591  }
 23592  
 23593  // PageSize sets the optional parameter "pageSize": The maximum number of items
 23594  // to return in a single page. By default 100 and at most 1000.
 23595  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23596  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23597  	return c
 23598  }
 23599  
 23600  // PageToken sets the optional parameter "pageToken": The next_page_token value
 23601  // returned from a previous list request.
 23602  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23603  	c.urlParams_.Set("pageToken", pageToken)
 23604  	return c
 23605  }
 23606  
 23607  // Fields allows partial responses to be retrieved. See
 23608  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23609  // details.
 23610  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23611  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23612  	return c
 23613  }
 23614  
 23615  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23616  // object's ETag matches the given value. This is useful for getting updates
 23617  // only after the object has changed since the last request.
 23618  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23619  	c.ifNoneMatch_ = entityTag
 23620  	return c
 23621  }
 23622  
 23623  // Context sets the context to be used in this call's Do method.
 23624  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 23625  	c.ctx_ = ctx
 23626  	return c
 23627  }
 23628  
 23629  // Header returns a http.Header that can be modified by the caller to add
 23630  // headers to the request.
 23631  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
 23632  	if c.header_ == nil {
 23633  		c.header_ = make(http.Header)
 23634  	}
 23635  	return c.header_
 23636  }
 23637  
 23638  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 23639  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23640  	if c.ifNoneMatch_ != "" {
 23641  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23642  	}
 23643  	var body io.Reader = nil
 23644  	c.urlParams_.Set("alt", alt)
 23645  	c.urlParams_.Set("prettyPrint", "false")
 23646  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 23647  	urls += "?" + c.urlParams_.Encode()
 23648  	req, err := http.NewRequest("GET", urls, body)
 23649  	if err != nil {
 23650  		return nil, err
 23651  	}
 23652  	req.Header = reqHeaders
 23653  	googleapi.Expand(req.URL, map[string]string{
 23654  		"parent": c.parent,
 23655  	})
 23656  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23657  }
 23658  
 23659  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call.
 23660  // Any non-2xx status code is an error. Response headers are in either
 23661  // *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.He
 23662  // ader or (if a response was returned at all) in
 23663  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23664  // whether the returned error was because http.StatusNotModified was returned.
 23665  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
 23666  	gensupport.SetOptions(c.urlParams_, opts...)
 23667  	res, err := c.doRequest("json")
 23668  	if res != nil && res.StatusCode == http.StatusNotModified {
 23669  		if res.Body != nil {
 23670  			res.Body.Close()
 23671  		}
 23672  		return nil, gensupport.WrapError(&googleapi.Error{
 23673  			Code:   res.StatusCode,
 23674  			Header: res.Header,
 23675  		})
 23676  	}
 23677  	if err != nil {
 23678  		return nil, err
 23679  	}
 23680  	defer googleapi.CloseBody(res)
 23681  	if err := googleapi.CheckResponse(res); err != nil {
 23682  		return nil, gensupport.WrapError(err)
 23683  	}
 23684  	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
 23685  		ServerResponse: googleapi.ServerResponse{
 23686  			Header:         res.Header,
 23687  			HTTPStatusCode: res.StatusCode,
 23688  		},
 23689  	}
 23690  	target := &ret
 23691  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23692  		return nil, err
 23693  	}
 23694  	return ret, nil
 23695  }
 23696  
 23697  // Pages invokes f for each page of results.
 23698  // A non-nil error returned from f will halt the iteration.
 23699  // The provided context supersedes any context provided to the Context method.
 23700  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
 23701  	c.ctx_ = ctx
 23702  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23703  	for {
 23704  		x, err := c.Do()
 23705  		if err != nil {
 23706  			return err
 23707  		}
 23708  		if err := f(x); err != nil {
 23709  			return err
 23710  		}
 23711  		if x.NextPageToken == "" {
 23712  			return nil
 23713  		}
 23714  		c.PageToken(x.NextPageToken)
 23715  	}
 23716  }
 23717  
 23718  type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
 23719  	s                                             *Service
 23720  	nameid                                        string
 23721  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 23722  	urlParams_                                    gensupport.URLParams
 23723  	ctx_                                          context.Context
 23724  	header_                                       http.Header
 23725  }
 23726  
 23727  // Patch: Updates the specified session entity type. This method doesn't work
 23728  // with Google Assistant integration. Contact Dialogflow support if you need to
 23729  // use session entities with Google Assistant integration.
 23730  //
 23731  //   - name: The unique identifier of this session entity type. Supported
 23732  //     formats: - `projects//agent/sessions//entityTypes/` -
 23733  //     `projects//locations//agent/sessions//entityTypes/` -
 23734  //     `projects//agent/environments//users//sessions//entityTypes/` -
 23735  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 23736  //     If `Location ID` is not specified we assume default 'us' location. If
 23737  //     `Environment ID` is not specified, we assume default 'draft' environment.
 23738  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 23739  //     display name of an existing entity type in the same agent that will be
 23740  //     overridden or supplemented.
 23741  func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23742  	c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23743  	c.nameid = nameid
 23744  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 23745  	return c
 23746  }
 23747  
 23748  // UpdateMask sets the optional parameter "updateMask": The mask to control
 23749  // which fields get updated.
 23750  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23751  	c.urlParams_.Set("updateMask", updateMask)
 23752  	return c
 23753  }
 23754  
 23755  // Fields allows partial responses to be retrieved. See
 23756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23757  // details.
 23758  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23760  	return c
 23761  }
 23762  
 23763  // Context sets the context to be used in this call's Do method.
 23764  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 23765  	c.ctx_ = ctx
 23766  	return c
 23767  }
 23768  
 23769  // Header returns a http.Header that can be modified by the caller to add
 23770  // headers to the request.
 23771  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
 23772  	if c.header_ == nil {
 23773  		c.header_ = make(http.Header)
 23774  	}
 23775  	return c.header_
 23776  }
 23777  
 23778  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 23779  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23780  	var body io.Reader = nil
 23781  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 23782  	if err != nil {
 23783  		return nil, err
 23784  	}
 23785  	c.urlParams_.Set("alt", alt)
 23786  	c.urlParams_.Set("prettyPrint", "false")
 23787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 23788  	urls += "?" + c.urlParams_.Encode()
 23789  	req, err := http.NewRequest("PATCH", urls, body)
 23790  	if err != nil {
 23791  		return nil, err
 23792  	}
 23793  	req.Header = reqHeaders
 23794  	googleapi.Expand(req.URL, map[string]string{
 23795  		"name": c.nameid,
 23796  	})
 23797  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23798  }
 23799  
 23800  // Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call.
 23801  // Any non-2xx status code is an error. Response headers are in either
 23802  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 23803  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23804  // googleapi.IsNotModified to check whether the returned error was because
 23805  // http.StatusNotModified was returned.
 23806  func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 23807  	gensupport.SetOptions(c.urlParams_, opts...)
 23808  	res, err := c.doRequest("json")
 23809  	if res != nil && res.StatusCode == http.StatusNotModified {
 23810  		if res.Body != nil {
 23811  			res.Body.Close()
 23812  		}
 23813  		return nil, gensupport.WrapError(&googleapi.Error{
 23814  			Code:   res.StatusCode,
 23815  			Header: res.Header,
 23816  		})
 23817  	}
 23818  	if err != nil {
 23819  		return nil, err
 23820  	}
 23821  	defer googleapi.CloseBody(res)
 23822  	if err := googleapi.CheckResponse(res); err != nil {
 23823  		return nil, gensupport.WrapError(err)
 23824  	}
 23825  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 23826  		ServerResponse: googleapi.ServerResponse{
 23827  			Header:         res.Header,
 23828  			HTTPStatusCode: res.StatusCode,
 23829  		},
 23830  	}
 23831  	target := &ret
 23832  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23833  		return nil, err
 23834  	}
 23835  	return ret, nil
 23836  }
 23837  
 23838  type ProjectsAgentIntentsBatchDeleteCall struct {
 23839  	s                                                     *Service
 23840  	parent                                                string
 23841  	googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
 23842  	urlParams_                                            gensupport.URLParams
 23843  	ctx_                                                  context.Context
 23844  	header_                                               http.Header
 23845  }
 23846  
 23847  // BatchDelete: Deletes intents in the specified agent. This method is a
 23848  // long-running operation
 23849  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 23850  // The returned `Operation` type has the following method-specific fields: -
 23851  // `metadata`: An empty Struct message
 23852  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 23853  // - `response`: An Empty message
 23854  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 23855  // Note: You should always train an agent prior to sending it queries. See the
 23856  // training documentation
 23857  // (https://cloud.google.com/dialogflow/es/docs/training).
 23858  //
 23859  //   - parent: The name of the agent to delete all entities types for. Supported
 23860  //     formats: - `projects//agent` - `projects//locations//agent`.
 23861  func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall {
 23862  	c := &ProjectsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23863  	c.parent = parent
 23864  	c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
 23865  	return c
 23866  }
 23867  
 23868  // Fields allows partial responses to be retrieved. See
 23869  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23870  // details.
 23871  func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall {
 23872  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23873  	return c
 23874  }
 23875  
 23876  // Context sets the context to be used in this call's Do method.
 23877  func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall {
 23878  	c.ctx_ = ctx
 23879  	return c
 23880  }
 23881  
 23882  // Header returns a http.Header that can be modified by the caller to add
 23883  // headers to the request.
 23884  func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header {
 23885  	if c.header_ == nil {
 23886  		c.header_ = make(http.Header)
 23887  	}
 23888  	return c.header_
 23889  }
 23890  
 23891  func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 23892  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23893  	var body io.Reader = nil
 23894  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
 23895  	if err != nil {
 23896  		return nil, err
 23897  	}
 23898  	c.urlParams_.Set("alt", alt)
 23899  	c.urlParams_.Set("prettyPrint", "false")
 23900  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
 23901  	urls += "?" + c.urlParams_.Encode()
 23902  	req, err := http.NewRequest("POST", urls, body)
 23903  	if err != nil {
 23904  		return nil, err
 23905  	}
 23906  	req.Header = reqHeaders
 23907  	googleapi.Expand(req.URL, map[string]string{
 23908  		"parent": c.parent,
 23909  	})
 23910  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23911  }
 23912  
 23913  // Do executes the "dialogflow.projects.agent.intents.batchDelete" call.
 23914  // Any non-2xx status code is an error. Response headers are in either
 23915  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23916  // returned at all) in error.(*googleapi.Error).Header. Use
 23917  // googleapi.IsNotModified to check whether the returned error was because
 23918  // http.StatusNotModified was returned.
 23919  func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23920  	gensupport.SetOptions(c.urlParams_, opts...)
 23921  	res, err := c.doRequest("json")
 23922  	if res != nil && res.StatusCode == http.StatusNotModified {
 23923  		if res.Body != nil {
 23924  			res.Body.Close()
 23925  		}
 23926  		return nil, gensupport.WrapError(&googleapi.Error{
 23927  			Code:   res.StatusCode,
 23928  			Header: res.Header,
 23929  		})
 23930  	}
 23931  	if err != nil {
 23932  		return nil, err
 23933  	}
 23934  	defer googleapi.CloseBody(res)
 23935  	if err := googleapi.CheckResponse(res); err != nil {
 23936  		return nil, gensupport.WrapError(err)
 23937  	}
 23938  	ret := &GoogleLongrunningOperation{
 23939  		ServerResponse: googleapi.ServerResponse{
 23940  			Header:         res.Header,
 23941  			HTTPStatusCode: res.StatusCode,
 23942  		},
 23943  	}
 23944  	target := &ret
 23945  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23946  		return nil, err
 23947  	}
 23948  	return ret, nil
 23949  }
 23950  
 23951  type ProjectsAgentIntentsBatchUpdateCall struct {
 23952  	s                                                     *Service
 23953  	parent                                                string
 23954  	googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
 23955  	urlParams_                                            gensupport.URLParams
 23956  	ctx_                                                  context.Context
 23957  	header_                                               http.Header
 23958  }
 23959  
 23960  // BatchUpdate: Updates/Creates multiple intents in the specified agent. This
 23961  // method is a long-running operation
 23962  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 23963  // The returned `Operation` type has the following method-specific fields: -
 23964  // `metadata`: An empty Struct message
 23965  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 23966  // - `response`: BatchUpdateIntentsResponse Note: You should always train an
 23967  // agent prior to sending it queries. See the training documentation
 23968  // (https://cloud.google.com/dialogflow/es/docs/training).
 23969  //
 23970  //   - parent: The name of the agent to update or create intents in. Supported
 23971  //     formats: - `projects//agent` - `projects//locations//agent`.
 23972  func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall {
 23973  	c := &ProjectsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23974  	c.parent = parent
 23975  	c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
 23976  	return c
 23977  }
 23978  
 23979  // Fields allows partial responses to be retrieved. See
 23980  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23981  // details.
 23982  func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall {
 23983  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23984  	return c
 23985  }
 23986  
 23987  // Context sets the context to be used in this call's Do method.
 23988  func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall {
 23989  	c.ctx_ = ctx
 23990  	return c
 23991  }
 23992  
 23993  // Header returns a http.Header that can be modified by the caller to add
 23994  // headers to the request.
 23995  func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header {
 23996  	if c.header_ == nil {
 23997  		c.header_ = make(http.Header)
 23998  	}
 23999  	return c.header_
 24000  }
 24001  
 24002  func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 24003  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24004  	var body io.Reader = nil
 24005  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
 24006  	if err != nil {
 24007  		return nil, err
 24008  	}
 24009  	c.urlParams_.Set("alt", alt)
 24010  	c.urlParams_.Set("prettyPrint", "false")
 24011  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
 24012  	urls += "?" + c.urlParams_.Encode()
 24013  	req, err := http.NewRequest("POST", urls, body)
 24014  	if err != nil {
 24015  		return nil, err
 24016  	}
 24017  	req.Header = reqHeaders
 24018  	googleapi.Expand(req.URL, map[string]string{
 24019  		"parent": c.parent,
 24020  	})
 24021  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24022  }
 24023  
 24024  // Do executes the "dialogflow.projects.agent.intents.batchUpdate" call.
 24025  // Any non-2xx status code is an error. Response headers are in either
 24026  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24027  // returned at all) in error.(*googleapi.Error).Header. Use
 24028  // googleapi.IsNotModified to check whether the returned error was because
 24029  // http.StatusNotModified was returned.
 24030  func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24031  	gensupport.SetOptions(c.urlParams_, opts...)
 24032  	res, err := c.doRequest("json")
 24033  	if res != nil && res.StatusCode == http.StatusNotModified {
 24034  		if res.Body != nil {
 24035  			res.Body.Close()
 24036  		}
 24037  		return nil, gensupport.WrapError(&googleapi.Error{
 24038  			Code:   res.StatusCode,
 24039  			Header: res.Header,
 24040  		})
 24041  	}
 24042  	if err != nil {
 24043  		return nil, err
 24044  	}
 24045  	defer googleapi.CloseBody(res)
 24046  	if err := googleapi.CheckResponse(res); err != nil {
 24047  		return nil, gensupport.WrapError(err)
 24048  	}
 24049  	ret := &GoogleLongrunningOperation{
 24050  		ServerResponse: googleapi.ServerResponse{
 24051  			Header:         res.Header,
 24052  			HTTPStatusCode: res.StatusCode,
 24053  		},
 24054  	}
 24055  	target := &ret
 24056  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24057  		return nil, err
 24058  	}
 24059  	return ret, nil
 24060  }
 24061  
 24062  type ProjectsAgentIntentsCreateCall struct {
 24063  	s                                  *Service
 24064  	parent                             string
 24065  	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
 24066  	urlParams_                         gensupport.URLParams
 24067  	ctx_                               context.Context
 24068  	header_                            http.Header
 24069  }
 24070  
 24071  // Create: Creates an intent in the specified agent. Note: You should always
 24072  // train an agent prior to sending it queries. See the training documentation
 24073  // (https://cloud.google.com/dialogflow/es/docs/training).
 24074  //
 24075  //   - parent: The agent to create a intent for. Supported formats: -
 24076  //     `projects//agent` - `projects//locations//agent`.
 24077  func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsCreateCall {
 24078  	c := &ProjectsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24079  	c.parent = parent
 24080  	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
 24081  	return c
 24082  }
 24083  
 24084  // IntentView sets the optional parameter "intentView": The resource view to
 24085  // apply to the returned intent.
 24086  //
 24087  // Possible values:
 24088  //
 24089  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24090  //
 24091  // response.
 24092  //
 24093  //	"INTENT_VIEW_FULL" - All fields are populated.
 24094  func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall {
 24095  	c.urlParams_.Set("intentView", intentView)
 24096  	return c
 24097  }
 24098  
 24099  // LanguageCode sets the optional parameter "languageCode": The language used
 24100  // to access language-specific data. If not specified, the agent's default
 24101  // language is used. For more information, see Multilingual intent and entity
 24102  // data
 24103  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24104  func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall {
 24105  	c.urlParams_.Set("languageCode", languageCode)
 24106  	return c
 24107  }
 24108  
 24109  // Fields allows partial responses to be retrieved. See
 24110  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24111  // details.
 24112  func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall {
 24113  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24114  	return c
 24115  }
 24116  
 24117  // Context sets the context to be used in this call's Do method.
 24118  func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall {
 24119  	c.ctx_ = ctx
 24120  	return c
 24121  }
 24122  
 24123  // Header returns a http.Header that can be modified by the caller to add
 24124  // headers to the request.
 24125  func (c *ProjectsAgentIntentsCreateCall) Header() http.Header {
 24126  	if c.header_ == nil {
 24127  		c.header_ = make(http.Header)
 24128  	}
 24129  	return c.header_
 24130  }
 24131  
 24132  func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
 24133  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24134  	var body io.Reader = nil
 24135  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
 24136  	if err != nil {
 24137  		return nil, err
 24138  	}
 24139  	c.urlParams_.Set("alt", alt)
 24140  	c.urlParams_.Set("prettyPrint", "false")
 24141  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
 24142  	urls += "?" + c.urlParams_.Encode()
 24143  	req, err := http.NewRequest("POST", urls, body)
 24144  	if err != nil {
 24145  		return nil, err
 24146  	}
 24147  	req.Header = reqHeaders
 24148  	googleapi.Expand(req.URL, map[string]string{
 24149  		"parent": c.parent,
 24150  	})
 24151  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24152  }
 24153  
 24154  // Do executes the "dialogflow.projects.agent.intents.create" call.
 24155  // Any non-2xx status code is an error. Response headers are in either
 24156  // *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a response
 24157  // was returned at all) in error.(*googleapi.Error).Header. Use
 24158  // googleapi.IsNotModified to check whether the returned error was because
 24159  // http.StatusNotModified was returned.
 24160  func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
 24161  	gensupport.SetOptions(c.urlParams_, opts...)
 24162  	res, err := c.doRequest("json")
 24163  	if res != nil && res.StatusCode == http.StatusNotModified {
 24164  		if res.Body != nil {
 24165  			res.Body.Close()
 24166  		}
 24167  		return nil, gensupport.WrapError(&googleapi.Error{
 24168  			Code:   res.StatusCode,
 24169  			Header: res.Header,
 24170  		})
 24171  	}
 24172  	if err != nil {
 24173  		return nil, err
 24174  	}
 24175  	defer googleapi.CloseBody(res)
 24176  	if err := googleapi.CheckResponse(res); err != nil {
 24177  		return nil, gensupport.WrapError(err)
 24178  	}
 24179  	ret := &GoogleCloudDialogflowV2beta1Intent{
 24180  		ServerResponse: googleapi.ServerResponse{
 24181  			Header:         res.Header,
 24182  			HTTPStatusCode: res.StatusCode,
 24183  		},
 24184  	}
 24185  	target := &ret
 24186  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24187  		return nil, err
 24188  	}
 24189  	return ret, nil
 24190  }
 24191  
 24192  type ProjectsAgentIntentsDeleteCall struct {
 24193  	s          *Service
 24194  	name       string
 24195  	urlParams_ gensupport.URLParams
 24196  	ctx_       context.Context
 24197  	header_    http.Header
 24198  }
 24199  
 24200  // Delete: Deletes the specified intent and its direct or indirect followup
 24201  // intents. Note: You should always train an agent prior to sending it queries.
 24202  // See the training documentation
 24203  // (https://cloud.google.com/dialogflow/es/docs/training).
 24204  //
 24205  //   - name: The name of the intent to delete. If this intent has direct or
 24206  //     indirect followup intents, we also delete them. Supported formats: -
 24207  //     `projects//agent/intents/` - `projects//locations//agent/intents/`.
 24208  func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall {
 24209  	c := &ProjectsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24210  	c.name = name
 24211  	return c
 24212  }
 24213  
 24214  // Fields allows partial responses to be retrieved. See
 24215  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24216  // details.
 24217  func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall {
 24218  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24219  	return c
 24220  }
 24221  
 24222  // Context sets the context to be used in this call's Do method.
 24223  func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall {
 24224  	c.ctx_ = ctx
 24225  	return c
 24226  }
 24227  
 24228  // Header returns a http.Header that can be modified by the caller to add
 24229  // headers to the request.
 24230  func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header {
 24231  	if c.header_ == nil {
 24232  		c.header_ = make(http.Header)
 24233  	}
 24234  	return c.header_
 24235  }
 24236  
 24237  func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 24238  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24239  	var body io.Reader = nil
 24240  	c.urlParams_.Set("alt", alt)
 24241  	c.urlParams_.Set("prettyPrint", "false")
 24242  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 24243  	urls += "?" + c.urlParams_.Encode()
 24244  	req, err := http.NewRequest("DELETE", urls, body)
 24245  	if err != nil {
 24246  		return nil, err
 24247  	}
 24248  	req.Header = reqHeaders
 24249  	googleapi.Expand(req.URL, map[string]string{
 24250  		"name": c.name,
 24251  	})
 24252  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24253  }
 24254  
 24255  // Do executes the "dialogflow.projects.agent.intents.delete" call.
 24256  // Any non-2xx status code is an error. Response headers are in either
 24257  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24258  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24259  // check whether the returned error was because http.StatusNotModified was
 24260  // returned.
 24261  func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24262  	gensupport.SetOptions(c.urlParams_, opts...)
 24263  	res, err := c.doRequest("json")
 24264  	if res != nil && res.StatusCode == http.StatusNotModified {
 24265  		if res.Body != nil {
 24266  			res.Body.Close()
 24267  		}
 24268  		return nil, gensupport.WrapError(&googleapi.Error{
 24269  			Code:   res.StatusCode,
 24270  			Header: res.Header,
 24271  		})
 24272  	}
 24273  	if err != nil {
 24274  		return nil, err
 24275  	}
 24276  	defer googleapi.CloseBody(res)
 24277  	if err := googleapi.CheckResponse(res); err != nil {
 24278  		return nil, gensupport.WrapError(err)
 24279  	}
 24280  	ret := &GoogleProtobufEmpty{
 24281  		ServerResponse: googleapi.ServerResponse{
 24282  			Header:         res.Header,
 24283  			HTTPStatusCode: res.StatusCode,
 24284  		},
 24285  	}
 24286  	target := &ret
 24287  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24288  		return nil, err
 24289  	}
 24290  	return ret, nil
 24291  }
 24292  
 24293  type ProjectsAgentIntentsGetCall struct {
 24294  	s            *Service
 24295  	name         string
 24296  	urlParams_   gensupport.URLParams
 24297  	ifNoneMatch_ string
 24298  	ctx_         context.Context
 24299  	header_      http.Header
 24300  }
 24301  
 24302  // Get: Retrieves the specified intent.
 24303  //
 24304  //   - name: The name of the intent. Supported formats: -
 24305  //     `projects//agent/intents/` - `projects//locations//agent/intents/`.
 24306  func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall {
 24307  	c := &ProjectsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24308  	c.name = name
 24309  	return c
 24310  }
 24311  
 24312  // IntentView sets the optional parameter "intentView": The resource view to
 24313  // apply to the returned intent.
 24314  //
 24315  // Possible values:
 24316  //
 24317  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24318  //
 24319  // response.
 24320  //
 24321  //	"INTENT_VIEW_FULL" - All fields are populated.
 24322  func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall {
 24323  	c.urlParams_.Set("intentView", intentView)
 24324  	return c
 24325  }
 24326  
 24327  // LanguageCode sets the optional parameter "languageCode": The language used
 24328  // to access language-specific data. If not specified, the agent's default
 24329  // language is used. For more information, see Multilingual intent and entity
 24330  // data
 24331  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24332  func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall {
 24333  	c.urlParams_.Set("languageCode", languageCode)
 24334  	return c
 24335  }
 24336  
 24337  // Fields allows partial responses to be retrieved. See
 24338  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24339  // details.
 24340  func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall {
 24341  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24342  	return c
 24343  }
 24344  
 24345  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24346  // object's ETag matches the given value. This is useful for getting updates
 24347  // only after the object has changed since the last request.
 24348  func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall {
 24349  	c.ifNoneMatch_ = entityTag
 24350  	return c
 24351  }
 24352  
 24353  // Context sets the context to be used in this call's Do method.
 24354  func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall {
 24355  	c.ctx_ = ctx
 24356  	return c
 24357  }
 24358  
 24359  // Header returns a http.Header that can be modified by the caller to add
 24360  // headers to the request.
 24361  func (c *ProjectsAgentIntentsGetCall) Header() http.Header {
 24362  	if c.header_ == nil {
 24363  		c.header_ = make(http.Header)
 24364  	}
 24365  	return c.header_
 24366  }
 24367  
 24368  func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
 24369  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24370  	if c.ifNoneMatch_ != "" {
 24371  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24372  	}
 24373  	var body io.Reader = nil
 24374  	c.urlParams_.Set("alt", alt)
 24375  	c.urlParams_.Set("prettyPrint", "false")
 24376  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 24377  	urls += "?" + c.urlParams_.Encode()
 24378  	req, err := http.NewRequest("GET", urls, body)
 24379  	if err != nil {
 24380  		return nil, err
 24381  	}
 24382  	req.Header = reqHeaders
 24383  	googleapi.Expand(req.URL, map[string]string{
 24384  		"name": c.name,
 24385  	})
 24386  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24387  }
 24388  
 24389  // Do executes the "dialogflow.projects.agent.intents.get" call.
 24390  // Any non-2xx status code is an error. Response headers are in either
 24391  // *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a response
 24392  // was returned at all) in error.(*googleapi.Error).Header. Use
 24393  // googleapi.IsNotModified to check whether the returned error was because
 24394  // http.StatusNotModified was returned.
 24395  func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
 24396  	gensupport.SetOptions(c.urlParams_, opts...)
 24397  	res, err := c.doRequest("json")
 24398  	if res != nil && res.StatusCode == http.StatusNotModified {
 24399  		if res.Body != nil {
 24400  			res.Body.Close()
 24401  		}
 24402  		return nil, gensupport.WrapError(&googleapi.Error{
 24403  			Code:   res.StatusCode,
 24404  			Header: res.Header,
 24405  		})
 24406  	}
 24407  	if err != nil {
 24408  		return nil, err
 24409  	}
 24410  	defer googleapi.CloseBody(res)
 24411  	if err := googleapi.CheckResponse(res); err != nil {
 24412  		return nil, gensupport.WrapError(err)
 24413  	}
 24414  	ret := &GoogleCloudDialogflowV2beta1Intent{
 24415  		ServerResponse: googleapi.ServerResponse{
 24416  			Header:         res.Header,
 24417  			HTTPStatusCode: res.StatusCode,
 24418  		},
 24419  	}
 24420  	target := &ret
 24421  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24422  		return nil, err
 24423  	}
 24424  	return ret, nil
 24425  }
 24426  
 24427  type ProjectsAgentIntentsListCall struct {
 24428  	s            *Service
 24429  	parent       string
 24430  	urlParams_   gensupport.URLParams
 24431  	ifNoneMatch_ string
 24432  	ctx_         context.Context
 24433  	header_      http.Header
 24434  }
 24435  
 24436  // List: Returns the list of all intents in the specified agent.
 24437  //
 24438  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 24439  //     `projects//locations//agent`. Alternatively, you can specify the
 24440  //     environment to list intents for. Format: `projects//agent/environments/`
 24441  //     or `projects//locations//agent/environments/`. Note: training phrases of
 24442  //     the intents will not be returned for non-draft environment.
 24443  func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall {
 24444  	c := &ProjectsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24445  	c.parent = parent
 24446  	return c
 24447  }
 24448  
 24449  // IntentView sets the optional parameter "intentView": The resource view to
 24450  // apply to the returned intent.
 24451  //
 24452  // Possible values:
 24453  //
 24454  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24455  //
 24456  // response.
 24457  //
 24458  //	"INTENT_VIEW_FULL" - All fields are populated.
 24459  func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall {
 24460  	c.urlParams_.Set("intentView", intentView)
 24461  	return c
 24462  }
 24463  
 24464  // LanguageCode sets the optional parameter "languageCode": The language used
 24465  // to access language-specific data. If not specified, the agent's default
 24466  // language is used. For more information, see Multilingual intent and entity
 24467  // data
 24468  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24469  func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall {
 24470  	c.urlParams_.Set("languageCode", languageCode)
 24471  	return c
 24472  }
 24473  
 24474  // PageSize sets the optional parameter "pageSize": The maximum number of items
 24475  // to return in a single page. By default 100 and at most 1000.
 24476  func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall {
 24477  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24478  	return c
 24479  }
 24480  
 24481  // PageToken sets the optional parameter "pageToken": The next_page_token value
 24482  // returned from a previous list request.
 24483  func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall {
 24484  	c.urlParams_.Set("pageToken", pageToken)
 24485  	return c
 24486  }
 24487  
 24488  // Fields allows partial responses to be retrieved. See
 24489  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24490  // details.
 24491  func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall {
 24492  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24493  	return c
 24494  }
 24495  
 24496  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24497  // object's ETag matches the given value. This is useful for getting updates
 24498  // only after the object has changed since the last request.
 24499  func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall {
 24500  	c.ifNoneMatch_ = entityTag
 24501  	return c
 24502  }
 24503  
 24504  // Context sets the context to be used in this call's Do method.
 24505  func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall {
 24506  	c.ctx_ = ctx
 24507  	return c
 24508  }
 24509  
 24510  // Header returns a http.Header that can be modified by the caller to add
 24511  // headers to the request.
 24512  func (c *ProjectsAgentIntentsListCall) Header() http.Header {
 24513  	if c.header_ == nil {
 24514  		c.header_ = make(http.Header)
 24515  	}
 24516  	return c.header_
 24517  }
 24518  
 24519  func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
 24520  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24521  	if c.ifNoneMatch_ != "" {
 24522  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24523  	}
 24524  	var body io.Reader = nil
 24525  	c.urlParams_.Set("alt", alt)
 24526  	c.urlParams_.Set("prettyPrint", "false")
 24527  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
 24528  	urls += "?" + c.urlParams_.Encode()
 24529  	req, err := http.NewRequest("GET", urls, body)
 24530  	if err != nil {
 24531  		return nil, err
 24532  	}
 24533  	req.Header = reqHeaders
 24534  	googleapi.Expand(req.URL, map[string]string{
 24535  		"parent": c.parent,
 24536  	})
 24537  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24538  }
 24539  
 24540  // Do executes the "dialogflow.projects.agent.intents.list" call.
 24541  // Any non-2xx status code is an error. Response headers are in either
 24542  // *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or
 24543  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24544  // googleapi.IsNotModified to check whether the returned error was because
 24545  // http.StatusNotModified was returned.
 24546  func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
 24547  	gensupport.SetOptions(c.urlParams_, opts...)
 24548  	res, err := c.doRequest("json")
 24549  	if res != nil && res.StatusCode == http.StatusNotModified {
 24550  		if res.Body != nil {
 24551  			res.Body.Close()
 24552  		}
 24553  		return nil, gensupport.WrapError(&googleapi.Error{
 24554  			Code:   res.StatusCode,
 24555  			Header: res.Header,
 24556  		})
 24557  	}
 24558  	if err != nil {
 24559  		return nil, err
 24560  	}
 24561  	defer googleapi.CloseBody(res)
 24562  	if err := googleapi.CheckResponse(res); err != nil {
 24563  		return nil, gensupport.WrapError(err)
 24564  	}
 24565  	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
 24566  		ServerResponse: googleapi.ServerResponse{
 24567  			Header:         res.Header,
 24568  			HTTPStatusCode: res.StatusCode,
 24569  		},
 24570  	}
 24571  	target := &ret
 24572  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24573  		return nil, err
 24574  	}
 24575  	return ret, nil
 24576  }
 24577  
 24578  // Pages invokes f for each page of results.
 24579  // A non-nil error returned from f will halt the iteration.
 24580  // The provided context supersedes any context provided to the Context method.
 24581  func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
 24582  	c.ctx_ = ctx
 24583  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24584  	for {
 24585  		x, err := c.Do()
 24586  		if err != nil {
 24587  			return err
 24588  		}
 24589  		if err := f(x); err != nil {
 24590  			return err
 24591  		}
 24592  		if x.NextPageToken == "" {
 24593  			return nil
 24594  		}
 24595  		c.PageToken(x.NextPageToken)
 24596  	}
 24597  }
 24598  
 24599  type ProjectsAgentIntentsPatchCall struct {
 24600  	s                                  *Service
 24601  	nameid                             string
 24602  	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
 24603  	urlParams_                         gensupport.URLParams
 24604  	ctx_                               context.Context
 24605  	header_                            http.Header
 24606  }
 24607  
 24608  // Patch: Updates the specified intent. Note: You should always train an agent
 24609  // prior to sending it queries. See the training documentation
 24610  // (https://cloud.google.com/dialogflow/es/docs/training).
 24611  //
 24612  //   - name: Optional. The unique identifier of this intent. Required for
 24613  //     Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported
 24614  //     formats: - `projects//agent/intents/` -
 24615  //     `projects//locations//agent/intents/`.
 24616  func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsPatchCall {
 24617  	c := &ProjectsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24618  	c.nameid = nameid
 24619  	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
 24620  	return c
 24621  }
 24622  
 24623  // IntentView sets the optional parameter "intentView": The resource view to
 24624  // apply to the returned intent.
 24625  //
 24626  // Possible values:
 24627  //
 24628  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 24629  //
 24630  // response.
 24631  //
 24632  //	"INTENT_VIEW_FULL" - All fields are populated.
 24633  func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall {
 24634  	c.urlParams_.Set("intentView", intentView)
 24635  	return c
 24636  }
 24637  
 24638  // LanguageCode sets the optional parameter "languageCode": The language used
 24639  // to access language-specific data. If not specified, the agent's default
 24640  // language is used. For more information, see Multilingual intent and entity
 24641  // data
 24642  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 24643  func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall {
 24644  	c.urlParams_.Set("languageCode", languageCode)
 24645  	return c
 24646  }
 24647  
 24648  // UpdateMask sets the optional parameter "updateMask": The mask to control
 24649  // which fields get updated.
 24650  func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall {
 24651  	c.urlParams_.Set("updateMask", updateMask)
 24652  	return c
 24653  }
 24654  
 24655  // Fields allows partial responses to be retrieved. See
 24656  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24657  // details.
 24658  func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall {
 24659  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24660  	return c
 24661  }
 24662  
 24663  // Context sets the context to be used in this call's Do method.
 24664  func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall {
 24665  	c.ctx_ = ctx
 24666  	return c
 24667  }
 24668  
 24669  // Header returns a http.Header that can be modified by the caller to add
 24670  // headers to the request.
 24671  func (c *ProjectsAgentIntentsPatchCall) Header() http.Header {
 24672  	if c.header_ == nil {
 24673  		c.header_ = make(http.Header)
 24674  	}
 24675  	return c.header_
 24676  }
 24677  
 24678  func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
 24679  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24680  	var body io.Reader = nil
 24681  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
 24682  	if err != nil {
 24683  		return nil, err
 24684  	}
 24685  	c.urlParams_.Set("alt", alt)
 24686  	c.urlParams_.Set("prettyPrint", "false")
 24687  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 24688  	urls += "?" + c.urlParams_.Encode()
 24689  	req, err := http.NewRequest("PATCH", urls, body)
 24690  	if err != nil {
 24691  		return nil, err
 24692  	}
 24693  	req.Header = reqHeaders
 24694  	googleapi.Expand(req.URL, map[string]string{
 24695  		"name": c.nameid,
 24696  	})
 24697  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24698  }
 24699  
 24700  // Do executes the "dialogflow.projects.agent.intents.patch" call.
 24701  // Any non-2xx status code is an error. Response headers are in either
 24702  // *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a response
 24703  // was returned at all) in error.(*googleapi.Error).Header. Use
 24704  // googleapi.IsNotModified to check whether the returned error was because
 24705  // http.StatusNotModified was returned.
 24706  func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
 24707  	gensupport.SetOptions(c.urlParams_, opts...)
 24708  	res, err := c.doRequest("json")
 24709  	if res != nil && res.StatusCode == http.StatusNotModified {
 24710  		if res.Body != nil {
 24711  			res.Body.Close()
 24712  		}
 24713  		return nil, gensupport.WrapError(&googleapi.Error{
 24714  			Code:   res.StatusCode,
 24715  			Header: res.Header,
 24716  		})
 24717  	}
 24718  	if err != nil {
 24719  		return nil, err
 24720  	}
 24721  	defer googleapi.CloseBody(res)
 24722  	if err := googleapi.CheckResponse(res); err != nil {
 24723  		return nil, gensupport.WrapError(err)
 24724  	}
 24725  	ret := &GoogleCloudDialogflowV2beta1Intent{
 24726  		ServerResponse: googleapi.ServerResponse{
 24727  			Header:         res.Header,
 24728  			HTTPStatusCode: res.StatusCode,
 24729  		},
 24730  	}
 24731  	target := &ret
 24732  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24733  		return nil, err
 24734  	}
 24735  	return ret, nil
 24736  }
 24737  
 24738  type ProjectsAgentKnowledgeBasesCreateCall struct {
 24739  	s                                         *Service
 24740  	parent                                    string
 24741  	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
 24742  	urlParams_                                gensupport.URLParams
 24743  	ctx_                                      context.Context
 24744  	header_                                   http.Header
 24745  }
 24746  
 24747  // Create: Creates a knowledge base. Note: The `projects.agent.knowledgeBases`
 24748  // resource is deprecated; only use `projects.knowledgeBases`.
 24749  //
 24750  //   - parent: The project to create a knowledge base for. Format:
 24751  //     `projects//locations/`.
 24752  func (r *ProjectsAgentKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesCreateCall {
 24753  	c := &ProjectsAgentKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24754  	c.parent = parent
 24755  	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
 24756  	return c
 24757  }
 24758  
 24759  // Fields allows partial responses to be retrieved. See
 24760  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24761  // details.
 24762  func (c *ProjectsAgentKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesCreateCall {
 24763  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24764  	return c
 24765  }
 24766  
 24767  // Context sets the context to be used in this call's Do method.
 24768  func (c *ProjectsAgentKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesCreateCall {
 24769  	c.ctx_ = ctx
 24770  	return c
 24771  }
 24772  
 24773  // Header returns a http.Header that can be modified by the caller to add
 24774  // headers to the request.
 24775  func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header {
 24776  	if c.header_ == nil {
 24777  		c.header_ = make(http.Header)
 24778  	}
 24779  	return c.header_
 24780  }
 24781  
 24782  func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
 24783  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24784  	var body io.Reader = nil
 24785  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
 24786  	if err != nil {
 24787  		return nil, err
 24788  	}
 24789  	c.urlParams_.Set("alt", alt)
 24790  	c.urlParams_.Set("prettyPrint", "false")
 24791  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
 24792  	urls += "?" + c.urlParams_.Encode()
 24793  	req, err := http.NewRequest("POST", urls, body)
 24794  	if err != nil {
 24795  		return nil, err
 24796  	}
 24797  	req.Header = reqHeaders
 24798  	googleapi.Expand(req.URL, map[string]string{
 24799  		"parent": c.parent,
 24800  	})
 24801  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24802  }
 24803  
 24804  // Do executes the "dialogflow.projects.agent.knowledgeBases.create" call.
 24805  // Any non-2xx status code is an error. Response headers are in either
 24806  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 24807  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24808  // googleapi.IsNotModified to check whether the returned error was because
 24809  // http.StatusNotModified was returned.
 24810  func (c *ProjectsAgentKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 24811  	gensupport.SetOptions(c.urlParams_, opts...)
 24812  	res, err := c.doRequest("json")
 24813  	if res != nil && res.StatusCode == http.StatusNotModified {
 24814  		if res.Body != nil {
 24815  			res.Body.Close()
 24816  		}
 24817  		return nil, gensupport.WrapError(&googleapi.Error{
 24818  			Code:   res.StatusCode,
 24819  			Header: res.Header,
 24820  		})
 24821  	}
 24822  	if err != nil {
 24823  		return nil, err
 24824  	}
 24825  	defer googleapi.CloseBody(res)
 24826  	if err := googleapi.CheckResponse(res); err != nil {
 24827  		return nil, gensupport.WrapError(err)
 24828  	}
 24829  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 24830  		ServerResponse: googleapi.ServerResponse{
 24831  			Header:         res.Header,
 24832  			HTTPStatusCode: res.StatusCode,
 24833  		},
 24834  	}
 24835  	target := &ret
 24836  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24837  		return nil, err
 24838  	}
 24839  	return ret, nil
 24840  }
 24841  
 24842  type ProjectsAgentKnowledgeBasesDeleteCall struct {
 24843  	s          *Service
 24844  	name       string
 24845  	urlParams_ gensupport.URLParams
 24846  	ctx_       context.Context
 24847  	header_    http.Header
 24848  }
 24849  
 24850  // Delete: Deletes the specified knowledge base. Note: The
 24851  // `projects.agent.knowledgeBases` resource is deprecated; only use
 24852  // `projects.knowledgeBases`.
 24853  //
 24854  //   - name: The name of the knowledge base to delete. Format:
 24855  //     `projects//locations//knowledgeBases/`.
 24856  func (r *ProjectsAgentKnowledgeBasesService) Delete(name string) *ProjectsAgentKnowledgeBasesDeleteCall {
 24857  	c := &ProjectsAgentKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24858  	c.name = name
 24859  	return c
 24860  }
 24861  
 24862  // Force sets the optional parameter "force": Force deletes the knowledge base.
 24863  // When set to true, any documents in the knowledge base are also deleted.
 24864  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Force(force bool) *ProjectsAgentKnowledgeBasesDeleteCall {
 24865  	c.urlParams_.Set("force", fmt.Sprint(force))
 24866  	return c
 24867  }
 24868  
 24869  // Fields allows partial responses to be retrieved. See
 24870  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24871  // details.
 24872  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDeleteCall {
 24873  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24874  	return c
 24875  }
 24876  
 24877  // Context sets the context to be used in this call's Do method.
 24878  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDeleteCall {
 24879  	c.ctx_ = ctx
 24880  	return c
 24881  }
 24882  
 24883  // Header returns a http.Header that can be modified by the caller to add
 24884  // headers to the request.
 24885  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header {
 24886  	if c.header_ == nil {
 24887  		c.header_ = make(http.Header)
 24888  	}
 24889  	return c.header_
 24890  }
 24891  
 24892  func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 24893  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24894  	var body io.Reader = nil
 24895  	c.urlParams_.Set("alt", alt)
 24896  	c.urlParams_.Set("prettyPrint", "false")
 24897  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 24898  	urls += "?" + c.urlParams_.Encode()
 24899  	req, err := http.NewRequest("DELETE", urls, body)
 24900  	if err != nil {
 24901  		return nil, err
 24902  	}
 24903  	req.Header = reqHeaders
 24904  	googleapi.Expand(req.URL, map[string]string{
 24905  		"name": c.name,
 24906  	})
 24907  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24908  }
 24909  
 24910  // Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call.
 24911  // Any non-2xx status code is an error. Response headers are in either
 24912  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24913  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24914  // check whether the returned error was because http.StatusNotModified was
 24915  // returned.
 24916  func (c *ProjectsAgentKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24917  	gensupport.SetOptions(c.urlParams_, opts...)
 24918  	res, err := c.doRequest("json")
 24919  	if res != nil && res.StatusCode == http.StatusNotModified {
 24920  		if res.Body != nil {
 24921  			res.Body.Close()
 24922  		}
 24923  		return nil, gensupport.WrapError(&googleapi.Error{
 24924  			Code:   res.StatusCode,
 24925  			Header: res.Header,
 24926  		})
 24927  	}
 24928  	if err != nil {
 24929  		return nil, err
 24930  	}
 24931  	defer googleapi.CloseBody(res)
 24932  	if err := googleapi.CheckResponse(res); err != nil {
 24933  		return nil, gensupport.WrapError(err)
 24934  	}
 24935  	ret := &GoogleProtobufEmpty{
 24936  		ServerResponse: googleapi.ServerResponse{
 24937  			Header:         res.Header,
 24938  			HTTPStatusCode: res.StatusCode,
 24939  		},
 24940  	}
 24941  	target := &ret
 24942  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24943  		return nil, err
 24944  	}
 24945  	return ret, nil
 24946  }
 24947  
 24948  type ProjectsAgentKnowledgeBasesGetCall struct {
 24949  	s            *Service
 24950  	name         string
 24951  	urlParams_   gensupport.URLParams
 24952  	ifNoneMatch_ string
 24953  	ctx_         context.Context
 24954  	header_      http.Header
 24955  }
 24956  
 24957  // Get: Retrieves the specified knowledge base. Note: The
 24958  // `projects.agent.knowledgeBases` resource is deprecated; only use
 24959  // `projects.knowledgeBases`.
 24960  //
 24961  //   - name: The name of the knowledge base to retrieve. Format
 24962  //     `projects//locations//knowledgeBases/`.
 24963  func (r *ProjectsAgentKnowledgeBasesService) Get(name string) *ProjectsAgentKnowledgeBasesGetCall {
 24964  	c := &ProjectsAgentKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24965  	c.name = name
 24966  	return c
 24967  }
 24968  
 24969  // Fields allows partial responses to be retrieved. See
 24970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24971  // details.
 24972  func (c *ProjectsAgentKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesGetCall {
 24973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24974  	return c
 24975  }
 24976  
 24977  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24978  // object's ETag matches the given value. This is useful for getting updates
 24979  // only after the object has changed since the last request.
 24980  func (c *ProjectsAgentKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesGetCall {
 24981  	c.ifNoneMatch_ = entityTag
 24982  	return c
 24983  }
 24984  
 24985  // Context sets the context to be used in this call's Do method.
 24986  func (c *ProjectsAgentKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesGetCall {
 24987  	c.ctx_ = ctx
 24988  	return c
 24989  }
 24990  
 24991  // Header returns a http.Header that can be modified by the caller to add
 24992  // headers to the request.
 24993  func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header {
 24994  	if c.header_ == nil {
 24995  		c.header_ = make(http.Header)
 24996  	}
 24997  	return c.header_
 24998  }
 24999  
 25000  func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
 25001  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25002  	if c.ifNoneMatch_ != "" {
 25003  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25004  	}
 25005  	var body io.Reader = nil
 25006  	c.urlParams_.Set("alt", alt)
 25007  	c.urlParams_.Set("prettyPrint", "false")
 25008  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 25009  	urls += "?" + c.urlParams_.Encode()
 25010  	req, err := http.NewRequest("GET", urls, body)
 25011  	if err != nil {
 25012  		return nil, err
 25013  	}
 25014  	req.Header = reqHeaders
 25015  	googleapi.Expand(req.URL, map[string]string{
 25016  		"name": c.name,
 25017  	})
 25018  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25019  }
 25020  
 25021  // Do executes the "dialogflow.projects.agent.knowledgeBases.get" call.
 25022  // Any non-2xx status code is an error. Response headers are in either
 25023  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 25024  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25025  // googleapi.IsNotModified to check whether the returned error was because
 25026  // http.StatusNotModified was returned.
 25027  func (c *ProjectsAgentKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 25028  	gensupport.SetOptions(c.urlParams_, opts...)
 25029  	res, err := c.doRequest("json")
 25030  	if res != nil && res.StatusCode == http.StatusNotModified {
 25031  		if res.Body != nil {
 25032  			res.Body.Close()
 25033  		}
 25034  		return nil, gensupport.WrapError(&googleapi.Error{
 25035  			Code:   res.StatusCode,
 25036  			Header: res.Header,
 25037  		})
 25038  	}
 25039  	if err != nil {
 25040  		return nil, err
 25041  	}
 25042  	defer googleapi.CloseBody(res)
 25043  	if err := googleapi.CheckResponse(res); err != nil {
 25044  		return nil, gensupport.WrapError(err)
 25045  	}
 25046  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 25047  		ServerResponse: googleapi.ServerResponse{
 25048  			Header:         res.Header,
 25049  			HTTPStatusCode: res.StatusCode,
 25050  		},
 25051  	}
 25052  	target := &ret
 25053  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25054  		return nil, err
 25055  	}
 25056  	return ret, nil
 25057  }
 25058  
 25059  type ProjectsAgentKnowledgeBasesListCall struct {
 25060  	s            *Service
 25061  	parent       string
 25062  	urlParams_   gensupport.URLParams
 25063  	ifNoneMatch_ string
 25064  	ctx_         context.Context
 25065  	header_      http.Header
 25066  }
 25067  
 25068  // List: Returns the list of all knowledge bases of the specified agent. Note:
 25069  // The `projects.agent.knowledgeBases` resource is deprecated; only use
 25070  // `projects.knowledgeBases`.
 25071  //
 25072  //   - parent: The project to list of knowledge bases for. Format:
 25073  //     `projects//locations/`.
 25074  func (r *ProjectsAgentKnowledgeBasesService) List(parent string) *ProjectsAgentKnowledgeBasesListCall {
 25075  	c := &ProjectsAgentKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25076  	c.parent = parent
 25077  	return c
 25078  }
 25079  
 25080  // Filter sets the optional parameter "filter": The filter expression used to
 25081  // filter knowledge bases returned by the list method. The expression has the
 25082  // following syntax: [AND ] ... The following fields and operators are
 25083  // supported: * display_name with has(:) operator * language_code with
 25084  // equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases
 25085  // with en-us language code. * 'display_name:articles' matches knowledge bases
 25086  // whose display name contains "articles". * 'display_name:"Best Articles"'
 25087  // matches knowledge bases whose display name contains "Best Articles". *
 25088  // 'language_code=en-gb AND display_name=articles' matches all knowledge bases
 25089  // whose display name contains "articles" and whose language code is "en-gb".
 25090  // Note: An empty filter string (i.e. "") is a no-op and will result in no
 25091  // filtering. For more information about filtering, see API Filtering
 25092  // (https://aip.dev/160).
 25093  func (c *ProjectsAgentKnowledgeBasesListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesListCall {
 25094  	c.urlParams_.Set("filter", filter)
 25095  	return c
 25096  }
 25097  
 25098  // PageSize sets the optional parameter "pageSize": The maximum number of items
 25099  // to return in a single page. By default 10 and at most 100.
 25100  func (c *ProjectsAgentKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesListCall {
 25101  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25102  	return c
 25103  }
 25104  
 25105  // PageToken sets the optional parameter "pageToken": The next_page_token value
 25106  // returned from a previous list request.
 25107  func (c *ProjectsAgentKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesListCall {
 25108  	c.urlParams_.Set("pageToken", pageToken)
 25109  	return c
 25110  }
 25111  
 25112  // Fields allows partial responses to be retrieved. See
 25113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25114  // details.
 25115  func (c *ProjectsAgentKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesListCall {
 25116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25117  	return c
 25118  }
 25119  
 25120  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25121  // object's ETag matches the given value. This is useful for getting updates
 25122  // only after the object has changed since the last request.
 25123  func (c *ProjectsAgentKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesListCall {
 25124  	c.ifNoneMatch_ = entityTag
 25125  	return c
 25126  }
 25127  
 25128  // Context sets the context to be used in this call's Do method.
 25129  func (c *ProjectsAgentKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesListCall {
 25130  	c.ctx_ = ctx
 25131  	return c
 25132  }
 25133  
 25134  // Header returns a http.Header that can be modified by the caller to add
 25135  // headers to the request.
 25136  func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header {
 25137  	if c.header_ == nil {
 25138  		c.header_ = make(http.Header)
 25139  	}
 25140  	return c.header_
 25141  }
 25142  
 25143  func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
 25144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25145  	if c.ifNoneMatch_ != "" {
 25146  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25147  	}
 25148  	var body io.Reader = nil
 25149  	c.urlParams_.Set("alt", alt)
 25150  	c.urlParams_.Set("prettyPrint", "false")
 25151  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
 25152  	urls += "?" + c.urlParams_.Encode()
 25153  	req, err := http.NewRequest("GET", urls, body)
 25154  	if err != nil {
 25155  		return nil, err
 25156  	}
 25157  	req.Header = reqHeaders
 25158  	googleapi.Expand(req.URL, map[string]string{
 25159  		"parent": c.parent,
 25160  	})
 25161  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25162  }
 25163  
 25164  // Do executes the "dialogflow.projects.agent.knowledgeBases.list" call.
 25165  // Any non-2xx status code is an error. Response headers are in either
 25166  // *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse.Header
 25167  //
 25168  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 25169  //
 25170  // Use googleapi.IsNotModified to check whether the returned error was because
 25171  // http.StatusNotModified was returned.
 25172  func (c *ProjectsAgentKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
 25173  	gensupport.SetOptions(c.urlParams_, opts...)
 25174  	res, err := c.doRequest("json")
 25175  	if res != nil && res.StatusCode == http.StatusNotModified {
 25176  		if res.Body != nil {
 25177  			res.Body.Close()
 25178  		}
 25179  		return nil, gensupport.WrapError(&googleapi.Error{
 25180  			Code:   res.StatusCode,
 25181  			Header: res.Header,
 25182  		})
 25183  	}
 25184  	if err != nil {
 25185  		return nil, err
 25186  	}
 25187  	defer googleapi.CloseBody(res)
 25188  	if err := googleapi.CheckResponse(res); err != nil {
 25189  		return nil, gensupport.WrapError(err)
 25190  	}
 25191  	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
 25192  		ServerResponse: googleapi.ServerResponse{
 25193  			Header:         res.Header,
 25194  			HTTPStatusCode: res.StatusCode,
 25195  		},
 25196  	}
 25197  	target := &ret
 25198  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25199  		return nil, err
 25200  	}
 25201  	return ret, nil
 25202  }
 25203  
 25204  // Pages invokes f for each page of results.
 25205  // A non-nil error returned from f will halt the iteration.
 25206  // The provided context supersedes any context provided to the Context method.
 25207  func (c *ProjectsAgentKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
 25208  	c.ctx_ = ctx
 25209  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25210  	for {
 25211  		x, err := c.Do()
 25212  		if err != nil {
 25213  			return err
 25214  		}
 25215  		if err := f(x); err != nil {
 25216  			return err
 25217  		}
 25218  		if x.NextPageToken == "" {
 25219  			return nil
 25220  		}
 25221  		c.PageToken(x.NextPageToken)
 25222  	}
 25223  }
 25224  
 25225  type ProjectsAgentKnowledgeBasesPatchCall struct {
 25226  	s                                         *Service
 25227  	name                                      string
 25228  	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
 25229  	urlParams_                                gensupport.URLParams
 25230  	ctx_                                      context.Context
 25231  	header_                                   http.Header
 25232  }
 25233  
 25234  // Patch: Updates the specified knowledge base. Note: The
 25235  // `projects.agent.knowledgeBases` resource is deprecated; only use
 25236  // `projects.knowledgeBases`.
 25237  //
 25238  //   - name: The knowledge base resource name. The name must be empty when
 25239  //     creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
 25240  func (r *ProjectsAgentKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesPatchCall {
 25241  	c := &ProjectsAgentKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25242  	c.name = name
 25243  	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
 25244  	return c
 25245  }
 25246  
 25247  // UpdateMask sets the optional parameter "updateMask": Not specified means
 25248  // `update all`. Currently, only `display_name` can be updated, an
 25249  // InvalidArgument will be returned for attempting to update other fields.
 25250  func (c *ProjectsAgentKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesPatchCall {
 25251  	c.urlParams_.Set("updateMask", updateMask)
 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 *ProjectsAgentKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesPatchCall {
 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 *ProjectsAgentKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesPatchCall {
 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 *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header {
 25272  	if c.header_ == nil {
 25273  		c.header_ = make(http.Header)
 25274  	}
 25275  	return c.header_
 25276  }
 25277  
 25278  func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
 25279  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25280  	var body io.Reader = nil
 25281  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
 25282  	if err != nil {
 25283  		return nil, err
 25284  	}
 25285  	c.urlParams_.Set("alt", alt)
 25286  	c.urlParams_.Set("prettyPrint", "false")
 25287  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 25288  	urls += "?" + c.urlParams_.Encode()
 25289  	req, err := http.NewRequest("PATCH", urls, body)
 25290  	if err != nil {
 25291  		return nil, err
 25292  	}
 25293  	req.Header = reqHeaders
 25294  	googleapi.Expand(req.URL, map[string]string{
 25295  		"name": c.name,
 25296  	})
 25297  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25298  }
 25299  
 25300  // Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call.
 25301  // Any non-2xx status code is an error. Response headers are in either
 25302  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 25303  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25304  // googleapi.IsNotModified to check whether the returned error was because
 25305  // http.StatusNotModified was returned.
 25306  func (c *ProjectsAgentKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 25307  	gensupport.SetOptions(c.urlParams_, opts...)
 25308  	res, err := c.doRequest("json")
 25309  	if res != nil && res.StatusCode == http.StatusNotModified {
 25310  		if res.Body != nil {
 25311  			res.Body.Close()
 25312  		}
 25313  		return nil, gensupport.WrapError(&googleapi.Error{
 25314  			Code:   res.StatusCode,
 25315  			Header: res.Header,
 25316  		})
 25317  	}
 25318  	if err != nil {
 25319  		return nil, err
 25320  	}
 25321  	defer googleapi.CloseBody(res)
 25322  	if err := googleapi.CheckResponse(res); err != nil {
 25323  		return nil, gensupport.WrapError(err)
 25324  	}
 25325  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 25326  		ServerResponse: googleapi.ServerResponse{
 25327  			Header:         res.Header,
 25328  			HTTPStatusCode: res.StatusCode,
 25329  		},
 25330  	}
 25331  	target := &ret
 25332  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25333  		return nil, err
 25334  	}
 25335  	return ret, nil
 25336  }
 25337  
 25338  type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {
 25339  	s                                    *Service
 25340  	parent                               string
 25341  	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
 25342  	urlParams_                           gensupport.URLParams
 25343  	ctx_                                 context.Context
 25344  	header_                              http.Header
 25345  }
 25346  
 25347  // Create: Creates a new document. This method is a long-running operation
 25348  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25349  // The returned `Operation` type has the following method-specific fields: -
 25350  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 25351  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 25352  // `projects.knowledgeBases.documents`.
 25353  //
 25354  //   - parent: The knowledge base to create a document for. Format:
 25355  //     `projects//locations//knowledgeBases/`.
 25356  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25357  	c := &ProjectsAgentKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25358  	c.parent = parent
 25359  	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
 25360  	return c
 25361  }
 25362  
 25363  // ImportGcsCustomMetadata sets the optional parameter
 25364  // "importGcsCustomMetadata": Whether to import custom metadata from Google
 25365  // Cloud Storage. Only valid when the document source is Google Cloud Storage
 25366  // URI.
 25367  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25368  	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
 25369  	return c
 25370  }
 25371  
 25372  // Fields allows partial responses to be retrieved. See
 25373  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25374  // details.
 25375  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25376  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25377  	return c
 25378  }
 25379  
 25380  // Context sets the context to be used in this call's Do method.
 25381  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
 25382  	c.ctx_ = ctx
 25383  	return c
 25384  }
 25385  
 25386  // Header returns a http.Header that can be modified by the caller to add
 25387  // headers to the request.
 25388  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header {
 25389  	if c.header_ == nil {
 25390  		c.header_ = make(http.Header)
 25391  	}
 25392  	return c.header_
 25393  }
 25394  
 25395  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 25396  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25397  	var body io.Reader = nil
 25398  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
 25399  	if err != nil {
 25400  		return nil, err
 25401  	}
 25402  	c.urlParams_.Set("alt", alt)
 25403  	c.urlParams_.Set("prettyPrint", "false")
 25404  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
 25405  	urls += "?" + c.urlParams_.Encode()
 25406  	req, err := http.NewRequest("POST", urls, body)
 25407  	if err != nil {
 25408  		return nil, err
 25409  	}
 25410  	req.Header = reqHeaders
 25411  	googleapi.Expand(req.URL, map[string]string{
 25412  		"parent": c.parent,
 25413  	})
 25414  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25415  }
 25416  
 25417  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call.
 25418  // Any non-2xx status code is an error. Response headers are in either
 25419  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25420  // returned at all) in error.(*googleapi.Error).Header. Use
 25421  // googleapi.IsNotModified to check whether the returned error was because
 25422  // http.StatusNotModified was returned.
 25423  func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25424  	gensupport.SetOptions(c.urlParams_, opts...)
 25425  	res, err := c.doRequest("json")
 25426  	if res != nil && res.StatusCode == http.StatusNotModified {
 25427  		if res.Body != nil {
 25428  			res.Body.Close()
 25429  		}
 25430  		return nil, gensupport.WrapError(&googleapi.Error{
 25431  			Code:   res.StatusCode,
 25432  			Header: res.Header,
 25433  		})
 25434  	}
 25435  	if err != nil {
 25436  		return nil, err
 25437  	}
 25438  	defer googleapi.CloseBody(res)
 25439  	if err := googleapi.CheckResponse(res); err != nil {
 25440  		return nil, gensupport.WrapError(err)
 25441  	}
 25442  	ret := &GoogleLongrunningOperation{
 25443  		ServerResponse: googleapi.ServerResponse{
 25444  			Header:         res.Header,
 25445  			HTTPStatusCode: res.StatusCode,
 25446  		},
 25447  	}
 25448  	target := &ret
 25449  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25450  		return nil, err
 25451  	}
 25452  	return ret, nil
 25453  }
 25454  
 25455  type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {
 25456  	s          *Service
 25457  	name       string
 25458  	urlParams_ gensupport.URLParams
 25459  	ctx_       context.Context
 25460  	header_    http.Header
 25461  }
 25462  
 25463  // Delete: Deletes the specified document. This method is a long-running
 25464  // operation
 25465  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25466  // The returned `Operation` type has the following method-specific fields: -
 25467  // `metadata`: KnowledgeOperationMetadata - `response`: An Empty message
 25468  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 25469  // Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
 25470  // only use `projects.knowledgeBases.documents`.
 25471  //
 25472  //   - name: The name of the document to delete. Format:
 25473  //     `projects//locations//knowledgeBases//documents/`.
 25474  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Delete(name string) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
 25475  	c := &ProjectsAgentKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25476  	c.name = name
 25477  	return c
 25478  }
 25479  
 25480  // Fields allows partial responses to be retrieved. See
 25481  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25482  // details.
 25483  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
 25484  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25485  	return c
 25486  }
 25487  
 25488  // Context sets the context to be used in this call's Do method.
 25489  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
 25490  	c.ctx_ = ctx
 25491  	return c
 25492  }
 25493  
 25494  // Header returns a http.Header that can be modified by the caller to add
 25495  // headers to the request.
 25496  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
 25497  	if c.header_ == nil {
 25498  		c.header_ = make(http.Header)
 25499  	}
 25500  	return c.header_
 25501  }
 25502  
 25503  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25504  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25505  	var body io.Reader = nil
 25506  	c.urlParams_.Set("alt", alt)
 25507  	c.urlParams_.Set("prettyPrint", "false")
 25508  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 25509  	urls += "?" + c.urlParams_.Encode()
 25510  	req, err := http.NewRequest("DELETE", urls, body)
 25511  	if err != nil {
 25512  		return nil, err
 25513  	}
 25514  	req.Header = reqHeaders
 25515  	googleapi.Expand(req.URL, map[string]string{
 25516  		"name": c.name,
 25517  	})
 25518  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25519  }
 25520  
 25521  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call.
 25522  // Any non-2xx status code is an error. Response headers are in either
 25523  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25524  // returned at all) in error.(*googleapi.Error).Header. Use
 25525  // googleapi.IsNotModified to check whether the returned error was because
 25526  // http.StatusNotModified was returned.
 25527  func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25528  	gensupport.SetOptions(c.urlParams_, opts...)
 25529  	res, err := c.doRequest("json")
 25530  	if res != nil && res.StatusCode == http.StatusNotModified {
 25531  		if res.Body != nil {
 25532  			res.Body.Close()
 25533  		}
 25534  		return nil, gensupport.WrapError(&googleapi.Error{
 25535  			Code:   res.StatusCode,
 25536  			Header: res.Header,
 25537  		})
 25538  	}
 25539  	if err != nil {
 25540  		return nil, err
 25541  	}
 25542  	defer googleapi.CloseBody(res)
 25543  	if err := googleapi.CheckResponse(res); err != nil {
 25544  		return nil, gensupport.WrapError(err)
 25545  	}
 25546  	ret := &GoogleLongrunningOperation{
 25547  		ServerResponse: googleapi.ServerResponse{
 25548  			Header:         res.Header,
 25549  			HTTPStatusCode: res.StatusCode,
 25550  		},
 25551  	}
 25552  	target := &ret
 25553  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25554  		return nil, err
 25555  	}
 25556  	return ret, nil
 25557  }
 25558  
 25559  type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {
 25560  	s            *Service
 25561  	name         string
 25562  	urlParams_   gensupport.URLParams
 25563  	ifNoneMatch_ string
 25564  	ctx_         context.Context
 25565  	header_      http.Header
 25566  }
 25567  
 25568  // Get: Retrieves the specified document. Note: The
 25569  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 25570  // `projects.knowledgeBases.documents`.
 25571  //
 25572  //   - name: The name of the document to retrieve. Format
 25573  //     `projects//locations//knowledgeBases//documents/`.
 25574  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Get(name string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25575  	c := &ProjectsAgentKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25576  	c.name = name
 25577  	return c
 25578  }
 25579  
 25580  // Fields allows partial responses to be retrieved. See
 25581  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25582  // details.
 25583  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25584  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25585  	return c
 25586  }
 25587  
 25588  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25589  // object's ETag matches the given value. This is useful for getting updates
 25590  // only after the object has changed since the last request.
 25591  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25592  	c.ifNoneMatch_ = entityTag
 25593  	return c
 25594  }
 25595  
 25596  // Context sets the context to be used in this call's Do method.
 25597  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
 25598  	c.ctx_ = ctx
 25599  	return c
 25600  }
 25601  
 25602  // Header returns a http.Header that can be modified by the caller to add
 25603  // headers to the request.
 25604  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header {
 25605  	if c.header_ == nil {
 25606  		c.header_ = make(http.Header)
 25607  	}
 25608  	return c.header_
 25609  }
 25610  
 25611  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 25612  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25613  	if c.ifNoneMatch_ != "" {
 25614  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25615  	}
 25616  	var body io.Reader = nil
 25617  	c.urlParams_.Set("alt", alt)
 25618  	c.urlParams_.Set("prettyPrint", "false")
 25619  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 25620  	urls += "?" + c.urlParams_.Encode()
 25621  	req, err := http.NewRequest("GET", urls, body)
 25622  	if err != nil {
 25623  		return nil, err
 25624  	}
 25625  	req.Header = reqHeaders
 25626  	googleapi.Expand(req.URL, map[string]string{
 25627  		"name": c.name,
 25628  	})
 25629  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25630  }
 25631  
 25632  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call.
 25633  // Any non-2xx status code is an error. Response headers are in either
 25634  // *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or (if a
 25635  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25636  // googleapi.IsNotModified to check whether the returned error was because
 25637  // http.StatusNotModified was returned.
 25638  func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
 25639  	gensupport.SetOptions(c.urlParams_, opts...)
 25640  	res, err := c.doRequest("json")
 25641  	if res != nil && res.StatusCode == http.StatusNotModified {
 25642  		if res.Body != nil {
 25643  			res.Body.Close()
 25644  		}
 25645  		return nil, gensupport.WrapError(&googleapi.Error{
 25646  			Code:   res.StatusCode,
 25647  			Header: res.Header,
 25648  		})
 25649  	}
 25650  	if err != nil {
 25651  		return nil, err
 25652  	}
 25653  	defer googleapi.CloseBody(res)
 25654  	if err := googleapi.CheckResponse(res); err != nil {
 25655  		return nil, gensupport.WrapError(err)
 25656  	}
 25657  	ret := &GoogleCloudDialogflowV2beta1Document{
 25658  		ServerResponse: googleapi.ServerResponse{
 25659  			Header:         res.Header,
 25660  			HTTPStatusCode: res.StatusCode,
 25661  		},
 25662  	}
 25663  	target := &ret
 25664  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25665  		return nil, err
 25666  	}
 25667  	return ret, nil
 25668  }
 25669  
 25670  type ProjectsAgentKnowledgeBasesDocumentsListCall struct {
 25671  	s            *Service
 25672  	parent       string
 25673  	urlParams_   gensupport.URLParams
 25674  	ifNoneMatch_ string
 25675  	ctx_         context.Context
 25676  	header_      http.Header
 25677  }
 25678  
 25679  // List: Returns the list of all documents of the knowledge base. Note: The
 25680  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 25681  // `projects.knowledgeBases.documents`.
 25682  //
 25683  //   - parent: The knowledge base to list all documents for. Format:
 25684  //     `projects//locations//knowledgeBases/`.
 25685  func (r *ProjectsAgentKnowledgeBasesDocumentsService) List(parent string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25686  	c := &ProjectsAgentKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25687  	c.parent = parent
 25688  	return c
 25689  }
 25690  
 25691  // Filter sets the optional parameter "filter": The filter expression used to
 25692  // filter documents returned by the list method. The expression has the
 25693  // following syntax: [AND ] ... The following fields and operators are
 25694  // supported: * knowledge_types with has(:) operator * display_name with has(:)
 25695  // operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"
 25696  // matches documents with FAQ knowledge type. * "display_name:customer" matches
 25697  // documents whose display name contains "customer". * "state=ACTIVE" matches
 25698  // documents with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"
 25699  // matches all active FAQ documents. For more information about filtering, see
 25700  // API Filtering (https://aip.dev/160).
 25701  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25702  	c.urlParams_.Set("filter", filter)
 25703  	return c
 25704  }
 25705  
 25706  // PageSize sets the optional parameter "pageSize": The maximum number of items
 25707  // to return in a single page. By default 10 and at most 100.
 25708  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25709  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25710  	return c
 25711  }
 25712  
 25713  // PageToken sets the optional parameter "pageToken": The next_page_token value
 25714  // returned from a previous list request.
 25715  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25716  	c.urlParams_.Set("pageToken", pageToken)
 25717  	return c
 25718  }
 25719  
 25720  // Fields allows partial responses to be retrieved. See
 25721  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25722  // details.
 25723  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25724  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25725  	return c
 25726  }
 25727  
 25728  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25729  // object's ETag matches the given value. This is useful for getting updates
 25730  // only after the object has changed since the last request.
 25731  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25732  	c.ifNoneMatch_ = entityTag
 25733  	return c
 25734  }
 25735  
 25736  // Context sets the context to be used in this call's Do method.
 25737  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsListCall {
 25738  	c.ctx_ = ctx
 25739  	return c
 25740  }
 25741  
 25742  // Header returns a http.Header that can be modified by the caller to add
 25743  // headers to the request.
 25744  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header {
 25745  	if c.header_ == nil {
 25746  		c.header_ = make(http.Header)
 25747  	}
 25748  	return c.header_
 25749  }
 25750  
 25751  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 25752  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25753  	if c.ifNoneMatch_ != "" {
 25754  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25755  	}
 25756  	var body io.Reader = nil
 25757  	c.urlParams_.Set("alt", alt)
 25758  	c.urlParams_.Set("prettyPrint", "false")
 25759  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
 25760  	urls += "?" + c.urlParams_.Encode()
 25761  	req, err := http.NewRequest("GET", urls, body)
 25762  	if err != nil {
 25763  		return nil, err
 25764  	}
 25765  	req.Header = reqHeaders
 25766  	googleapi.Expand(req.URL, map[string]string{
 25767  		"parent": c.parent,
 25768  	})
 25769  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25770  }
 25771  
 25772  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call.
 25773  // Any non-2xx status code is an error. Response headers are in either
 25774  // *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Header or
 25775  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25776  // googleapi.IsNotModified to check whether the returned error was because
 25777  // http.StatusNotModified was returned.
 25778  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
 25779  	gensupport.SetOptions(c.urlParams_, opts...)
 25780  	res, err := c.doRequest("json")
 25781  	if res != nil && res.StatusCode == http.StatusNotModified {
 25782  		if res.Body != nil {
 25783  			res.Body.Close()
 25784  		}
 25785  		return nil, gensupport.WrapError(&googleapi.Error{
 25786  			Code:   res.StatusCode,
 25787  			Header: res.Header,
 25788  		})
 25789  	}
 25790  	if err != nil {
 25791  		return nil, err
 25792  	}
 25793  	defer googleapi.CloseBody(res)
 25794  	if err := googleapi.CheckResponse(res); err != nil {
 25795  		return nil, gensupport.WrapError(err)
 25796  	}
 25797  	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
 25798  		ServerResponse: googleapi.ServerResponse{
 25799  			Header:         res.Header,
 25800  			HTTPStatusCode: res.StatusCode,
 25801  		},
 25802  	}
 25803  	target := &ret
 25804  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25805  		return nil, err
 25806  	}
 25807  	return ret, nil
 25808  }
 25809  
 25810  // Pages invokes f for each page of results.
 25811  // A non-nil error returned from f will halt the iteration.
 25812  // The provided context supersedes any context provided to the Context method.
 25813  func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
 25814  	c.ctx_ = ctx
 25815  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25816  	for {
 25817  		x, err := c.Do()
 25818  		if err != nil {
 25819  			return err
 25820  		}
 25821  		if err := f(x); err != nil {
 25822  			return err
 25823  		}
 25824  		if x.NextPageToken == "" {
 25825  			return nil
 25826  		}
 25827  		c.PageToken(x.NextPageToken)
 25828  	}
 25829  }
 25830  
 25831  type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {
 25832  	s                                    *Service
 25833  	name                                 string
 25834  	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
 25835  	urlParams_                           gensupport.URLParams
 25836  	ctx_                                 context.Context
 25837  	header_                              http.Header
 25838  }
 25839  
 25840  // Patch: Updates the specified document. This method is a long-running
 25841  // operation
 25842  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25843  // The returned `Operation` type has the following method-specific fields: -
 25844  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 25845  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 25846  // `projects.knowledgeBases.documents`.
 25847  //
 25848  //   - name: Optional. The document resource name. The name must be empty when
 25849  //     creating a document. Format:
 25850  //     `projects//locations//knowledgeBases//documents/`.
 25851  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25852  	c := &ProjectsAgentKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25853  	c.name = name
 25854  	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
 25855  	return c
 25856  }
 25857  
 25858  // UpdateMask sets the optional parameter "updateMask": Not specified means
 25859  // `update all`. Currently, only `display_name` can be updated, an
 25860  // InvalidArgument will be returned for attempting to update other fields.
 25861  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25862  	c.urlParams_.Set("updateMask", updateMask)
 25863  	return c
 25864  }
 25865  
 25866  // Fields allows partial responses to be retrieved. See
 25867  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25868  // details.
 25869  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25870  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25871  	return c
 25872  }
 25873  
 25874  // Context sets the context to be used in this call's Do method.
 25875  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
 25876  	c.ctx_ = ctx
 25877  	return c
 25878  }
 25879  
 25880  // Header returns a http.Header that can be modified by the caller to add
 25881  // headers to the request.
 25882  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header {
 25883  	if c.header_ == nil {
 25884  		c.header_ = make(http.Header)
 25885  	}
 25886  	return c.header_
 25887  }
 25888  
 25889  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 25890  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25891  	var body io.Reader = nil
 25892  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
 25893  	if err != nil {
 25894  		return nil, err
 25895  	}
 25896  	c.urlParams_.Set("alt", alt)
 25897  	c.urlParams_.Set("prettyPrint", "false")
 25898  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 25899  	urls += "?" + c.urlParams_.Encode()
 25900  	req, err := http.NewRequest("PATCH", urls, body)
 25901  	if err != nil {
 25902  		return nil, err
 25903  	}
 25904  	req.Header = reqHeaders
 25905  	googleapi.Expand(req.URL, map[string]string{
 25906  		"name": c.name,
 25907  	})
 25908  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25909  }
 25910  
 25911  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call.
 25912  // Any non-2xx status code is an error. Response headers are in either
 25913  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25914  // returned at all) in error.(*googleapi.Error).Header. Use
 25915  // googleapi.IsNotModified to check whether the returned error was because
 25916  // http.StatusNotModified was returned.
 25917  func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25918  	gensupport.SetOptions(c.urlParams_, opts...)
 25919  	res, err := c.doRequest("json")
 25920  	if res != nil && res.StatusCode == http.StatusNotModified {
 25921  		if res.Body != nil {
 25922  			res.Body.Close()
 25923  		}
 25924  		return nil, gensupport.WrapError(&googleapi.Error{
 25925  			Code:   res.StatusCode,
 25926  			Header: res.Header,
 25927  		})
 25928  	}
 25929  	if err != nil {
 25930  		return nil, err
 25931  	}
 25932  	defer googleapi.CloseBody(res)
 25933  	if err := googleapi.CheckResponse(res); err != nil {
 25934  		return nil, gensupport.WrapError(err)
 25935  	}
 25936  	ret := &GoogleLongrunningOperation{
 25937  		ServerResponse: googleapi.ServerResponse{
 25938  			Header:         res.Header,
 25939  			HTTPStatusCode: res.StatusCode,
 25940  		},
 25941  	}
 25942  	target := &ret
 25943  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25944  		return nil, err
 25945  	}
 25946  	return ret, nil
 25947  }
 25948  
 25949  type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {
 25950  	s                                                 *Service
 25951  	name                                              string
 25952  	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
 25953  	urlParams_                                        gensupport.URLParams
 25954  	ctx_                                              context.Context
 25955  	header_                                           http.Header
 25956  }
 25957  
 25958  // Reload: Reloads the specified document from its specified source,
 25959  // content_uri or content. The previously loaded content of the document will
 25960  // be deleted. Note: Even when the content of the document has not changed,
 25961  // there still may be side effects because of internal implementation changes.
 25962  // Note: If the document source is Google Cloud Storage URI, its metadata will
 25963  // be replaced with the custom metadata from Google Cloud Storage if the
 25964  // `import_gcs_custom_metadata` field is set to true in the request. This
 25965  // method is a long-running operation
 25966  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 25967  // The returned `Operation` type has the following method-specific fields: -
 25968  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 25969  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 25970  // `projects.knowledgeBases.documents`.
 25971  //
 25972  //   - name: The name of the document to reload. Format:
 25973  //     `projects//locations//knowledgeBases//documents/`.
 25974  func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
 25975  	c := &ProjectsAgentKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25976  	c.name = name
 25977  	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
 25978  	return c
 25979  }
 25980  
 25981  // Fields allows partial responses to be retrieved. See
 25982  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25983  // details.
 25984  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
 25985  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25986  	return c
 25987  }
 25988  
 25989  // Context sets the context to be used in this call's Do method.
 25990  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
 25991  	c.ctx_ = ctx
 25992  	return c
 25993  }
 25994  
 25995  // Header returns a http.Header that can be modified by the caller to add
 25996  // headers to the request.
 25997  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header {
 25998  	if c.header_ == nil {
 25999  		c.header_ = make(http.Header)
 26000  	}
 26001  	return c.header_
 26002  }
 26003  
 26004  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
 26005  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26006  	var body io.Reader = nil
 26007  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
 26008  	if err != nil {
 26009  		return nil, err
 26010  	}
 26011  	c.urlParams_.Set("alt", alt)
 26012  	c.urlParams_.Set("prettyPrint", "false")
 26013  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
 26014  	urls += "?" + c.urlParams_.Encode()
 26015  	req, err := http.NewRequest("POST", urls, body)
 26016  	if err != nil {
 26017  		return nil, err
 26018  	}
 26019  	req.Header = reqHeaders
 26020  	googleapi.Expand(req.URL, map[string]string{
 26021  		"name": c.name,
 26022  	})
 26023  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26024  }
 26025  
 26026  // Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call.
 26027  // Any non-2xx status code is an error. Response headers are in either
 26028  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26029  // returned at all) in error.(*googleapi.Error).Header. Use
 26030  // googleapi.IsNotModified to check whether the returned error was because
 26031  // http.StatusNotModified was returned.
 26032  func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26033  	gensupport.SetOptions(c.urlParams_, opts...)
 26034  	res, err := c.doRequest("json")
 26035  	if res != nil && res.StatusCode == http.StatusNotModified {
 26036  		if res.Body != nil {
 26037  			res.Body.Close()
 26038  		}
 26039  		return nil, gensupport.WrapError(&googleapi.Error{
 26040  			Code:   res.StatusCode,
 26041  			Header: res.Header,
 26042  		})
 26043  	}
 26044  	if err != nil {
 26045  		return nil, err
 26046  	}
 26047  	defer googleapi.CloseBody(res)
 26048  	if err := googleapi.CheckResponse(res); err != nil {
 26049  		return nil, gensupport.WrapError(err)
 26050  	}
 26051  	ret := &GoogleLongrunningOperation{
 26052  		ServerResponse: googleapi.ServerResponse{
 26053  			Header:         res.Header,
 26054  			HTTPStatusCode: res.StatusCode,
 26055  		},
 26056  	}
 26057  	target := &ret
 26058  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26059  		return nil, err
 26060  	}
 26061  	return ret, nil
 26062  }
 26063  
 26064  type ProjectsAgentSessionsDeleteContextsCall struct {
 26065  	s          *Service
 26066  	parent     string
 26067  	urlParams_ gensupport.URLParams
 26068  	ctx_       context.Context
 26069  	header_    http.Header
 26070  }
 26071  
 26072  // DeleteContexts: Deletes all active contexts in the specified session.
 26073  //
 26074  //   - parent: The name of the session to delete all contexts from. Supported
 26075  //     formats: - `projects//agent/sessions/, -
 26076  //     `projects//locations//agent/sessions/`, -
 26077  //     `projects//agent/environments//users//sessions/`, -
 26078  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 26079  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 26080  //     is not specified we assume default 'draft' environment. If `User ID` is
 26081  //     not specified, we assume default '-' user.
 26082  func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall {
 26083  	c := &ProjectsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26084  	c.parent = parent
 26085  	return c
 26086  }
 26087  
 26088  // Fields allows partial responses to be retrieved. See
 26089  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26090  // details.
 26091  func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall {
 26092  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26093  	return c
 26094  }
 26095  
 26096  // Context sets the context to be used in this call's Do method.
 26097  func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall {
 26098  	c.ctx_ = ctx
 26099  	return c
 26100  }
 26101  
 26102  // Header returns a http.Header that can be modified by the caller to add
 26103  // headers to the request.
 26104  func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header {
 26105  	if c.header_ == nil {
 26106  		c.header_ = make(http.Header)
 26107  	}
 26108  	return c.header_
 26109  }
 26110  
 26111  func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 26112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26113  	var body io.Reader = nil
 26114  	c.urlParams_.Set("alt", alt)
 26115  	c.urlParams_.Set("prettyPrint", "false")
 26116  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 26117  	urls += "?" + c.urlParams_.Encode()
 26118  	req, err := http.NewRequest("DELETE", urls, body)
 26119  	if err != nil {
 26120  		return nil, err
 26121  	}
 26122  	req.Header = reqHeaders
 26123  	googleapi.Expand(req.URL, map[string]string{
 26124  		"parent": c.parent,
 26125  	})
 26126  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26127  }
 26128  
 26129  // Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call.
 26130  // Any non-2xx status code is an error. Response headers are in either
 26131  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26132  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26133  // check whether the returned error was because http.StatusNotModified was
 26134  // returned.
 26135  func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26136  	gensupport.SetOptions(c.urlParams_, opts...)
 26137  	res, err := c.doRequest("json")
 26138  	if res != nil && res.StatusCode == http.StatusNotModified {
 26139  		if res.Body != nil {
 26140  			res.Body.Close()
 26141  		}
 26142  		return nil, gensupport.WrapError(&googleapi.Error{
 26143  			Code:   res.StatusCode,
 26144  			Header: res.Header,
 26145  		})
 26146  	}
 26147  	if err != nil {
 26148  		return nil, err
 26149  	}
 26150  	defer googleapi.CloseBody(res)
 26151  	if err := googleapi.CheckResponse(res); err != nil {
 26152  		return nil, gensupport.WrapError(err)
 26153  	}
 26154  	ret := &GoogleProtobufEmpty{
 26155  		ServerResponse: googleapi.ServerResponse{
 26156  			Header:         res.Header,
 26157  			HTTPStatusCode: res.StatusCode,
 26158  		},
 26159  	}
 26160  	target := &ret
 26161  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26162  		return nil, err
 26163  	}
 26164  	return ret, nil
 26165  }
 26166  
 26167  type ProjectsAgentSessionsDetectIntentCall struct {
 26168  	s                                               *Service
 26169  	sessionid                                       string
 26170  	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
 26171  	urlParams_                                      gensupport.URLParams
 26172  	ctx_                                            context.Context
 26173  	header_                                         http.Header
 26174  }
 26175  
 26176  // DetectIntent: Processes a natural language query and returns structured,
 26177  // actionable data as a result. This method is not idempotent, because it may
 26178  // cause contexts and session entity types to be updated, which in turn might
 26179  // affect results of future queries. If you might use Agent Assist
 26180  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 26181  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 26182  // `AnalyzeContent` has additional functionality for Agent Assist and other
 26183  // CCAI products. Note: Always use agent versions for production traffic. See
 26184  // Versions and environments
 26185  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 26186  //
 26187  // - session: The name of the session this query is sent to. Supported formats:
 26188  //   - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 26189  //     `projects//agent/environments//users//sessions/`, -
 26190  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 26191  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 26192  //     is not specified, we assume default 'draft' environment (`Environment ID`
 26193  //     might be referred to as environment name at some places). If `User ID` is
 26194  //     not specified, we are using "-". It's up to the API caller to choose an
 26195  //     appropriate `Session ID` and `User Id`. They can be a random number or
 26196  //     some type of user and session identifiers (preferably hashed). The length
 26197  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 26198  //     information, see the API interactions guide
 26199  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 26200  //     agent versions for production traffic. See Versions and environments
 26201  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 26202  func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall {
 26203  	c := &ProjectsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26204  	c.sessionid = sessionid
 26205  	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
 26206  	return c
 26207  }
 26208  
 26209  // Fields allows partial responses to be retrieved. See
 26210  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26211  // details.
 26212  func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall {
 26213  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26214  	return c
 26215  }
 26216  
 26217  // Context sets the context to be used in this call's Do method.
 26218  func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall {
 26219  	c.ctx_ = ctx
 26220  	return c
 26221  }
 26222  
 26223  // Header returns a http.Header that can be modified by the caller to add
 26224  // headers to the request.
 26225  func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header {
 26226  	if c.header_ == nil {
 26227  		c.header_ = make(http.Header)
 26228  	}
 26229  	return c.header_
 26230  }
 26231  
 26232  func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 26233  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26234  	var body io.Reader = nil
 26235  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
 26236  	if err != nil {
 26237  		return nil, err
 26238  	}
 26239  	c.urlParams_.Set("alt", alt)
 26240  	c.urlParams_.Set("prettyPrint", "false")
 26241  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
 26242  	urls += "?" + c.urlParams_.Encode()
 26243  	req, err := http.NewRequest("POST", urls, body)
 26244  	if err != nil {
 26245  		return nil, err
 26246  	}
 26247  	req.Header = reqHeaders
 26248  	googleapi.Expand(req.URL, map[string]string{
 26249  		"session": c.sessionid,
 26250  	})
 26251  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26252  }
 26253  
 26254  // Do executes the "dialogflow.projects.agent.sessions.detectIntent" call.
 26255  // Any non-2xx status code is an error. Response headers are in either
 26256  // *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or
 26257  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 26258  // googleapi.IsNotModified to check whether the returned error was because
 26259  // http.StatusNotModified was returned.
 26260  func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
 26261  	gensupport.SetOptions(c.urlParams_, opts...)
 26262  	res, err := c.doRequest("json")
 26263  	if res != nil && res.StatusCode == http.StatusNotModified {
 26264  		if res.Body != nil {
 26265  			res.Body.Close()
 26266  		}
 26267  		return nil, gensupport.WrapError(&googleapi.Error{
 26268  			Code:   res.StatusCode,
 26269  			Header: res.Header,
 26270  		})
 26271  	}
 26272  	if err != nil {
 26273  		return nil, err
 26274  	}
 26275  	defer googleapi.CloseBody(res)
 26276  	if err := googleapi.CheckResponse(res); err != nil {
 26277  		return nil, gensupport.WrapError(err)
 26278  	}
 26279  	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
 26280  		ServerResponse: googleapi.ServerResponse{
 26281  			Header:         res.Header,
 26282  			HTTPStatusCode: res.StatusCode,
 26283  		},
 26284  	}
 26285  	target := &ret
 26286  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26287  		return nil, err
 26288  	}
 26289  	return ret, nil
 26290  }
 26291  
 26292  type ProjectsAgentSessionsContextsCreateCall struct {
 26293  	s                                   *Service
 26294  	parent                              string
 26295  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 26296  	urlParams_                          gensupport.URLParams
 26297  	ctx_                                context.Context
 26298  	header_                             http.Header
 26299  }
 26300  
 26301  // Create: Creates a context. If the specified context already exists,
 26302  // overrides the context.
 26303  //
 26304  //   - parent: The session to create a context for. Supported formats: -
 26305  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 26306  //     `projects//agent/environments//users//sessions/`, -
 26307  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 26308  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 26309  //     is not specified, we assume default 'draft' environment. If `User ID` is
 26310  //     not specified, we assume default '-' user.
 26311  func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsCreateCall {
 26312  	c := &ProjectsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26313  	c.parent = parent
 26314  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 26315  	return c
 26316  }
 26317  
 26318  // Fields allows partial responses to be retrieved. See
 26319  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26320  // details.
 26321  func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall {
 26322  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26323  	return c
 26324  }
 26325  
 26326  // Context sets the context to be used in this call's Do method.
 26327  func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall {
 26328  	c.ctx_ = ctx
 26329  	return c
 26330  }
 26331  
 26332  // Header returns a http.Header that can be modified by the caller to add
 26333  // headers to the request.
 26334  func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header {
 26335  	if c.header_ == nil {
 26336  		c.header_ = make(http.Header)
 26337  	}
 26338  	return c.header_
 26339  }
 26340  
 26341  func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 26342  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26343  	var body io.Reader = nil
 26344  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 26345  	if err != nil {
 26346  		return nil, err
 26347  	}
 26348  	c.urlParams_.Set("alt", alt)
 26349  	c.urlParams_.Set("prettyPrint", "false")
 26350  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 26351  	urls += "?" + c.urlParams_.Encode()
 26352  	req, err := http.NewRequest("POST", urls, body)
 26353  	if err != nil {
 26354  		return nil, err
 26355  	}
 26356  	req.Header = reqHeaders
 26357  	googleapi.Expand(req.URL, map[string]string{
 26358  		"parent": c.parent,
 26359  	})
 26360  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26361  }
 26362  
 26363  // Do executes the "dialogflow.projects.agent.sessions.contexts.create" call.
 26364  // Any non-2xx status code is an error. Response headers are in either
 26365  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 26366  // was returned at all) in error.(*googleapi.Error).Header. Use
 26367  // googleapi.IsNotModified to check whether the returned error was because
 26368  // http.StatusNotModified was returned.
 26369  func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 26370  	gensupport.SetOptions(c.urlParams_, opts...)
 26371  	res, err := c.doRequest("json")
 26372  	if res != nil && res.StatusCode == http.StatusNotModified {
 26373  		if res.Body != nil {
 26374  			res.Body.Close()
 26375  		}
 26376  		return nil, gensupport.WrapError(&googleapi.Error{
 26377  			Code:   res.StatusCode,
 26378  			Header: res.Header,
 26379  		})
 26380  	}
 26381  	if err != nil {
 26382  		return nil, err
 26383  	}
 26384  	defer googleapi.CloseBody(res)
 26385  	if err := googleapi.CheckResponse(res); err != nil {
 26386  		return nil, gensupport.WrapError(err)
 26387  	}
 26388  	ret := &GoogleCloudDialogflowV2beta1Context{
 26389  		ServerResponse: googleapi.ServerResponse{
 26390  			Header:         res.Header,
 26391  			HTTPStatusCode: res.StatusCode,
 26392  		},
 26393  	}
 26394  	target := &ret
 26395  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26396  		return nil, err
 26397  	}
 26398  	return ret, nil
 26399  }
 26400  
 26401  type ProjectsAgentSessionsContextsDeleteCall struct {
 26402  	s          *Service
 26403  	name       string
 26404  	urlParams_ gensupport.URLParams
 26405  	ctx_       context.Context
 26406  	header_    http.Header
 26407  }
 26408  
 26409  // Delete: Deletes the specified context.
 26410  //
 26411  //   - name: The name of the context to delete. Supported formats: -
 26412  //     `projects//agent/sessions//contexts/`, -
 26413  //     `projects//locations//agent/sessions//contexts/`, -
 26414  //     `projects//agent/environments//users//sessions//contexts/`, -
 26415  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 26416  //     `Location ID` is not specified we assume default 'us' location. If
 26417  //     `Environment ID` is not specified, we assume default 'draft' environment.
 26418  //     If `User ID` is not specified, we assume default '-' user.
 26419  func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall {
 26420  	c := &ProjectsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26421  	c.name = name
 26422  	return c
 26423  }
 26424  
 26425  // Fields allows partial responses to be retrieved. See
 26426  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26427  // details.
 26428  func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall {
 26429  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26430  	return c
 26431  }
 26432  
 26433  // Context sets the context to be used in this call's Do method.
 26434  func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall {
 26435  	c.ctx_ = ctx
 26436  	return c
 26437  }
 26438  
 26439  // Header returns a http.Header that can be modified by the caller to add
 26440  // headers to the request.
 26441  func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header {
 26442  	if c.header_ == nil {
 26443  		c.header_ = make(http.Header)
 26444  	}
 26445  	return c.header_
 26446  }
 26447  
 26448  func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 26449  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26450  	var body io.Reader = nil
 26451  	c.urlParams_.Set("alt", alt)
 26452  	c.urlParams_.Set("prettyPrint", "false")
 26453  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 26454  	urls += "?" + c.urlParams_.Encode()
 26455  	req, err := http.NewRequest("DELETE", urls, body)
 26456  	if err != nil {
 26457  		return nil, err
 26458  	}
 26459  	req.Header = reqHeaders
 26460  	googleapi.Expand(req.URL, map[string]string{
 26461  		"name": c.name,
 26462  	})
 26463  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26464  }
 26465  
 26466  // Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call.
 26467  // Any non-2xx status code is an error. Response headers are in either
 26468  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26469  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26470  // check whether the returned error was because http.StatusNotModified was
 26471  // returned.
 26472  func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26473  	gensupport.SetOptions(c.urlParams_, opts...)
 26474  	res, err := c.doRequest("json")
 26475  	if res != nil && res.StatusCode == http.StatusNotModified {
 26476  		if res.Body != nil {
 26477  			res.Body.Close()
 26478  		}
 26479  		return nil, gensupport.WrapError(&googleapi.Error{
 26480  			Code:   res.StatusCode,
 26481  			Header: res.Header,
 26482  		})
 26483  	}
 26484  	if err != nil {
 26485  		return nil, err
 26486  	}
 26487  	defer googleapi.CloseBody(res)
 26488  	if err := googleapi.CheckResponse(res); err != nil {
 26489  		return nil, gensupport.WrapError(err)
 26490  	}
 26491  	ret := &GoogleProtobufEmpty{
 26492  		ServerResponse: googleapi.ServerResponse{
 26493  			Header:         res.Header,
 26494  			HTTPStatusCode: res.StatusCode,
 26495  		},
 26496  	}
 26497  	target := &ret
 26498  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26499  		return nil, err
 26500  	}
 26501  	return ret, nil
 26502  }
 26503  
 26504  type ProjectsAgentSessionsContextsGetCall struct {
 26505  	s            *Service
 26506  	name         string
 26507  	urlParams_   gensupport.URLParams
 26508  	ifNoneMatch_ string
 26509  	ctx_         context.Context
 26510  	header_      http.Header
 26511  }
 26512  
 26513  // Get: Retrieves the specified context.
 26514  //
 26515  //   - name: The name of the context. Supported formats: -
 26516  //     `projects//agent/sessions//contexts/`, -
 26517  //     `projects//locations//agent/sessions//contexts/`, -
 26518  //     `projects//agent/environments//users//sessions//contexts/`, -
 26519  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 26520  //     `Location ID` is not specified we assume default 'us' location. If
 26521  //     `Environment ID` is not specified, we assume default 'draft' environment.
 26522  //     If `User ID` is not specified, we assume default '-' user.
 26523  func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall {
 26524  	c := &ProjectsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26525  	c.name = name
 26526  	return c
 26527  }
 26528  
 26529  // Fields allows partial responses to be retrieved. See
 26530  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26531  // details.
 26532  func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall {
 26533  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26534  	return c
 26535  }
 26536  
 26537  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26538  // object's ETag matches the given value. This is useful for getting updates
 26539  // only after the object has changed since the last request.
 26540  func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall {
 26541  	c.ifNoneMatch_ = entityTag
 26542  	return c
 26543  }
 26544  
 26545  // Context sets the context to be used in this call's Do method.
 26546  func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall {
 26547  	c.ctx_ = ctx
 26548  	return c
 26549  }
 26550  
 26551  // Header returns a http.Header that can be modified by the caller to add
 26552  // headers to the request.
 26553  func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header {
 26554  	if c.header_ == nil {
 26555  		c.header_ = make(http.Header)
 26556  	}
 26557  	return c.header_
 26558  }
 26559  
 26560  func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 26561  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26562  	if c.ifNoneMatch_ != "" {
 26563  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26564  	}
 26565  	var body io.Reader = nil
 26566  	c.urlParams_.Set("alt", alt)
 26567  	c.urlParams_.Set("prettyPrint", "false")
 26568  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 26569  	urls += "?" + c.urlParams_.Encode()
 26570  	req, err := http.NewRequest("GET", urls, body)
 26571  	if err != nil {
 26572  		return nil, err
 26573  	}
 26574  	req.Header = reqHeaders
 26575  	googleapi.Expand(req.URL, map[string]string{
 26576  		"name": c.name,
 26577  	})
 26578  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26579  }
 26580  
 26581  // Do executes the "dialogflow.projects.agent.sessions.contexts.get" call.
 26582  // Any non-2xx status code is an error. Response headers are in either
 26583  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 26584  // was returned at all) in error.(*googleapi.Error).Header. Use
 26585  // googleapi.IsNotModified to check whether the returned error was because
 26586  // http.StatusNotModified was returned.
 26587  func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 26588  	gensupport.SetOptions(c.urlParams_, opts...)
 26589  	res, err := c.doRequest("json")
 26590  	if res != nil && res.StatusCode == http.StatusNotModified {
 26591  		if res.Body != nil {
 26592  			res.Body.Close()
 26593  		}
 26594  		return nil, gensupport.WrapError(&googleapi.Error{
 26595  			Code:   res.StatusCode,
 26596  			Header: res.Header,
 26597  		})
 26598  	}
 26599  	if err != nil {
 26600  		return nil, err
 26601  	}
 26602  	defer googleapi.CloseBody(res)
 26603  	if err := googleapi.CheckResponse(res); err != nil {
 26604  		return nil, gensupport.WrapError(err)
 26605  	}
 26606  	ret := &GoogleCloudDialogflowV2beta1Context{
 26607  		ServerResponse: googleapi.ServerResponse{
 26608  			Header:         res.Header,
 26609  			HTTPStatusCode: res.StatusCode,
 26610  		},
 26611  	}
 26612  	target := &ret
 26613  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26614  		return nil, err
 26615  	}
 26616  	return ret, nil
 26617  }
 26618  
 26619  type ProjectsAgentSessionsContextsListCall struct {
 26620  	s            *Service
 26621  	parent       string
 26622  	urlParams_   gensupport.URLParams
 26623  	ifNoneMatch_ string
 26624  	ctx_         context.Context
 26625  	header_      http.Header
 26626  }
 26627  
 26628  // List: Returns the list of all contexts in the specified session.
 26629  //
 26630  //   - parent: The session to list all contexts from. Supported formats: -
 26631  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 26632  //     `projects//agent/environments//users//sessions/`, -
 26633  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 26634  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 26635  //     is not specified, we assume default 'draft' environment. If `User ID` is
 26636  //     not specified, we assume default '-' user.
 26637  func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall {
 26638  	c := &ProjectsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26639  	c.parent = parent
 26640  	return c
 26641  }
 26642  
 26643  // PageSize sets the optional parameter "pageSize": The maximum number of items
 26644  // to return in a single page. By default 100 and at most 1000.
 26645  func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall {
 26646  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26647  	return c
 26648  }
 26649  
 26650  // PageToken sets the optional parameter "pageToken": The next_page_token value
 26651  // returned from a previous list request.
 26652  func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall {
 26653  	c.urlParams_.Set("pageToken", pageToken)
 26654  	return c
 26655  }
 26656  
 26657  // Fields allows partial responses to be retrieved. See
 26658  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26659  // details.
 26660  func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall {
 26661  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26662  	return c
 26663  }
 26664  
 26665  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26666  // object's ETag matches the given value. This is useful for getting updates
 26667  // only after the object has changed since the last request.
 26668  func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall {
 26669  	c.ifNoneMatch_ = entityTag
 26670  	return c
 26671  }
 26672  
 26673  // Context sets the context to be used in this call's Do method.
 26674  func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall {
 26675  	c.ctx_ = ctx
 26676  	return c
 26677  }
 26678  
 26679  // Header returns a http.Header that can be modified by the caller to add
 26680  // headers to the request.
 26681  func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header {
 26682  	if c.header_ == nil {
 26683  		c.header_ = make(http.Header)
 26684  	}
 26685  	return c.header_
 26686  }
 26687  
 26688  func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 26689  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26690  	if c.ifNoneMatch_ != "" {
 26691  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26692  	}
 26693  	var body io.Reader = nil
 26694  	c.urlParams_.Set("alt", alt)
 26695  	c.urlParams_.Set("prettyPrint", "false")
 26696  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 26697  	urls += "?" + c.urlParams_.Encode()
 26698  	req, err := http.NewRequest("GET", urls, body)
 26699  	if err != nil {
 26700  		return nil, err
 26701  	}
 26702  	req.Header = reqHeaders
 26703  	googleapi.Expand(req.URL, map[string]string{
 26704  		"parent": c.parent,
 26705  	})
 26706  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26707  }
 26708  
 26709  // Do executes the "dialogflow.projects.agent.sessions.contexts.list" call.
 26710  // Any non-2xx status code is an error. Response headers are in either
 26711  // *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or
 26712  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 26713  // googleapi.IsNotModified to check whether the returned error was because
 26714  // http.StatusNotModified was returned.
 26715  func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
 26716  	gensupport.SetOptions(c.urlParams_, opts...)
 26717  	res, err := c.doRequest("json")
 26718  	if res != nil && res.StatusCode == http.StatusNotModified {
 26719  		if res.Body != nil {
 26720  			res.Body.Close()
 26721  		}
 26722  		return nil, gensupport.WrapError(&googleapi.Error{
 26723  			Code:   res.StatusCode,
 26724  			Header: res.Header,
 26725  		})
 26726  	}
 26727  	if err != nil {
 26728  		return nil, err
 26729  	}
 26730  	defer googleapi.CloseBody(res)
 26731  	if err := googleapi.CheckResponse(res); err != nil {
 26732  		return nil, gensupport.WrapError(err)
 26733  	}
 26734  	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
 26735  		ServerResponse: googleapi.ServerResponse{
 26736  			Header:         res.Header,
 26737  			HTTPStatusCode: res.StatusCode,
 26738  		},
 26739  	}
 26740  	target := &ret
 26741  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26742  		return nil, err
 26743  	}
 26744  	return ret, nil
 26745  }
 26746  
 26747  // Pages invokes f for each page of results.
 26748  // A non-nil error returned from f will halt the iteration.
 26749  // The provided context supersedes any context provided to the Context method.
 26750  func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
 26751  	c.ctx_ = ctx
 26752  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26753  	for {
 26754  		x, err := c.Do()
 26755  		if err != nil {
 26756  			return err
 26757  		}
 26758  		if err := f(x); err != nil {
 26759  			return err
 26760  		}
 26761  		if x.NextPageToken == "" {
 26762  			return nil
 26763  		}
 26764  		c.PageToken(x.NextPageToken)
 26765  	}
 26766  }
 26767  
 26768  type ProjectsAgentSessionsContextsPatchCall struct {
 26769  	s                                   *Service
 26770  	nameid                              string
 26771  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 26772  	urlParams_                          gensupport.URLParams
 26773  	ctx_                                context.Context
 26774  	header_                             http.Header
 26775  }
 26776  
 26777  // Patch: Updates the specified context.
 26778  //
 26779  //   - name: The unique identifier of the context. Supported formats: -
 26780  //     `projects//agent/sessions//contexts/`, -
 26781  //     `projects//locations//agent/sessions//contexts/`, -
 26782  //     `projects//agent/environments//users//sessions//contexts/`, -
 26783  //     `projects//locations//agent/environments//users//sessions//contexts/`, The
 26784  //     `Context ID` is always converted to lowercase, may only contain characters
 26785  //     in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID`
 26786  //     is not specified, we assume default 'draft' environment. If `User ID` is
 26787  //     not specified, we assume default '-' user. The following context names are
 26788  //     reserved for internal use by Dialogflow. You should not use these contexts
 26789  //     or create contexts with these names: * `__system_counters__` *
 26790  //     `*_id_dialog_context` * `*_dialog_params_size`.
 26791  func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsPatchCall {
 26792  	c := &ProjectsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26793  	c.nameid = nameid
 26794  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 26795  	return c
 26796  }
 26797  
 26798  // UpdateMask sets the optional parameter "updateMask": The mask to control
 26799  // which fields get updated.
 26800  func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall {
 26801  	c.urlParams_.Set("updateMask", updateMask)
 26802  	return c
 26803  }
 26804  
 26805  // Fields allows partial responses to be retrieved. See
 26806  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26807  // details.
 26808  func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall {
 26809  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26810  	return c
 26811  }
 26812  
 26813  // Context sets the context to be used in this call's Do method.
 26814  func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall {
 26815  	c.ctx_ = ctx
 26816  	return c
 26817  }
 26818  
 26819  // Header returns a http.Header that can be modified by the caller to add
 26820  // headers to the request.
 26821  func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header {
 26822  	if c.header_ == nil {
 26823  		c.header_ = make(http.Header)
 26824  	}
 26825  	return c.header_
 26826  }
 26827  
 26828  func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 26829  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26830  	var body io.Reader = nil
 26831  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 26832  	if err != nil {
 26833  		return nil, err
 26834  	}
 26835  	c.urlParams_.Set("alt", alt)
 26836  	c.urlParams_.Set("prettyPrint", "false")
 26837  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 26838  	urls += "?" + c.urlParams_.Encode()
 26839  	req, err := http.NewRequest("PATCH", urls, body)
 26840  	if err != nil {
 26841  		return nil, err
 26842  	}
 26843  	req.Header = reqHeaders
 26844  	googleapi.Expand(req.URL, map[string]string{
 26845  		"name": c.nameid,
 26846  	})
 26847  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26848  }
 26849  
 26850  // Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call.
 26851  // Any non-2xx status code is an error. Response headers are in either
 26852  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 26853  // was returned at all) in error.(*googleapi.Error).Header. Use
 26854  // googleapi.IsNotModified to check whether the returned error was because
 26855  // http.StatusNotModified was returned.
 26856  func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 26857  	gensupport.SetOptions(c.urlParams_, opts...)
 26858  	res, err := c.doRequest("json")
 26859  	if res != nil && res.StatusCode == http.StatusNotModified {
 26860  		if res.Body != nil {
 26861  			res.Body.Close()
 26862  		}
 26863  		return nil, gensupport.WrapError(&googleapi.Error{
 26864  			Code:   res.StatusCode,
 26865  			Header: res.Header,
 26866  		})
 26867  	}
 26868  	if err != nil {
 26869  		return nil, err
 26870  	}
 26871  	defer googleapi.CloseBody(res)
 26872  	if err := googleapi.CheckResponse(res); err != nil {
 26873  		return nil, gensupport.WrapError(err)
 26874  	}
 26875  	ret := &GoogleCloudDialogflowV2beta1Context{
 26876  		ServerResponse: googleapi.ServerResponse{
 26877  			Header:         res.Header,
 26878  			HTTPStatusCode: res.StatusCode,
 26879  		},
 26880  	}
 26881  	target := &ret
 26882  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26883  		return nil, err
 26884  	}
 26885  	return ret, nil
 26886  }
 26887  
 26888  type ProjectsAgentSessionsEntityTypesCreateCall struct {
 26889  	s                                             *Service
 26890  	parent                                        string
 26891  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 26892  	urlParams_                                    gensupport.URLParams
 26893  	ctx_                                          context.Context
 26894  	header_                                       http.Header
 26895  }
 26896  
 26897  // Create: Creates a session entity type. If the specified session entity type
 26898  // already exists, overrides the session entity type. This method doesn't work
 26899  // with Google Assistant integration. Contact Dialogflow support if you need to
 26900  // use session entities with Google Assistant integration.
 26901  //
 26902  //   - parent: The session to create a session entity type for. Supported
 26903  //     formats: - `projects//agent/sessions/, -
 26904  //     `projects//locations//agent/sessions/`, -
 26905  //     `projects//agent/environments//users//sessions/`, -
 26906  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 26907  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 26908  //     is not specified, we assume default 'draft' environment. If `User ID` is
 26909  //     not specified, we assume default '-' user.
 26910  func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall {
 26911  	c := &ProjectsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26912  	c.parent = parent
 26913  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 26914  	return c
 26915  }
 26916  
 26917  // Fields allows partial responses to be retrieved. See
 26918  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26919  // details.
 26920  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall {
 26921  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26922  	return c
 26923  }
 26924  
 26925  // Context sets the context to be used in this call's Do method.
 26926  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall {
 26927  	c.ctx_ = ctx
 26928  	return c
 26929  }
 26930  
 26931  // Header returns a http.Header that can be modified by the caller to add
 26932  // headers to the request.
 26933  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header {
 26934  	if c.header_ == nil {
 26935  		c.header_ = make(http.Header)
 26936  	}
 26937  	return c.header_
 26938  }
 26939  
 26940  func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 26941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26942  	var body io.Reader = nil
 26943  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 26944  	if err != nil {
 26945  		return nil, err
 26946  	}
 26947  	c.urlParams_.Set("alt", alt)
 26948  	c.urlParams_.Set("prettyPrint", "false")
 26949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 26950  	urls += "?" + c.urlParams_.Encode()
 26951  	req, err := http.NewRequest("POST", urls, body)
 26952  	if err != nil {
 26953  		return nil, err
 26954  	}
 26955  	req.Header = reqHeaders
 26956  	googleapi.Expand(req.URL, map[string]string{
 26957  		"parent": c.parent,
 26958  	})
 26959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26960  }
 26961  
 26962  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call.
 26963  // Any non-2xx status code is an error. Response headers are in either
 26964  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 26965  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 26966  // googleapi.IsNotModified to check whether the returned error was because
 26967  // http.StatusNotModified was returned.
 26968  func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 26969  	gensupport.SetOptions(c.urlParams_, opts...)
 26970  	res, err := c.doRequest("json")
 26971  	if res != nil && res.StatusCode == http.StatusNotModified {
 26972  		if res.Body != nil {
 26973  			res.Body.Close()
 26974  		}
 26975  		return nil, gensupport.WrapError(&googleapi.Error{
 26976  			Code:   res.StatusCode,
 26977  			Header: res.Header,
 26978  		})
 26979  	}
 26980  	if err != nil {
 26981  		return nil, err
 26982  	}
 26983  	defer googleapi.CloseBody(res)
 26984  	if err := googleapi.CheckResponse(res); err != nil {
 26985  		return nil, gensupport.WrapError(err)
 26986  	}
 26987  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 26988  		ServerResponse: googleapi.ServerResponse{
 26989  			Header:         res.Header,
 26990  			HTTPStatusCode: res.StatusCode,
 26991  		},
 26992  	}
 26993  	target := &ret
 26994  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26995  		return nil, err
 26996  	}
 26997  	return ret, nil
 26998  }
 26999  
 27000  type ProjectsAgentSessionsEntityTypesDeleteCall struct {
 27001  	s          *Service
 27002  	name       string
 27003  	urlParams_ gensupport.URLParams
 27004  	ctx_       context.Context
 27005  	header_    http.Header
 27006  }
 27007  
 27008  // Delete: Deletes the specified session entity type. This method doesn't work
 27009  // with Google Assistant integration. Contact Dialogflow support if you need to
 27010  // use session entities with Google Assistant integration.
 27011  //
 27012  //   - name: The name of the entity type to delete. Supported formats: -
 27013  //     `projects//agent/sessions//entityTypes/` -
 27014  //     `projects//locations//agent/sessions//entityTypes/` -
 27015  //     `projects//agent/environments//users//sessions//entityTypes/` -
 27016  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 27017  //     If `Location ID` is not specified we assume default 'us' location. If
 27018  //     `Environment ID` is not specified, we assume default 'draft' environment.
 27019  //     If `User ID` is not specified, we assume default '-' user.
 27020  func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall {
 27021  	c := &ProjectsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27022  	c.name = name
 27023  	return c
 27024  }
 27025  
 27026  // Fields allows partial responses to be retrieved. See
 27027  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27028  // details.
 27029  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall {
 27030  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27031  	return c
 27032  }
 27033  
 27034  // Context sets the context to be used in this call's Do method.
 27035  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall {
 27036  	c.ctx_ = ctx
 27037  	return c
 27038  }
 27039  
 27040  // Header returns a http.Header that can be modified by the caller to add
 27041  // headers to the request.
 27042  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
 27043  	if c.header_ == nil {
 27044  		c.header_ = make(http.Header)
 27045  	}
 27046  	return c.header_
 27047  }
 27048  
 27049  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 27050  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27051  	var body io.Reader = nil
 27052  	c.urlParams_.Set("alt", alt)
 27053  	c.urlParams_.Set("prettyPrint", "false")
 27054  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 27055  	urls += "?" + c.urlParams_.Encode()
 27056  	req, err := http.NewRequest("DELETE", urls, body)
 27057  	if err != nil {
 27058  		return nil, err
 27059  	}
 27060  	req.Header = reqHeaders
 27061  	googleapi.Expand(req.URL, map[string]string{
 27062  		"name": c.name,
 27063  	})
 27064  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27065  }
 27066  
 27067  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call.
 27068  // Any non-2xx status code is an error. Response headers are in either
 27069  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27070  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27071  // check whether the returned error was because http.StatusNotModified was
 27072  // returned.
 27073  func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27074  	gensupport.SetOptions(c.urlParams_, opts...)
 27075  	res, err := c.doRequest("json")
 27076  	if res != nil && res.StatusCode == http.StatusNotModified {
 27077  		if res.Body != nil {
 27078  			res.Body.Close()
 27079  		}
 27080  		return nil, gensupport.WrapError(&googleapi.Error{
 27081  			Code:   res.StatusCode,
 27082  			Header: res.Header,
 27083  		})
 27084  	}
 27085  	if err != nil {
 27086  		return nil, err
 27087  	}
 27088  	defer googleapi.CloseBody(res)
 27089  	if err := googleapi.CheckResponse(res); err != nil {
 27090  		return nil, gensupport.WrapError(err)
 27091  	}
 27092  	ret := &GoogleProtobufEmpty{
 27093  		ServerResponse: googleapi.ServerResponse{
 27094  			Header:         res.Header,
 27095  			HTTPStatusCode: res.StatusCode,
 27096  		},
 27097  	}
 27098  	target := &ret
 27099  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27100  		return nil, err
 27101  	}
 27102  	return ret, nil
 27103  }
 27104  
 27105  type ProjectsAgentSessionsEntityTypesGetCall struct {
 27106  	s            *Service
 27107  	name         string
 27108  	urlParams_   gensupport.URLParams
 27109  	ifNoneMatch_ string
 27110  	ctx_         context.Context
 27111  	header_      http.Header
 27112  }
 27113  
 27114  // Get: Retrieves the specified session entity type. This method doesn't work
 27115  // with Google Assistant integration. Contact Dialogflow support if you need to
 27116  // use session entities with Google Assistant integration.
 27117  //
 27118  //   - name: The name of the session entity type. Supported formats: -
 27119  //     `projects//agent/sessions//entityTypes/` -
 27120  //     `projects//locations//agent/sessions//entityTypes/` -
 27121  //     `projects//agent/environments//users//sessions//entityTypes/` -
 27122  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 27123  //     If `Location ID` is not specified we assume default 'us' location. If
 27124  //     `Environment ID` is not specified, we assume default 'draft' environment.
 27125  //     If `User ID` is not specified, we assume default '-' user.
 27126  func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall {
 27127  	c := &ProjectsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27128  	c.name = name
 27129  	return c
 27130  }
 27131  
 27132  // Fields allows partial responses to be retrieved. See
 27133  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27134  // details.
 27135  func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall {
 27136  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27137  	return c
 27138  }
 27139  
 27140  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27141  // object's ETag matches the given value. This is useful for getting updates
 27142  // only after the object has changed since the last request.
 27143  func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall {
 27144  	c.ifNoneMatch_ = entityTag
 27145  	return c
 27146  }
 27147  
 27148  // Context sets the context to be used in this call's Do method.
 27149  func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall {
 27150  	c.ctx_ = ctx
 27151  	return c
 27152  }
 27153  
 27154  // Header returns a http.Header that can be modified by the caller to add
 27155  // headers to the request.
 27156  func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header {
 27157  	if c.header_ == nil {
 27158  		c.header_ = make(http.Header)
 27159  	}
 27160  	return c.header_
 27161  }
 27162  
 27163  func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 27164  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27165  	if c.ifNoneMatch_ != "" {
 27166  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27167  	}
 27168  	var body io.Reader = nil
 27169  	c.urlParams_.Set("alt", alt)
 27170  	c.urlParams_.Set("prettyPrint", "false")
 27171  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 27172  	urls += "?" + c.urlParams_.Encode()
 27173  	req, err := http.NewRequest("GET", urls, body)
 27174  	if err != nil {
 27175  		return nil, err
 27176  	}
 27177  	req.Header = reqHeaders
 27178  	googleapi.Expand(req.URL, map[string]string{
 27179  		"name": c.name,
 27180  	})
 27181  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27182  }
 27183  
 27184  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call.
 27185  // Any non-2xx status code is an error. Response headers are in either
 27186  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 27187  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 27188  // googleapi.IsNotModified to check whether the returned error was because
 27189  // http.StatusNotModified was returned.
 27190  func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 27191  	gensupport.SetOptions(c.urlParams_, opts...)
 27192  	res, err := c.doRequest("json")
 27193  	if res != nil && res.StatusCode == http.StatusNotModified {
 27194  		if res.Body != nil {
 27195  			res.Body.Close()
 27196  		}
 27197  		return nil, gensupport.WrapError(&googleapi.Error{
 27198  			Code:   res.StatusCode,
 27199  			Header: res.Header,
 27200  		})
 27201  	}
 27202  	if err != nil {
 27203  		return nil, err
 27204  	}
 27205  	defer googleapi.CloseBody(res)
 27206  	if err := googleapi.CheckResponse(res); err != nil {
 27207  		return nil, gensupport.WrapError(err)
 27208  	}
 27209  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 27210  		ServerResponse: googleapi.ServerResponse{
 27211  			Header:         res.Header,
 27212  			HTTPStatusCode: res.StatusCode,
 27213  		},
 27214  	}
 27215  	target := &ret
 27216  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27217  		return nil, err
 27218  	}
 27219  	return ret, nil
 27220  }
 27221  
 27222  type ProjectsAgentSessionsEntityTypesListCall struct {
 27223  	s            *Service
 27224  	parent       string
 27225  	urlParams_   gensupport.URLParams
 27226  	ifNoneMatch_ string
 27227  	ctx_         context.Context
 27228  	header_      http.Header
 27229  }
 27230  
 27231  // List: Returns the list of all session entity types in the specified session.
 27232  // This method doesn't work with Google Assistant integration. Contact
 27233  // Dialogflow support if you need to use session entities with Google Assistant
 27234  // integration.
 27235  //
 27236  //   - parent: The session to list all session entity types from. Supported
 27237  //     formats: - `projects//agent/sessions/, -
 27238  //     `projects//locations//agent/sessions/`, -
 27239  //     `projects//agent/environments//users//sessions/`, -
 27240  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 27241  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 27242  //     is not specified, we assume default 'draft' environment. If `User ID` is
 27243  //     not specified, we assume default '-' user.
 27244  func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall {
 27245  	c := &ProjectsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27246  	c.parent = parent
 27247  	return c
 27248  }
 27249  
 27250  // PageSize sets the optional parameter "pageSize": The maximum number of items
 27251  // to return in a single page. By default 100 and at most 1000.
 27252  func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall {
 27253  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27254  	return c
 27255  }
 27256  
 27257  // PageToken sets the optional parameter "pageToken": The next_page_token value
 27258  // returned from a previous list request.
 27259  func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall {
 27260  	c.urlParams_.Set("pageToken", pageToken)
 27261  	return c
 27262  }
 27263  
 27264  // Fields allows partial responses to be retrieved. See
 27265  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27266  // details.
 27267  func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall {
 27268  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27269  	return c
 27270  }
 27271  
 27272  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27273  // object's ETag matches the given value. This is useful for getting updates
 27274  // only after the object has changed since the last request.
 27275  func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall {
 27276  	c.ifNoneMatch_ = entityTag
 27277  	return c
 27278  }
 27279  
 27280  // Context sets the context to be used in this call's Do method.
 27281  func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall {
 27282  	c.ctx_ = ctx
 27283  	return c
 27284  }
 27285  
 27286  // Header returns a http.Header that can be modified by the caller to add
 27287  // headers to the request.
 27288  func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header {
 27289  	if c.header_ == nil {
 27290  		c.header_ = make(http.Header)
 27291  	}
 27292  	return c.header_
 27293  }
 27294  
 27295  func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 27296  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27297  	if c.ifNoneMatch_ != "" {
 27298  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27299  	}
 27300  	var body io.Reader = nil
 27301  	c.urlParams_.Set("alt", alt)
 27302  	c.urlParams_.Set("prettyPrint", "false")
 27303  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 27304  	urls += "?" + c.urlParams_.Encode()
 27305  	req, err := http.NewRequest("GET", urls, body)
 27306  	if err != nil {
 27307  		return nil, err
 27308  	}
 27309  	req.Header = reqHeaders
 27310  	googleapi.Expand(req.URL, map[string]string{
 27311  		"parent": c.parent,
 27312  	})
 27313  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27314  }
 27315  
 27316  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call.
 27317  // Any non-2xx status code is an error. Response headers are in either
 27318  // *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.He
 27319  // ader or (if a response was returned at all) in
 27320  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 27321  // whether the returned error was because http.StatusNotModified was returned.
 27322  func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
 27323  	gensupport.SetOptions(c.urlParams_, opts...)
 27324  	res, err := c.doRequest("json")
 27325  	if res != nil && res.StatusCode == http.StatusNotModified {
 27326  		if res.Body != nil {
 27327  			res.Body.Close()
 27328  		}
 27329  		return nil, gensupport.WrapError(&googleapi.Error{
 27330  			Code:   res.StatusCode,
 27331  			Header: res.Header,
 27332  		})
 27333  	}
 27334  	if err != nil {
 27335  		return nil, err
 27336  	}
 27337  	defer googleapi.CloseBody(res)
 27338  	if err := googleapi.CheckResponse(res); err != nil {
 27339  		return nil, gensupport.WrapError(err)
 27340  	}
 27341  	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
 27342  		ServerResponse: googleapi.ServerResponse{
 27343  			Header:         res.Header,
 27344  			HTTPStatusCode: res.StatusCode,
 27345  		},
 27346  	}
 27347  	target := &ret
 27348  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27349  		return nil, err
 27350  	}
 27351  	return ret, nil
 27352  }
 27353  
 27354  // Pages invokes f for each page of results.
 27355  // A non-nil error returned from f will halt the iteration.
 27356  // The provided context supersedes any context provided to the Context method.
 27357  func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
 27358  	c.ctx_ = ctx
 27359  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27360  	for {
 27361  		x, err := c.Do()
 27362  		if err != nil {
 27363  			return err
 27364  		}
 27365  		if err := f(x); err != nil {
 27366  			return err
 27367  		}
 27368  		if x.NextPageToken == "" {
 27369  			return nil
 27370  		}
 27371  		c.PageToken(x.NextPageToken)
 27372  	}
 27373  }
 27374  
 27375  type ProjectsAgentSessionsEntityTypesPatchCall struct {
 27376  	s                                             *Service
 27377  	nameid                                        string
 27378  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 27379  	urlParams_                                    gensupport.URLParams
 27380  	ctx_                                          context.Context
 27381  	header_                                       http.Header
 27382  }
 27383  
 27384  // Patch: Updates the specified session entity type. This method doesn't work
 27385  // with Google Assistant integration. Contact Dialogflow support if you need to
 27386  // use session entities with Google Assistant integration.
 27387  //
 27388  //   - name: The unique identifier of this session entity type. Supported
 27389  //     formats: - `projects//agent/sessions//entityTypes/` -
 27390  //     `projects//locations//agent/sessions//entityTypes/` -
 27391  //     `projects//agent/environments//users//sessions//entityTypes/` -
 27392  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 27393  //     If `Location ID` is not specified we assume default 'us' location. If
 27394  //     `Environment ID` is not specified, we assume default 'draft' environment.
 27395  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 27396  //     display name of an existing entity type in the same agent that will be
 27397  //     overridden or supplemented.
 27398  func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall {
 27399  	c := &ProjectsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27400  	c.nameid = nameid
 27401  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 27402  	return c
 27403  }
 27404  
 27405  // UpdateMask sets the optional parameter "updateMask": The mask to control
 27406  // which fields get updated.
 27407  func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall {
 27408  	c.urlParams_.Set("updateMask", updateMask)
 27409  	return c
 27410  }
 27411  
 27412  // Fields allows partial responses to be retrieved. See
 27413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27414  // details.
 27415  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall {
 27416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27417  	return c
 27418  }
 27419  
 27420  // Context sets the context to be used in this call's Do method.
 27421  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall {
 27422  	c.ctx_ = ctx
 27423  	return c
 27424  }
 27425  
 27426  // Header returns a http.Header that can be modified by the caller to add
 27427  // headers to the request.
 27428  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header {
 27429  	if c.header_ == nil {
 27430  		c.header_ = make(http.Header)
 27431  	}
 27432  	return c.header_
 27433  }
 27434  
 27435  func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 27436  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27437  	var body io.Reader = nil
 27438  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 27439  	if err != nil {
 27440  		return nil, err
 27441  	}
 27442  	c.urlParams_.Set("alt", alt)
 27443  	c.urlParams_.Set("prettyPrint", "false")
 27444  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 27445  	urls += "?" + c.urlParams_.Encode()
 27446  	req, err := http.NewRequest("PATCH", urls, body)
 27447  	if err != nil {
 27448  		return nil, err
 27449  	}
 27450  	req.Header = reqHeaders
 27451  	googleapi.Expand(req.URL, map[string]string{
 27452  		"name": c.nameid,
 27453  	})
 27454  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27455  }
 27456  
 27457  // Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call.
 27458  // Any non-2xx status code is an error. Response headers are in either
 27459  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 27460  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 27461  // googleapi.IsNotModified to check whether the returned error was because
 27462  // http.StatusNotModified was returned.
 27463  func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 27464  	gensupport.SetOptions(c.urlParams_, opts...)
 27465  	res, err := c.doRequest("json")
 27466  	if res != nil && res.StatusCode == http.StatusNotModified {
 27467  		if res.Body != nil {
 27468  			res.Body.Close()
 27469  		}
 27470  		return nil, gensupport.WrapError(&googleapi.Error{
 27471  			Code:   res.StatusCode,
 27472  			Header: res.Header,
 27473  		})
 27474  	}
 27475  	if err != nil {
 27476  		return nil, err
 27477  	}
 27478  	defer googleapi.CloseBody(res)
 27479  	if err := googleapi.CheckResponse(res); err != nil {
 27480  		return nil, gensupport.WrapError(err)
 27481  	}
 27482  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 27483  		ServerResponse: googleapi.ServerResponse{
 27484  			Header:         res.Header,
 27485  			HTTPStatusCode: res.StatusCode,
 27486  		},
 27487  	}
 27488  	target := &ret
 27489  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27490  		return nil, err
 27491  	}
 27492  	return ret, nil
 27493  }
 27494  
 27495  type ProjectsAgentVersionsCreateCall struct {
 27496  	s                                   *Service
 27497  	parent                              string
 27498  	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
 27499  	urlParams_                          gensupport.URLParams
 27500  	ctx_                                context.Context
 27501  	header_                             http.Header
 27502  }
 27503  
 27504  // Create: Creates an agent version. The new version points to the agent
 27505  // instance in the "default" environment.
 27506  //
 27507  //   - parent: The agent to create a version for. Supported formats: -
 27508  //     `projects//agent` - `projects//locations//agent`.
 27509  func (r *ProjectsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsCreateCall {
 27510  	c := &ProjectsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27511  	c.parent = parent
 27512  	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
 27513  	return c
 27514  }
 27515  
 27516  // Fields allows partial responses to be retrieved. See
 27517  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27518  // details.
 27519  func (c *ProjectsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsCreateCall {
 27520  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27521  	return c
 27522  }
 27523  
 27524  // Context sets the context to be used in this call's Do method.
 27525  func (c *ProjectsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsAgentVersionsCreateCall {
 27526  	c.ctx_ = ctx
 27527  	return c
 27528  }
 27529  
 27530  // Header returns a http.Header that can be modified by the caller to add
 27531  // headers to the request.
 27532  func (c *ProjectsAgentVersionsCreateCall) Header() http.Header {
 27533  	if c.header_ == nil {
 27534  		c.header_ = make(http.Header)
 27535  	}
 27536  	return c.header_
 27537  }
 27538  
 27539  func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
 27540  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27541  	var body io.Reader = nil
 27542  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
 27543  	if err != nil {
 27544  		return nil, err
 27545  	}
 27546  	c.urlParams_.Set("alt", alt)
 27547  	c.urlParams_.Set("prettyPrint", "false")
 27548  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
 27549  	urls += "?" + c.urlParams_.Encode()
 27550  	req, err := http.NewRequest("POST", urls, body)
 27551  	if err != nil {
 27552  		return nil, err
 27553  	}
 27554  	req.Header = reqHeaders
 27555  	googleapi.Expand(req.URL, map[string]string{
 27556  		"parent": c.parent,
 27557  	})
 27558  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27559  }
 27560  
 27561  // Do executes the "dialogflow.projects.agent.versions.create" call.
 27562  // Any non-2xx status code is an error. Response headers are in either
 27563  // *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a response
 27564  // was returned at all) in error.(*googleapi.Error).Header. Use
 27565  // googleapi.IsNotModified to check whether the returned error was because
 27566  // http.StatusNotModified was returned.
 27567  func (c *ProjectsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
 27568  	gensupport.SetOptions(c.urlParams_, opts...)
 27569  	res, err := c.doRequest("json")
 27570  	if res != nil && res.StatusCode == http.StatusNotModified {
 27571  		if res.Body != nil {
 27572  			res.Body.Close()
 27573  		}
 27574  		return nil, gensupport.WrapError(&googleapi.Error{
 27575  			Code:   res.StatusCode,
 27576  			Header: res.Header,
 27577  		})
 27578  	}
 27579  	if err != nil {
 27580  		return nil, err
 27581  	}
 27582  	defer googleapi.CloseBody(res)
 27583  	if err := googleapi.CheckResponse(res); err != nil {
 27584  		return nil, gensupport.WrapError(err)
 27585  	}
 27586  	ret := &GoogleCloudDialogflowV2beta1Version{
 27587  		ServerResponse: googleapi.ServerResponse{
 27588  			Header:         res.Header,
 27589  			HTTPStatusCode: res.StatusCode,
 27590  		},
 27591  	}
 27592  	target := &ret
 27593  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27594  		return nil, err
 27595  	}
 27596  	return ret, nil
 27597  }
 27598  
 27599  type ProjectsAgentVersionsDeleteCall struct {
 27600  	s          *Service
 27601  	name       string
 27602  	urlParams_ gensupport.URLParams
 27603  	ctx_       context.Context
 27604  	header_    http.Header
 27605  }
 27606  
 27607  // Delete: Delete the specified agent version.
 27608  //
 27609  //   - name: The name of the version to delete. Supported formats: -
 27610  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 27611  func (r *ProjectsAgentVersionsService) Delete(name string) *ProjectsAgentVersionsDeleteCall {
 27612  	c := &ProjectsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27613  	c.name = name
 27614  	return c
 27615  }
 27616  
 27617  // Fields allows partial responses to be retrieved. See
 27618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27619  // details.
 27620  func (c *ProjectsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsDeleteCall {
 27621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27622  	return c
 27623  }
 27624  
 27625  // Context sets the context to be used in this call's Do method.
 27626  func (c *ProjectsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsAgentVersionsDeleteCall {
 27627  	c.ctx_ = ctx
 27628  	return c
 27629  }
 27630  
 27631  // Header returns a http.Header that can be modified by the caller to add
 27632  // headers to the request.
 27633  func (c *ProjectsAgentVersionsDeleteCall) Header() http.Header {
 27634  	if c.header_ == nil {
 27635  		c.header_ = make(http.Header)
 27636  	}
 27637  	return c.header_
 27638  }
 27639  
 27640  func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 27641  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27642  	var body io.Reader = nil
 27643  	c.urlParams_.Set("alt", alt)
 27644  	c.urlParams_.Set("prettyPrint", "false")
 27645  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 27646  	urls += "?" + c.urlParams_.Encode()
 27647  	req, err := http.NewRequest("DELETE", urls, body)
 27648  	if err != nil {
 27649  		return nil, err
 27650  	}
 27651  	req.Header = reqHeaders
 27652  	googleapi.Expand(req.URL, map[string]string{
 27653  		"name": c.name,
 27654  	})
 27655  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27656  }
 27657  
 27658  // Do executes the "dialogflow.projects.agent.versions.delete" call.
 27659  // Any non-2xx status code is an error. Response headers are in either
 27660  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27661  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27662  // check whether the returned error was because http.StatusNotModified was
 27663  // returned.
 27664  func (c *ProjectsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27665  	gensupport.SetOptions(c.urlParams_, opts...)
 27666  	res, err := c.doRequest("json")
 27667  	if res != nil && res.StatusCode == http.StatusNotModified {
 27668  		if res.Body != nil {
 27669  			res.Body.Close()
 27670  		}
 27671  		return nil, gensupport.WrapError(&googleapi.Error{
 27672  			Code:   res.StatusCode,
 27673  			Header: res.Header,
 27674  		})
 27675  	}
 27676  	if err != nil {
 27677  		return nil, err
 27678  	}
 27679  	defer googleapi.CloseBody(res)
 27680  	if err := googleapi.CheckResponse(res); err != nil {
 27681  		return nil, gensupport.WrapError(err)
 27682  	}
 27683  	ret := &GoogleProtobufEmpty{
 27684  		ServerResponse: googleapi.ServerResponse{
 27685  			Header:         res.Header,
 27686  			HTTPStatusCode: res.StatusCode,
 27687  		},
 27688  	}
 27689  	target := &ret
 27690  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27691  		return nil, err
 27692  	}
 27693  	return ret, nil
 27694  }
 27695  
 27696  type ProjectsAgentVersionsGetCall struct {
 27697  	s            *Service
 27698  	name         string
 27699  	urlParams_   gensupport.URLParams
 27700  	ifNoneMatch_ string
 27701  	ctx_         context.Context
 27702  	header_      http.Header
 27703  }
 27704  
 27705  // Get: Retrieves the specified agent version.
 27706  //
 27707  //   - name: The name of the version. Supported formats: -
 27708  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 27709  func (r *ProjectsAgentVersionsService) Get(name string) *ProjectsAgentVersionsGetCall {
 27710  	c := &ProjectsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27711  	c.name = name
 27712  	return c
 27713  }
 27714  
 27715  // Fields allows partial responses to be retrieved. See
 27716  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27717  // details.
 27718  func (c *ProjectsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsGetCall {
 27719  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27720  	return c
 27721  }
 27722  
 27723  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27724  // object's ETag matches the given value. This is useful for getting updates
 27725  // only after the object has changed since the last request.
 27726  func (c *ProjectsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsGetCall {
 27727  	c.ifNoneMatch_ = entityTag
 27728  	return c
 27729  }
 27730  
 27731  // Context sets the context to be used in this call's Do method.
 27732  func (c *ProjectsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsAgentVersionsGetCall {
 27733  	c.ctx_ = ctx
 27734  	return c
 27735  }
 27736  
 27737  // Header returns a http.Header that can be modified by the caller to add
 27738  // headers to the request.
 27739  func (c *ProjectsAgentVersionsGetCall) Header() http.Header {
 27740  	if c.header_ == nil {
 27741  		c.header_ = make(http.Header)
 27742  	}
 27743  	return c.header_
 27744  }
 27745  
 27746  func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 27747  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27748  	if c.ifNoneMatch_ != "" {
 27749  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27750  	}
 27751  	var body io.Reader = nil
 27752  	c.urlParams_.Set("alt", alt)
 27753  	c.urlParams_.Set("prettyPrint", "false")
 27754  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 27755  	urls += "?" + c.urlParams_.Encode()
 27756  	req, err := http.NewRequest("GET", urls, body)
 27757  	if err != nil {
 27758  		return nil, err
 27759  	}
 27760  	req.Header = reqHeaders
 27761  	googleapi.Expand(req.URL, map[string]string{
 27762  		"name": c.name,
 27763  	})
 27764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27765  }
 27766  
 27767  // Do executes the "dialogflow.projects.agent.versions.get" call.
 27768  // Any non-2xx status code is an error. Response headers are in either
 27769  // *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a response
 27770  // was returned at all) in error.(*googleapi.Error).Header. Use
 27771  // googleapi.IsNotModified to check whether the returned error was because
 27772  // http.StatusNotModified was returned.
 27773  func (c *ProjectsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
 27774  	gensupport.SetOptions(c.urlParams_, opts...)
 27775  	res, err := c.doRequest("json")
 27776  	if res != nil && res.StatusCode == http.StatusNotModified {
 27777  		if res.Body != nil {
 27778  			res.Body.Close()
 27779  		}
 27780  		return nil, gensupport.WrapError(&googleapi.Error{
 27781  			Code:   res.StatusCode,
 27782  			Header: res.Header,
 27783  		})
 27784  	}
 27785  	if err != nil {
 27786  		return nil, err
 27787  	}
 27788  	defer googleapi.CloseBody(res)
 27789  	if err := googleapi.CheckResponse(res); err != nil {
 27790  		return nil, gensupport.WrapError(err)
 27791  	}
 27792  	ret := &GoogleCloudDialogflowV2beta1Version{
 27793  		ServerResponse: googleapi.ServerResponse{
 27794  			Header:         res.Header,
 27795  			HTTPStatusCode: res.StatusCode,
 27796  		},
 27797  	}
 27798  	target := &ret
 27799  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27800  		return nil, err
 27801  	}
 27802  	return ret, nil
 27803  }
 27804  
 27805  type ProjectsAgentVersionsListCall struct {
 27806  	s            *Service
 27807  	parent       string
 27808  	urlParams_   gensupport.URLParams
 27809  	ifNoneMatch_ string
 27810  	ctx_         context.Context
 27811  	header_      http.Header
 27812  }
 27813  
 27814  // List: Returns the list of all versions of the specified agent.
 27815  //
 27816  //   - parent: The agent to list all versions from. Supported formats: -
 27817  //     `projects//agent` - `projects//locations//agent`.
 27818  func (r *ProjectsAgentVersionsService) List(parent string) *ProjectsAgentVersionsListCall {
 27819  	c := &ProjectsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27820  	c.parent = parent
 27821  	return c
 27822  }
 27823  
 27824  // PageSize sets the optional parameter "pageSize": The maximum number of items
 27825  // to return in a single page. By default 100 and at most 1000.
 27826  func (c *ProjectsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsAgentVersionsListCall {
 27827  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27828  	return c
 27829  }
 27830  
 27831  // PageToken sets the optional parameter "pageToken": The next_page_token value
 27832  // returned from a previous list request.
 27833  func (c *ProjectsAgentVersionsListCall) PageToken(pageToken string) *ProjectsAgentVersionsListCall {
 27834  	c.urlParams_.Set("pageToken", pageToken)
 27835  	return c
 27836  }
 27837  
 27838  // Fields allows partial responses to be retrieved. See
 27839  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27840  // details.
 27841  func (c *ProjectsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsListCall {
 27842  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27843  	return c
 27844  }
 27845  
 27846  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27847  // object's ETag matches the given value. This is useful for getting updates
 27848  // only after the object has changed since the last request.
 27849  func (c *ProjectsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsListCall {
 27850  	c.ifNoneMatch_ = entityTag
 27851  	return c
 27852  }
 27853  
 27854  // Context sets the context to be used in this call's Do method.
 27855  func (c *ProjectsAgentVersionsListCall) Context(ctx context.Context) *ProjectsAgentVersionsListCall {
 27856  	c.ctx_ = ctx
 27857  	return c
 27858  }
 27859  
 27860  // Header returns a http.Header that can be modified by the caller to add
 27861  // headers to the request.
 27862  func (c *ProjectsAgentVersionsListCall) Header() http.Header {
 27863  	if c.header_ == nil {
 27864  		c.header_ = make(http.Header)
 27865  	}
 27866  	return c.header_
 27867  }
 27868  
 27869  func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
 27870  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27871  	if c.ifNoneMatch_ != "" {
 27872  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27873  	}
 27874  	var body io.Reader = nil
 27875  	c.urlParams_.Set("alt", alt)
 27876  	c.urlParams_.Set("prettyPrint", "false")
 27877  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
 27878  	urls += "?" + c.urlParams_.Encode()
 27879  	req, err := http.NewRequest("GET", urls, body)
 27880  	if err != nil {
 27881  		return nil, err
 27882  	}
 27883  	req.Header = reqHeaders
 27884  	googleapi.Expand(req.URL, map[string]string{
 27885  		"parent": c.parent,
 27886  	})
 27887  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27888  }
 27889  
 27890  // Do executes the "dialogflow.projects.agent.versions.list" call.
 27891  // Any non-2xx status code is an error. Response headers are in either
 27892  // *GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Header or
 27893  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 27894  // googleapi.IsNotModified to check whether the returned error was because
 27895  // http.StatusNotModified was returned.
 27896  func (c *ProjectsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
 27897  	gensupport.SetOptions(c.urlParams_, opts...)
 27898  	res, err := c.doRequest("json")
 27899  	if res != nil && res.StatusCode == http.StatusNotModified {
 27900  		if res.Body != nil {
 27901  			res.Body.Close()
 27902  		}
 27903  		return nil, gensupport.WrapError(&googleapi.Error{
 27904  			Code:   res.StatusCode,
 27905  			Header: res.Header,
 27906  		})
 27907  	}
 27908  	if err != nil {
 27909  		return nil, err
 27910  	}
 27911  	defer googleapi.CloseBody(res)
 27912  	if err := googleapi.CheckResponse(res); err != nil {
 27913  		return nil, gensupport.WrapError(err)
 27914  	}
 27915  	ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
 27916  		ServerResponse: googleapi.ServerResponse{
 27917  			Header:         res.Header,
 27918  			HTTPStatusCode: res.StatusCode,
 27919  		},
 27920  	}
 27921  	target := &ret
 27922  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27923  		return nil, err
 27924  	}
 27925  	return ret, nil
 27926  }
 27927  
 27928  // Pages invokes f for each page of results.
 27929  // A non-nil error returned from f will halt the iteration.
 27930  // The provided context supersedes any context provided to the Context method.
 27931  func (c *ProjectsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
 27932  	c.ctx_ = ctx
 27933  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27934  	for {
 27935  		x, err := c.Do()
 27936  		if err != nil {
 27937  			return err
 27938  		}
 27939  		if err := f(x); err != nil {
 27940  			return err
 27941  		}
 27942  		if x.NextPageToken == "" {
 27943  			return nil
 27944  		}
 27945  		c.PageToken(x.NextPageToken)
 27946  	}
 27947  }
 27948  
 27949  type ProjectsAgentVersionsPatchCall struct {
 27950  	s                                   *Service
 27951  	nameid                              string
 27952  	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
 27953  	urlParams_                          gensupport.URLParams
 27954  	ctx_                                context.Context
 27955  	header_                             http.Header
 27956  }
 27957  
 27958  // Patch: Updates the specified agent version. Note that this method does not
 27959  // allow you to update the state of the agent the given version points to. It
 27960  // allows you to update only mutable properties of the version resource.
 27961  //
 27962  //   - name: Output only. The unique identifier of this agent version. Supported
 27963  //     formats: - `projects//agent/versions/` -
 27964  //     `projects//locations//agent/versions/`.
 27965  func (r *ProjectsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsPatchCall {
 27966  	c := &ProjectsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27967  	c.nameid = nameid
 27968  	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
 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 *ProjectsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsAgentVersionsPatchCall {
 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 *ProjectsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsPatchCall {
 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 *ProjectsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsAgentVersionsPatchCall {
 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 *ProjectsAgentVersionsPatchCall) Header() http.Header {
 27996  	if c.header_ == nil {
 27997  		c.header_ = make(http.Header)
 27998  	}
 27999  	return c.header_
 28000  }
 28001  
 28002  func (c *ProjectsAgentVersionsPatchCall) 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.googleclouddialogflowv2beta1version)
 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, "v2beta1/{+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.agent.versions.patch" call.
 28025  // Any non-2xx status code is an error. Response headers are in either
 28026  // *GoogleCloudDialogflowV2beta1Version.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 *ProjectsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, 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 := &GoogleCloudDialogflowV2beta1Version{
 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 ProjectsAnswerRecordsGetCall 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: Deprecated. Retrieves a specific answer record.
 28072  //
 28073  //   - name: The name of the answer record to retrieve. Format:
 28074  //     `projects//locations//answerRecords/`.
 28075  func (r *ProjectsAnswerRecordsService) Get(name string) *ProjectsAnswerRecordsGetCall {
 28076  	c := &ProjectsAnswerRecordsGetCall{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 *ProjectsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsGetCall {
 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 *ProjectsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsGetCall {
 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 *ProjectsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsAnswerRecordsGetCall {
 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 *ProjectsAnswerRecordsGetCall) Header() http.Header {
 28106  	if c.header_ == nil {
 28107  		c.header_ = make(http.Header)
 28108  	}
 28109  	return c.header_
 28110  }
 28111  
 28112  func (c *ProjectsAnswerRecordsGetCall) 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, "v2beta1/{+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.answerRecords.get" call.
 28134  // Any non-2xx status code is an error. Response headers are in either
 28135  // *GoogleCloudDialogflowV2beta1AnswerRecord.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 *ProjectsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, 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 := &GoogleCloudDialogflowV2beta1AnswerRecord{
 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 ProjectsAnswerRecordsListCall struct {
 28172  	s            *Service
 28173  	parent       string
 28174  	urlParams_   gensupport.URLParams
 28175  	ifNoneMatch_ string
 28176  	ctx_         context.Context
 28177  	header_      http.Header
 28178  }
 28179  
 28180  // List: Returns the list of all answer records in the specified project in
 28181  // reverse chronological order.
 28182  //
 28183  //   - parent: The project to list all answer records for in reverse
 28184  //     chronological order. Format: `projects//locations/`.
 28185  func (r *ProjectsAnswerRecordsService) List(parent string) *ProjectsAnswerRecordsListCall {
 28186  	c := &ProjectsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28187  	c.parent = parent
 28188  	return c
 28189  }
 28190  
 28191  // Filter sets the optional parameter "filter": Filters to restrict results to
 28192  // specific answer records. For more information about filtering, see API
 28193  // Filtering (https://aip.dev/160).
 28194  func (c *ProjectsAnswerRecordsListCall) Filter(filter string) *ProjectsAnswerRecordsListCall {
 28195  	c.urlParams_.Set("filter", filter)
 28196  	return c
 28197  }
 28198  
 28199  // PageSize sets the optional parameter "pageSize": The maximum number of
 28200  // records to return in a single page. The server may return fewer records than
 28201  // this. If unspecified, we use 10. The maximum is 100.
 28202  func (c *ProjectsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsAnswerRecordsListCall {
 28203  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28204  	return c
 28205  }
 28206  
 28207  // PageToken sets the optional parameter "pageToken": The
 28208  // ListAnswerRecordsResponse.next_page_token value returned from a previous
 28209  // list request used to continue listing on the next page.
 28210  func (c *ProjectsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsAnswerRecordsListCall {
 28211  	c.urlParams_.Set("pageToken", pageToken)
 28212  	return c
 28213  }
 28214  
 28215  // Fields allows partial responses to be retrieved. See
 28216  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28217  // details.
 28218  func (c *ProjectsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsListCall {
 28219  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28220  	return c
 28221  }
 28222  
 28223  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28224  // object's ETag matches the given value. This is useful for getting updates
 28225  // only after the object has changed since the last request.
 28226  func (c *ProjectsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsListCall {
 28227  	c.ifNoneMatch_ = entityTag
 28228  	return c
 28229  }
 28230  
 28231  // Context sets the context to be used in this call's Do method.
 28232  func (c *ProjectsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsAnswerRecordsListCall {
 28233  	c.ctx_ = ctx
 28234  	return c
 28235  }
 28236  
 28237  // Header returns a http.Header that can be modified by the caller to add
 28238  // headers to the request.
 28239  func (c *ProjectsAnswerRecordsListCall) Header() http.Header {
 28240  	if c.header_ == nil {
 28241  		c.header_ = make(http.Header)
 28242  	}
 28243  	return c.header_
 28244  }
 28245  
 28246  func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
 28247  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28248  	if c.ifNoneMatch_ != "" {
 28249  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28250  	}
 28251  	var body io.Reader = nil
 28252  	c.urlParams_.Set("alt", alt)
 28253  	c.urlParams_.Set("prettyPrint", "false")
 28254  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
 28255  	urls += "?" + c.urlParams_.Encode()
 28256  	req, err := http.NewRequest("GET", urls, body)
 28257  	if err != nil {
 28258  		return nil, err
 28259  	}
 28260  	req.Header = reqHeaders
 28261  	googleapi.Expand(req.URL, map[string]string{
 28262  		"parent": c.parent,
 28263  	})
 28264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28265  }
 28266  
 28267  // Do executes the "dialogflow.projects.answerRecords.list" call.
 28268  // Any non-2xx status code is an error. Response headers are in either
 28269  // *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.Header
 28270  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 28271  // Use googleapi.IsNotModified to check whether the returned error was because
 28272  // http.StatusNotModified was returned.
 28273  func (c *ProjectsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
 28274  	gensupport.SetOptions(c.urlParams_, opts...)
 28275  	res, err := c.doRequest("json")
 28276  	if res != nil && res.StatusCode == http.StatusNotModified {
 28277  		if res.Body != nil {
 28278  			res.Body.Close()
 28279  		}
 28280  		return nil, gensupport.WrapError(&googleapi.Error{
 28281  			Code:   res.StatusCode,
 28282  			Header: res.Header,
 28283  		})
 28284  	}
 28285  	if err != nil {
 28286  		return nil, err
 28287  	}
 28288  	defer googleapi.CloseBody(res)
 28289  	if err := googleapi.CheckResponse(res); err != nil {
 28290  		return nil, gensupport.WrapError(err)
 28291  	}
 28292  	ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
 28293  		ServerResponse: googleapi.ServerResponse{
 28294  			Header:         res.Header,
 28295  			HTTPStatusCode: res.StatusCode,
 28296  		},
 28297  	}
 28298  	target := &ret
 28299  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28300  		return nil, err
 28301  	}
 28302  	return ret, nil
 28303  }
 28304  
 28305  // Pages invokes f for each page of results.
 28306  // A non-nil error returned from f will halt the iteration.
 28307  // The provided context supersedes any context provided to the Context method.
 28308  func (c *ProjectsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
 28309  	c.ctx_ = ctx
 28310  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28311  	for {
 28312  		x, err := c.Do()
 28313  		if err != nil {
 28314  			return err
 28315  		}
 28316  		if err := f(x); err != nil {
 28317  			return err
 28318  		}
 28319  		if x.NextPageToken == "" {
 28320  			return nil
 28321  		}
 28322  		c.PageToken(x.NextPageToken)
 28323  	}
 28324  }
 28325  
 28326  type ProjectsAnswerRecordsPatchCall struct {
 28327  	s                                        *Service
 28328  	nameid                                   string
 28329  	googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
 28330  	urlParams_                               gensupport.URLParams
 28331  	ctx_                                     context.Context
 28332  	header_                                  http.Header
 28333  }
 28334  
 28335  // Patch: Updates the specified answer record.
 28336  //
 28337  //   - name: The unique identifier of this answer record. Required for
 28338  //     AnswerRecords.UpdateAnswerRecord method. Format:
 28339  //     `projects//locations//answerRecords/`.
 28340  func (r *ProjectsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsAnswerRecordsPatchCall {
 28341  	c := &ProjectsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28342  	c.nameid = nameid
 28343  	c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
 28344  	return c
 28345  }
 28346  
 28347  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 28348  // control which fields get updated.
 28349  func (c *ProjectsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsAnswerRecordsPatchCall {
 28350  	c.urlParams_.Set("updateMask", updateMask)
 28351  	return c
 28352  }
 28353  
 28354  // Fields allows partial responses to be retrieved. See
 28355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28356  // details.
 28357  func (c *ProjectsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsPatchCall {
 28358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28359  	return c
 28360  }
 28361  
 28362  // Context sets the context to be used in this call's Do method.
 28363  func (c *ProjectsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsAnswerRecordsPatchCall {
 28364  	c.ctx_ = ctx
 28365  	return c
 28366  }
 28367  
 28368  // Header returns a http.Header that can be modified by the caller to add
 28369  // headers to the request.
 28370  func (c *ProjectsAnswerRecordsPatchCall) Header() http.Header {
 28371  	if c.header_ == nil {
 28372  		c.header_ = make(http.Header)
 28373  	}
 28374  	return c.header_
 28375  }
 28376  
 28377  func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
 28378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28379  	var body io.Reader = nil
 28380  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
 28381  	if err != nil {
 28382  		return nil, err
 28383  	}
 28384  	c.urlParams_.Set("alt", alt)
 28385  	c.urlParams_.Set("prettyPrint", "false")
 28386  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 28387  	urls += "?" + c.urlParams_.Encode()
 28388  	req, err := http.NewRequest("PATCH", urls, body)
 28389  	if err != nil {
 28390  		return nil, err
 28391  	}
 28392  	req.Header = reqHeaders
 28393  	googleapi.Expand(req.URL, map[string]string{
 28394  		"name": c.nameid,
 28395  	})
 28396  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28397  }
 28398  
 28399  // Do executes the "dialogflow.projects.answerRecords.patch" call.
 28400  // Any non-2xx status code is an error. Response headers are in either
 28401  // *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if a
 28402  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28403  // googleapi.IsNotModified to check whether the returned error was because
 28404  // http.StatusNotModified was returned.
 28405  func (c *ProjectsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
 28406  	gensupport.SetOptions(c.urlParams_, opts...)
 28407  	res, err := c.doRequest("json")
 28408  	if res != nil && res.StatusCode == http.StatusNotModified {
 28409  		if res.Body != nil {
 28410  			res.Body.Close()
 28411  		}
 28412  		return nil, gensupport.WrapError(&googleapi.Error{
 28413  			Code:   res.StatusCode,
 28414  			Header: res.Header,
 28415  		})
 28416  	}
 28417  	if err != nil {
 28418  		return nil, err
 28419  	}
 28420  	defer googleapi.CloseBody(res)
 28421  	if err := googleapi.CheckResponse(res); err != nil {
 28422  		return nil, gensupport.WrapError(err)
 28423  	}
 28424  	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
 28425  		ServerResponse: googleapi.ServerResponse{
 28426  			Header:         res.Header,
 28427  			HTTPStatusCode: res.StatusCode,
 28428  		},
 28429  	}
 28430  	target := &ret
 28431  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28432  		return nil, err
 28433  	}
 28434  	return ret, nil
 28435  }
 28436  
 28437  type ProjectsConversationProfilesClearSuggestionFeatureConfigCall struct {
 28438  	s                                                               *Service
 28439  	conversationProfile                                             string
 28440  	googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest
 28441  	urlParams_                                                      gensupport.URLParams
 28442  	ctx_                                                            context.Context
 28443  	header_                                                         http.Header
 28444  }
 28445  
 28446  // ClearSuggestionFeatureConfig: Clears a suggestion feature from a
 28447  // conversation profile for the given participant role. This method is a
 28448  // long-running operation
 28449  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 28450  // The returned `Operation` type has the following method-specific fields: -
 28451  // `metadata`: ClearSuggestionFeatureConfigOperationMetadata - `response`:
 28452  // ConversationProfile
 28453  //
 28454  //   - conversationProfile: The Conversation Profile to add or update the
 28455  //     suggestion feature config. Format:
 28456  //     `projects//locations//conversationProfiles/`.
 28457  func (r *ProjectsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
 28458  	c := &ProjectsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28459  	c.conversationProfile = conversationProfile
 28460  	c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest
 28461  	return c
 28462  }
 28463  
 28464  // Fields allows partial responses to be retrieved. See
 28465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28466  // details.
 28467  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
 28468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28469  	return c
 28470  }
 28471  
 28472  // Context sets the context to be used in this call's Do method.
 28473  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
 28474  	c.ctx_ = ctx
 28475  	return c
 28476  }
 28477  
 28478  // Header returns a http.Header that can be modified by the caller to add
 28479  // headers to the request.
 28480  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
 28481  	if c.header_ == nil {
 28482  		c.header_ = make(http.Header)
 28483  	}
 28484  	return c.header_
 28485  }
 28486  
 28487  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 28488  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28489  	var body io.Reader = nil
 28490  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest)
 28491  	if err != nil {
 28492  		return nil, err
 28493  	}
 28494  	c.urlParams_.Set("alt", alt)
 28495  	c.urlParams_.Set("prettyPrint", "false")
 28496  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig")
 28497  	urls += "?" + c.urlParams_.Encode()
 28498  	req, err := http.NewRequest("POST", urls, body)
 28499  	if err != nil {
 28500  		return nil, err
 28501  	}
 28502  	req.Header = reqHeaders
 28503  	googleapi.Expand(req.URL, map[string]string{
 28504  		"conversationProfile": c.conversationProfile,
 28505  	})
 28506  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28507  }
 28508  
 28509  // Do executes the "dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig" call.
 28510  // Any non-2xx status code is an error. Response headers are in either
 28511  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28512  // returned at all) in error.(*googleapi.Error).Header. Use
 28513  // googleapi.IsNotModified to check whether the returned error was because
 28514  // http.StatusNotModified was returned.
 28515  func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28516  	gensupport.SetOptions(c.urlParams_, opts...)
 28517  	res, err := c.doRequest("json")
 28518  	if res != nil && res.StatusCode == http.StatusNotModified {
 28519  		if res.Body != nil {
 28520  			res.Body.Close()
 28521  		}
 28522  		return nil, gensupport.WrapError(&googleapi.Error{
 28523  			Code:   res.StatusCode,
 28524  			Header: res.Header,
 28525  		})
 28526  	}
 28527  	if err != nil {
 28528  		return nil, err
 28529  	}
 28530  	defer googleapi.CloseBody(res)
 28531  	if err := googleapi.CheckResponse(res); err != nil {
 28532  		return nil, gensupport.WrapError(err)
 28533  	}
 28534  	ret := &GoogleLongrunningOperation{
 28535  		ServerResponse: googleapi.ServerResponse{
 28536  			Header:         res.Header,
 28537  			HTTPStatusCode: res.StatusCode,
 28538  		},
 28539  	}
 28540  	target := &ret
 28541  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28542  		return nil, err
 28543  	}
 28544  	return ret, nil
 28545  }
 28546  
 28547  type ProjectsConversationProfilesCreateCall struct {
 28548  	s                                               *Service
 28549  	parent                                          string
 28550  	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
 28551  	urlParams_                                      gensupport.URLParams
 28552  	ctx_                                            context.Context
 28553  	header_                                         http.Header
 28554  }
 28555  
 28556  // Create: Creates a conversation profile in the specified project.
 28557  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 28558  // populated in the response. You can retrieve them via GetConversationProfile
 28559  // API.
 28560  //
 28561  //   - parent: The project to create a conversation profile for. Format:
 28562  //     `projects//locations/`.
 28563  func (r *ProjectsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesCreateCall {
 28564  	c := &ProjectsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28565  	c.parent = parent
 28566  	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
 28567  	return c
 28568  }
 28569  
 28570  // Fields allows partial responses to be retrieved. See
 28571  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28572  // details.
 28573  func (c *ProjectsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesCreateCall {
 28574  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28575  	return c
 28576  }
 28577  
 28578  // Context sets the context to be used in this call's Do method.
 28579  func (c *ProjectsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsConversationProfilesCreateCall {
 28580  	c.ctx_ = ctx
 28581  	return c
 28582  }
 28583  
 28584  // Header returns a http.Header that can be modified by the caller to add
 28585  // headers to the request.
 28586  func (c *ProjectsConversationProfilesCreateCall) Header() http.Header {
 28587  	if c.header_ == nil {
 28588  		c.header_ = make(http.Header)
 28589  	}
 28590  	return c.header_
 28591  }
 28592  
 28593  func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
 28594  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28595  	var body io.Reader = nil
 28596  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
 28597  	if err != nil {
 28598  		return nil, err
 28599  	}
 28600  	c.urlParams_.Set("alt", alt)
 28601  	c.urlParams_.Set("prettyPrint", "false")
 28602  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
 28603  	urls += "?" + c.urlParams_.Encode()
 28604  	req, err := http.NewRequest("POST", urls, body)
 28605  	if err != nil {
 28606  		return nil, err
 28607  	}
 28608  	req.Header = reqHeaders
 28609  	googleapi.Expand(req.URL, map[string]string{
 28610  		"parent": c.parent,
 28611  	})
 28612  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28613  }
 28614  
 28615  // Do executes the "dialogflow.projects.conversationProfiles.create" call.
 28616  // Any non-2xx status code is an error. Response headers are in either
 28617  // *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or
 28618  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 28619  // googleapi.IsNotModified to check whether the returned error was because
 28620  // http.StatusNotModified was returned.
 28621  func (c *ProjectsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
 28622  	gensupport.SetOptions(c.urlParams_, opts...)
 28623  	res, err := c.doRequest("json")
 28624  	if res != nil && res.StatusCode == http.StatusNotModified {
 28625  		if res.Body != nil {
 28626  			res.Body.Close()
 28627  		}
 28628  		return nil, gensupport.WrapError(&googleapi.Error{
 28629  			Code:   res.StatusCode,
 28630  			Header: res.Header,
 28631  		})
 28632  	}
 28633  	if err != nil {
 28634  		return nil, err
 28635  	}
 28636  	defer googleapi.CloseBody(res)
 28637  	if err := googleapi.CheckResponse(res); err != nil {
 28638  		return nil, gensupport.WrapError(err)
 28639  	}
 28640  	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
 28641  		ServerResponse: googleapi.ServerResponse{
 28642  			Header:         res.Header,
 28643  			HTTPStatusCode: res.StatusCode,
 28644  		},
 28645  	}
 28646  	target := &ret
 28647  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28648  		return nil, err
 28649  	}
 28650  	return ret, nil
 28651  }
 28652  
 28653  type ProjectsConversationProfilesDeleteCall struct {
 28654  	s          *Service
 28655  	name       string
 28656  	urlParams_ gensupport.URLParams
 28657  	ctx_       context.Context
 28658  	header_    http.Header
 28659  }
 28660  
 28661  // Delete: Deletes the specified conversation profile.
 28662  //
 28663  //   - name: The name of the conversation profile to delete. Format:
 28664  //     `projects//locations//conversationProfiles/`.
 28665  func (r *ProjectsConversationProfilesService) Delete(name string) *ProjectsConversationProfilesDeleteCall {
 28666  	c := &ProjectsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28667  	c.name = name
 28668  	return c
 28669  }
 28670  
 28671  // Fields allows partial responses to be retrieved. See
 28672  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28673  // details.
 28674  func (c *ProjectsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesDeleteCall {
 28675  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28676  	return c
 28677  }
 28678  
 28679  // Context sets the context to be used in this call's Do method.
 28680  func (c *ProjectsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsConversationProfilesDeleteCall {
 28681  	c.ctx_ = ctx
 28682  	return c
 28683  }
 28684  
 28685  // Header returns a http.Header that can be modified by the caller to add
 28686  // headers to the request.
 28687  func (c *ProjectsConversationProfilesDeleteCall) Header() http.Header {
 28688  	if c.header_ == nil {
 28689  		c.header_ = make(http.Header)
 28690  	}
 28691  	return c.header_
 28692  }
 28693  
 28694  func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 28695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28696  	var body io.Reader = nil
 28697  	c.urlParams_.Set("alt", alt)
 28698  	c.urlParams_.Set("prettyPrint", "false")
 28699  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 28700  	urls += "?" + c.urlParams_.Encode()
 28701  	req, err := http.NewRequest("DELETE", urls, body)
 28702  	if err != nil {
 28703  		return nil, err
 28704  	}
 28705  	req.Header = reqHeaders
 28706  	googleapi.Expand(req.URL, map[string]string{
 28707  		"name": c.name,
 28708  	})
 28709  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28710  }
 28711  
 28712  // Do executes the "dialogflow.projects.conversationProfiles.delete" call.
 28713  // Any non-2xx status code is an error. Response headers are in either
 28714  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 28715  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 28716  // check whether the returned error was because http.StatusNotModified was
 28717  // returned.
 28718  func (c *ProjectsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 28719  	gensupport.SetOptions(c.urlParams_, opts...)
 28720  	res, err := c.doRequest("json")
 28721  	if res != nil && res.StatusCode == http.StatusNotModified {
 28722  		if res.Body != nil {
 28723  			res.Body.Close()
 28724  		}
 28725  		return nil, gensupport.WrapError(&googleapi.Error{
 28726  			Code:   res.StatusCode,
 28727  			Header: res.Header,
 28728  		})
 28729  	}
 28730  	if err != nil {
 28731  		return nil, err
 28732  	}
 28733  	defer googleapi.CloseBody(res)
 28734  	if err := googleapi.CheckResponse(res); err != nil {
 28735  		return nil, gensupport.WrapError(err)
 28736  	}
 28737  	ret := &GoogleProtobufEmpty{
 28738  		ServerResponse: googleapi.ServerResponse{
 28739  			Header:         res.Header,
 28740  			HTTPStatusCode: res.StatusCode,
 28741  		},
 28742  	}
 28743  	target := &ret
 28744  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28745  		return nil, err
 28746  	}
 28747  	return ret, nil
 28748  }
 28749  
 28750  type ProjectsConversationProfilesGetCall struct {
 28751  	s            *Service
 28752  	name         string
 28753  	urlParams_   gensupport.URLParams
 28754  	ifNoneMatch_ string
 28755  	ctx_         context.Context
 28756  	header_      http.Header
 28757  }
 28758  
 28759  // Get: Retrieves the specified conversation profile.
 28760  //
 28761  //   - name: The resource name of the conversation profile. Format:
 28762  //     `projects//locations//conversationProfiles/`.
 28763  func (r *ProjectsConversationProfilesService) Get(name string) *ProjectsConversationProfilesGetCall {
 28764  	c := &ProjectsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28765  	c.name = name
 28766  	return c
 28767  }
 28768  
 28769  // Fields allows partial responses to be retrieved. See
 28770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28771  // details.
 28772  func (c *ProjectsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesGetCall {
 28773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28774  	return c
 28775  }
 28776  
 28777  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28778  // object's ETag matches the given value. This is useful for getting updates
 28779  // only after the object has changed since the last request.
 28780  func (c *ProjectsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesGetCall {
 28781  	c.ifNoneMatch_ = entityTag
 28782  	return c
 28783  }
 28784  
 28785  // Context sets the context to be used in this call's Do method.
 28786  func (c *ProjectsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsConversationProfilesGetCall {
 28787  	c.ctx_ = ctx
 28788  	return c
 28789  }
 28790  
 28791  // Header returns a http.Header that can be modified by the caller to add
 28792  // headers to the request.
 28793  func (c *ProjectsConversationProfilesGetCall) Header() http.Header {
 28794  	if c.header_ == nil {
 28795  		c.header_ = make(http.Header)
 28796  	}
 28797  	return c.header_
 28798  }
 28799  
 28800  func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 28801  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28802  	if c.ifNoneMatch_ != "" {
 28803  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28804  	}
 28805  	var body io.Reader = nil
 28806  	c.urlParams_.Set("alt", alt)
 28807  	c.urlParams_.Set("prettyPrint", "false")
 28808  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 28809  	urls += "?" + c.urlParams_.Encode()
 28810  	req, err := http.NewRequest("GET", urls, body)
 28811  	if err != nil {
 28812  		return nil, err
 28813  	}
 28814  	req.Header = reqHeaders
 28815  	googleapi.Expand(req.URL, map[string]string{
 28816  		"name": c.name,
 28817  	})
 28818  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28819  }
 28820  
 28821  // Do executes the "dialogflow.projects.conversationProfiles.get" call.
 28822  // Any non-2xx status code is an error. Response headers are in either
 28823  // *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or
 28824  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 28825  // googleapi.IsNotModified to check whether the returned error was because
 28826  // http.StatusNotModified was returned.
 28827  func (c *ProjectsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
 28828  	gensupport.SetOptions(c.urlParams_, opts...)
 28829  	res, err := c.doRequest("json")
 28830  	if res != nil && res.StatusCode == http.StatusNotModified {
 28831  		if res.Body != nil {
 28832  			res.Body.Close()
 28833  		}
 28834  		return nil, gensupport.WrapError(&googleapi.Error{
 28835  			Code:   res.StatusCode,
 28836  			Header: res.Header,
 28837  		})
 28838  	}
 28839  	if err != nil {
 28840  		return nil, err
 28841  	}
 28842  	defer googleapi.CloseBody(res)
 28843  	if err := googleapi.CheckResponse(res); err != nil {
 28844  		return nil, gensupport.WrapError(err)
 28845  	}
 28846  	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
 28847  		ServerResponse: googleapi.ServerResponse{
 28848  			Header:         res.Header,
 28849  			HTTPStatusCode: res.StatusCode,
 28850  		},
 28851  	}
 28852  	target := &ret
 28853  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28854  		return nil, err
 28855  	}
 28856  	return ret, nil
 28857  }
 28858  
 28859  type ProjectsConversationProfilesListCall struct {
 28860  	s            *Service
 28861  	parent       string
 28862  	urlParams_   gensupport.URLParams
 28863  	ifNoneMatch_ string
 28864  	ctx_         context.Context
 28865  	header_      http.Header
 28866  }
 28867  
 28868  // List: Returns the list of all conversation profiles in the specified
 28869  // project.
 28870  //
 28871  //   - parent: The project to list all conversation profiles from. Format:
 28872  //     `projects//locations/`.
 28873  func (r *ProjectsConversationProfilesService) List(parent string) *ProjectsConversationProfilesListCall {
 28874  	c := &ProjectsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28875  	c.parent = parent
 28876  	return c
 28877  }
 28878  
 28879  // PageSize sets the optional parameter "pageSize": The maximum number of items
 28880  // to return in a single page. By default 100 and at most 1000.
 28881  func (c *ProjectsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsConversationProfilesListCall {
 28882  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28883  	return c
 28884  }
 28885  
 28886  // PageToken sets the optional parameter "pageToken": The next_page_token value
 28887  // returned from a previous list request.
 28888  func (c *ProjectsConversationProfilesListCall) PageToken(pageToken string) *ProjectsConversationProfilesListCall {
 28889  	c.urlParams_.Set("pageToken", pageToken)
 28890  	return c
 28891  }
 28892  
 28893  // Fields allows partial responses to be retrieved. See
 28894  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28895  // details.
 28896  func (c *ProjectsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesListCall {
 28897  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28898  	return c
 28899  }
 28900  
 28901  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28902  // object's ETag matches the given value. This is useful for getting updates
 28903  // only after the object has changed since the last request.
 28904  func (c *ProjectsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesListCall {
 28905  	c.ifNoneMatch_ = entityTag
 28906  	return c
 28907  }
 28908  
 28909  // Context sets the context to be used in this call's Do method.
 28910  func (c *ProjectsConversationProfilesListCall) Context(ctx context.Context) *ProjectsConversationProfilesListCall {
 28911  	c.ctx_ = ctx
 28912  	return c
 28913  }
 28914  
 28915  // Header returns a http.Header that can be modified by the caller to add
 28916  // headers to the request.
 28917  func (c *ProjectsConversationProfilesListCall) Header() http.Header {
 28918  	if c.header_ == nil {
 28919  		c.header_ = make(http.Header)
 28920  	}
 28921  	return c.header_
 28922  }
 28923  
 28924  func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
 28925  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28926  	if c.ifNoneMatch_ != "" {
 28927  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28928  	}
 28929  	var body io.Reader = nil
 28930  	c.urlParams_.Set("alt", alt)
 28931  	c.urlParams_.Set("prettyPrint", "false")
 28932  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
 28933  	urls += "?" + c.urlParams_.Encode()
 28934  	req, err := http.NewRequest("GET", urls, body)
 28935  	if err != nil {
 28936  		return nil, err
 28937  	}
 28938  	req.Header = reqHeaders
 28939  	googleapi.Expand(req.URL, map[string]string{
 28940  		"parent": c.parent,
 28941  	})
 28942  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28943  }
 28944  
 28945  // Do executes the "dialogflow.projects.conversationProfiles.list" call.
 28946  // Any non-2xx status code is an error. Response headers are in either
 28947  // *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerResponse.
 28948  // Header or (if a response was returned at all) in
 28949  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 28950  // whether the returned error was because http.StatusNotModified was returned.
 28951  func (c *ProjectsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
 28952  	gensupport.SetOptions(c.urlParams_, opts...)
 28953  	res, err := c.doRequest("json")
 28954  	if res != nil && res.StatusCode == http.StatusNotModified {
 28955  		if res.Body != nil {
 28956  			res.Body.Close()
 28957  		}
 28958  		return nil, gensupport.WrapError(&googleapi.Error{
 28959  			Code:   res.StatusCode,
 28960  			Header: res.Header,
 28961  		})
 28962  	}
 28963  	if err != nil {
 28964  		return nil, err
 28965  	}
 28966  	defer googleapi.CloseBody(res)
 28967  	if err := googleapi.CheckResponse(res); err != nil {
 28968  		return nil, gensupport.WrapError(err)
 28969  	}
 28970  	ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
 28971  		ServerResponse: googleapi.ServerResponse{
 28972  			Header:         res.Header,
 28973  			HTTPStatusCode: res.StatusCode,
 28974  		},
 28975  	}
 28976  	target := &ret
 28977  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28978  		return nil, err
 28979  	}
 28980  	return ret, nil
 28981  }
 28982  
 28983  // Pages invokes f for each page of results.
 28984  // A non-nil error returned from f will halt the iteration.
 28985  // The provided context supersedes any context provided to the Context method.
 28986  func (c *ProjectsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
 28987  	c.ctx_ = ctx
 28988  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28989  	for {
 28990  		x, err := c.Do()
 28991  		if err != nil {
 28992  			return err
 28993  		}
 28994  		if err := f(x); err != nil {
 28995  			return err
 28996  		}
 28997  		if x.NextPageToken == "" {
 28998  			return nil
 28999  		}
 29000  		c.PageToken(x.NextPageToken)
 29001  	}
 29002  }
 29003  
 29004  type ProjectsConversationProfilesPatchCall struct {
 29005  	s                                               *Service
 29006  	nameid                                          string
 29007  	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
 29008  	urlParams_                                      gensupport.URLParams
 29009  	ctx_                                            context.Context
 29010  	header_                                         http.Header
 29011  }
 29012  
 29013  // Patch: Updates the specified conversation profile.
 29014  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 29015  // populated in the response. You can retrieve them via GetConversationProfile
 29016  // API.
 29017  //
 29018  //   - name: The unique identifier of this conversation profile. Format:
 29019  //     `projects//locations//conversationProfiles/`.
 29020  func (r *ProjectsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesPatchCall {
 29021  	c := &ProjectsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29022  	c.nameid = nameid
 29023  	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
 29024  	return c
 29025  }
 29026  
 29027  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 29028  // control which fields to update.
 29029  func (c *ProjectsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsConversationProfilesPatchCall {
 29030  	c.urlParams_.Set("updateMask", updateMask)
 29031  	return c
 29032  }
 29033  
 29034  // Fields allows partial responses to be retrieved. See
 29035  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29036  // details.
 29037  func (c *ProjectsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesPatchCall {
 29038  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29039  	return c
 29040  }
 29041  
 29042  // Context sets the context to be used in this call's Do method.
 29043  func (c *ProjectsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsConversationProfilesPatchCall {
 29044  	c.ctx_ = ctx
 29045  	return c
 29046  }
 29047  
 29048  // Header returns a http.Header that can be modified by the caller to add
 29049  // headers to the request.
 29050  func (c *ProjectsConversationProfilesPatchCall) Header() http.Header {
 29051  	if c.header_ == nil {
 29052  		c.header_ = make(http.Header)
 29053  	}
 29054  	return c.header_
 29055  }
 29056  
 29057  func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
 29058  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29059  	var body io.Reader = nil
 29060  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
 29061  	if err != nil {
 29062  		return nil, err
 29063  	}
 29064  	c.urlParams_.Set("alt", alt)
 29065  	c.urlParams_.Set("prettyPrint", "false")
 29066  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 29067  	urls += "?" + c.urlParams_.Encode()
 29068  	req, err := http.NewRequest("PATCH", urls, body)
 29069  	if err != nil {
 29070  		return nil, err
 29071  	}
 29072  	req.Header = reqHeaders
 29073  	googleapi.Expand(req.URL, map[string]string{
 29074  		"name": c.nameid,
 29075  	})
 29076  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29077  }
 29078  
 29079  // Do executes the "dialogflow.projects.conversationProfiles.patch" call.
 29080  // Any non-2xx status code is an error. Response headers are in either
 29081  // *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or
 29082  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 29083  // googleapi.IsNotModified to check whether the returned error was because
 29084  // http.StatusNotModified was returned.
 29085  func (c *ProjectsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
 29086  	gensupport.SetOptions(c.urlParams_, opts...)
 29087  	res, err := c.doRequest("json")
 29088  	if res != nil && res.StatusCode == http.StatusNotModified {
 29089  		if res.Body != nil {
 29090  			res.Body.Close()
 29091  		}
 29092  		return nil, gensupport.WrapError(&googleapi.Error{
 29093  			Code:   res.StatusCode,
 29094  			Header: res.Header,
 29095  		})
 29096  	}
 29097  	if err != nil {
 29098  		return nil, err
 29099  	}
 29100  	defer googleapi.CloseBody(res)
 29101  	if err := googleapi.CheckResponse(res); err != nil {
 29102  		return nil, gensupport.WrapError(err)
 29103  	}
 29104  	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
 29105  		ServerResponse: googleapi.ServerResponse{
 29106  			Header:         res.Header,
 29107  			HTTPStatusCode: res.StatusCode,
 29108  		},
 29109  	}
 29110  	target := &ret
 29111  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29112  		return nil, err
 29113  	}
 29114  	return ret, nil
 29115  }
 29116  
 29117  type ProjectsConversationProfilesSetSuggestionFeatureConfigCall struct {
 29118  	s                                                             *Service
 29119  	conversationProfile                                           string
 29120  	googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest
 29121  	urlParams_                                                    gensupport.URLParams
 29122  	ctx_                                                          context.Context
 29123  	header_                                                       http.Header
 29124  }
 29125  
 29126  // SetSuggestionFeatureConfig: Adds or updates a suggestion feature in a
 29127  // conversation profile. If the conversation profile contains the type of
 29128  // suggestion feature for the participant role, it will update it. Otherwise it
 29129  // will insert the suggestion feature. This method is a long-running operation
 29130  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 29131  // The returned `Operation` type has the following method-specific fields: -
 29132  // `metadata`: SetSuggestionFeatureConfigOperationMetadata - `response`:
 29133  // ConversationProfile If a long running operation to add or update suggestion
 29134  // feature config for the same conversation profile, participant role and
 29135  // suggestion feature type exists, please cancel the existing long running
 29136  // operation before sending such request, otherwise the request will be
 29137  // rejected.
 29138  //
 29139  //   - conversationProfile: The Conversation Profile to add or update the
 29140  //     suggestion feature config. Format:
 29141  //     `projects//locations//conversationProfiles/`.
 29142  func (r *ProjectsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
 29143  	c := &ProjectsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29144  	c.conversationProfile = conversationProfile
 29145  	c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest
 29146  	return c
 29147  }
 29148  
 29149  // Fields allows partial responses to be retrieved. See
 29150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29151  // details.
 29152  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
 29153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29154  	return c
 29155  }
 29156  
 29157  // Context sets the context to be used in this call's Do method.
 29158  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
 29159  	c.ctx_ = ctx
 29160  	return c
 29161  }
 29162  
 29163  // Header returns a http.Header that can be modified by the caller to add
 29164  // headers to the request.
 29165  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
 29166  	if c.header_ == nil {
 29167  		c.header_ = make(http.Header)
 29168  	}
 29169  	return c.header_
 29170  }
 29171  
 29172  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 29173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29174  	var body io.Reader = nil
 29175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest)
 29176  	if err != nil {
 29177  		return nil, err
 29178  	}
 29179  	c.urlParams_.Set("alt", alt)
 29180  	c.urlParams_.Set("prettyPrint", "false")
 29181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:setSuggestionFeatureConfig")
 29182  	urls += "?" + c.urlParams_.Encode()
 29183  	req, err := http.NewRequest("POST", urls, body)
 29184  	if err != nil {
 29185  		return nil, err
 29186  	}
 29187  	req.Header = reqHeaders
 29188  	googleapi.Expand(req.URL, map[string]string{
 29189  		"conversationProfile": c.conversationProfile,
 29190  	})
 29191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29192  }
 29193  
 29194  // Do executes the "dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig" call.
 29195  // Any non-2xx status code is an error. Response headers are in either
 29196  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29197  // returned at all) in error.(*googleapi.Error).Header. Use
 29198  // googleapi.IsNotModified to check whether the returned error was because
 29199  // http.StatusNotModified was returned.
 29200  func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29201  	gensupport.SetOptions(c.urlParams_, opts...)
 29202  	res, err := c.doRequest("json")
 29203  	if res != nil && res.StatusCode == http.StatusNotModified {
 29204  		if res.Body != nil {
 29205  			res.Body.Close()
 29206  		}
 29207  		return nil, gensupport.WrapError(&googleapi.Error{
 29208  			Code:   res.StatusCode,
 29209  			Header: res.Header,
 29210  		})
 29211  	}
 29212  	if err != nil {
 29213  		return nil, err
 29214  	}
 29215  	defer googleapi.CloseBody(res)
 29216  	if err := googleapi.CheckResponse(res); err != nil {
 29217  		return nil, gensupport.WrapError(err)
 29218  	}
 29219  	ret := &GoogleLongrunningOperation{
 29220  		ServerResponse: googleapi.ServerResponse{
 29221  			Header:         res.Header,
 29222  			HTTPStatusCode: res.StatusCode,
 29223  		},
 29224  	}
 29225  	target := &ret
 29226  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29227  		return nil, err
 29228  	}
 29229  	return ret, nil
 29230  }
 29231  
 29232  type ProjectsConversationsCompleteCall struct {
 29233  	s                                                       *Service
 29234  	nameid                                                  string
 29235  	googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
 29236  	urlParams_                                              gensupport.URLParams
 29237  	ctx_                                                    context.Context
 29238  	header_                                                 http.Header
 29239  }
 29240  
 29241  // Complete: Completes the specified conversation. Finished conversations are
 29242  // purged from the database after 30 days.
 29243  //
 29244  //   - name: Resource identifier of the conversation to close. Format:
 29245  //     `projects//locations//conversations/`.
 29246  func (r *ProjectsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsConversationsCompleteCall {
 29247  	c := &ProjectsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29248  	c.nameid = nameid
 29249  	c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
 29250  	return c
 29251  }
 29252  
 29253  // Fields allows partial responses to be retrieved. See
 29254  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29255  // details.
 29256  func (c *ProjectsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsConversationsCompleteCall {
 29257  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29258  	return c
 29259  }
 29260  
 29261  // Context sets the context to be used in this call's Do method.
 29262  func (c *ProjectsConversationsCompleteCall) Context(ctx context.Context) *ProjectsConversationsCompleteCall {
 29263  	c.ctx_ = ctx
 29264  	return c
 29265  }
 29266  
 29267  // Header returns a http.Header that can be modified by the caller to add
 29268  // headers to the request.
 29269  func (c *ProjectsConversationsCompleteCall) Header() http.Header {
 29270  	if c.header_ == nil {
 29271  		c.header_ = make(http.Header)
 29272  	}
 29273  	return c.header_
 29274  }
 29275  
 29276  func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
 29277  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29278  	var body io.Reader = nil
 29279  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
 29280  	if err != nil {
 29281  		return nil, err
 29282  	}
 29283  	c.urlParams_.Set("alt", alt)
 29284  	c.urlParams_.Set("prettyPrint", "false")
 29285  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
 29286  	urls += "?" + c.urlParams_.Encode()
 29287  	req, err := http.NewRequest("POST", urls, body)
 29288  	if err != nil {
 29289  		return nil, err
 29290  	}
 29291  	req.Header = reqHeaders
 29292  	googleapi.Expand(req.URL, map[string]string{
 29293  		"name": c.nameid,
 29294  	})
 29295  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29296  }
 29297  
 29298  // Do executes the "dialogflow.projects.conversations.complete" call.
 29299  // Any non-2xx status code is an error. Response headers are in either
 29300  // *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if a
 29301  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29302  // googleapi.IsNotModified to check whether the returned error was because
 29303  // http.StatusNotModified was returned.
 29304  func (c *ProjectsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
 29305  	gensupport.SetOptions(c.urlParams_, opts...)
 29306  	res, err := c.doRequest("json")
 29307  	if res != nil && res.StatusCode == http.StatusNotModified {
 29308  		if res.Body != nil {
 29309  			res.Body.Close()
 29310  		}
 29311  		return nil, gensupport.WrapError(&googleapi.Error{
 29312  			Code:   res.StatusCode,
 29313  			Header: res.Header,
 29314  		})
 29315  	}
 29316  	if err != nil {
 29317  		return nil, err
 29318  	}
 29319  	defer googleapi.CloseBody(res)
 29320  	if err := googleapi.CheckResponse(res); err != nil {
 29321  		return nil, gensupport.WrapError(err)
 29322  	}
 29323  	ret := &GoogleCloudDialogflowV2beta1Conversation{
 29324  		ServerResponse: googleapi.ServerResponse{
 29325  			Header:         res.Header,
 29326  			HTTPStatusCode: res.StatusCode,
 29327  		},
 29328  	}
 29329  	target := &ret
 29330  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29331  		return nil, err
 29332  	}
 29333  	return ret, nil
 29334  }
 29335  
 29336  type ProjectsConversationsCreateCall struct {
 29337  	s                                        *Service
 29338  	parentid                                 string
 29339  	googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
 29340  	urlParams_                               gensupport.URLParams
 29341  	ctx_                                     context.Context
 29342  	header_                                  http.Header
 29343  }
 29344  
 29345  // Create: Creates a new conversation. Conversations are auto-completed after
 29346  // 24 hours. Conversation Lifecycle: There are two stages during a
 29347  // conversation: Automated Agent Stage and Assist Stage. For Automated Agent
 29348  // Stage, there will be a dialogflow agent responding to user queries. For
 29349  // Assist Stage, there's no dialogflow agent responding to user queries. But we
 29350  // will provide suggestions which are generated from conversation. If
 29351  // Conversation.conversation_profile is configured for a dialogflow agent,
 29352  // conversation will start from `Automated Agent Stage`, otherwise, it will
 29353  // start from `Assist Stage`. And during `Automated Agent Stage`, once an
 29354  // Intent with Intent.live_agent_handoff is triggered, conversation will
 29355  // transfer to Assist Stage.
 29356  //
 29357  //   - parent: Resource identifier of the project creating the conversation.
 29358  //     Format: `projects//locations/`.
 29359  func (r *ProjectsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsConversationsCreateCall {
 29360  	c := &ProjectsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29361  	c.parentid = parentid
 29362  	c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
 29363  	return c
 29364  }
 29365  
 29366  // ConversationId sets the optional parameter "conversationId": Identifier of
 29367  // the conversation. Generally it's auto generated by Google. Only set it if
 29368  // you cannot wait for the response to return a auto-generated one to you. The
 29369  // conversation ID must be compliant with the regression fomula `a-zA-Z*` with
 29370  // the characters length in range of [3,64]. If the field is provided, the
 29371  // caller is resposible for 1. the uniqueness of the ID, otherwise the request
 29372  // will be rejected. 2. the consistency for whether to use custom ID or not
 29373  // under a project to better ensure uniqueness.
 29374  func (c *ProjectsConversationsCreateCall) ConversationId(conversationId string) *ProjectsConversationsCreateCall {
 29375  	c.urlParams_.Set("conversationId", conversationId)
 29376  	return c
 29377  }
 29378  
 29379  // Fields allows partial responses to be retrieved. See
 29380  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29381  // details.
 29382  func (c *ProjectsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsCreateCall {
 29383  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29384  	return c
 29385  }
 29386  
 29387  // Context sets the context to be used in this call's Do method.
 29388  func (c *ProjectsConversationsCreateCall) Context(ctx context.Context) *ProjectsConversationsCreateCall {
 29389  	c.ctx_ = ctx
 29390  	return c
 29391  }
 29392  
 29393  // Header returns a http.Header that can be modified by the caller to add
 29394  // headers to the request.
 29395  func (c *ProjectsConversationsCreateCall) Header() http.Header {
 29396  	if c.header_ == nil {
 29397  		c.header_ = make(http.Header)
 29398  	}
 29399  	return c.header_
 29400  }
 29401  
 29402  func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 29403  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29404  	var body io.Reader = nil
 29405  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
 29406  	if err != nil {
 29407  		return nil, err
 29408  	}
 29409  	c.urlParams_.Set("alt", alt)
 29410  	c.urlParams_.Set("prettyPrint", "false")
 29411  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
 29412  	urls += "?" + c.urlParams_.Encode()
 29413  	req, err := http.NewRequest("POST", urls, body)
 29414  	if err != nil {
 29415  		return nil, err
 29416  	}
 29417  	req.Header = reqHeaders
 29418  	googleapi.Expand(req.URL, map[string]string{
 29419  		"parent": c.parentid,
 29420  	})
 29421  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29422  }
 29423  
 29424  // Do executes the "dialogflow.projects.conversations.create" call.
 29425  // Any non-2xx status code is an error. Response headers are in either
 29426  // *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if a
 29427  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29428  // googleapi.IsNotModified to check whether the returned error was because
 29429  // http.StatusNotModified was returned.
 29430  func (c *ProjectsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
 29431  	gensupport.SetOptions(c.urlParams_, opts...)
 29432  	res, err := c.doRequest("json")
 29433  	if res != nil && res.StatusCode == http.StatusNotModified {
 29434  		if res.Body != nil {
 29435  			res.Body.Close()
 29436  		}
 29437  		return nil, gensupport.WrapError(&googleapi.Error{
 29438  			Code:   res.StatusCode,
 29439  			Header: res.Header,
 29440  		})
 29441  	}
 29442  	if err != nil {
 29443  		return nil, err
 29444  	}
 29445  	defer googleapi.CloseBody(res)
 29446  	if err := googleapi.CheckResponse(res); err != nil {
 29447  		return nil, gensupport.WrapError(err)
 29448  	}
 29449  	ret := &GoogleCloudDialogflowV2beta1Conversation{
 29450  		ServerResponse: googleapi.ServerResponse{
 29451  			Header:         res.Header,
 29452  			HTTPStatusCode: res.StatusCode,
 29453  		},
 29454  	}
 29455  	target := &ret
 29456  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29457  		return nil, err
 29458  	}
 29459  	return ret, nil
 29460  }
 29461  
 29462  type ProjectsConversationsGetCall struct {
 29463  	s            *Service
 29464  	name         string
 29465  	urlParams_   gensupport.URLParams
 29466  	ifNoneMatch_ string
 29467  	ctx_         context.Context
 29468  	header_      http.Header
 29469  }
 29470  
 29471  // Get: Retrieves the specific conversation.
 29472  //
 29473  //   - name: The name of the conversation. Format:
 29474  //     `projects//locations//conversations/`.
 29475  func (r *ProjectsConversationsService) Get(name string) *ProjectsConversationsGetCall {
 29476  	c := &ProjectsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29477  	c.name = name
 29478  	return c
 29479  }
 29480  
 29481  // Fields allows partial responses to be retrieved. See
 29482  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29483  // details.
 29484  func (c *ProjectsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsGetCall {
 29485  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29486  	return c
 29487  }
 29488  
 29489  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29490  // object's ETag matches the given value. This is useful for getting updates
 29491  // only after the object has changed since the last request.
 29492  func (c *ProjectsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsGetCall {
 29493  	c.ifNoneMatch_ = entityTag
 29494  	return c
 29495  }
 29496  
 29497  // Context sets the context to be used in this call's Do method.
 29498  func (c *ProjectsConversationsGetCall) Context(ctx context.Context) *ProjectsConversationsGetCall {
 29499  	c.ctx_ = ctx
 29500  	return c
 29501  }
 29502  
 29503  // Header returns a http.Header that can be modified by the caller to add
 29504  // headers to the request.
 29505  func (c *ProjectsConversationsGetCall) Header() http.Header {
 29506  	if c.header_ == nil {
 29507  		c.header_ = make(http.Header)
 29508  	}
 29509  	return c.header_
 29510  }
 29511  
 29512  func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 29513  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29514  	if c.ifNoneMatch_ != "" {
 29515  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29516  	}
 29517  	var body io.Reader = nil
 29518  	c.urlParams_.Set("alt", alt)
 29519  	c.urlParams_.Set("prettyPrint", "false")
 29520  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 29521  	urls += "?" + c.urlParams_.Encode()
 29522  	req, err := http.NewRequest("GET", urls, body)
 29523  	if err != nil {
 29524  		return nil, err
 29525  	}
 29526  	req.Header = reqHeaders
 29527  	googleapi.Expand(req.URL, map[string]string{
 29528  		"name": c.name,
 29529  	})
 29530  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29531  }
 29532  
 29533  // Do executes the "dialogflow.projects.conversations.get" call.
 29534  // Any non-2xx status code is an error. Response headers are in either
 29535  // *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if a
 29536  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29537  // googleapi.IsNotModified to check whether the returned error was because
 29538  // http.StatusNotModified was returned.
 29539  func (c *ProjectsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
 29540  	gensupport.SetOptions(c.urlParams_, opts...)
 29541  	res, err := c.doRequest("json")
 29542  	if res != nil && res.StatusCode == http.StatusNotModified {
 29543  		if res.Body != nil {
 29544  			res.Body.Close()
 29545  		}
 29546  		return nil, gensupport.WrapError(&googleapi.Error{
 29547  			Code:   res.StatusCode,
 29548  			Header: res.Header,
 29549  		})
 29550  	}
 29551  	if err != nil {
 29552  		return nil, err
 29553  	}
 29554  	defer googleapi.CloseBody(res)
 29555  	if err := googleapi.CheckResponse(res); err != nil {
 29556  		return nil, gensupport.WrapError(err)
 29557  	}
 29558  	ret := &GoogleCloudDialogflowV2beta1Conversation{
 29559  		ServerResponse: googleapi.ServerResponse{
 29560  			Header:         res.Header,
 29561  			HTTPStatusCode: res.StatusCode,
 29562  		},
 29563  	}
 29564  	target := &ret
 29565  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29566  		return nil, err
 29567  	}
 29568  	return ret, nil
 29569  }
 29570  
 29571  type ProjectsConversationsListCall struct {
 29572  	s            *Service
 29573  	parent       string
 29574  	urlParams_   gensupport.URLParams
 29575  	ifNoneMatch_ string
 29576  	ctx_         context.Context
 29577  	header_      http.Header
 29578  }
 29579  
 29580  // List: Returns the list of all conversations in the specified project.
 29581  //
 29582  //   - parent: The project from which to list all conversation. Format:
 29583  //     `projects//locations/`.
 29584  func (r *ProjectsConversationsService) List(parent string) *ProjectsConversationsListCall {
 29585  	c := &ProjectsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29586  	c.parent = parent
 29587  	return c
 29588  }
 29589  
 29590  // Filter sets the optional parameter "filter": A filter expression that
 29591  // filters conversations listed in the response. In general, the expression
 29592  // must specify the field name, a comparison operator, and the value to use for
 29593  // filtering: - The value must be a string, a number, or a boolean. - The
 29594  // comparison operator must be either `=`,`!=`, `>`, or `<`. - To filter on
 29595  // multiple expressions, separate the expressions with `AND` or `OR` (omitting
 29596  // both implies `AND`). - For clarity, expressions can be enclosed in
 29597  // parentheses. Only `lifecycle_state` can be filtered on in this way. For
 29598  // example, the following expression only returns `COMPLETED` conversations:
 29599  // `lifecycle_state = "COMPLETED" For more information about filtering, see
 29600  // API Filtering (https://aip.dev/160).
 29601  func (c *ProjectsConversationsListCall) Filter(filter string) *ProjectsConversationsListCall {
 29602  	c.urlParams_.Set("filter", filter)
 29603  	return c
 29604  }
 29605  
 29606  // PageSize sets the optional parameter "pageSize": The maximum number of items
 29607  // to return in a single page. By default 100 and at most 1000.
 29608  func (c *ProjectsConversationsListCall) PageSize(pageSize int64) *ProjectsConversationsListCall {
 29609  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29610  	return c
 29611  }
 29612  
 29613  // PageToken sets the optional parameter "pageToken": The next_page_token value
 29614  // returned from a previous list request.
 29615  func (c *ProjectsConversationsListCall) PageToken(pageToken string) *ProjectsConversationsListCall {
 29616  	c.urlParams_.Set("pageToken", pageToken)
 29617  	return c
 29618  }
 29619  
 29620  // Fields allows partial responses to be retrieved. See
 29621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29622  // details.
 29623  func (c *ProjectsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsListCall {
 29624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29625  	return c
 29626  }
 29627  
 29628  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29629  // object's ETag matches the given value. This is useful for getting updates
 29630  // only after the object has changed since the last request.
 29631  func (c *ProjectsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsListCall {
 29632  	c.ifNoneMatch_ = entityTag
 29633  	return c
 29634  }
 29635  
 29636  // Context sets the context to be used in this call's Do method.
 29637  func (c *ProjectsConversationsListCall) Context(ctx context.Context) *ProjectsConversationsListCall {
 29638  	c.ctx_ = ctx
 29639  	return c
 29640  }
 29641  
 29642  // Header returns a http.Header that can be modified by the caller to add
 29643  // headers to the request.
 29644  func (c *ProjectsConversationsListCall) Header() http.Header {
 29645  	if c.header_ == nil {
 29646  		c.header_ = make(http.Header)
 29647  	}
 29648  	return c.header_
 29649  }
 29650  
 29651  func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, error) {
 29652  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29653  	if c.ifNoneMatch_ != "" {
 29654  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29655  	}
 29656  	var body io.Reader = nil
 29657  	c.urlParams_.Set("alt", alt)
 29658  	c.urlParams_.Set("prettyPrint", "false")
 29659  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
 29660  	urls += "?" + c.urlParams_.Encode()
 29661  	req, err := http.NewRequest("GET", urls, body)
 29662  	if err != nil {
 29663  		return nil, err
 29664  	}
 29665  	req.Header = reqHeaders
 29666  	googleapi.Expand(req.URL, map[string]string{
 29667  		"parent": c.parent,
 29668  	})
 29669  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29670  }
 29671  
 29672  // Do executes the "dialogflow.projects.conversations.list" call.
 29673  // Any non-2xx status code is an error. Response headers are in either
 29674  // *GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.Header
 29675  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 29676  // Use googleapi.IsNotModified to check whether the returned error was because
 29677  // http.StatusNotModified was returned.
 29678  func (c *ProjectsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
 29679  	gensupport.SetOptions(c.urlParams_, opts...)
 29680  	res, err := c.doRequest("json")
 29681  	if res != nil && res.StatusCode == http.StatusNotModified {
 29682  		if res.Body != nil {
 29683  			res.Body.Close()
 29684  		}
 29685  		return nil, gensupport.WrapError(&googleapi.Error{
 29686  			Code:   res.StatusCode,
 29687  			Header: res.Header,
 29688  		})
 29689  	}
 29690  	if err != nil {
 29691  		return nil, err
 29692  	}
 29693  	defer googleapi.CloseBody(res)
 29694  	if err := googleapi.CheckResponse(res); err != nil {
 29695  		return nil, gensupport.WrapError(err)
 29696  	}
 29697  	ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
 29698  		ServerResponse: googleapi.ServerResponse{
 29699  			Header:         res.Header,
 29700  			HTTPStatusCode: res.StatusCode,
 29701  		},
 29702  	}
 29703  	target := &ret
 29704  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29705  		return nil, err
 29706  	}
 29707  	return ret, nil
 29708  }
 29709  
 29710  // Pages invokes f for each page of results.
 29711  // A non-nil error returned from f will halt the iteration.
 29712  // The provided context supersedes any context provided to the Context method.
 29713  func (c *ProjectsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
 29714  	c.ctx_ = ctx
 29715  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29716  	for {
 29717  		x, err := c.Do()
 29718  		if err != nil {
 29719  			return err
 29720  		}
 29721  		if err := f(x); err != nil {
 29722  			return err
 29723  		}
 29724  		if x.NextPageToken == "" {
 29725  			return nil
 29726  		}
 29727  		c.PageToken(x.NextPageToken)
 29728  	}
 29729  }
 29730  
 29731  type ProjectsConversationsMessagesBatchCreateCall struct {
 29732  	s                                                      *Service
 29733  	parentid                                               string
 29734  	googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
 29735  	urlParams_                                             gensupport.URLParams
 29736  	ctx_                                                   context.Context
 29737  	header_                                                http.Header
 29738  }
 29739  
 29740  // BatchCreate: Batch ingests messages to conversation. Customers can use this
 29741  // RPC to ingest historical messages to conversation.
 29742  //
 29743  //   - parent: Resource identifier of the conversation to create message. Format:
 29744  //     `projects//locations//conversations/`.
 29745  func (r *ProjectsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsConversationsMessagesBatchCreateCall {
 29746  	c := &ProjectsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29747  	c.parentid = parentid
 29748  	c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
 29749  	return c
 29750  }
 29751  
 29752  // Fields allows partial responses to be retrieved. See
 29753  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29754  // details.
 29755  func (c *ProjectsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesBatchCreateCall {
 29756  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29757  	return c
 29758  }
 29759  
 29760  // Context sets the context to be used in this call's Do method.
 29761  func (c *ProjectsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsConversationsMessagesBatchCreateCall {
 29762  	c.ctx_ = ctx
 29763  	return c
 29764  }
 29765  
 29766  // Header returns a http.Header that can be modified by the caller to add
 29767  // headers to the request.
 29768  func (c *ProjectsConversationsMessagesBatchCreateCall) Header() http.Header {
 29769  	if c.header_ == nil {
 29770  		c.header_ = make(http.Header)
 29771  	}
 29772  	return c.header_
 29773  }
 29774  
 29775  func (c *ProjectsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 29776  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29777  	var body io.Reader = nil
 29778  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
 29779  	if err != nil {
 29780  		return nil, err
 29781  	}
 29782  	c.urlParams_.Set("alt", alt)
 29783  	c.urlParams_.Set("prettyPrint", "false")
 29784  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
 29785  	urls += "?" + c.urlParams_.Encode()
 29786  	req, err := http.NewRequest("POST", urls, body)
 29787  	if err != nil {
 29788  		return nil, err
 29789  	}
 29790  	req.Header = reqHeaders
 29791  	googleapi.Expand(req.URL, map[string]string{
 29792  		"parent": c.parentid,
 29793  	})
 29794  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29795  }
 29796  
 29797  // Do executes the "dialogflow.projects.conversations.messages.batchCreate" call.
 29798  // Any non-2xx status code is an error. Response headers are in either
 29799  // *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.ServerResponse.Heade
 29800  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 29801  // Use googleapi.IsNotModified to check whether the returned error was because
 29802  // http.StatusNotModified was returned.
 29803  func (c *ProjectsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
 29804  	gensupport.SetOptions(c.urlParams_, opts...)
 29805  	res, err := c.doRequest("json")
 29806  	if res != nil && res.StatusCode == http.StatusNotModified {
 29807  		if res.Body != nil {
 29808  			res.Body.Close()
 29809  		}
 29810  		return nil, gensupport.WrapError(&googleapi.Error{
 29811  			Code:   res.StatusCode,
 29812  			Header: res.Header,
 29813  		})
 29814  	}
 29815  	if err != nil {
 29816  		return nil, err
 29817  	}
 29818  	defer googleapi.CloseBody(res)
 29819  	if err := googleapi.CheckResponse(res); err != nil {
 29820  		return nil, gensupport.WrapError(err)
 29821  	}
 29822  	ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
 29823  		ServerResponse: googleapi.ServerResponse{
 29824  			Header:         res.Header,
 29825  			HTTPStatusCode: res.StatusCode,
 29826  		},
 29827  	}
 29828  	target := &ret
 29829  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29830  		return nil, err
 29831  	}
 29832  	return ret, nil
 29833  }
 29834  
 29835  type ProjectsConversationsMessagesListCall struct {
 29836  	s            *Service
 29837  	parent       string
 29838  	urlParams_   gensupport.URLParams
 29839  	ifNoneMatch_ string
 29840  	ctx_         context.Context
 29841  	header_      http.Header
 29842  }
 29843  
 29844  // List: Lists messages that belong to a given conversation. `messages` are
 29845  // ordered by `create_time` in descending order. To fetch updates without
 29846  // duplication, send request with filter `create_time_epoch_microseconds >
 29847  // [first item's create_time of previous request]` and empty page_token.
 29848  //
 29849  //   - parent: The name of the conversation to list messages for. Format:
 29850  //     `projects//locations//conversations/`.
 29851  func (r *ProjectsConversationsMessagesService) List(parent string) *ProjectsConversationsMessagesListCall {
 29852  	c := &ProjectsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29853  	c.parent = parent
 29854  	return c
 29855  }
 29856  
 29857  // Filter sets the optional parameter "filter": Filter on message fields.
 29858  // Currently predicates on `create_time` and `create_time_epoch_microseconds`
 29859  // are supported. `create_time` only support milliseconds accuracy. E.g.,
 29860  // `create_time_epoch_microseconds > 1551790877964485` or `create_time >
 29861  // "2017-01-15T01:30:15.01Z". For more information about filtering, see API
 29862  // Filtering (https://aip.dev/160).
 29863  func (c *ProjectsConversationsMessagesListCall) Filter(filter string) *ProjectsConversationsMessagesListCall {
 29864  	c.urlParams_.Set("filter", filter)
 29865  	return c
 29866  }
 29867  
 29868  // PageSize sets the optional parameter "pageSize": The maximum number of items
 29869  // to return in a single page. By default 100 and at most 1000.
 29870  func (c *ProjectsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsConversationsMessagesListCall {
 29871  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29872  	return c
 29873  }
 29874  
 29875  // PageToken sets the optional parameter "pageToken": The next_page_token value
 29876  // returned from a previous list request.
 29877  func (c *ProjectsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsConversationsMessagesListCall {
 29878  	c.urlParams_.Set("pageToken", pageToken)
 29879  	return c
 29880  }
 29881  
 29882  // Fields allows partial responses to be retrieved. See
 29883  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29884  // details.
 29885  func (c *ProjectsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesListCall {
 29886  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29887  	return c
 29888  }
 29889  
 29890  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29891  // object's ETag matches the given value. This is useful for getting updates
 29892  // only after the object has changed since the last request.
 29893  func (c *ProjectsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsConversationsMessagesListCall {
 29894  	c.ifNoneMatch_ = entityTag
 29895  	return c
 29896  }
 29897  
 29898  // Context sets the context to be used in this call's Do method.
 29899  func (c *ProjectsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsConversationsMessagesListCall {
 29900  	c.ctx_ = ctx
 29901  	return c
 29902  }
 29903  
 29904  // Header returns a http.Header that can be modified by the caller to add
 29905  // headers to the request.
 29906  func (c *ProjectsConversationsMessagesListCall) Header() http.Header {
 29907  	if c.header_ == nil {
 29908  		c.header_ = make(http.Header)
 29909  	}
 29910  	return c.header_
 29911  }
 29912  
 29913  func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
 29914  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29915  	if c.ifNoneMatch_ != "" {
 29916  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29917  	}
 29918  	var body io.Reader = nil
 29919  	c.urlParams_.Set("alt", alt)
 29920  	c.urlParams_.Set("prettyPrint", "false")
 29921  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
 29922  	urls += "?" + c.urlParams_.Encode()
 29923  	req, err := http.NewRequest("GET", urls, body)
 29924  	if err != nil {
 29925  		return nil, err
 29926  	}
 29927  	req.Header = reqHeaders
 29928  	googleapi.Expand(req.URL, map[string]string{
 29929  		"parent": c.parent,
 29930  	})
 29931  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29932  }
 29933  
 29934  // Do executes the "dialogflow.projects.conversations.messages.list" call.
 29935  // Any non-2xx status code is an error. Response headers are in either
 29936  // *GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Header or
 29937  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 29938  // googleapi.IsNotModified to check whether the returned error was because
 29939  // http.StatusNotModified was returned.
 29940  func (c *ProjectsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
 29941  	gensupport.SetOptions(c.urlParams_, opts...)
 29942  	res, err := c.doRequest("json")
 29943  	if res != nil && res.StatusCode == http.StatusNotModified {
 29944  		if res.Body != nil {
 29945  			res.Body.Close()
 29946  		}
 29947  		return nil, gensupport.WrapError(&googleapi.Error{
 29948  			Code:   res.StatusCode,
 29949  			Header: res.Header,
 29950  		})
 29951  	}
 29952  	if err != nil {
 29953  		return nil, err
 29954  	}
 29955  	defer googleapi.CloseBody(res)
 29956  	if err := googleapi.CheckResponse(res); err != nil {
 29957  		return nil, gensupport.WrapError(err)
 29958  	}
 29959  	ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
 29960  		ServerResponse: googleapi.ServerResponse{
 29961  			Header:         res.Header,
 29962  			HTTPStatusCode: res.StatusCode,
 29963  		},
 29964  	}
 29965  	target := &ret
 29966  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29967  		return nil, err
 29968  	}
 29969  	return ret, nil
 29970  }
 29971  
 29972  // Pages invokes f for each page of results.
 29973  // A non-nil error returned from f will halt the iteration.
 29974  // The provided context supersedes any context provided to the Context method.
 29975  func (c *ProjectsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
 29976  	c.ctx_ = ctx
 29977  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29978  	for {
 29979  		x, err := c.Do()
 29980  		if err != nil {
 29981  			return err
 29982  		}
 29983  		if err := f(x); err != nil {
 29984  			return err
 29985  		}
 29986  		if x.NextPageToken == "" {
 29987  			return nil
 29988  		}
 29989  		c.PageToken(x.NextPageToken)
 29990  	}
 29991  }
 29992  
 29993  type ProjectsConversationsParticipantsAnalyzeContentCall struct {
 29994  	s                                                 *Service
 29995  	participant                                       string
 29996  	googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
 29997  	urlParams_                                        gensupport.URLParams
 29998  	ctx_                                              context.Context
 29999  	header_                                           http.Header
 30000  }
 30001  
 30002  // AnalyzeContent: Adds a text (chat, for example), or audio (phone recording,
 30003  // for example) message from a participant into the conversation. Note: Always
 30004  // use agent versions for production traffic sent to virtual agents. See
 30005  // Versions and environments
 30006  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 30007  //
 30008  //   - participant: The name of the participant this text comes from. Format:
 30009  //     `projects//locations//conversations//participants/`.
 30010  func (r *ProjectsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsConversationsParticipantsAnalyzeContentCall {
 30011  	c := &ProjectsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30012  	c.participant = participant
 30013  	c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
 30014  	return c
 30015  }
 30016  
 30017  // Fields allows partial responses to be retrieved. See
 30018  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30019  // details.
 30020  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsAnalyzeContentCall {
 30021  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30022  	return c
 30023  }
 30024  
 30025  // Context sets the context to be used in this call's Do method.
 30026  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsConversationsParticipantsAnalyzeContentCall {
 30027  	c.ctx_ = ctx
 30028  	return c
 30029  }
 30030  
 30031  // Header returns a http.Header that can be modified by the caller to add
 30032  // headers to the request.
 30033  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
 30034  	if c.header_ == nil {
 30035  		c.header_ = make(http.Header)
 30036  	}
 30037  	return c.header_
 30038  }
 30039  
 30040  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
 30041  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30042  	var body io.Reader = nil
 30043  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
 30044  	if err != nil {
 30045  		return nil, err
 30046  	}
 30047  	c.urlParams_.Set("alt", alt)
 30048  	c.urlParams_.Set("prettyPrint", "false")
 30049  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
 30050  	urls += "?" + c.urlParams_.Encode()
 30051  	req, err := http.NewRequest("POST", urls, body)
 30052  	if err != nil {
 30053  		return nil, err
 30054  	}
 30055  	req.Header = reqHeaders
 30056  	googleapi.Expand(req.URL, map[string]string{
 30057  		"participant": c.participant,
 30058  	})
 30059  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30060  }
 30061  
 30062  // Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call.
 30063  // Any non-2xx status code is an error. Response headers are in either
 30064  // *GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Header or
 30065  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30066  // googleapi.IsNotModified to check whether the returned error was because
 30067  // http.StatusNotModified was returned.
 30068  func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
 30069  	gensupport.SetOptions(c.urlParams_, opts...)
 30070  	res, err := c.doRequest("json")
 30071  	if res != nil && res.StatusCode == http.StatusNotModified {
 30072  		if res.Body != nil {
 30073  			res.Body.Close()
 30074  		}
 30075  		return nil, gensupport.WrapError(&googleapi.Error{
 30076  			Code:   res.StatusCode,
 30077  			Header: res.Header,
 30078  		})
 30079  	}
 30080  	if err != nil {
 30081  		return nil, err
 30082  	}
 30083  	defer googleapi.CloseBody(res)
 30084  	if err := googleapi.CheckResponse(res); err != nil {
 30085  		return nil, gensupport.WrapError(err)
 30086  	}
 30087  	ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
 30088  		ServerResponse: googleapi.ServerResponse{
 30089  			Header:         res.Header,
 30090  			HTTPStatusCode: res.StatusCode,
 30091  		},
 30092  	}
 30093  	target := &ret
 30094  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30095  		return nil, err
 30096  	}
 30097  	return ret, nil
 30098  }
 30099  
 30100  type ProjectsConversationsParticipantsCreateCall struct {
 30101  	s                                       *Service
 30102  	parentid                                string
 30103  	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
 30104  	urlParams_                              gensupport.URLParams
 30105  	ctx_                                    context.Context
 30106  	header_                                 http.Header
 30107  }
 30108  
 30109  // Create: Creates a new participant in a conversation.
 30110  //
 30111  //   - parent: Resource identifier of the conversation adding the participant.
 30112  //     Format: `projects//locations//conversations/`.
 30113  func (r *ProjectsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsCreateCall {
 30114  	c := &ProjectsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30115  	c.parentid = parentid
 30116  	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
 30117  	return c
 30118  }
 30119  
 30120  // Fields allows partial responses to be retrieved. See
 30121  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30122  // details.
 30123  func (c *ProjectsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsCreateCall {
 30124  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30125  	return c
 30126  }
 30127  
 30128  // Context sets the context to be used in this call's Do method.
 30129  func (c *ProjectsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsConversationsParticipantsCreateCall {
 30130  	c.ctx_ = ctx
 30131  	return c
 30132  }
 30133  
 30134  // Header returns a http.Header that can be modified by the caller to add
 30135  // headers to the request.
 30136  func (c *ProjectsConversationsParticipantsCreateCall) Header() http.Header {
 30137  	if c.header_ == nil {
 30138  		c.header_ = make(http.Header)
 30139  	}
 30140  	return c.header_
 30141  }
 30142  
 30143  func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
 30144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30145  	var body io.Reader = nil
 30146  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
 30147  	if err != nil {
 30148  		return nil, err
 30149  	}
 30150  	c.urlParams_.Set("alt", alt)
 30151  	c.urlParams_.Set("prettyPrint", "false")
 30152  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
 30153  	urls += "?" + c.urlParams_.Encode()
 30154  	req, err := http.NewRequest("POST", urls, body)
 30155  	if err != nil {
 30156  		return nil, err
 30157  	}
 30158  	req.Header = reqHeaders
 30159  	googleapi.Expand(req.URL, map[string]string{
 30160  		"parent": c.parentid,
 30161  	})
 30162  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30163  }
 30164  
 30165  // Do executes the "dialogflow.projects.conversations.participants.create" call.
 30166  // Any non-2xx status code is an error. Response headers are in either
 30167  // *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if a
 30168  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30169  // googleapi.IsNotModified to check whether the returned error was because
 30170  // http.StatusNotModified was returned.
 30171  func (c *ProjectsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
 30172  	gensupport.SetOptions(c.urlParams_, opts...)
 30173  	res, err := c.doRequest("json")
 30174  	if res != nil && res.StatusCode == http.StatusNotModified {
 30175  		if res.Body != nil {
 30176  			res.Body.Close()
 30177  		}
 30178  		return nil, gensupport.WrapError(&googleapi.Error{
 30179  			Code:   res.StatusCode,
 30180  			Header: res.Header,
 30181  		})
 30182  	}
 30183  	if err != nil {
 30184  		return nil, err
 30185  	}
 30186  	defer googleapi.CloseBody(res)
 30187  	if err := googleapi.CheckResponse(res); err != nil {
 30188  		return nil, gensupport.WrapError(err)
 30189  	}
 30190  	ret := &GoogleCloudDialogflowV2beta1Participant{
 30191  		ServerResponse: googleapi.ServerResponse{
 30192  			Header:         res.Header,
 30193  			HTTPStatusCode: res.StatusCode,
 30194  		},
 30195  	}
 30196  	target := &ret
 30197  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30198  		return nil, err
 30199  	}
 30200  	return ret, nil
 30201  }
 30202  
 30203  type ProjectsConversationsParticipantsGetCall struct {
 30204  	s            *Service
 30205  	name         string
 30206  	urlParams_   gensupport.URLParams
 30207  	ifNoneMatch_ string
 30208  	ctx_         context.Context
 30209  	header_      http.Header
 30210  }
 30211  
 30212  // Get: Retrieves a conversation participant.
 30213  //
 30214  //   - name: The name of the participant. Format:
 30215  //     `projects//locations//conversations//participants/`.
 30216  func (r *ProjectsConversationsParticipantsService) Get(name string) *ProjectsConversationsParticipantsGetCall {
 30217  	c := &ProjectsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30218  	c.name = name
 30219  	return c
 30220  }
 30221  
 30222  // Fields allows partial responses to be retrieved. See
 30223  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30224  // details.
 30225  func (c *ProjectsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsGetCall {
 30226  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30227  	return c
 30228  }
 30229  
 30230  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30231  // object's ETag matches the given value. This is useful for getting updates
 30232  // only after the object has changed since the last request.
 30233  func (c *ProjectsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsGetCall {
 30234  	c.ifNoneMatch_ = entityTag
 30235  	return c
 30236  }
 30237  
 30238  // Context sets the context to be used in this call's Do method.
 30239  func (c *ProjectsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsConversationsParticipantsGetCall {
 30240  	c.ctx_ = ctx
 30241  	return c
 30242  }
 30243  
 30244  // Header returns a http.Header that can be modified by the caller to add
 30245  // headers to the request.
 30246  func (c *ProjectsConversationsParticipantsGetCall) Header() http.Header {
 30247  	if c.header_ == nil {
 30248  		c.header_ = make(http.Header)
 30249  	}
 30250  	return c.header_
 30251  }
 30252  
 30253  func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
 30254  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30255  	if c.ifNoneMatch_ != "" {
 30256  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30257  	}
 30258  	var body io.Reader = nil
 30259  	c.urlParams_.Set("alt", alt)
 30260  	c.urlParams_.Set("prettyPrint", "false")
 30261  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 30262  	urls += "?" + c.urlParams_.Encode()
 30263  	req, err := http.NewRequest("GET", urls, body)
 30264  	if err != nil {
 30265  		return nil, err
 30266  	}
 30267  	req.Header = reqHeaders
 30268  	googleapi.Expand(req.URL, map[string]string{
 30269  		"name": c.name,
 30270  	})
 30271  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30272  }
 30273  
 30274  // Do executes the "dialogflow.projects.conversations.participants.get" call.
 30275  // Any non-2xx status code is an error. Response headers are in either
 30276  // *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if a
 30277  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30278  // googleapi.IsNotModified to check whether the returned error was because
 30279  // http.StatusNotModified was returned.
 30280  func (c *ProjectsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
 30281  	gensupport.SetOptions(c.urlParams_, opts...)
 30282  	res, err := c.doRequest("json")
 30283  	if res != nil && res.StatusCode == http.StatusNotModified {
 30284  		if res.Body != nil {
 30285  			res.Body.Close()
 30286  		}
 30287  		return nil, gensupport.WrapError(&googleapi.Error{
 30288  			Code:   res.StatusCode,
 30289  			Header: res.Header,
 30290  		})
 30291  	}
 30292  	if err != nil {
 30293  		return nil, err
 30294  	}
 30295  	defer googleapi.CloseBody(res)
 30296  	if err := googleapi.CheckResponse(res); err != nil {
 30297  		return nil, gensupport.WrapError(err)
 30298  	}
 30299  	ret := &GoogleCloudDialogflowV2beta1Participant{
 30300  		ServerResponse: googleapi.ServerResponse{
 30301  			Header:         res.Header,
 30302  			HTTPStatusCode: res.StatusCode,
 30303  		},
 30304  	}
 30305  	target := &ret
 30306  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30307  		return nil, err
 30308  	}
 30309  	return ret, nil
 30310  }
 30311  
 30312  type ProjectsConversationsParticipantsListCall struct {
 30313  	s            *Service
 30314  	parent       string
 30315  	urlParams_   gensupport.URLParams
 30316  	ifNoneMatch_ string
 30317  	ctx_         context.Context
 30318  	header_      http.Header
 30319  }
 30320  
 30321  // List: Returns the list of all participants in the specified conversation.
 30322  //
 30323  //   - parent: The conversation to list all participants from. Format:
 30324  //     `projects//locations//conversations/`.
 30325  func (r *ProjectsConversationsParticipantsService) List(parent string) *ProjectsConversationsParticipantsListCall {
 30326  	c := &ProjectsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30327  	c.parent = parent
 30328  	return c
 30329  }
 30330  
 30331  // PageSize sets the optional parameter "pageSize": The maximum number of items
 30332  // to return in a single page. By default 100 and at most 1000.
 30333  func (c *ProjectsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsListCall {
 30334  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30335  	return c
 30336  }
 30337  
 30338  // PageToken sets the optional parameter "pageToken": The next_page_token value
 30339  // returned from a previous list request.
 30340  func (c *ProjectsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsListCall {
 30341  	c.urlParams_.Set("pageToken", pageToken)
 30342  	return c
 30343  }
 30344  
 30345  // Fields allows partial responses to be retrieved. See
 30346  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30347  // details.
 30348  func (c *ProjectsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsListCall {
 30349  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30350  	return c
 30351  }
 30352  
 30353  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30354  // object's ETag matches the given value. This is useful for getting updates
 30355  // only after the object has changed since the last request.
 30356  func (c *ProjectsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsListCall {
 30357  	c.ifNoneMatch_ = entityTag
 30358  	return c
 30359  }
 30360  
 30361  // Context sets the context to be used in this call's Do method.
 30362  func (c *ProjectsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsListCall {
 30363  	c.ctx_ = ctx
 30364  	return c
 30365  }
 30366  
 30367  // Header returns a http.Header that can be modified by the caller to add
 30368  // headers to the request.
 30369  func (c *ProjectsConversationsParticipantsListCall) Header() http.Header {
 30370  	if c.header_ == nil {
 30371  		c.header_ = make(http.Header)
 30372  	}
 30373  	return c.header_
 30374  }
 30375  
 30376  func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
 30377  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30378  	if c.ifNoneMatch_ != "" {
 30379  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30380  	}
 30381  	var body io.Reader = nil
 30382  	c.urlParams_.Set("alt", alt)
 30383  	c.urlParams_.Set("prettyPrint", "false")
 30384  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
 30385  	urls += "?" + c.urlParams_.Encode()
 30386  	req, err := http.NewRequest("GET", urls, body)
 30387  	if err != nil {
 30388  		return nil, err
 30389  	}
 30390  	req.Header = reqHeaders
 30391  	googleapi.Expand(req.URL, map[string]string{
 30392  		"parent": c.parent,
 30393  	})
 30394  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30395  }
 30396  
 30397  // Do executes the "dialogflow.projects.conversations.participants.list" call.
 30398  // Any non-2xx status code is an error. Response headers are in either
 30399  // *GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.Header
 30400  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30401  // Use googleapi.IsNotModified to check whether the returned error was because
 30402  // http.StatusNotModified was returned.
 30403  func (c *ProjectsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
 30404  	gensupport.SetOptions(c.urlParams_, opts...)
 30405  	res, err := c.doRequest("json")
 30406  	if res != nil && res.StatusCode == http.StatusNotModified {
 30407  		if res.Body != nil {
 30408  			res.Body.Close()
 30409  		}
 30410  		return nil, gensupport.WrapError(&googleapi.Error{
 30411  			Code:   res.StatusCode,
 30412  			Header: res.Header,
 30413  		})
 30414  	}
 30415  	if err != nil {
 30416  		return nil, err
 30417  	}
 30418  	defer googleapi.CloseBody(res)
 30419  	if err := googleapi.CheckResponse(res); err != nil {
 30420  		return nil, gensupport.WrapError(err)
 30421  	}
 30422  	ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
 30423  		ServerResponse: googleapi.ServerResponse{
 30424  			Header:         res.Header,
 30425  			HTTPStatusCode: res.StatusCode,
 30426  		},
 30427  	}
 30428  	target := &ret
 30429  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30430  		return nil, err
 30431  	}
 30432  	return ret, nil
 30433  }
 30434  
 30435  // Pages invokes f for each page of results.
 30436  // A non-nil error returned from f will halt the iteration.
 30437  // The provided context supersedes any context provided to the Context method.
 30438  func (c *ProjectsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
 30439  	c.ctx_ = ctx
 30440  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30441  	for {
 30442  		x, err := c.Do()
 30443  		if err != nil {
 30444  			return err
 30445  		}
 30446  		if err := f(x); err != nil {
 30447  			return err
 30448  		}
 30449  		if x.NextPageToken == "" {
 30450  			return nil
 30451  		}
 30452  		c.PageToken(x.NextPageToken)
 30453  	}
 30454  }
 30455  
 30456  type ProjectsConversationsParticipantsPatchCall struct {
 30457  	s                                       *Service
 30458  	nameid                                  string
 30459  	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
 30460  	urlParams_                              gensupport.URLParams
 30461  	ctx_                                    context.Context
 30462  	header_                                 http.Header
 30463  }
 30464  
 30465  // Patch: Updates the specified participant.
 30466  //
 30467  //   - name: Optional. The unique identifier of this participant. Format:
 30468  //     `projects//locations//conversations//participants/`.
 30469  func (r *ProjectsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsPatchCall {
 30470  	c := &ProjectsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30471  	c.nameid = nameid
 30472  	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
 30473  	return c
 30474  }
 30475  
 30476  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 30477  // specify which fields to update.
 30478  func (c *ProjectsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsConversationsParticipantsPatchCall {
 30479  	c.urlParams_.Set("updateMask", updateMask)
 30480  	return c
 30481  }
 30482  
 30483  // Fields allows partial responses to be retrieved. See
 30484  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30485  // details.
 30486  func (c *ProjectsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsPatchCall {
 30487  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30488  	return c
 30489  }
 30490  
 30491  // Context sets the context to be used in this call's Do method.
 30492  func (c *ProjectsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsConversationsParticipantsPatchCall {
 30493  	c.ctx_ = ctx
 30494  	return c
 30495  }
 30496  
 30497  // Header returns a http.Header that can be modified by the caller to add
 30498  // headers to the request.
 30499  func (c *ProjectsConversationsParticipantsPatchCall) Header() http.Header {
 30500  	if c.header_ == nil {
 30501  		c.header_ = make(http.Header)
 30502  	}
 30503  	return c.header_
 30504  }
 30505  
 30506  func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
 30507  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30508  	var body io.Reader = nil
 30509  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
 30510  	if err != nil {
 30511  		return nil, err
 30512  	}
 30513  	c.urlParams_.Set("alt", alt)
 30514  	c.urlParams_.Set("prettyPrint", "false")
 30515  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 30516  	urls += "?" + c.urlParams_.Encode()
 30517  	req, err := http.NewRequest("PATCH", urls, body)
 30518  	if err != nil {
 30519  		return nil, err
 30520  	}
 30521  	req.Header = reqHeaders
 30522  	googleapi.Expand(req.URL, map[string]string{
 30523  		"name": c.nameid,
 30524  	})
 30525  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30526  }
 30527  
 30528  // Do executes the "dialogflow.projects.conversations.participants.patch" call.
 30529  // Any non-2xx status code is an error. Response headers are in either
 30530  // *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if a
 30531  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30532  // googleapi.IsNotModified to check whether the returned error was because
 30533  // http.StatusNotModified was returned.
 30534  func (c *ProjectsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
 30535  	gensupport.SetOptions(c.urlParams_, opts...)
 30536  	res, err := c.doRequest("json")
 30537  	if res != nil && res.StatusCode == http.StatusNotModified {
 30538  		if res.Body != nil {
 30539  			res.Body.Close()
 30540  		}
 30541  		return nil, gensupport.WrapError(&googleapi.Error{
 30542  			Code:   res.StatusCode,
 30543  			Header: res.Header,
 30544  		})
 30545  	}
 30546  	if err != nil {
 30547  		return nil, err
 30548  	}
 30549  	defer googleapi.CloseBody(res)
 30550  	if err := googleapi.CheckResponse(res); err != nil {
 30551  		return nil, gensupport.WrapError(err)
 30552  	}
 30553  	ret := &GoogleCloudDialogflowV2beta1Participant{
 30554  		ServerResponse: googleapi.ServerResponse{
 30555  			Header:         res.Header,
 30556  			HTTPStatusCode: res.StatusCode,
 30557  		},
 30558  	}
 30559  	target := &ret
 30560  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30561  		return nil, err
 30562  	}
 30563  	return ret, nil
 30564  }
 30565  
 30566  type ProjectsConversationsParticipantsSuggestionsCompileCall struct {
 30567  	s                                                    *Service
 30568  	parent                                               string
 30569  	googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest
 30570  	urlParams_                                           gensupport.URLParams
 30571  	ctx_                                                 context.Context
 30572  	header_                                              http.Header
 30573  }
 30574  
 30575  // Compile: Deprecated. use SuggestArticles and SuggestFaqAnswers instead. Gets
 30576  // suggestions for a participant based on specific historical messages. Note
 30577  // that ListSuggestions will only list the auto-generated suggestions, while
 30578  // CompileSuggestion will try to compile suggestion based on the provided
 30579  // conversation context in the real time.
 30580  //
 30581  //   - parent: The name of the participant to fetch suggestion for. Format:
 30582  //     `projects//locations//conversations//participants/`.
 30583  func (r *ProjectsConversationsParticipantsSuggestionsService) Compile(parent string, googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) *ProjectsConversationsParticipantsSuggestionsCompileCall {
 30584  	c := &ProjectsConversationsParticipantsSuggestionsCompileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30585  	c.parent = parent
 30586  	c.googleclouddialogflowv2beta1compilesuggestionrequest = googleclouddialogflowv2beta1compilesuggestionrequest
 30587  	return c
 30588  }
 30589  
 30590  // Fields allows partial responses to be retrieved. See
 30591  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30592  // details.
 30593  func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsCompileCall {
 30594  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30595  	return c
 30596  }
 30597  
 30598  // Context sets the context to be used in this call's Do method.
 30599  func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsCompileCall {
 30600  	c.ctx_ = ctx
 30601  	return c
 30602  }
 30603  
 30604  // Header returns a http.Header that can be modified by the caller to add
 30605  // headers to the request.
 30606  func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Header() http.Header {
 30607  	if c.header_ == nil {
 30608  		c.header_ = make(http.Header)
 30609  	}
 30610  	return c.header_
 30611  }
 30612  
 30613  func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) doRequest(alt string) (*http.Response, error) {
 30614  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30615  	var body io.Reader = nil
 30616  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1compilesuggestionrequest)
 30617  	if err != nil {
 30618  		return nil, err
 30619  	}
 30620  	c.urlParams_.Set("alt", alt)
 30621  	c.urlParams_.Set("prettyPrint", "false")
 30622  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:compile")
 30623  	urls += "?" + c.urlParams_.Encode()
 30624  	req, err := http.NewRequest("POST", urls, body)
 30625  	if err != nil {
 30626  		return nil, err
 30627  	}
 30628  	req.Header = reqHeaders
 30629  	googleapi.Expand(req.URL, map[string]string{
 30630  		"parent": c.parent,
 30631  	})
 30632  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30633  }
 30634  
 30635  // Do executes the "dialogflow.projects.conversations.participants.suggestions.compile" call.
 30636  // Any non-2xx status code is an error. Response headers are in either
 30637  // *GoogleCloudDialogflowV2beta1CompileSuggestionResponse.ServerResponse.Header
 30638  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30639  // Use googleapi.IsNotModified to check whether the returned error was because
 30640  // http.StatusNotModified was returned.
 30641  func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1CompileSuggestionResponse, error) {
 30642  	gensupport.SetOptions(c.urlParams_, opts...)
 30643  	res, err := c.doRequest("json")
 30644  	if res != nil && res.StatusCode == http.StatusNotModified {
 30645  		if res.Body != nil {
 30646  			res.Body.Close()
 30647  		}
 30648  		return nil, gensupport.WrapError(&googleapi.Error{
 30649  			Code:   res.StatusCode,
 30650  			Header: res.Header,
 30651  		})
 30652  	}
 30653  	if err != nil {
 30654  		return nil, err
 30655  	}
 30656  	defer googleapi.CloseBody(res)
 30657  	if err := googleapi.CheckResponse(res); err != nil {
 30658  		return nil, gensupport.WrapError(err)
 30659  	}
 30660  	ret := &GoogleCloudDialogflowV2beta1CompileSuggestionResponse{
 30661  		ServerResponse: googleapi.ServerResponse{
 30662  			Header:         res.Header,
 30663  			HTTPStatusCode: res.StatusCode,
 30664  		},
 30665  	}
 30666  	target := &ret
 30667  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30668  		return nil, err
 30669  	}
 30670  	return ret, nil
 30671  }
 30672  
 30673  type ProjectsConversationsParticipantsSuggestionsListCall struct {
 30674  	s            *Service
 30675  	parent       string
 30676  	urlParams_   gensupport.URLParams
 30677  	ifNoneMatch_ string
 30678  	ctx_         context.Context
 30679  	header_      http.Header
 30680  }
 30681  
 30682  // List: Deprecated: Use inline suggestion, event based suggestion or
 30683  // Suggestion* API instead. See HumanAgentAssistantConfig.name for more
 30684  // details. Removal Date: 2020-09-01. Retrieves suggestions for live agents.
 30685  // This method should be used by human agent client software to fetch auto
 30686  // generated suggestions in real-time, while the conversation with an end user
 30687  // is in progress. The functionality is implemented in terms of the list
 30688  // pagination
 30689  // (https://cloud.google.com/apis/design/design_patterns#list_pagination)
 30690  // design pattern. The client app should use the `next_page_token` field to
 30691  // fetch the next batch of suggestions. `suggestions` are sorted by
 30692  // `create_time` in descending order. To fetch latest suggestion, just set
 30693  // `page_size` to 1. To fetch new suggestions without duplication, send request
 30694  // with filter `create_time_epoch_microseconds > [first item's create_time of
 30695  // previous request]` and empty page_token.
 30696  //
 30697  //   - parent: The name of the participant to fetch suggestions for. Format:
 30698  //     `projects//locations//conversations//participants/`.
 30699  func (r *ProjectsConversationsParticipantsSuggestionsService) List(parent string) *ProjectsConversationsParticipantsSuggestionsListCall {
 30700  	c := &ProjectsConversationsParticipantsSuggestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30701  	c.parent = parent
 30702  	return c
 30703  }
 30704  
 30705  // Filter sets the optional parameter "filter": Filter on suggestions fields.
 30706  // Currently predicates on `create_time` and `create_time_epoch_microseconds`
 30707  // are supported. `create_time` only support milliseconds accuracy. E.g.,
 30708  // `create_time_epoch_microseconds > 1551790877964485` or `create_time >
 30709  // "2017-01-15T01:30:15.01Z" For more information about filtering, see API
 30710  // Filtering (https://aip.dev/160).
 30711  func (c *ProjectsConversationsParticipantsSuggestionsListCall) Filter(filter string) *ProjectsConversationsParticipantsSuggestionsListCall {
 30712  	c.urlParams_.Set("filter", filter)
 30713  	return c
 30714  }
 30715  
 30716  // PageSize sets the optional parameter "pageSize": The maximum number of items
 30717  // to return in a single page. The default value is 100; the maximum value is
 30718  // 1000.
 30719  func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsSuggestionsListCall {
 30720  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30721  	return c
 30722  }
 30723  
 30724  // PageToken sets the optional parameter "pageToken": The next_page_token value
 30725  // returned from a previous list request.
 30726  func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsSuggestionsListCall {
 30727  	c.urlParams_.Set("pageToken", pageToken)
 30728  	return c
 30729  }
 30730  
 30731  // Fields allows partial responses to be retrieved. See
 30732  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30733  // details.
 30734  func (c *ProjectsConversationsParticipantsSuggestionsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsListCall {
 30735  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30736  	return c
 30737  }
 30738  
 30739  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30740  // object's ETag matches the given value. This is useful for getting updates
 30741  // only after the object has changed since the last request.
 30742  func (c *ProjectsConversationsParticipantsSuggestionsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsSuggestionsListCall {
 30743  	c.ifNoneMatch_ = entityTag
 30744  	return c
 30745  }
 30746  
 30747  // Context sets the context to be used in this call's Do method.
 30748  func (c *ProjectsConversationsParticipantsSuggestionsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsListCall {
 30749  	c.ctx_ = ctx
 30750  	return c
 30751  }
 30752  
 30753  // Header returns a http.Header that can be modified by the caller to add
 30754  // headers to the request.
 30755  func (c *ProjectsConversationsParticipantsSuggestionsListCall) Header() http.Header {
 30756  	if c.header_ == nil {
 30757  		c.header_ = make(http.Header)
 30758  	}
 30759  	return c.header_
 30760  }
 30761  
 30762  func (c *ProjectsConversationsParticipantsSuggestionsListCall) doRequest(alt string) (*http.Response, error) {
 30763  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30764  	if c.ifNoneMatch_ != "" {
 30765  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30766  	}
 30767  	var body io.Reader = nil
 30768  	c.urlParams_.Set("alt", alt)
 30769  	c.urlParams_.Set("prettyPrint", "false")
 30770  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions")
 30771  	urls += "?" + c.urlParams_.Encode()
 30772  	req, err := http.NewRequest("GET", urls, body)
 30773  	if err != nil {
 30774  		return nil, err
 30775  	}
 30776  	req.Header = reqHeaders
 30777  	googleapi.Expand(req.URL, map[string]string{
 30778  		"parent": c.parent,
 30779  	})
 30780  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30781  }
 30782  
 30783  // Do executes the "dialogflow.projects.conversations.participants.suggestions.list" call.
 30784  // Any non-2xx status code is an error. Response headers are in either
 30785  // *GoogleCloudDialogflowV2beta1ListSuggestionsResponse.ServerResponse.Header
 30786  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30787  // Use googleapi.IsNotModified to check whether the returned error was because
 30788  // http.StatusNotModified was returned.
 30789  func (c *ProjectsConversationsParticipantsSuggestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSuggestionsResponse, error) {
 30790  	gensupport.SetOptions(c.urlParams_, opts...)
 30791  	res, err := c.doRequest("json")
 30792  	if res != nil && res.StatusCode == http.StatusNotModified {
 30793  		if res.Body != nil {
 30794  			res.Body.Close()
 30795  		}
 30796  		return nil, gensupport.WrapError(&googleapi.Error{
 30797  			Code:   res.StatusCode,
 30798  			Header: res.Header,
 30799  		})
 30800  	}
 30801  	if err != nil {
 30802  		return nil, err
 30803  	}
 30804  	defer googleapi.CloseBody(res)
 30805  	if err := googleapi.CheckResponse(res); err != nil {
 30806  		return nil, gensupport.WrapError(err)
 30807  	}
 30808  	ret := &GoogleCloudDialogflowV2beta1ListSuggestionsResponse{
 30809  		ServerResponse: googleapi.ServerResponse{
 30810  			Header:         res.Header,
 30811  			HTTPStatusCode: res.StatusCode,
 30812  		},
 30813  	}
 30814  	target := &ret
 30815  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30816  		return nil, err
 30817  	}
 30818  	return ret, nil
 30819  }
 30820  
 30821  // Pages invokes f for each page of results.
 30822  // A non-nil error returned from f will halt the iteration.
 30823  // The provided context supersedes any context provided to the Context method.
 30824  func (c *ProjectsConversationsParticipantsSuggestionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSuggestionsResponse) error) error {
 30825  	c.ctx_ = ctx
 30826  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30827  	for {
 30828  		x, err := c.Do()
 30829  		if err != nil {
 30830  			return err
 30831  		}
 30832  		if err := f(x); err != nil {
 30833  			return err
 30834  		}
 30835  		if x.NextPageToken == "" {
 30836  			return nil
 30837  		}
 30838  		c.PageToken(x.NextPageToken)
 30839  	}
 30840  }
 30841  
 30842  type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
 30843  	s                                                  *Service
 30844  	parent                                             string
 30845  	googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
 30846  	urlParams_                                         gensupport.URLParams
 30847  	ctx_                                               context.Context
 30848  	header_                                            http.Header
 30849  }
 30850  
 30851  // SuggestArticles: Gets suggested articles for a participant based on specific
 30852  // historical messages. Note that ListSuggestions will only list the
 30853  // auto-generated suggestions, while CompileSuggestion will try to compile
 30854  // suggestion based on the provided conversation context in the real time.
 30855  //
 30856  //   - parent: The name of the participant to fetch suggestion for. Format:
 30857  //     `projects//locations//conversations//participants/`.
 30858  func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
 30859  	c := &ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30860  	c.parent = parent
 30861  	c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
 30862  	return c
 30863  }
 30864  
 30865  // Fields allows partial responses to be retrieved. See
 30866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30867  // details.
 30868  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
 30869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30870  	return c
 30871  }
 30872  
 30873  // Context sets the context to be used in this call's Do method.
 30874  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
 30875  	c.ctx_ = ctx
 30876  	return c
 30877  }
 30878  
 30879  // Header returns a http.Header that can be modified by the caller to add
 30880  // headers to the request.
 30881  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
 30882  	if c.header_ == nil {
 30883  		c.header_ = make(http.Header)
 30884  	}
 30885  	return c.header_
 30886  }
 30887  
 30888  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
 30889  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30890  	var body io.Reader = nil
 30891  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
 30892  	if err != nil {
 30893  		return nil, err
 30894  	}
 30895  	c.urlParams_.Set("alt", alt)
 30896  	c.urlParams_.Set("prettyPrint", "false")
 30897  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
 30898  	urls += "?" + c.urlParams_.Encode()
 30899  	req, err := http.NewRequest("POST", urls, body)
 30900  	if err != nil {
 30901  		return nil, err
 30902  	}
 30903  	req.Header = reqHeaders
 30904  	googleapi.Expand(req.URL, map[string]string{
 30905  		"parent": c.parent,
 30906  	})
 30907  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30908  }
 30909  
 30910  // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call.
 30911  // Any non-2xx status code is an error. Response headers are in either
 30912  // *GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.Header
 30913  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30914  // Use googleapi.IsNotModified to check whether the returned error was because
 30915  // http.StatusNotModified was returned.
 30916  func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
 30917  	gensupport.SetOptions(c.urlParams_, opts...)
 30918  	res, err := c.doRequest("json")
 30919  	if res != nil && res.StatusCode == http.StatusNotModified {
 30920  		if res.Body != nil {
 30921  			res.Body.Close()
 30922  		}
 30923  		return nil, gensupport.WrapError(&googleapi.Error{
 30924  			Code:   res.StatusCode,
 30925  			Header: res.Header,
 30926  		})
 30927  	}
 30928  	if err != nil {
 30929  		return nil, err
 30930  	}
 30931  	defer googleapi.CloseBody(res)
 30932  	if err := googleapi.CheckResponse(res); err != nil {
 30933  		return nil, gensupport.WrapError(err)
 30934  	}
 30935  	ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
 30936  		ServerResponse: googleapi.ServerResponse{
 30937  			Header:         res.Header,
 30938  			HTTPStatusCode: res.StatusCode,
 30939  		},
 30940  	}
 30941  	target := &ret
 30942  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30943  		return nil, err
 30944  	}
 30945  	return ret, nil
 30946  }
 30947  
 30948  type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
 30949  	s                                                    *Service
 30950  	parent                                               string
 30951  	googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
 30952  	urlParams_                                           gensupport.URLParams
 30953  	ctx_                                                 context.Context
 30954  	header_                                              http.Header
 30955  }
 30956  
 30957  // SuggestFaqAnswers: Gets suggested faq answers for a participant based on
 30958  // specific historical messages.
 30959  //
 30960  //   - parent: The name of the participant to fetch suggestion for. Format:
 30961  //     `projects//locations//conversations//participants/`.
 30962  func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 30963  	c := &ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30964  	c.parent = parent
 30965  	c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
 30966  	return c
 30967  }
 30968  
 30969  // Fields allows partial responses to be retrieved. See
 30970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30971  // details.
 30972  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 30973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30974  	return c
 30975  }
 30976  
 30977  // Context sets the context to be used in this call's Do method.
 30978  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 30979  	c.ctx_ = ctx
 30980  	return c
 30981  }
 30982  
 30983  // Header returns a http.Header that can be modified by the caller to add
 30984  // headers to the request.
 30985  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
 30986  	if c.header_ == nil {
 30987  		c.header_ = make(http.Header)
 30988  	}
 30989  	return c.header_
 30990  }
 30991  
 30992  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
 30993  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30994  	var body io.Reader = nil
 30995  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
 30996  	if err != nil {
 30997  		return nil, err
 30998  	}
 30999  	c.urlParams_.Set("alt", alt)
 31000  	c.urlParams_.Set("prettyPrint", "false")
 31001  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
 31002  	urls += "?" + c.urlParams_.Encode()
 31003  	req, err := http.NewRequest("POST", urls, body)
 31004  	if err != nil {
 31005  		return nil, err
 31006  	}
 31007  	req.Header = reqHeaders
 31008  	googleapi.Expand(req.URL, map[string]string{
 31009  		"parent": c.parent,
 31010  	})
 31011  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31012  }
 31013  
 31014  // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call.
 31015  // Any non-2xx status code is an error. Response headers are in either
 31016  // *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.Header
 31017  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31018  // Use googleapi.IsNotModified to check whether the returned error was because
 31019  // http.StatusNotModified was returned.
 31020  func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
 31021  	gensupport.SetOptions(c.urlParams_, opts...)
 31022  	res, err := c.doRequest("json")
 31023  	if res != nil && res.StatusCode == http.StatusNotModified {
 31024  		if res.Body != nil {
 31025  			res.Body.Close()
 31026  		}
 31027  		return nil, gensupport.WrapError(&googleapi.Error{
 31028  			Code:   res.StatusCode,
 31029  			Header: res.Header,
 31030  		})
 31031  	}
 31032  	if err != nil {
 31033  		return nil, err
 31034  	}
 31035  	defer googleapi.CloseBody(res)
 31036  	if err := googleapi.CheckResponse(res); err != nil {
 31037  		return nil, gensupport.WrapError(err)
 31038  	}
 31039  	ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
 31040  		ServerResponse: googleapi.ServerResponse{
 31041  			Header:         res.Header,
 31042  			HTTPStatusCode: res.StatusCode,
 31043  		},
 31044  	}
 31045  	target := &ret
 31046  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31047  		return nil, err
 31048  	}
 31049  	return ret, nil
 31050  }
 31051  
 31052  type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
 31053  	s                                                      *Service
 31054  	parent                                                 string
 31055  	googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
 31056  	urlParams_                                             gensupport.URLParams
 31057  	ctx_                                                   context.Context
 31058  	header_                                                http.Header
 31059  }
 31060  
 31061  // SuggestSmartReplies: Gets smart replies for a participant based on specific
 31062  // historical messages.
 31063  //
 31064  //   - parent: The name of the participant to fetch suggestion for. Format:
 31065  //     `projects//locations//conversations//participants/`.
 31066  func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 31067  	c := &ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31068  	c.parent = parent
 31069  	c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
 31070  	return c
 31071  }
 31072  
 31073  // Fields allows partial responses to be retrieved. See
 31074  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31075  // details.
 31076  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 31077  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31078  	return c
 31079  }
 31080  
 31081  // Context sets the context to be used in this call's Do method.
 31082  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 31083  	c.ctx_ = ctx
 31084  	return c
 31085  }
 31086  
 31087  // Header returns a http.Header that can be modified by the caller to add
 31088  // headers to the request.
 31089  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
 31090  	if c.header_ == nil {
 31091  		c.header_ = make(http.Header)
 31092  	}
 31093  	return c.header_
 31094  }
 31095  
 31096  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
 31097  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31098  	var body io.Reader = nil
 31099  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
 31100  	if err != nil {
 31101  		return nil, err
 31102  	}
 31103  	c.urlParams_.Set("alt", alt)
 31104  	c.urlParams_.Set("prettyPrint", "false")
 31105  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
 31106  	urls += "?" + c.urlParams_.Encode()
 31107  	req, err := http.NewRequest("POST", urls, body)
 31108  	if err != nil {
 31109  		return nil, err
 31110  	}
 31111  	req.Header = reqHeaders
 31112  	googleapi.Expand(req.URL, map[string]string{
 31113  		"parent": c.parent,
 31114  	})
 31115  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31116  }
 31117  
 31118  // Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call.
 31119  // Any non-2xx status code is an error. Response headers are in either
 31120  // *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.ServerResponse.Heade
 31121  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31122  // Use googleapi.IsNotModified to check whether the returned error was because
 31123  // http.StatusNotModified was returned.
 31124  func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
 31125  	gensupport.SetOptions(c.urlParams_, opts...)
 31126  	res, err := c.doRequest("json")
 31127  	if res != nil && res.StatusCode == http.StatusNotModified {
 31128  		if res.Body != nil {
 31129  			res.Body.Close()
 31130  		}
 31131  		return nil, gensupport.WrapError(&googleapi.Error{
 31132  			Code:   res.StatusCode,
 31133  			Header: res.Header,
 31134  		})
 31135  	}
 31136  	if err != nil {
 31137  		return nil, err
 31138  	}
 31139  	defer googleapi.CloseBody(res)
 31140  	if err := googleapi.CheckResponse(res); err != nil {
 31141  		return nil, gensupport.WrapError(err)
 31142  	}
 31143  	ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
 31144  		ServerResponse: googleapi.ServerResponse{
 31145  			Header:         res.Header,
 31146  			HTTPStatusCode: res.StatusCode,
 31147  		},
 31148  	}
 31149  	target := &ret
 31150  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31151  		return nil, err
 31152  	}
 31153  	return ret, nil
 31154  }
 31155  
 31156  type ProjectsConversationsSuggestionsSearchKnowledgeCall struct {
 31157  	s                                                  *Service
 31158  	conversation                                       string
 31159  	googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
 31160  	urlParams_                                         gensupport.URLParams
 31161  	ctx_                                               context.Context
 31162  	header_                                            http.Header
 31163  }
 31164  
 31165  // SearchKnowledge: Get answers for the given query based on knowledge
 31166  // documents.
 31167  //
 31168  //   - conversation: The conversation (between human agent and end user) where
 31169  //     the search request is triggered. Format:
 31170  //     `projects//locations//conversations/`.
 31171  func (r *ProjectsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
 31172  	c := &ProjectsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31173  	c.conversation = conversation
 31174  	c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
 31175  	return c
 31176  }
 31177  
 31178  // Fields allows partial responses to be retrieved. See
 31179  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31180  // details.
 31181  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
 31182  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31183  	return c
 31184  }
 31185  
 31186  // Context sets the context to be used in this call's Do method.
 31187  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
 31188  	c.ctx_ = ctx
 31189  	return c
 31190  }
 31191  
 31192  // Header returns a http.Header that can be modified by the caller to add
 31193  // headers to the request.
 31194  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
 31195  	if c.header_ == nil {
 31196  		c.header_ = make(http.Header)
 31197  	}
 31198  	return c.header_
 31199  }
 31200  
 31201  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 31202  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31203  	var body io.Reader = nil
 31204  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
 31205  	if err != nil {
 31206  		return nil, err
 31207  	}
 31208  	c.urlParams_.Set("alt", alt)
 31209  	c.urlParams_.Set("prettyPrint", "false")
 31210  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:searchKnowledge")
 31211  	urls += "?" + c.urlParams_.Encode()
 31212  	req, err := http.NewRequest("POST", urls, body)
 31213  	if err != nil {
 31214  		return nil, err
 31215  	}
 31216  	req.Header = reqHeaders
 31217  	googleapi.Expand(req.URL, map[string]string{
 31218  		"conversation": c.conversation,
 31219  	})
 31220  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31221  }
 31222  
 31223  // Do executes the "dialogflow.projects.conversations.suggestions.searchKnowledge" call.
 31224  // Any non-2xx status code is an error. Response headers are in either
 31225  // *GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Header
 31226  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31227  // Use googleapi.IsNotModified to check whether the returned error was because
 31228  // http.StatusNotModified was returned.
 31229  func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
 31230  	gensupport.SetOptions(c.urlParams_, opts...)
 31231  	res, err := c.doRequest("json")
 31232  	if res != nil && res.StatusCode == http.StatusNotModified {
 31233  		if res.Body != nil {
 31234  			res.Body.Close()
 31235  		}
 31236  		return nil, gensupport.WrapError(&googleapi.Error{
 31237  			Code:   res.StatusCode,
 31238  			Header: res.Header,
 31239  		})
 31240  	}
 31241  	if err != nil {
 31242  		return nil, err
 31243  	}
 31244  	defer googleapi.CloseBody(res)
 31245  	if err := googleapi.CheckResponse(res); err != nil {
 31246  		return nil, gensupport.WrapError(err)
 31247  	}
 31248  	ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
 31249  		ServerResponse: googleapi.ServerResponse{
 31250  			Header:         res.Header,
 31251  			HTTPStatusCode: res.StatusCode,
 31252  		},
 31253  	}
 31254  	target := &ret
 31255  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31256  		return nil, err
 31257  	}
 31258  	return ret, nil
 31259  }
 31260  
 31261  type ProjectsConversationsSuggestionsSuggestConversationSummaryCall struct {
 31262  	s                                                             *Service
 31263  	conversation                                                  string
 31264  	googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
 31265  	urlParams_                                                    gensupport.URLParams
 31266  	ctx_                                                          context.Context
 31267  	header_                                                       http.Header
 31268  }
 31269  
 31270  // SuggestConversationSummary: Suggest summary for a conversation based on
 31271  // specific historical messages. The range of the messages to be used for
 31272  // summary can be specified in the request.
 31273  //
 31274  //   - conversation: The conversation to fetch suggestion for. Format:
 31275  //     `projects//locations//conversations/`.
 31276  func (r *ProjectsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
 31277  	c := &ProjectsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31278  	c.conversation = conversation
 31279  	c.googleclouddialogflowv2beta1suggestconversationsummaryrequest = googleclouddialogflowv2beta1suggestconversationsummaryrequest
 31280  	return c
 31281  }
 31282  
 31283  // Fields allows partial responses to be retrieved. See
 31284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31285  // details.
 31286  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
 31287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31288  	return c
 31289  }
 31290  
 31291  // Context sets the context to be used in this call's Do method.
 31292  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
 31293  	c.ctx_ = ctx
 31294  	return c
 31295  }
 31296  
 31297  // Header returns a http.Header that can be modified by the caller to add
 31298  // headers to the request.
 31299  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
 31300  	if c.header_ == nil {
 31301  		c.header_ = make(http.Header)
 31302  	}
 31303  	return c.header_
 31304  }
 31305  
 31306  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
 31307  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31308  	var body io.Reader = nil
 31309  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestconversationsummaryrequest)
 31310  	if err != nil {
 31311  		return nil, err
 31312  	}
 31313  	c.urlParams_.Set("alt", alt)
 31314  	c.urlParams_.Set("prettyPrint", "false")
 31315  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:suggestConversationSummary")
 31316  	urls += "?" + c.urlParams_.Encode()
 31317  	req, err := http.NewRequest("POST", urls, body)
 31318  	if err != nil {
 31319  		return nil, err
 31320  	}
 31321  	req.Header = reqHeaders
 31322  	googleapi.Expand(req.URL, map[string]string{
 31323  		"conversation": c.conversation,
 31324  	})
 31325  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31326  }
 31327  
 31328  // Do executes the "dialogflow.projects.conversations.suggestions.suggestConversationSummary" call.
 31329  // Any non-2xx status code is an error. Response headers are in either
 31330  // *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse.ServerRespons
 31331  // e.Header or (if a response was returned at all) in
 31332  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 31333  // whether the returned error was because http.StatusNotModified was returned.
 31334  func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse, error) {
 31335  	gensupport.SetOptions(c.urlParams_, opts...)
 31336  	res, err := c.doRequest("json")
 31337  	if res != nil && res.StatusCode == http.StatusNotModified {
 31338  		if res.Body != nil {
 31339  			res.Body.Close()
 31340  		}
 31341  		return nil, gensupport.WrapError(&googleapi.Error{
 31342  			Code:   res.StatusCode,
 31343  			Header: res.Header,
 31344  		})
 31345  	}
 31346  	if err != nil {
 31347  		return nil, err
 31348  	}
 31349  	defer googleapi.CloseBody(res)
 31350  	if err := googleapi.CheckResponse(res); err != nil {
 31351  		return nil, gensupport.WrapError(err)
 31352  	}
 31353  	ret := &GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse{
 31354  		ServerResponse: googleapi.ServerResponse{
 31355  			Header:         res.Header,
 31356  			HTTPStatusCode: res.StatusCode,
 31357  		},
 31358  	}
 31359  	target := &ret
 31360  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31361  		return nil, err
 31362  	}
 31363  	return ret, nil
 31364  }
 31365  
 31366  type ProjectsKnowledgeBasesCreateCall struct {
 31367  	s                                         *Service
 31368  	parent                                    string
 31369  	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
 31370  	urlParams_                                gensupport.URLParams
 31371  	ctx_                                      context.Context
 31372  	header_                                   http.Header
 31373  }
 31374  
 31375  // Create: Creates a knowledge base. Note: The `projects.agent.knowledgeBases`
 31376  // resource is deprecated; only use `projects.knowledgeBases`.
 31377  //
 31378  //   - parent: The project to create a knowledge base for. Format:
 31379  //     `projects//locations/`.
 31380  func (r *ProjectsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesCreateCall {
 31381  	c := &ProjectsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31382  	c.parent = parent
 31383  	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
 31384  	return c
 31385  }
 31386  
 31387  // Fields allows partial responses to be retrieved. See
 31388  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31389  // details.
 31390  func (c *ProjectsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesCreateCall {
 31391  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31392  	return c
 31393  }
 31394  
 31395  // Context sets the context to be used in this call's Do method.
 31396  func (c *ProjectsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesCreateCall {
 31397  	c.ctx_ = ctx
 31398  	return c
 31399  }
 31400  
 31401  // Header returns a http.Header that can be modified by the caller to add
 31402  // headers to the request.
 31403  func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header {
 31404  	if c.header_ == nil {
 31405  		c.header_ = make(http.Header)
 31406  	}
 31407  	return c.header_
 31408  }
 31409  
 31410  func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
 31411  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31412  	var body io.Reader = nil
 31413  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
 31414  	if err != nil {
 31415  		return nil, err
 31416  	}
 31417  	c.urlParams_.Set("alt", alt)
 31418  	c.urlParams_.Set("prettyPrint", "false")
 31419  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
 31420  	urls += "?" + c.urlParams_.Encode()
 31421  	req, err := http.NewRequest("POST", urls, body)
 31422  	if err != nil {
 31423  		return nil, err
 31424  	}
 31425  	req.Header = reqHeaders
 31426  	googleapi.Expand(req.URL, map[string]string{
 31427  		"parent": c.parent,
 31428  	})
 31429  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31430  }
 31431  
 31432  // Do executes the "dialogflow.projects.knowledgeBases.create" call.
 31433  // Any non-2xx status code is an error. Response headers are in either
 31434  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 31435  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31436  // googleapi.IsNotModified to check whether the returned error was because
 31437  // http.StatusNotModified was returned.
 31438  func (c *ProjectsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 31439  	gensupport.SetOptions(c.urlParams_, opts...)
 31440  	res, err := c.doRequest("json")
 31441  	if res != nil && res.StatusCode == http.StatusNotModified {
 31442  		if res.Body != nil {
 31443  			res.Body.Close()
 31444  		}
 31445  		return nil, gensupport.WrapError(&googleapi.Error{
 31446  			Code:   res.StatusCode,
 31447  			Header: res.Header,
 31448  		})
 31449  	}
 31450  	if err != nil {
 31451  		return nil, err
 31452  	}
 31453  	defer googleapi.CloseBody(res)
 31454  	if err := googleapi.CheckResponse(res); err != nil {
 31455  		return nil, gensupport.WrapError(err)
 31456  	}
 31457  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 31458  		ServerResponse: googleapi.ServerResponse{
 31459  			Header:         res.Header,
 31460  			HTTPStatusCode: res.StatusCode,
 31461  		},
 31462  	}
 31463  	target := &ret
 31464  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31465  		return nil, err
 31466  	}
 31467  	return ret, nil
 31468  }
 31469  
 31470  type ProjectsKnowledgeBasesDeleteCall struct {
 31471  	s          *Service
 31472  	name       string
 31473  	urlParams_ gensupport.URLParams
 31474  	ctx_       context.Context
 31475  	header_    http.Header
 31476  }
 31477  
 31478  // Delete: Deletes the specified knowledge base. Note: The
 31479  // `projects.agent.knowledgeBases` resource is deprecated; only use
 31480  // `projects.knowledgeBases`.
 31481  //
 31482  //   - name: The name of the knowledge base to delete. Format:
 31483  //     `projects//locations//knowledgeBases/`.
 31484  func (r *ProjectsKnowledgeBasesService) Delete(name string) *ProjectsKnowledgeBasesDeleteCall {
 31485  	c := &ProjectsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31486  	c.name = name
 31487  	return c
 31488  }
 31489  
 31490  // Force sets the optional parameter "force": Force deletes the knowledge base.
 31491  // When set to true, any documents in the knowledge base are also deleted.
 31492  func (c *ProjectsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsKnowledgeBasesDeleteCall {
 31493  	c.urlParams_.Set("force", fmt.Sprint(force))
 31494  	return c
 31495  }
 31496  
 31497  // Fields allows partial responses to be retrieved. See
 31498  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31499  // details.
 31500  func (c *ProjectsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDeleteCall {
 31501  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31502  	return c
 31503  }
 31504  
 31505  // Context sets the context to be used in this call's Do method.
 31506  func (c *ProjectsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDeleteCall {
 31507  	c.ctx_ = ctx
 31508  	return c
 31509  }
 31510  
 31511  // Header returns a http.Header that can be modified by the caller to add
 31512  // headers to the request.
 31513  func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header {
 31514  	if c.header_ == nil {
 31515  		c.header_ = make(http.Header)
 31516  	}
 31517  	return c.header_
 31518  }
 31519  
 31520  func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 31521  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31522  	var body io.Reader = nil
 31523  	c.urlParams_.Set("alt", alt)
 31524  	c.urlParams_.Set("prettyPrint", "false")
 31525  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 31526  	urls += "?" + c.urlParams_.Encode()
 31527  	req, err := http.NewRequest("DELETE", urls, body)
 31528  	if err != nil {
 31529  		return nil, err
 31530  	}
 31531  	req.Header = reqHeaders
 31532  	googleapi.Expand(req.URL, map[string]string{
 31533  		"name": c.name,
 31534  	})
 31535  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31536  }
 31537  
 31538  // Do executes the "dialogflow.projects.knowledgeBases.delete" call.
 31539  // Any non-2xx status code is an error. Response headers are in either
 31540  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 31541  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 31542  // check whether the returned error was because http.StatusNotModified was
 31543  // returned.
 31544  func (c *ProjectsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 31545  	gensupport.SetOptions(c.urlParams_, opts...)
 31546  	res, err := c.doRequest("json")
 31547  	if res != nil && res.StatusCode == http.StatusNotModified {
 31548  		if res.Body != nil {
 31549  			res.Body.Close()
 31550  		}
 31551  		return nil, gensupport.WrapError(&googleapi.Error{
 31552  			Code:   res.StatusCode,
 31553  			Header: res.Header,
 31554  		})
 31555  	}
 31556  	if err != nil {
 31557  		return nil, err
 31558  	}
 31559  	defer googleapi.CloseBody(res)
 31560  	if err := googleapi.CheckResponse(res); err != nil {
 31561  		return nil, gensupport.WrapError(err)
 31562  	}
 31563  	ret := &GoogleProtobufEmpty{
 31564  		ServerResponse: googleapi.ServerResponse{
 31565  			Header:         res.Header,
 31566  			HTTPStatusCode: res.StatusCode,
 31567  		},
 31568  	}
 31569  	target := &ret
 31570  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31571  		return nil, err
 31572  	}
 31573  	return ret, nil
 31574  }
 31575  
 31576  type ProjectsKnowledgeBasesGetCall struct {
 31577  	s            *Service
 31578  	name         string
 31579  	urlParams_   gensupport.URLParams
 31580  	ifNoneMatch_ string
 31581  	ctx_         context.Context
 31582  	header_      http.Header
 31583  }
 31584  
 31585  // Get: Retrieves the specified knowledge base. Note: The
 31586  // `projects.agent.knowledgeBases` resource is deprecated; only use
 31587  // `projects.knowledgeBases`.
 31588  //
 31589  //   - name: The name of the knowledge base to retrieve. Format
 31590  //     `projects//locations//knowledgeBases/`.
 31591  func (r *ProjectsKnowledgeBasesService) Get(name string) *ProjectsKnowledgeBasesGetCall {
 31592  	c := &ProjectsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31593  	c.name = name
 31594  	return c
 31595  }
 31596  
 31597  // Fields allows partial responses to be retrieved. See
 31598  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31599  // details.
 31600  func (c *ProjectsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesGetCall {
 31601  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31602  	return c
 31603  }
 31604  
 31605  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31606  // object's ETag matches the given value. This is useful for getting updates
 31607  // only after the object has changed since the last request.
 31608  func (c *ProjectsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesGetCall {
 31609  	c.ifNoneMatch_ = entityTag
 31610  	return c
 31611  }
 31612  
 31613  // Context sets the context to be used in this call's Do method.
 31614  func (c *ProjectsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesGetCall {
 31615  	c.ctx_ = ctx
 31616  	return c
 31617  }
 31618  
 31619  // Header returns a http.Header that can be modified by the caller to add
 31620  // headers to the request.
 31621  func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header {
 31622  	if c.header_ == nil {
 31623  		c.header_ = make(http.Header)
 31624  	}
 31625  	return c.header_
 31626  }
 31627  
 31628  func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
 31629  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31630  	if c.ifNoneMatch_ != "" {
 31631  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31632  	}
 31633  	var body io.Reader = nil
 31634  	c.urlParams_.Set("alt", alt)
 31635  	c.urlParams_.Set("prettyPrint", "false")
 31636  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 31637  	urls += "?" + c.urlParams_.Encode()
 31638  	req, err := http.NewRequest("GET", urls, body)
 31639  	if err != nil {
 31640  		return nil, err
 31641  	}
 31642  	req.Header = reqHeaders
 31643  	googleapi.Expand(req.URL, map[string]string{
 31644  		"name": c.name,
 31645  	})
 31646  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31647  }
 31648  
 31649  // Do executes the "dialogflow.projects.knowledgeBases.get" call.
 31650  // Any non-2xx status code is an error. Response headers are in either
 31651  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 31652  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31653  // googleapi.IsNotModified to check whether the returned error was because
 31654  // http.StatusNotModified was returned.
 31655  func (c *ProjectsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 31656  	gensupport.SetOptions(c.urlParams_, opts...)
 31657  	res, err := c.doRequest("json")
 31658  	if res != nil && res.StatusCode == http.StatusNotModified {
 31659  		if res.Body != nil {
 31660  			res.Body.Close()
 31661  		}
 31662  		return nil, gensupport.WrapError(&googleapi.Error{
 31663  			Code:   res.StatusCode,
 31664  			Header: res.Header,
 31665  		})
 31666  	}
 31667  	if err != nil {
 31668  		return nil, err
 31669  	}
 31670  	defer googleapi.CloseBody(res)
 31671  	if err := googleapi.CheckResponse(res); err != nil {
 31672  		return nil, gensupport.WrapError(err)
 31673  	}
 31674  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 31675  		ServerResponse: googleapi.ServerResponse{
 31676  			Header:         res.Header,
 31677  			HTTPStatusCode: res.StatusCode,
 31678  		},
 31679  	}
 31680  	target := &ret
 31681  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31682  		return nil, err
 31683  	}
 31684  	return ret, nil
 31685  }
 31686  
 31687  type ProjectsKnowledgeBasesListCall struct {
 31688  	s            *Service
 31689  	parent       string
 31690  	urlParams_   gensupport.URLParams
 31691  	ifNoneMatch_ string
 31692  	ctx_         context.Context
 31693  	header_      http.Header
 31694  }
 31695  
 31696  // List: Returns the list of all knowledge bases of the specified agent. Note:
 31697  // The `projects.agent.knowledgeBases` resource is deprecated; only use
 31698  // `projects.knowledgeBases`.
 31699  //
 31700  //   - parent: The project to list of knowledge bases for. Format:
 31701  //     `projects//locations/`.
 31702  func (r *ProjectsKnowledgeBasesService) List(parent string) *ProjectsKnowledgeBasesListCall {
 31703  	c := &ProjectsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31704  	c.parent = parent
 31705  	return c
 31706  }
 31707  
 31708  // Filter sets the optional parameter "filter": The filter expression used to
 31709  // filter knowledge bases returned by the list method. The expression has the
 31710  // following syntax: [AND ] ... The following fields and operators are
 31711  // supported: * display_name with has(:) operator * language_code with
 31712  // equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases
 31713  // with en-us language code. * 'display_name:articles' matches knowledge bases
 31714  // whose display name contains "articles". * 'display_name:"Best Articles"'
 31715  // matches knowledge bases whose display name contains "Best Articles". *
 31716  // 'language_code=en-gb AND display_name=articles' matches all knowledge bases
 31717  // whose display name contains "articles" and whose language code is "en-gb".
 31718  // Note: An empty filter string (i.e. "") is a no-op and will result in no
 31719  // filtering. For more information about filtering, see API Filtering
 31720  // (https://aip.dev/160).
 31721  func (c *ProjectsKnowledgeBasesListCall) Filter(filter string) *ProjectsKnowledgeBasesListCall {
 31722  	c.urlParams_.Set("filter", filter)
 31723  	return c
 31724  }
 31725  
 31726  // PageSize sets the optional parameter "pageSize": The maximum number of items
 31727  // to return in a single page. By default 10 and at most 100.
 31728  func (c *ProjectsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesListCall {
 31729  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 31730  	return c
 31731  }
 31732  
 31733  // PageToken sets the optional parameter "pageToken": The next_page_token value
 31734  // returned from a previous list request.
 31735  func (c *ProjectsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesListCall {
 31736  	c.urlParams_.Set("pageToken", pageToken)
 31737  	return c
 31738  }
 31739  
 31740  // Fields allows partial responses to be retrieved. See
 31741  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31742  // details.
 31743  func (c *ProjectsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesListCall {
 31744  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31745  	return c
 31746  }
 31747  
 31748  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31749  // object's ETag matches the given value. This is useful for getting updates
 31750  // only after the object has changed since the last request.
 31751  func (c *ProjectsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesListCall {
 31752  	c.ifNoneMatch_ = entityTag
 31753  	return c
 31754  }
 31755  
 31756  // Context sets the context to be used in this call's Do method.
 31757  func (c *ProjectsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesListCall {
 31758  	c.ctx_ = ctx
 31759  	return c
 31760  }
 31761  
 31762  // Header returns a http.Header that can be modified by the caller to add
 31763  // headers to the request.
 31764  func (c *ProjectsKnowledgeBasesListCall) Header() http.Header {
 31765  	if c.header_ == nil {
 31766  		c.header_ = make(http.Header)
 31767  	}
 31768  	return c.header_
 31769  }
 31770  
 31771  func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
 31772  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31773  	if c.ifNoneMatch_ != "" {
 31774  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31775  	}
 31776  	var body io.Reader = nil
 31777  	c.urlParams_.Set("alt", alt)
 31778  	c.urlParams_.Set("prettyPrint", "false")
 31779  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
 31780  	urls += "?" + c.urlParams_.Encode()
 31781  	req, err := http.NewRequest("GET", urls, body)
 31782  	if err != nil {
 31783  		return nil, err
 31784  	}
 31785  	req.Header = reqHeaders
 31786  	googleapi.Expand(req.URL, map[string]string{
 31787  		"parent": c.parent,
 31788  	})
 31789  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31790  }
 31791  
 31792  // Do executes the "dialogflow.projects.knowledgeBases.list" call.
 31793  // Any non-2xx status code is an error. Response headers are in either
 31794  // *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse.Header
 31795  //
 31796  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31797  //
 31798  // Use googleapi.IsNotModified to check whether the returned error was because
 31799  // http.StatusNotModified was returned.
 31800  func (c *ProjectsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
 31801  	gensupport.SetOptions(c.urlParams_, opts...)
 31802  	res, err := c.doRequest("json")
 31803  	if res != nil && res.StatusCode == http.StatusNotModified {
 31804  		if res.Body != nil {
 31805  			res.Body.Close()
 31806  		}
 31807  		return nil, gensupport.WrapError(&googleapi.Error{
 31808  			Code:   res.StatusCode,
 31809  			Header: res.Header,
 31810  		})
 31811  	}
 31812  	if err != nil {
 31813  		return nil, err
 31814  	}
 31815  	defer googleapi.CloseBody(res)
 31816  	if err := googleapi.CheckResponse(res); err != nil {
 31817  		return nil, gensupport.WrapError(err)
 31818  	}
 31819  	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
 31820  		ServerResponse: googleapi.ServerResponse{
 31821  			Header:         res.Header,
 31822  			HTTPStatusCode: res.StatusCode,
 31823  		},
 31824  	}
 31825  	target := &ret
 31826  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31827  		return nil, err
 31828  	}
 31829  	return ret, nil
 31830  }
 31831  
 31832  // Pages invokes f for each page of results.
 31833  // A non-nil error returned from f will halt the iteration.
 31834  // The provided context supersedes any context provided to the Context method.
 31835  func (c *ProjectsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
 31836  	c.ctx_ = ctx
 31837  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31838  	for {
 31839  		x, err := c.Do()
 31840  		if err != nil {
 31841  			return err
 31842  		}
 31843  		if err := f(x); err != nil {
 31844  			return err
 31845  		}
 31846  		if x.NextPageToken == "" {
 31847  			return nil
 31848  		}
 31849  		c.PageToken(x.NextPageToken)
 31850  	}
 31851  }
 31852  
 31853  type ProjectsKnowledgeBasesPatchCall struct {
 31854  	s                                         *Service
 31855  	name                                      string
 31856  	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
 31857  	urlParams_                                gensupport.URLParams
 31858  	ctx_                                      context.Context
 31859  	header_                                   http.Header
 31860  }
 31861  
 31862  // Patch: Updates the specified knowledge base. Note: The
 31863  // `projects.agent.knowledgeBases` resource is deprecated; only use
 31864  // `projects.knowledgeBases`.
 31865  //
 31866  //   - name: The knowledge base resource name. The name must be empty when
 31867  //     creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
 31868  func (r *ProjectsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesPatchCall {
 31869  	c := &ProjectsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31870  	c.name = name
 31871  	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
 31872  	return c
 31873  }
 31874  
 31875  // UpdateMask sets the optional parameter "updateMask": Not specified means
 31876  // `update all`. Currently, only `display_name` can be updated, an
 31877  // InvalidArgument will be returned for attempting to update other fields.
 31878  func (c *ProjectsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesPatchCall {
 31879  	c.urlParams_.Set("updateMask", updateMask)
 31880  	return c
 31881  }
 31882  
 31883  // Fields allows partial responses to be retrieved. See
 31884  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31885  // details.
 31886  func (c *ProjectsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesPatchCall {
 31887  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31888  	return c
 31889  }
 31890  
 31891  // Context sets the context to be used in this call's Do method.
 31892  func (c *ProjectsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesPatchCall {
 31893  	c.ctx_ = ctx
 31894  	return c
 31895  }
 31896  
 31897  // Header returns a http.Header that can be modified by the caller to add
 31898  // headers to the request.
 31899  func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header {
 31900  	if c.header_ == nil {
 31901  		c.header_ = make(http.Header)
 31902  	}
 31903  	return c.header_
 31904  }
 31905  
 31906  func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
 31907  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31908  	var body io.Reader = nil
 31909  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
 31910  	if err != nil {
 31911  		return nil, err
 31912  	}
 31913  	c.urlParams_.Set("alt", alt)
 31914  	c.urlParams_.Set("prettyPrint", "false")
 31915  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 31916  	urls += "?" + c.urlParams_.Encode()
 31917  	req, err := http.NewRequest("PATCH", urls, body)
 31918  	if err != nil {
 31919  		return nil, err
 31920  	}
 31921  	req.Header = reqHeaders
 31922  	googleapi.Expand(req.URL, map[string]string{
 31923  		"name": c.name,
 31924  	})
 31925  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31926  }
 31927  
 31928  // Do executes the "dialogflow.projects.knowledgeBases.patch" call.
 31929  // Any non-2xx status code is an error. Response headers are in either
 31930  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 31931  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31932  // googleapi.IsNotModified to check whether the returned error was because
 31933  // http.StatusNotModified was returned.
 31934  func (c *ProjectsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 31935  	gensupport.SetOptions(c.urlParams_, opts...)
 31936  	res, err := c.doRequest("json")
 31937  	if res != nil && res.StatusCode == http.StatusNotModified {
 31938  		if res.Body != nil {
 31939  			res.Body.Close()
 31940  		}
 31941  		return nil, gensupport.WrapError(&googleapi.Error{
 31942  			Code:   res.StatusCode,
 31943  			Header: res.Header,
 31944  		})
 31945  	}
 31946  	if err != nil {
 31947  		return nil, err
 31948  	}
 31949  	defer googleapi.CloseBody(res)
 31950  	if err := googleapi.CheckResponse(res); err != nil {
 31951  		return nil, gensupport.WrapError(err)
 31952  	}
 31953  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 31954  		ServerResponse: googleapi.ServerResponse{
 31955  			Header:         res.Header,
 31956  			HTTPStatusCode: res.StatusCode,
 31957  		},
 31958  	}
 31959  	target := &ret
 31960  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31961  		return nil, err
 31962  	}
 31963  	return ret, nil
 31964  }
 31965  
 31966  type ProjectsKnowledgeBasesDocumentsCreateCall struct {
 31967  	s                                    *Service
 31968  	parent                               string
 31969  	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
 31970  	urlParams_                           gensupport.URLParams
 31971  	ctx_                                 context.Context
 31972  	header_                              http.Header
 31973  }
 31974  
 31975  // Create: Creates a new document. This method is a long-running operation
 31976  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 31977  // The returned `Operation` type has the following method-specific fields: -
 31978  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 31979  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 31980  // `projects.knowledgeBases.documents`.
 31981  //
 31982  //   - parent: The knowledge base to create a document for. Format:
 31983  //     `projects//locations//knowledgeBases/`.
 31984  func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsCreateCall {
 31985  	c := &ProjectsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31986  	c.parent = parent
 31987  	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
 31988  	return c
 31989  }
 31990  
 31991  // ImportGcsCustomMetadata sets the optional parameter
 31992  // "importGcsCustomMetadata": Whether to import custom metadata from Google
 31993  // Cloud Storage. Only valid when the document source is Google Cloud Storage
 31994  // URI.
 31995  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsKnowledgeBasesDocumentsCreateCall {
 31996  	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
 31997  	return c
 31998  }
 31999  
 32000  // Fields allows partial responses to be retrieved. See
 32001  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32002  // details.
 32003  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsCreateCall {
 32004  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32005  	return c
 32006  }
 32007  
 32008  // Context sets the context to be used in this call's Do method.
 32009  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsCreateCall {
 32010  	c.ctx_ = ctx
 32011  	return c
 32012  }
 32013  
 32014  // Header returns a http.Header that can be modified by the caller to add
 32015  // headers to the request.
 32016  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
 32017  	if c.header_ == nil {
 32018  		c.header_ = make(http.Header)
 32019  	}
 32020  	return c.header_
 32021  }
 32022  
 32023  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 32024  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32025  	var body io.Reader = nil
 32026  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
 32027  	if err != nil {
 32028  		return nil, err
 32029  	}
 32030  	c.urlParams_.Set("alt", alt)
 32031  	c.urlParams_.Set("prettyPrint", "false")
 32032  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
 32033  	urls += "?" + c.urlParams_.Encode()
 32034  	req, err := http.NewRequest("POST", urls, body)
 32035  	if err != nil {
 32036  		return nil, err
 32037  	}
 32038  	req.Header = reqHeaders
 32039  	googleapi.Expand(req.URL, map[string]string{
 32040  		"parent": c.parent,
 32041  	})
 32042  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32043  }
 32044  
 32045  // Do executes the "dialogflow.projects.knowledgeBases.documents.create" call.
 32046  // Any non-2xx status code is an error. Response headers are in either
 32047  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32048  // returned at all) in error.(*googleapi.Error).Header. Use
 32049  // googleapi.IsNotModified to check whether the returned error was because
 32050  // http.StatusNotModified was returned.
 32051  func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32052  	gensupport.SetOptions(c.urlParams_, opts...)
 32053  	res, err := c.doRequest("json")
 32054  	if res != nil && res.StatusCode == http.StatusNotModified {
 32055  		if res.Body != nil {
 32056  			res.Body.Close()
 32057  		}
 32058  		return nil, gensupport.WrapError(&googleapi.Error{
 32059  			Code:   res.StatusCode,
 32060  			Header: res.Header,
 32061  		})
 32062  	}
 32063  	if err != nil {
 32064  		return nil, err
 32065  	}
 32066  	defer googleapi.CloseBody(res)
 32067  	if err := googleapi.CheckResponse(res); err != nil {
 32068  		return nil, gensupport.WrapError(err)
 32069  	}
 32070  	ret := &GoogleLongrunningOperation{
 32071  		ServerResponse: googleapi.ServerResponse{
 32072  			Header:         res.Header,
 32073  			HTTPStatusCode: res.StatusCode,
 32074  		},
 32075  	}
 32076  	target := &ret
 32077  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32078  		return nil, err
 32079  	}
 32080  	return ret, nil
 32081  }
 32082  
 32083  type ProjectsKnowledgeBasesDocumentsDeleteCall struct {
 32084  	s          *Service
 32085  	name       string
 32086  	urlParams_ gensupport.URLParams
 32087  	ctx_       context.Context
 32088  	header_    http.Header
 32089  }
 32090  
 32091  // Delete: Deletes the specified document. This method is a long-running
 32092  // operation
 32093  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32094  // The returned `Operation` type has the following method-specific fields: -
 32095  // `metadata`: KnowledgeOperationMetadata - `response`: An Empty message
 32096  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 32097  // Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
 32098  // only use `projects.knowledgeBases.documents`.
 32099  //
 32100  //   - name: The name of the document to delete. Format:
 32101  //     `projects//locations//knowledgeBases//documents/`.
 32102  func (r *ProjectsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsKnowledgeBasesDocumentsDeleteCall {
 32103  	c := &ProjectsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32104  	c.name = name
 32105  	return c
 32106  }
 32107  
 32108  // Fields allows partial responses to be retrieved. See
 32109  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32110  // details.
 32111  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsDeleteCall {
 32112  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32113  	return c
 32114  }
 32115  
 32116  // Context sets the context to be used in this call's Do method.
 32117  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsDeleteCall {
 32118  	c.ctx_ = ctx
 32119  	return c
 32120  }
 32121  
 32122  // Header returns a http.Header that can be modified by the caller to add
 32123  // headers to the request.
 32124  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
 32125  	if c.header_ == nil {
 32126  		c.header_ = make(http.Header)
 32127  	}
 32128  	return c.header_
 32129  }
 32130  
 32131  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 32132  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32133  	var body io.Reader = nil
 32134  	c.urlParams_.Set("alt", alt)
 32135  	c.urlParams_.Set("prettyPrint", "false")
 32136  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 32137  	urls += "?" + c.urlParams_.Encode()
 32138  	req, err := http.NewRequest("DELETE", urls, body)
 32139  	if err != nil {
 32140  		return nil, err
 32141  	}
 32142  	req.Header = reqHeaders
 32143  	googleapi.Expand(req.URL, map[string]string{
 32144  		"name": c.name,
 32145  	})
 32146  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32147  }
 32148  
 32149  // Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call.
 32150  // Any non-2xx status code is an error. Response headers are in either
 32151  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32152  // returned at all) in error.(*googleapi.Error).Header. Use
 32153  // googleapi.IsNotModified to check whether the returned error was because
 32154  // http.StatusNotModified was returned.
 32155  func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32156  	gensupport.SetOptions(c.urlParams_, opts...)
 32157  	res, err := c.doRequest("json")
 32158  	if res != nil && res.StatusCode == http.StatusNotModified {
 32159  		if res.Body != nil {
 32160  			res.Body.Close()
 32161  		}
 32162  		return nil, gensupport.WrapError(&googleapi.Error{
 32163  			Code:   res.StatusCode,
 32164  			Header: res.Header,
 32165  		})
 32166  	}
 32167  	if err != nil {
 32168  		return nil, err
 32169  	}
 32170  	defer googleapi.CloseBody(res)
 32171  	if err := googleapi.CheckResponse(res); err != nil {
 32172  		return nil, gensupport.WrapError(err)
 32173  	}
 32174  	ret := &GoogleLongrunningOperation{
 32175  		ServerResponse: googleapi.ServerResponse{
 32176  			Header:         res.Header,
 32177  			HTTPStatusCode: res.StatusCode,
 32178  		},
 32179  	}
 32180  	target := &ret
 32181  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32182  		return nil, err
 32183  	}
 32184  	return ret, nil
 32185  }
 32186  
 32187  type ProjectsKnowledgeBasesDocumentsGetCall struct {
 32188  	s            *Service
 32189  	name         string
 32190  	urlParams_   gensupport.URLParams
 32191  	ifNoneMatch_ string
 32192  	ctx_         context.Context
 32193  	header_      http.Header
 32194  }
 32195  
 32196  // Get: Retrieves the specified document. Note: The
 32197  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 32198  // `projects.knowledgeBases.documents`.
 32199  //
 32200  //   - name: The name of the document to retrieve. Format
 32201  //     `projects//locations//knowledgeBases//documents/`.
 32202  func (r *ProjectsKnowledgeBasesDocumentsService) Get(name string) *ProjectsKnowledgeBasesDocumentsGetCall {
 32203  	c := &ProjectsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32204  	c.name = name
 32205  	return c
 32206  }
 32207  
 32208  // Fields allows partial responses to be retrieved. See
 32209  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32210  // details.
 32211  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsGetCall {
 32212  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32213  	return c
 32214  }
 32215  
 32216  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32217  // object's ETag matches the given value. This is useful for getting updates
 32218  // only after the object has changed since the last request.
 32219  func (c *ProjectsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsGetCall {
 32220  	c.ifNoneMatch_ = entityTag
 32221  	return c
 32222  }
 32223  
 32224  // Context sets the context to be used in this call's Do method.
 32225  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsGetCall {
 32226  	c.ctx_ = ctx
 32227  	return c
 32228  }
 32229  
 32230  // Header returns a http.Header that can be modified by the caller to add
 32231  // headers to the request.
 32232  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header {
 32233  	if c.header_ == nil {
 32234  		c.header_ = make(http.Header)
 32235  	}
 32236  	return c.header_
 32237  }
 32238  
 32239  func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 32240  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32241  	if c.ifNoneMatch_ != "" {
 32242  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32243  	}
 32244  	var body io.Reader = nil
 32245  	c.urlParams_.Set("alt", alt)
 32246  	c.urlParams_.Set("prettyPrint", "false")
 32247  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 32248  	urls += "?" + c.urlParams_.Encode()
 32249  	req, err := http.NewRequest("GET", urls, body)
 32250  	if err != nil {
 32251  		return nil, err
 32252  	}
 32253  	req.Header = reqHeaders
 32254  	googleapi.Expand(req.URL, map[string]string{
 32255  		"name": c.name,
 32256  	})
 32257  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32258  }
 32259  
 32260  // Do executes the "dialogflow.projects.knowledgeBases.documents.get" call.
 32261  // Any non-2xx status code is an error. Response headers are in either
 32262  // *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or (if a
 32263  // response was returned at all) in error.(*googleapi.Error).Header. Use
 32264  // googleapi.IsNotModified to check whether the returned error was because
 32265  // http.StatusNotModified was returned.
 32266  func (c *ProjectsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
 32267  	gensupport.SetOptions(c.urlParams_, opts...)
 32268  	res, err := c.doRequest("json")
 32269  	if res != nil && res.StatusCode == http.StatusNotModified {
 32270  		if res.Body != nil {
 32271  			res.Body.Close()
 32272  		}
 32273  		return nil, gensupport.WrapError(&googleapi.Error{
 32274  			Code:   res.StatusCode,
 32275  			Header: res.Header,
 32276  		})
 32277  	}
 32278  	if err != nil {
 32279  		return nil, err
 32280  	}
 32281  	defer googleapi.CloseBody(res)
 32282  	if err := googleapi.CheckResponse(res); err != nil {
 32283  		return nil, gensupport.WrapError(err)
 32284  	}
 32285  	ret := &GoogleCloudDialogflowV2beta1Document{
 32286  		ServerResponse: googleapi.ServerResponse{
 32287  			Header:         res.Header,
 32288  			HTTPStatusCode: res.StatusCode,
 32289  		},
 32290  	}
 32291  	target := &ret
 32292  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32293  		return nil, err
 32294  	}
 32295  	return ret, nil
 32296  }
 32297  
 32298  type ProjectsKnowledgeBasesDocumentsImportCall struct {
 32299  	s                                                  *Service
 32300  	parent                                             string
 32301  	googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
 32302  	urlParams_                                         gensupport.URLParams
 32303  	ctx_                                               context.Context
 32304  	header_                                            http.Header
 32305  }
 32306  
 32307  // Import: Create documents by importing data from external sources. Dialogflow
 32308  // supports up to 350 documents in each request. If you try to import more,
 32309  // Dialogflow will return an error. This method is a long-running operation
 32310  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32311  // The returned `Operation` type has the following method-specific fields: -
 32312  // `metadata`: KnowledgeOperationMetadata - `response`: ImportDocumentsResponse
 32313  //
 32314  //   - parent: The knowledge base to import documents into. Format:
 32315  //     `projects//locations//knowledgeBases/`.
 32316  func (r *ProjectsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsKnowledgeBasesDocumentsImportCall {
 32317  	c := &ProjectsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32318  	c.parent = parent
 32319  	c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
 32320  	return c
 32321  }
 32322  
 32323  // Fields allows partial responses to be retrieved. See
 32324  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32325  // details.
 32326  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsImportCall {
 32327  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32328  	return c
 32329  }
 32330  
 32331  // Context sets the context to be used in this call's Do method.
 32332  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsImportCall {
 32333  	c.ctx_ = ctx
 32334  	return c
 32335  }
 32336  
 32337  // Header returns a http.Header that can be modified by the caller to add
 32338  // headers to the request.
 32339  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Header() http.Header {
 32340  	if c.header_ == nil {
 32341  		c.header_ = make(http.Header)
 32342  	}
 32343  	return c.header_
 32344  }
 32345  
 32346  func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 32347  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32348  	var body io.Reader = nil
 32349  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
 32350  	if err != nil {
 32351  		return nil, err
 32352  	}
 32353  	c.urlParams_.Set("alt", alt)
 32354  	c.urlParams_.Set("prettyPrint", "false")
 32355  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
 32356  	urls += "?" + c.urlParams_.Encode()
 32357  	req, err := http.NewRequest("POST", urls, body)
 32358  	if err != nil {
 32359  		return nil, err
 32360  	}
 32361  	req.Header = reqHeaders
 32362  	googleapi.Expand(req.URL, map[string]string{
 32363  		"parent": c.parent,
 32364  	})
 32365  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32366  }
 32367  
 32368  // Do executes the "dialogflow.projects.knowledgeBases.documents.import" call.
 32369  // Any non-2xx status code is an error. Response headers are in either
 32370  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32371  // returned at all) in error.(*googleapi.Error).Header. Use
 32372  // googleapi.IsNotModified to check whether the returned error was because
 32373  // http.StatusNotModified was returned.
 32374  func (c *ProjectsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32375  	gensupport.SetOptions(c.urlParams_, opts...)
 32376  	res, err := c.doRequest("json")
 32377  	if res != nil && res.StatusCode == http.StatusNotModified {
 32378  		if res.Body != nil {
 32379  			res.Body.Close()
 32380  		}
 32381  		return nil, gensupport.WrapError(&googleapi.Error{
 32382  			Code:   res.StatusCode,
 32383  			Header: res.Header,
 32384  		})
 32385  	}
 32386  	if err != nil {
 32387  		return nil, err
 32388  	}
 32389  	defer googleapi.CloseBody(res)
 32390  	if err := googleapi.CheckResponse(res); err != nil {
 32391  		return nil, gensupport.WrapError(err)
 32392  	}
 32393  	ret := &GoogleLongrunningOperation{
 32394  		ServerResponse: googleapi.ServerResponse{
 32395  			Header:         res.Header,
 32396  			HTTPStatusCode: res.StatusCode,
 32397  		},
 32398  	}
 32399  	target := &ret
 32400  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32401  		return nil, err
 32402  	}
 32403  	return ret, nil
 32404  }
 32405  
 32406  type ProjectsKnowledgeBasesDocumentsListCall struct {
 32407  	s            *Service
 32408  	parent       string
 32409  	urlParams_   gensupport.URLParams
 32410  	ifNoneMatch_ string
 32411  	ctx_         context.Context
 32412  	header_      http.Header
 32413  }
 32414  
 32415  // List: Returns the list of all documents of the knowledge base. Note: The
 32416  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 32417  // `projects.knowledgeBases.documents`.
 32418  //
 32419  //   - parent: The knowledge base to list all documents for. Format:
 32420  //     `projects//locations//knowledgeBases/`.
 32421  func (r *ProjectsKnowledgeBasesDocumentsService) List(parent string) *ProjectsKnowledgeBasesDocumentsListCall {
 32422  	c := &ProjectsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32423  	c.parent = parent
 32424  	return c
 32425  }
 32426  
 32427  // Filter sets the optional parameter "filter": The filter expression used to
 32428  // filter documents returned by the list method. The expression has the
 32429  // following syntax: [AND ] ... The following fields and operators are
 32430  // supported: * knowledge_types with has(:) operator * display_name with has(:)
 32431  // operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"
 32432  // matches documents with FAQ knowledge type. * "display_name:customer" matches
 32433  // documents whose display name contains "customer". * "state=ACTIVE" matches
 32434  // documents with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"
 32435  // matches all active FAQ documents. For more information about filtering, see
 32436  // API Filtering (https://aip.dev/160).
 32437  func (c *ProjectsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsKnowledgeBasesDocumentsListCall {
 32438  	c.urlParams_.Set("filter", filter)
 32439  	return c
 32440  }
 32441  
 32442  // PageSize sets the optional parameter "pageSize": The maximum number of items
 32443  // to return in a single page. By default 10 and at most 100.
 32444  func (c *ProjectsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesDocumentsListCall {
 32445  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32446  	return c
 32447  }
 32448  
 32449  // PageToken sets the optional parameter "pageToken": The next_page_token value
 32450  // returned from a previous list request.
 32451  func (c *ProjectsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesDocumentsListCall {
 32452  	c.urlParams_.Set("pageToken", pageToken)
 32453  	return c
 32454  }
 32455  
 32456  // Fields allows partial responses to be retrieved. See
 32457  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32458  // details.
 32459  func (c *ProjectsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsListCall {
 32460  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32461  	return c
 32462  }
 32463  
 32464  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32465  // object's ETag matches the given value. This is useful for getting updates
 32466  // only after the object has changed since the last request.
 32467  func (c *ProjectsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsListCall {
 32468  	c.ifNoneMatch_ = entityTag
 32469  	return c
 32470  }
 32471  
 32472  // Context sets the context to be used in this call's Do method.
 32473  func (c *ProjectsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsListCall {
 32474  	c.ctx_ = ctx
 32475  	return c
 32476  }
 32477  
 32478  // Header returns a http.Header that can be modified by the caller to add
 32479  // headers to the request.
 32480  func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header {
 32481  	if c.header_ == nil {
 32482  		c.header_ = make(http.Header)
 32483  	}
 32484  	return c.header_
 32485  }
 32486  
 32487  func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 32488  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32489  	if c.ifNoneMatch_ != "" {
 32490  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32491  	}
 32492  	var body io.Reader = nil
 32493  	c.urlParams_.Set("alt", alt)
 32494  	c.urlParams_.Set("prettyPrint", "false")
 32495  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
 32496  	urls += "?" + c.urlParams_.Encode()
 32497  	req, err := http.NewRequest("GET", urls, body)
 32498  	if err != nil {
 32499  		return nil, err
 32500  	}
 32501  	req.Header = reqHeaders
 32502  	googleapi.Expand(req.URL, map[string]string{
 32503  		"parent": c.parent,
 32504  	})
 32505  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32506  }
 32507  
 32508  // Do executes the "dialogflow.projects.knowledgeBases.documents.list" call.
 32509  // Any non-2xx status code is an error. Response headers are in either
 32510  // *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Header or
 32511  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 32512  // googleapi.IsNotModified to check whether the returned error was because
 32513  // http.StatusNotModified was returned.
 32514  func (c *ProjectsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
 32515  	gensupport.SetOptions(c.urlParams_, opts...)
 32516  	res, err := c.doRequest("json")
 32517  	if res != nil && res.StatusCode == http.StatusNotModified {
 32518  		if res.Body != nil {
 32519  			res.Body.Close()
 32520  		}
 32521  		return nil, gensupport.WrapError(&googleapi.Error{
 32522  			Code:   res.StatusCode,
 32523  			Header: res.Header,
 32524  		})
 32525  	}
 32526  	if err != nil {
 32527  		return nil, err
 32528  	}
 32529  	defer googleapi.CloseBody(res)
 32530  	if err := googleapi.CheckResponse(res); err != nil {
 32531  		return nil, gensupport.WrapError(err)
 32532  	}
 32533  	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
 32534  		ServerResponse: googleapi.ServerResponse{
 32535  			Header:         res.Header,
 32536  			HTTPStatusCode: res.StatusCode,
 32537  		},
 32538  	}
 32539  	target := &ret
 32540  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32541  		return nil, err
 32542  	}
 32543  	return ret, nil
 32544  }
 32545  
 32546  // Pages invokes f for each page of results.
 32547  // A non-nil error returned from f will halt the iteration.
 32548  // The provided context supersedes any context provided to the Context method.
 32549  func (c *ProjectsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
 32550  	c.ctx_ = ctx
 32551  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32552  	for {
 32553  		x, err := c.Do()
 32554  		if err != nil {
 32555  			return err
 32556  		}
 32557  		if err := f(x); err != nil {
 32558  			return err
 32559  		}
 32560  		if x.NextPageToken == "" {
 32561  			return nil
 32562  		}
 32563  		c.PageToken(x.NextPageToken)
 32564  	}
 32565  }
 32566  
 32567  type ProjectsKnowledgeBasesDocumentsPatchCall struct {
 32568  	s                                    *Service
 32569  	name                                 string
 32570  	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
 32571  	urlParams_                           gensupport.URLParams
 32572  	ctx_                                 context.Context
 32573  	header_                              http.Header
 32574  }
 32575  
 32576  // Patch: Updates the specified document. This method is a long-running
 32577  // operation
 32578  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32579  // The returned `Operation` type has the following method-specific fields: -
 32580  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 32581  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 32582  // `projects.knowledgeBases.documents`.
 32583  //
 32584  //   - name: Optional. The document resource name. The name must be empty when
 32585  //     creating a document. Format:
 32586  //     `projects//locations//knowledgeBases//documents/`.
 32587  func (r *ProjectsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsPatchCall {
 32588  	c := &ProjectsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32589  	c.name = name
 32590  	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
 32591  	return c
 32592  }
 32593  
 32594  // UpdateMask sets the optional parameter "updateMask": Not specified means
 32595  // `update all`. Currently, only `display_name` can be updated, an
 32596  // InvalidArgument will be returned for attempting to update other fields.
 32597  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesDocumentsPatchCall {
 32598  	c.urlParams_.Set("updateMask", updateMask)
 32599  	return c
 32600  }
 32601  
 32602  // Fields allows partial responses to be retrieved. See
 32603  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32604  // details.
 32605  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsPatchCall {
 32606  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32607  	return c
 32608  }
 32609  
 32610  // Context sets the context to be used in this call's Do method.
 32611  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsPatchCall {
 32612  	c.ctx_ = ctx
 32613  	return c
 32614  }
 32615  
 32616  // Header returns a http.Header that can be modified by the caller to add
 32617  // headers to the request.
 32618  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
 32619  	if c.header_ == nil {
 32620  		c.header_ = make(http.Header)
 32621  	}
 32622  	return c.header_
 32623  }
 32624  
 32625  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 32626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32627  	var body io.Reader = nil
 32628  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
 32629  	if err != nil {
 32630  		return nil, err
 32631  	}
 32632  	c.urlParams_.Set("alt", alt)
 32633  	c.urlParams_.Set("prettyPrint", "false")
 32634  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 32635  	urls += "?" + c.urlParams_.Encode()
 32636  	req, err := http.NewRequest("PATCH", urls, body)
 32637  	if err != nil {
 32638  		return nil, err
 32639  	}
 32640  	req.Header = reqHeaders
 32641  	googleapi.Expand(req.URL, map[string]string{
 32642  		"name": c.name,
 32643  	})
 32644  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32645  }
 32646  
 32647  // Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call.
 32648  // Any non-2xx status code is an error. Response headers are in either
 32649  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32650  // returned at all) in error.(*googleapi.Error).Header. Use
 32651  // googleapi.IsNotModified to check whether the returned error was because
 32652  // http.StatusNotModified was returned.
 32653  func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32654  	gensupport.SetOptions(c.urlParams_, opts...)
 32655  	res, err := c.doRequest("json")
 32656  	if res != nil && res.StatusCode == http.StatusNotModified {
 32657  		if res.Body != nil {
 32658  			res.Body.Close()
 32659  		}
 32660  		return nil, gensupport.WrapError(&googleapi.Error{
 32661  			Code:   res.StatusCode,
 32662  			Header: res.Header,
 32663  		})
 32664  	}
 32665  	if err != nil {
 32666  		return nil, err
 32667  	}
 32668  	defer googleapi.CloseBody(res)
 32669  	if err := googleapi.CheckResponse(res); err != nil {
 32670  		return nil, gensupport.WrapError(err)
 32671  	}
 32672  	ret := &GoogleLongrunningOperation{
 32673  		ServerResponse: googleapi.ServerResponse{
 32674  			Header:         res.Header,
 32675  			HTTPStatusCode: res.StatusCode,
 32676  		},
 32677  	}
 32678  	target := &ret
 32679  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32680  		return nil, err
 32681  	}
 32682  	return ret, nil
 32683  }
 32684  
 32685  type ProjectsKnowledgeBasesDocumentsReloadCall struct {
 32686  	s                                                 *Service
 32687  	name                                              string
 32688  	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
 32689  	urlParams_                                        gensupport.URLParams
 32690  	ctx_                                              context.Context
 32691  	header_                                           http.Header
 32692  }
 32693  
 32694  // Reload: Reloads the specified document from its specified source,
 32695  // content_uri or content. The previously loaded content of the document will
 32696  // be deleted. Note: Even when the content of the document has not changed,
 32697  // there still may be side effects because of internal implementation changes.
 32698  // Note: If the document source is Google Cloud Storage URI, its metadata will
 32699  // be replaced with the custom metadata from Google Cloud Storage if the
 32700  // `import_gcs_custom_metadata` field is set to true in the request. This
 32701  // method is a long-running operation
 32702  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 32703  // The returned `Operation` type has the following method-specific fields: -
 32704  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 32705  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 32706  // `projects.knowledgeBases.documents`.
 32707  //
 32708  //   - name: The name of the document to reload. Format:
 32709  //     `projects//locations//knowledgeBases//documents/`.
 32710  func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall {
 32711  	c := &ProjectsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32712  	c.name = name
 32713  	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
 32714  	return c
 32715  }
 32716  
 32717  // Fields allows partial responses to be retrieved. See
 32718  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32719  // details.
 32720  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsReloadCall {
 32721  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32722  	return c
 32723  }
 32724  
 32725  // Context sets the context to be used in this call's Do method.
 32726  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsReloadCall {
 32727  	c.ctx_ = ctx
 32728  	return c
 32729  }
 32730  
 32731  // Header returns a http.Header that can be modified by the caller to add
 32732  // headers to the request.
 32733  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
 32734  	if c.header_ == nil {
 32735  		c.header_ = make(http.Header)
 32736  	}
 32737  	return c.header_
 32738  }
 32739  
 32740  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
 32741  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32742  	var body io.Reader = nil
 32743  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
 32744  	if err != nil {
 32745  		return nil, err
 32746  	}
 32747  	c.urlParams_.Set("alt", alt)
 32748  	c.urlParams_.Set("prettyPrint", "false")
 32749  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
 32750  	urls += "?" + c.urlParams_.Encode()
 32751  	req, err := http.NewRequest("POST", urls, body)
 32752  	if err != nil {
 32753  		return nil, err
 32754  	}
 32755  	req.Header = reqHeaders
 32756  	googleapi.Expand(req.URL, map[string]string{
 32757  		"name": c.name,
 32758  	})
 32759  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32760  }
 32761  
 32762  // Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call.
 32763  // Any non-2xx status code is an error. Response headers are in either
 32764  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32765  // returned at all) in error.(*googleapi.Error).Header. Use
 32766  // googleapi.IsNotModified to check whether the returned error was because
 32767  // http.StatusNotModified was returned.
 32768  func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32769  	gensupport.SetOptions(c.urlParams_, opts...)
 32770  	res, err := c.doRequest("json")
 32771  	if res != nil && res.StatusCode == http.StatusNotModified {
 32772  		if res.Body != nil {
 32773  			res.Body.Close()
 32774  		}
 32775  		return nil, gensupport.WrapError(&googleapi.Error{
 32776  			Code:   res.StatusCode,
 32777  			Header: res.Header,
 32778  		})
 32779  	}
 32780  	if err != nil {
 32781  		return nil, err
 32782  	}
 32783  	defer googleapi.CloseBody(res)
 32784  	if err := googleapi.CheckResponse(res); err != nil {
 32785  		return nil, gensupport.WrapError(err)
 32786  	}
 32787  	ret := &GoogleLongrunningOperation{
 32788  		ServerResponse: googleapi.ServerResponse{
 32789  			Header:         res.Header,
 32790  			HTTPStatusCode: res.StatusCode,
 32791  		},
 32792  	}
 32793  	target := &ret
 32794  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32795  		return nil, err
 32796  	}
 32797  	return ret, nil
 32798  }
 32799  
 32800  type ProjectsLocationsDeleteAgentCall struct {
 32801  	s          *Service
 32802  	parent     string
 32803  	urlParams_ gensupport.URLParams
 32804  	ctx_       context.Context
 32805  	header_    http.Header
 32806  }
 32807  
 32808  // DeleteAgent: Deletes the specified agent.
 32809  //
 32810  //   - parent: The project that the agent to delete is associated with. Format:
 32811  //     `projects/` or `projects//locations/`.
 32812  func (r *ProjectsLocationsService) DeleteAgent(parent string) *ProjectsLocationsDeleteAgentCall {
 32813  	c := &ProjectsLocationsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32814  	c.parent = parent
 32815  	return c
 32816  }
 32817  
 32818  // Fields allows partial responses to be retrieved. See
 32819  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32820  // details.
 32821  func (c *ProjectsLocationsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteAgentCall {
 32822  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32823  	return c
 32824  }
 32825  
 32826  // Context sets the context to be used in this call's Do method.
 32827  func (c *ProjectsLocationsDeleteAgentCall) Context(ctx context.Context) *ProjectsLocationsDeleteAgentCall {
 32828  	c.ctx_ = ctx
 32829  	return c
 32830  }
 32831  
 32832  // Header returns a http.Header that can be modified by the caller to add
 32833  // headers to the request.
 32834  func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header {
 32835  	if c.header_ == nil {
 32836  		c.header_ = make(http.Header)
 32837  	}
 32838  	return c.header_
 32839  }
 32840  
 32841  func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
 32842  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32843  	var body io.Reader = nil
 32844  	c.urlParams_.Set("alt", alt)
 32845  	c.urlParams_.Set("prettyPrint", "false")
 32846  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
 32847  	urls += "?" + c.urlParams_.Encode()
 32848  	req, err := http.NewRequest("DELETE", urls, body)
 32849  	if err != nil {
 32850  		return nil, err
 32851  	}
 32852  	req.Header = reqHeaders
 32853  	googleapi.Expand(req.URL, map[string]string{
 32854  		"parent": c.parent,
 32855  	})
 32856  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32857  }
 32858  
 32859  // Do executes the "dialogflow.projects.locations.deleteAgent" call.
 32860  // Any non-2xx status code is an error. Response headers are in either
 32861  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 32862  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 32863  // check whether the returned error was because http.StatusNotModified was
 32864  // returned.
 32865  func (c *ProjectsLocationsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 32866  	gensupport.SetOptions(c.urlParams_, opts...)
 32867  	res, err := c.doRequest("json")
 32868  	if res != nil && res.StatusCode == http.StatusNotModified {
 32869  		if res.Body != nil {
 32870  			res.Body.Close()
 32871  		}
 32872  		return nil, gensupport.WrapError(&googleapi.Error{
 32873  			Code:   res.StatusCode,
 32874  			Header: res.Header,
 32875  		})
 32876  	}
 32877  	if err != nil {
 32878  		return nil, err
 32879  	}
 32880  	defer googleapi.CloseBody(res)
 32881  	if err := googleapi.CheckResponse(res); err != nil {
 32882  		return nil, gensupport.WrapError(err)
 32883  	}
 32884  	ret := &GoogleProtobufEmpty{
 32885  		ServerResponse: googleapi.ServerResponse{
 32886  			Header:         res.Header,
 32887  			HTTPStatusCode: res.StatusCode,
 32888  		},
 32889  	}
 32890  	target := &ret
 32891  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32892  		return nil, err
 32893  	}
 32894  	return ret, nil
 32895  }
 32896  
 32897  type ProjectsLocationsGetCall struct {
 32898  	s            *Service
 32899  	name         string
 32900  	urlParams_   gensupport.URLParams
 32901  	ifNoneMatch_ string
 32902  	ctx_         context.Context
 32903  	header_      http.Header
 32904  }
 32905  
 32906  // Get: Gets information about a location.
 32907  //
 32908  // - name: Resource name for the location.
 32909  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
 32910  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32911  	c.name = name
 32912  	return c
 32913  }
 32914  
 32915  // Fields allows partial responses to be retrieved. See
 32916  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32917  // details.
 32918  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
 32919  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32920  	return c
 32921  }
 32922  
 32923  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32924  // object's ETag matches the given value. This is useful for getting updates
 32925  // only after the object has changed since the last request.
 32926  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
 32927  	c.ifNoneMatch_ = entityTag
 32928  	return c
 32929  }
 32930  
 32931  // Context sets the context to be used in this call's Do method.
 32932  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
 32933  	c.ctx_ = ctx
 32934  	return c
 32935  }
 32936  
 32937  // Header returns a http.Header that can be modified by the caller to add
 32938  // headers to the request.
 32939  func (c *ProjectsLocationsGetCall) Header() http.Header {
 32940  	if c.header_ == nil {
 32941  		c.header_ = make(http.Header)
 32942  	}
 32943  	return c.header_
 32944  }
 32945  
 32946  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
 32947  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32948  	if c.ifNoneMatch_ != "" {
 32949  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32950  	}
 32951  	var body io.Reader = nil
 32952  	c.urlParams_.Set("alt", alt)
 32953  	c.urlParams_.Set("prettyPrint", "false")
 32954  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 32955  	urls += "?" + c.urlParams_.Encode()
 32956  	req, err := http.NewRequest("GET", urls, body)
 32957  	if err != nil {
 32958  		return nil, err
 32959  	}
 32960  	req.Header = reqHeaders
 32961  	googleapi.Expand(req.URL, map[string]string{
 32962  		"name": c.name,
 32963  	})
 32964  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32965  }
 32966  
 32967  // Do executes the "dialogflow.projects.locations.get" call.
 32968  // Any non-2xx status code is an error. Response headers are in either
 32969  // *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was
 32970  // returned at all) in error.(*googleapi.Error).Header. Use
 32971  // googleapi.IsNotModified to check whether the returned error was because
 32972  // http.StatusNotModified was returned.
 32973  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
 32974  	gensupport.SetOptions(c.urlParams_, opts...)
 32975  	res, err := c.doRequest("json")
 32976  	if res != nil && res.StatusCode == http.StatusNotModified {
 32977  		if res.Body != nil {
 32978  			res.Body.Close()
 32979  		}
 32980  		return nil, gensupport.WrapError(&googleapi.Error{
 32981  			Code:   res.StatusCode,
 32982  			Header: res.Header,
 32983  		})
 32984  	}
 32985  	if err != nil {
 32986  		return nil, err
 32987  	}
 32988  	defer googleapi.CloseBody(res)
 32989  	if err := googleapi.CheckResponse(res); err != nil {
 32990  		return nil, gensupport.WrapError(err)
 32991  	}
 32992  	ret := &GoogleCloudLocationLocation{
 32993  		ServerResponse: googleapi.ServerResponse{
 32994  			Header:         res.Header,
 32995  			HTTPStatusCode: res.StatusCode,
 32996  		},
 32997  	}
 32998  	target := &ret
 32999  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33000  		return nil, err
 33001  	}
 33002  	return ret, nil
 33003  }
 33004  
 33005  type ProjectsLocationsGetAgentCall struct {
 33006  	s            *Service
 33007  	parent       string
 33008  	urlParams_   gensupport.URLParams
 33009  	ifNoneMatch_ string
 33010  	ctx_         context.Context
 33011  	header_      http.Header
 33012  }
 33013  
 33014  // GetAgent: Retrieves the specified agent.
 33015  //
 33016  //   - parent: The project that the agent to fetch is associated with. Format:
 33017  //     `projects/` or `projects//locations/`.
 33018  func (r *ProjectsLocationsService) GetAgent(parent string) *ProjectsLocationsGetAgentCall {
 33019  	c := &ProjectsLocationsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33020  	c.parent = parent
 33021  	return c
 33022  }
 33023  
 33024  // Fields allows partial responses to be retrieved. See
 33025  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33026  // details.
 33027  func (c *ProjectsLocationsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAgentCall {
 33028  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33029  	return c
 33030  }
 33031  
 33032  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33033  // object's ETag matches the given value. This is useful for getting updates
 33034  // only after the object has changed since the last request.
 33035  func (c *ProjectsLocationsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAgentCall {
 33036  	c.ifNoneMatch_ = entityTag
 33037  	return c
 33038  }
 33039  
 33040  // Context sets the context to be used in this call's Do method.
 33041  func (c *ProjectsLocationsGetAgentCall) Context(ctx context.Context) *ProjectsLocationsGetAgentCall {
 33042  	c.ctx_ = ctx
 33043  	return c
 33044  }
 33045  
 33046  // Header returns a http.Header that can be modified by the caller to add
 33047  // headers to the request.
 33048  func (c *ProjectsLocationsGetAgentCall) Header() http.Header {
 33049  	if c.header_ == nil {
 33050  		c.header_ = make(http.Header)
 33051  	}
 33052  	return c.header_
 33053  }
 33054  
 33055  func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) {
 33056  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33057  	if c.ifNoneMatch_ != "" {
 33058  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33059  	}
 33060  	var body io.Reader = nil
 33061  	c.urlParams_.Set("alt", alt)
 33062  	c.urlParams_.Set("prettyPrint", "false")
 33063  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
 33064  	urls += "?" + c.urlParams_.Encode()
 33065  	req, err := http.NewRequest("GET", urls, body)
 33066  	if err != nil {
 33067  		return nil, err
 33068  	}
 33069  	req.Header = reqHeaders
 33070  	googleapi.Expand(req.URL, map[string]string{
 33071  		"parent": c.parent,
 33072  	})
 33073  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33074  }
 33075  
 33076  // Do executes the "dialogflow.projects.locations.getAgent" call.
 33077  // Any non-2xx status code is an error. Response headers are in either
 33078  // *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a response
 33079  // was returned at all) in error.(*googleapi.Error).Header. Use
 33080  // googleapi.IsNotModified to check whether the returned error was because
 33081  // http.StatusNotModified was returned.
 33082  func (c *ProjectsLocationsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
 33083  	gensupport.SetOptions(c.urlParams_, opts...)
 33084  	res, err := c.doRequest("json")
 33085  	if res != nil && res.StatusCode == http.StatusNotModified {
 33086  		if res.Body != nil {
 33087  			res.Body.Close()
 33088  		}
 33089  		return nil, gensupport.WrapError(&googleapi.Error{
 33090  			Code:   res.StatusCode,
 33091  			Header: res.Header,
 33092  		})
 33093  	}
 33094  	if err != nil {
 33095  		return nil, err
 33096  	}
 33097  	defer googleapi.CloseBody(res)
 33098  	if err := googleapi.CheckResponse(res); err != nil {
 33099  		return nil, gensupport.WrapError(err)
 33100  	}
 33101  	ret := &GoogleCloudDialogflowV2beta1Agent{
 33102  		ServerResponse: googleapi.ServerResponse{
 33103  			Header:         res.Header,
 33104  			HTTPStatusCode: res.StatusCode,
 33105  		},
 33106  	}
 33107  	target := &ret
 33108  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33109  		return nil, err
 33110  	}
 33111  	return ret, nil
 33112  }
 33113  
 33114  type ProjectsLocationsListCall struct {
 33115  	s            *Service
 33116  	name         string
 33117  	urlParams_   gensupport.URLParams
 33118  	ifNoneMatch_ string
 33119  	ctx_         context.Context
 33120  	header_      http.Header
 33121  }
 33122  
 33123  // List: Lists information about the supported locations for this service.
 33124  //
 33125  // - name: The resource that owns the locations collection, if applicable.
 33126  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
 33127  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33128  	c.name = name
 33129  	return c
 33130  }
 33131  
 33132  // Filter sets the optional parameter "filter": A filter to narrow down results
 33133  // to a preferred subset. The filtering language accepts strings like
 33134  // "displayName=tokyo", and is documented in more detail in AIP-160
 33135  // (https://google.aip.dev/160).
 33136  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
 33137  	c.urlParams_.Set("filter", filter)
 33138  	return c
 33139  }
 33140  
 33141  // PageSize sets the optional parameter "pageSize": The maximum number of
 33142  // results to return. If not set, the service selects a default.
 33143  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
 33144  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33145  	return c
 33146  }
 33147  
 33148  // PageToken sets the optional parameter "pageToken": A page token received
 33149  // from the `next_page_token` field in the response. Send that page token to
 33150  // receive the subsequent page.
 33151  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
 33152  	c.urlParams_.Set("pageToken", pageToken)
 33153  	return c
 33154  }
 33155  
 33156  // Fields allows partial responses to be retrieved. See
 33157  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33158  // details.
 33159  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
 33160  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33161  	return c
 33162  }
 33163  
 33164  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33165  // object's ETag matches the given value. This is useful for getting updates
 33166  // only after the object has changed since the last request.
 33167  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
 33168  	c.ifNoneMatch_ = entityTag
 33169  	return c
 33170  }
 33171  
 33172  // Context sets the context to be used in this call's Do method.
 33173  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
 33174  	c.ctx_ = ctx
 33175  	return c
 33176  }
 33177  
 33178  // Header returns a http.Header that can be modified by the caller to add
 33179  // headers to the request.
 33180  func (c *ProjectsLocationsListCall) Header() http.Header {
 33181  	if c.header_ == nil {
 33182  		c.header_ = make(http.Header)
 33183  	}
 33184  	return c.header_
 33185  }
 33186  
 33187  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
 33188  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33189  	if c.ifNoneMatch_ != "" {
 33190  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33191  	}
 33192  	var body io.Reader = nil
 33193  	c.urlParams_.Set("alt", alt)
 33194  	c.urlParams_.Set("prettyPrint", "false")
 33195  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/locations")
 33196  	urls += "?" + c.urlParams_.Encode()
 33197  	req, err := http.NewRequest("GET", urls, body)
 33198  	if err != nil {
 33199  		return nil, err
 33200  	}
 33201  	req.Header = reqHeaders
 33202  	googleapi.Expand(req.URL, map[string]string{
 33203  		"name": c.name,
 33204  	})
 33205  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33206  }
 33207  
 33208  // Do executes the "dialogflow.projects.locations.list" call.
 33209  // Any non-2xx status code is an error. Response headers are in either
 33210  // *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a
 33211  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33212  // googleapi.IsNotModified to check whether the returned error was because
 33213  // http.StatusNotModified was returned.
 33214  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
 33215  	gensupport.SetOptions(c.urlParams_, opts...)
 33216  	res, err := c.doRequest("json")
 33217  	if res != nil && res.StatusCode == http.StatusNotModified {
 33218  		if res.Body != nil {
 33219  			res.Body.Close()
 33220  		}
 33221  		return nil, gensupport.WrapError(&googleapi.Error{
 33222  			Code:   res.StatusCode,
 33223  			Header: res.Header,
 33224  		})
 33225  	}
 33226  	if err != nil {
 33227  		return nil, err
 33228  	}
 33229  	defer googleapi.CloseBody(res)
 33230  	if err := googleapi.CheckResponse(res); err != nil {
 33231  		return nil, gensupport.WrapError(err)
 33232  	}
 33233  	ret := &GoogleCloudLocationListLocationsResponse{
 33234  		ServerResponse: googleapi.ServerResponse{
 33235  			Header:         res.Header,
 33236  			HTTPStatusCode: res.StatusCode,
 33237  		},
 33238  	}
 33239  	target := &ret
 33240  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33241  		return nil, err
 33242  	}
 33243  	return ret, nil
 33244  }
 33245  
 33246  // Pages invokes f for each page of results.
 33247  // A non-nil error returned from f will halt the iteration.
 33248  // The provided context supersedes any context provided to the Context method.
 33249  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
 33250  	c.ctx_ = ctx
 33251  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33252  	for {
 33253  		x, err := c.Do()
 33254  		if err != nil {
 33255  			return err
 33256  		}
 33257  		if err := f(x); err != nil {
 33258  			return err
 33259  		}
 33260  		if x.NextPageToken == "" {
 33261  			return nil
 33262  		}
 33263  		c.PageToken(x.NextPageToken)
 33264  	}
 33265  }
 33266  
 33267  type ProjectsLocationsSetAgentCall struct {
 33268  	s                                 *Service
 33269  	parent                            string
 33270  	googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
 33271  	urlParams_                        gensupport.URLParams
 33272  	ctx_                              context.Context
 33273  	header_                           http.Header
 33274  }
 33275  
 33276  // SetAgent: Creates/updates the specified agent. Note: You should always train
 33277  // an agent prior to sending it queries. See the training documentation
 33278  // (https://cloud.google.com/dialogflow/es/docs/training).
 33279  //
 33280  //   - parent: The project of this agent. Format: `projects/` or
 33281  //     `projects//locations/`.
 33282  func (r *ProjectsLocationsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsLocationsSetAgentCall {
 33283  	c := &ProjectsLocationsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33284  	c.parent = parent
 33285  	c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
 33286  	return c
 33287  }
 33288  
 33289  // UpdateMask sets the optional parameter "updateMask": The mask to control
 33290  // which fields get updated.
 33291  func (c *ProjectsLocationsSetAgentCall) UpdateMask(updateMask string) *ProjectsLocationsSetAgentCall {
 33292  	c.urlParams_.Set("updateMask", updateMask)
 33293  	return c
 33294  }
 33295  
 33296  // Fields allows partial responses to be retrieved. See
 33297  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33298  // details.
 33299  func (c *ProjectsLocationsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetAgentCall {
 33300  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33301  	return c
 33302  }
 33303  
 33304  // Context sets the context to be used in this call's Do method.
 33305  func (c *ProjectsLocationsSetAgentCall) Context(ctx context.Context) *ProjectsLocationsSetAgentCall {
 33306  	c.ctx_ = ctx
 33307  	return c
 33308  }
 33309  
 33310  // Header returns a http.Header that can be modified by the caller to add
 33311  // headers to the request.
 33312  func (c *ProjectsLocationsSetAgentCall) Header() http.Header {
 33313  	if c.header_ == nil {
 33314  		c.header_ = make(http.Header)
 33315  	}
 33316  	return c.header_
 33317  }
 33318  
 33319  func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) {
 33320  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33321  	var body io.Reader = nil
 33322  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
 33323  	if err != nil {
 33324  		return nil, err
 33325  	}
 33326  	c.urlParams_.Set("alt", alt)
 33327  	c.urlParams_.Set("prettyPrint", "false")
 33328  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
 33329  	urls += "?" + c.urlParams_.Encode()
 33330  	req, err := http.NewRequest("POST", urls, body)
 33331  	if err != nil {
 33332  		return nil, err
 33333  	}
 33334  	req.Header = reqHeaders
 33335  	googleapi.Expand(req.URL, map[string]string{
 33336  		"parent": c.parent,
 33337  	})
 33338  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33339  }
 33340  
 33341  // Do executes the "dialogflow.projects.locations.setAgent" call.
 33342  // Any non-2xx status code is an error. Response headers are in either
 33343  // *GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a response
 33344  // was returned at all) in error.(*googleapi.Error).Header. Use
 33345  // googleapi.IsNotModified to check whether the returned error was because
 33346  // http.StatusNotModified was returned.
 33347  func (c *ProjectsLocationsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
 33348  	gensupport.SetOptions(c.urlParams_, opts...)
 33349  	res, err := c.doRequest("json")
 33350  	if res != nil && res.StatusCode == http.StatusNotModified {
 33351  		if res.Body != nil {
 33352  			res.Body.Close()
 33353  		}
 33354  		return nil, gensupport.WrapError(&googleapi.Error{
 33355  			Code:   res.StatusCode,
 33356  			Header: res.Header,
 33357  		})
 33358  	}
 33359  	if err != nil {
 33360  		return nil, err
 33361  	}
 33362  	defer googleapi.CloseBody(res)
 33363  	if err := googleapi.CheckResponse(res); err != nil {
 33364  		return nil, gensupport.WrapError(err)
 33365  	}
 33366  	ret := &GoogleCloudDialogflowV2beta1Agent{
 33367  		ServerResponse: googleapi.ServerResponse{
 33368  			Header:         res.Header,
 33369  			HTTPStatusCode: res.StatusCode,
 33370  		},
 33371  	}
 33372  	target := &ret
 33373  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33374  		return nil, err
 33375  	}
 33376  	return ret, nil
 33377  }
 33378  
 33379  type ProjectsLocationsAgentExportCall struct {
 33380  	s                                              *Service
 33381  	parent                                         string
 33382  	googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
 33383  	urlParams_                                     gensupport.URLParams
 33384  	ctx_                                           context.Context
 33385  	header_                                        http.Header
 33386  }
 33387  
 33388  // Export: Exports the specified agent to a ZIP file. This method is a
 33389  // long-running operation
 33390  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 33391  // The returned `Operation` type has the following method-specific fields: -
 33392  // `metadata`: An empty Struct message
 33393  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 33394  // - `response`: ExportAgentResponse
 33395  //
 33396  //   - parent: The project that the agent to export is associated with. Format:
 33397  //     `projects/` or `projects//locations/`.
 33398  func (r *ProjectsLocationsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsLocationsAgentExportCall {
 33399  	c := &ProjectsLocationsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33400  	c.parent = parent
 33401  	c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
 33402  	return c
 33403  }
 33404  
 33405  // Fields allows partial responses to be retrieved. See
 33406  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33407  // details.
 33408  func (c *ProjectsLocationsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentExportCall {
 33409  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33410  	return c
 33411  }
 33412  
 33413  // Context sets the context to be used in this call's Do method.
 33414  func (c *ProjectsLocationsAgentExportCall) Context(ctx context.Context) *ProjectsLocationsAgentExportCall {
 33415  	c.ctx_ = ctx
 33416  	return c
 33417  }
 33418  
 33419  // Header returns a http.Header that can be modified by the caller to add
 33420  // headers to the request.
 33421  func (c *ProjectsLocationsAgentExportCall) Header() http.Header {
 33422  	if c.header_ == nil {
 33423  		c.header_ = make(http.Header)
 33424  	}
 33425  	return c.header_
 33426  }
 33427  
 33428  func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) {
 33429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33430  	var body io.Reader = nil
 33431  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
 33432  	if err != nil {
 33433  		return nil, err
 33434  	}
 33435  	c.urlParams_.Set("alt", alt)
 33436  	c.urlParams_.Set("prettyPrint", "false")
 33437  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
 33438  	urls += "?" + c.urlParams_.Encode()
 33439  	req, err := http.NewRequest("POST", urls, body)
 33440  	if err != nil {
 33441  		return nil, err
 33442  	}
 33443  	req.Header = reqHeaders
 33444  	googleapi.Expand(req.URL, map[string]string{
 33445  		"parent": c.parent,
 33446  	})
 33447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33448  }
 33449  
 33450  // Do executes the "dialogflow.projects.locations.agent.export" call.
 33451  // Any non-2xx status code is an error. Response headers are in either
 33452  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33453  // returned at all) in error.(*googleapi.Error).Header. Use
 33454  // googleapi.IsNotModified to check whether the returned error was because
 33455  // http.StatusNotModified was returned.
 33456  func (c *ProjectsLocationsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33457  	gensupport.SetOptions(c.urlParams_, opts...)
 33458  	res, err := c.doRequest("json")
 33459  	if res != nil && res.StatusCode == http.StatusNotModified {
 33460  		if res.Body != nil {
 33461  			res.Body.Close()
 33462  		}
 33463  		return nil, gensupport.WrapError(&googleapi.Error{
 33464  			Code:   res.StatusCode,
 33465  			Header: res.Header,
 33466  		})
 33467  	}
 33468  	if err != nil {
 33469  		return nil, err
 33470  	}
 33471  	defer googleapi.CloseBody(res)
 33472  	if err := googleapi.CheckResponse(res); err != nil {
 33473  		return nil, gensupport.WrapError(err)
 33474  	}
 33475  	ret := &GoogleLongrunningOperation{
 33476  		ServerResponse: googleapi.ServerResponse{
 33477  			Header:         res.Header,
 33478  			HTTPStatusCode: res.StatusCode,
 33479  		},
 33480  	}
 33481  	target := &ret
 33482  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33483  		return nil, err
 33484  	}
 33485  	return ret, nil
 33486  }
 33487  
 33488  type ProjectsLocationsAgentGetFulfillmentCall struct {
 33489  	s            *Service
 33490  	name         string
 33491  	urlParams_   gensupport.URLParams
 33492  	ifNoneMatch_ string
 33493  	ctx_         context.Context
 33494  	header_      http.Header
 33495  }
 33496  
 33497  // GetFulfillment: Retrieves the fulfillment.
 33498  //
 33499  //   - name: The name of the fulfillment. Supported formats: -
 33500  //     `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`.
 33501  func (r *ProjectsLocationsAgentService) GetFulfillment(name string) *ProjectsLocationsAgentGetFulfillmentCall {
 33502  	c := &ProjectsLocationsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33503  	c.name = name
 33504  	return c
 33505  }
 33506  
 33507  // Fields allows partial responses to be retrieved. See
 33508  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33509  // details.
 33510  func (c *ProjectsLocationsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetFulfillmentCall {
 33511  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33512  	return c
 33513  }
 33514  
 33515  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33516  // object's ETag matches the given value. This is useful for getting updates
 33517  // only after the object has changed since the last request.
 33518  func (c *ProjectsLocationsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetFulfillmentCall {
 33519  	c.ifNoneMatch_ = entityTag
 33520  	return c
 33521  }
 33522  
 33523  // Context sets the context to be used in this call's Do method.
 33524  func (c *ProjectsLocationsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentGetFulfillmentCall {
 33525  	c.ctx_ = ctx
 33526  	return c
 33527  }
 33528  
 33529  // Header returns a http.Header that can be modified by the caller to add
 33530  // headers to the request.
 33531  func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header {
 33532  	if c.header_ == nil {
 33533  		c.header_ = make(http.Header)
 33534  	}
 33535  	return c.header_
 33536  }
 33537  
 33538  func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 33539  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33540  	if c.ifNoneMatch_ != "" {
 33541  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33542  	}
 33543  	var body io.Reader = nil
 33544  	c.urlParams_.Set("alt", alt)
 33545  	c.urlParams_.Set("prettyPrint", "false")
 33546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 33547  	urls += "?" + c.urlParams_.Encode()
 33548  	req, err := http.NewRequest("GET", urls, body)
 33549  	if err != nil {
 33550  		return nil, err
 33551  	}
 33552  	req.Header = reqHeaders
 33553  	googleapi.Expand(req.URL, map[string]string{
 33554  		"name": c.name,
 33555  	})
 33556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33557  }
 33558  
 33559  // Do executes the "dialogflow.projects.locations.agent.getFulfillment" call.
 33560  // Any non-2xx status code is an error. Response headers are in either
 33561  // *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if a
 33562  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33563  // googleapi.IsNotModified to check whether the returned error was because
 33564  // http.StatusNotModified was returned.
 33565  func (c *ProjectsLocationsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
 33566  	gensupport.SetOptions(c.urlParams_, opts...)
 33567  	res, err := c.doRequest("json")
 33568  	if res != nil && res.StatusCode == http.StatusNotModified {
 33569  		if res.Body != nil {
 33570  			res.Body.Close()
 33571  		}
 33572  		return nil, gensupport.WrapError(&googleapi.Error{
 33573  			Code:   res.StatusCode,
 33574  			Header: res.Header,
 33575  		})
 33576  	}
 33577  	if err != nil {
 33578  		return nil, err
 33579  	}
 33580  	defer googleapi.CloseBody(res)
 33581  	if err := googleapi.CheckResponse(res); err != nil {
 33582  		return nil, gensupport.WrapError(err)
 33583  	}
 33584  	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
 33585  		ServerResponse: googleapi.ServerResponse{
 33586  			Header:         res.Header,
 33587  			HTTPStatusCode: res.StatusCode,
 33588  		},
 33589  	}
 33590  	target := &ret
 33591  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33592  		return nil, err
 33593  	}
 33594  	return ret, nil
 33595  }
 33596  
 33597  type ProjectsLocationsAgentGetValidationResultCall struct {
 33598  	s            *Service
 33599  	parent       string
 33600  	urlParams_   gensupport.URLParams
 33601  	ifNoneMatch_ string
 33602  	ctx_         context.Context
 33603  	header_      http.Header
 33604  }
 33605  
 33606  // GetValidationResult: Gets agent validation result. Agent validation is
 33607  // performed during training time and is updated automatically when training is
 33608  // completed.
 33609  //
 33610  //   - parent: The project that the agent is associated with. Format: `projects/`
 33611  //     or `projects//locations/`.
 33612  func (r *ProjectsLocationsAgentService) GetValidationResult(parent string) *ProjectsLocationsAgentGetValidationResultCall {
 33613  	c := &ProjectsLocationsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33614  	c.parent = parent
 33615  	return c
 33616  }
 33617  
 33618  // LanguageCode sets the optional parameter "languageCode": The language for
 33619  // which you want a validation result. If not specified, the agent's default
 33620  // language is used. Many languages
 33621  // (https://cloud.google.com/dialogflow/docs/reference/language) are supported.
 33622  // Note: languages must be enabled in the agent before they can be used.
 33623  func (c *ProjectsLocationsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentGetValidationResultCall {
 33624  	c.urlParams_.Set("languageCode", languageCode)
 33625  	return c
 33626  }
 33627  
 33628  // Fields allows partial responses to be retrieved. See
 33629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33630  // details.
 33631  func (c *ProjectsLocationsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetValidationResultCall {
 33632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33633  	return c
 33634  }
 33635  
 33636  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33637  // object's ETag matches the given value. This is useful for getting updates
 33638  // only after the object has changed since the last request.
 33639  func (c *ProjectsLocationsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetValidationResultCall {
 33640  	c.ifNoneMatch_ = entityTag
 33641  	return c
 33642  }
 33643  
 33644  // Context sets the context to be used in this call's Do method.
 33645  func (c *ProjectsLocationsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentGetValidationResultCall {
 33646  	c.ctx_ = ctx
 33647  	return c
 33648  }
 33649  
 33650  // Header returns a http.Header that can be modified by the caller to add
 33651  // headers to the request.
 33652  func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header {
 33653  	if c.header_ == nil {
 33654  		c.header_ = make(http.Header)
 33655  	}
 33656  	return c.header_
 33657  }
 33658  
 33659  func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
 33660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33661  	if c.ifNoneMatch_ != "" {
 33662  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33663  	}
 33664  	var body io.Reader = nil
 33665  	c.urlParams_.Set("alt", alt)
 33666  	c.urlParams_.Set("prettyPrint", "false")
 33667  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
 33668  	urls += "?" + c.urlParams_.Encode()
 33669  	req, err := http.NewRequest("GET", urls, body)
 33670  	if err != nil {
 33671  		return nil, err
 33672  	}
 33673  	req.Header = reqHeaders
 33674  	googleapi.Expand(req.URL, map[string]string{
 33675  		"parent": c.parent,
 33676  	})
 33677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33678  }
 33679  
 33680  // Do executes the "dialogflow.projects.locations.agent.getValidationResult" call.
 33681  // Any non-2xx status code is an error. Response headers are in either
 33682  // *GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header or (if a
 33683  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33684  // googleapi.IsNotModified to check whether the returned error was because
 33685  // http.StatusNotModified was returned.
 33686  func (c *ProjectsLocationsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
 33687  	gensupport.SetOptions(c.urlParams_, opts...)
 33688  	res, err := c.doRequest("json")
 33689  	if res != nil && res.StatusCode == http.StatusNotModified {
 33690  		if res.Body != nil {
 33691  			res.Body.Close()
 33692  		}
 33693  		return nil, gensupport.WrapError(&googleapi.Error{
 33694  			Code:   res.StatusCode,
 33695  			Header: res.Header,
 33696  		})
 33697  	}
 33698  	if err != nil {
 33699  		return nil, err
 33700  	}
 33701  	defer googleapi.CloseBody(res)
 33702  	if err := googleapi.CheckResponse(res); err != nil {
 33703  		return nil, gensupport.WrapError(err)
 33704  	}
 33705  	ret := &GoogleCloudDialogflowV2beta1ValidationResult{
 33706  		ServerResponse: googleapi.ServerResponse{
 33707  			Header:         res.Header,
 33708  			HTTPStatusCode: res.StatusCode,
 33709  		},
 33710  	}
 33711  	target := &ret
 33712  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33713  		return nil, err
 33714  	}
 33715  	return ret, nil
 33716  }
 33717  
 33718  type ProjectsLocationsAgentImportCall struct {
 33719  	s                                              *Service
 33720  	parent                                         string
 33721  	googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
 33722  	urlParams_                                     gensupport.URLParams
 33723  	ctx_                                           context.Context
 33724  	header_                                        http.Header
 33725  }
 33726  
 33727  // Import: Imports the specified agent from a ZIP file. Uploads new intents and
 33728  // entity types without deleting the existing ones. Intents and entity types
 33729  // with the same name are replaced with the new versions from
 33730  // ImportAgentRequest. After the import, the imported draft agent will be
 33731  // trained automatically (unless disabled in agent settings). However, once the
 33732  // import is done, training may not be completed yet. Please call TrainAgent
 33733  // and wait for the operation it returns in order to train explicitly. This
 33734  // method is a long-running operation
 33735  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 33736  // The returned `Operation` type has the following method-specific fields: -
 33737  // `metadata`: An empty Struct message
 33738  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 33739  // - `response`: An Empty message
 33740  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 33741  // The operation only tracks when importing is complete, not when it is done
 33742  // training. Note: You should always train an agent prior to sending it
 33743  // queries. See the training documentation
 33744  // (https://cloud.google.com/dialogflow/es/docs/training).
 33745  //
 33746  //   - parent: The project that the agent to import is associated with. Format:
 33747  //     `projects/` or `projects//locations/`.
 33748  func (r *ProjectsLocationsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsLocationsAgentImportCall {
 33749  	c := &ProjectsLocationsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33750  	c.parent = parent
 33751  	c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
 33752  	return c
 33753  }
 33754  
 33755  // Fields allows partial responses to be retrieved. See
 33756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33757  // details.
 33758  func (c *ProjectsLocationsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentImportCall {
 33759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33760  	return c
 33761  }
 33762  
 33763  // Context sets the context to be used in this call's Do method.
 33764  func (c *ProjectsLocationsAgentImportCall) Context(ctx context.Context) *ProjectsLocationsAgentImportCall {
 33765  	c.ctx_ = ctx
 33766  	return c
 33767  }
 33768  
 33769  // Header returns a http.Header that can be modified by the caller to add
 33770  // headers to the request.
 33771  func (c *ProjectsLocationsAgentImportCall) Header() http.Header {
 33772  	if c.header_ == nil {
 33773  		c.header_ = make(http.Header)
 33774  	}
 33775  	return c.header_
 33776  }
 33777  
 33778  func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) {
 33779  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33780  	var body io.Reader = nil
 33781  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
 33782  	if err != nil {
 33783  		return nil, err
 33784  	}
 33785  	c.urlParams_.Set("alt", alt)
 33786  	c.urlParams_.Set("prettyPrint", "false")
 33787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
 33788  	urls += "?" + c.urlParams_.Encode()
 33789  	req, err := http.NewRequest("POST", urls, body)
 33790  	if err != nil {
 33791  		return nil, err
 33792  	}
 33793  	req.Header = reqHeaders
 33794  	googleapi.Expand(req.URL, map[string]string{
 33795  		"parent": c.parent,
 33796  	})
 33797  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33798  }
 33799  
 33800  // Do executes the "dialogflow.projects.locations.agent.import" call.
 33801  // Any non-2xx status code is an error. Response headers are in either
 33802  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33803  // returned at all) in error.(*googleapi.Error).Header. Use
 33804  // googleapi.IsNotModified to check whether the returned error was because
 33805  // http.StatusNotModified was returned.
 33806  func (c *ProjectsLocationsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33807  	gensupport.SetOptions(c.urlParams_, opts...)
 33808  	res, err := c.doRequest("json")
 33809  	if res != nil && res.StatusCode == http.StatusNotModified {
 33810  		if res.Body != nil {
 33811  			res.Body.Close()
 33812  		}
 33813  		return nil, gensupport.WrapError(&googleapi.Error{
 33814  			Code:   res.StatusCode,
 33815  			Header: res.Header,
 33816  		})
 33817  	}
 33818  	if err != nil {
 33819  		return nil, err
 33820  	}
 33821  	defer googleapi.CloseBody(res)
 33822  	if err := googleapi.CheckResponse(res); err != nil {
 33823  		return nil, gensupport.WrapError(err)
 33824  	}
 33825  	ret := &GoogleLongrunningOperation{
 33826  		ServerResponse: googleapi.ServerResponse{
 33827  			Header:         res.Header,
 33828  			HTTPStatusCode: res.StatusCode,
 33829  		},
 33830  	}
 33831  	target := &ret
 33832  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33833  		return nil, err
 33834  	}
 33835  	return ret, nil
 33836  }
 33837  
 33838  type ProjectsLocationsAgentRestoreCall struct {
 33839  	s                                               *Service
 33840  	parent                                          string
 33841  	googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
 33842  	urlParams_                                      gensupport.URLParams
 33843  	ctx_                                            context.Context
 33844  	header_                                         http.Header
 33845  }
 33846  
 33847  // Restore: Restores the specified agent from a ZIP file. Replaces the current
 33848  // agent version with a new one. All the intents and entity types in the older
 33849  // version are deleted. After the restore, the restored draft agent will be
 33850  // trained automatically (unless disabled in agent settings). However, once the
 33851  // restore is done, training may not be completed yet. Please call TrainAgent
 33852  // and wait for the operation it returns in order to train explicitly. This
 33853  // method is a long-running operation
 33854  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 33855  // The returned `Operation` type has the following method-specific fields: -
 33856  // `metadata`: An empty Struct message
 33857  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 33858  // - `response`: An Empty message
 33859  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 33860  // The operation only tracks when restoring is complete, not when it is done
 33861  // training. Note: You should always train an agent prior to sending it
 33862  // queries. See the training documentation
 33863  // (https://cloud.google.com/dialogflow/es/docs/training).
 33864  //
 33865  //   - parent: The project that the agent to restore is associated with. Format:
 33866  //     `projects/` or `projects//locations/`.
 33867  func (r *ProjectsLocationsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall {
 33868  	c := &ProjectsLocationsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33869  	c.parent = parent
 33870  	c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
 33871  	return c
 33872  }
 33873  
 33874  // Fields allows partial responses to be retrieved. See
 33875  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33876  // details.
 33877  func (c *ProjectsLocationsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentRestoreCall {
 33878  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33879  	return c
 33880  }
 33881  
 33882  // Context sets the context to be used in this call's Do method.
 33883  func (c *ProjectsLocationsAgentRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentRestoreCall {
 33884  	c.ctx_ = ctx
 33885  	return c
 33886  }
 33887  
 33888  // Header returns a http.Header that can be modified by the caller to add
 33889  // headers to the request.
 33890  func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header {
 33891  	if c.header_ == nil {
 33892  		c.header_ = make(http.Header)
 33893  	}
 33894  	return c.header_
 33895  }
 33896  
 33897  func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
 33898  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33899  	var body io.Reader = nil
 33900  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
 33901  	if err != nil {
 33902  		return nil, err
 33903  	}
 33904  	c.urlParams_.Set("alt", alt)
 33905  	c.urlParams_.Set("prettyPrint", "false")
 33906  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
 33907  	urls += "?" + c.urlParams_.Encode()
 33908  	req, err := http.NewRequest("POST", urls, body)
 33909  	if err != nil {
 33910  		return nil, err
 33911  	}
 33912  	req.Header = reqHeaders
 33913  	googleapi.Expand(req.URL, map[string]string{
 33914  		"parent": c.parent,
 33915  	})
 33916  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33917  }
 33918  
 33919  // Do executes the "dialogflow.projects.locations.agent.restore" call.
 33920  // Any non-2xx status code is an error. Response headers are in either
 33921  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33922  // returned at all) in error.(*googleapi.Error).Header. Use
 33923  // googleapi.IsNotModified to check whether the returned error was because
 33924  // http.StatusNotModified was returned.
 33925  func (c *ProjectsLocationsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33926  	gensupport.SetOptions(c.urlParams_, opts...)
 33927  	res, err := c.doRequest("json")
 33928  	if res != nil && res.StatusCode == http.StatusNotModified {
 33929  		if res.Body != nil {
 33930  			res.Body.Close()
 33931  		}
 33932  		return nil, gensupport.WrapError(&googleapi.Error{
 33933  			Code:   res.StatusCode,
 33934  			Header: res.Header,
 33935  		})
 33936  	}
 33937  	if err != nil {
 33938  		return nil, err
 33939  	}
 33940  	defer googleapi.CloseBody(res)
 33941  	if err := googleapi.CheckResponse(res); err != nil {
 33942  		return nil, gensupport.WrapError(err)
 33943  	}
 33944  	ret := &GoogleLongrunningOperation{
 33945  		ServerResponse: googleapi.ServerResponse{
 33946  			Header:         res.Header,
 33947  			HTTPStatusCode: res.StatusCode,
 33948  		},
 33949  	}
 33950  	target := &ret
 33951  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33952  		return nil, err
 33953  	}
 33954  	return ret, nil
 33955  }
 33956  
 33957  type ProjectsLocationsAgentSearchCall struct {
 33958  	s            *Service
 33959  	parent       string
 33960  	urlParams_   gensupport.URLParams
 33961  	ifNoneMatch_ string
 33962  	ctx_         context.Context
 33963  	header_      http.Header
 33964  }
 33965  
 33966  // Search: Returns the list of agents. Since there is at most one
 33967  // conversational agent per project, this method is useful primarily for
 33968  // listing all agents across projects the caller has access to. One can achieve
 33969  // that with a wildcard project collection id "-". Refer to List
 33970  // Sub-Collections
 33971  // (https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
 33972  //
 33973  //   - parent: The project to list agents from. Format: `projects/` or
 33974  //     `projects//locations/`.
 33975  func (r *ProjectsLocationsAgentService) Search(parent string) *ProjectsLocationsAgentSearchCall {
 33976  	c := &ProjectsLocationsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33977  	c.parent = parent
 33978  	return c
 33979  }
 33980  
 33981  // PageSize sets the optional parameter "pageSize": The maximum number of items
 33982  // to return in a single page. By default 100 and at most 1000.
 33983  func (c *ProjectsLocationsAgentSearchCall) PageSize(pageSize int64) *ProjectsLocationsAgentSearchCall {
 33984  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33985  	return c
 33986  }
 33987  
 33988  // PageToken sets the optional parameter "pageToken": The next_page_token value
 33989  // returned from a previous list request.
 33990  func (c *ProjectsLocationsAgentSearchCall) PageToken(pageToken string) *ProjectsLocationsAgentSearchCall {
 33991  	c.urlParams_.Set("pageToken", pageToken)
 33992  	return c
 33993  }
 33994  
 33995  // Fields allows partial responses to be retrieved. See
 33996  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33997  // details.
 33998  func (c *ProjectsLocationsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSearchCall {
 33999  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34000  	return c
 34001  }
 34002  
 34003  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34004  // object's ETag matches the given value. This is useful for getting updates
 34005  // only after the object has changed since the last request.
 34006  func (c *ProjectsLocationsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSearchCall {
 34007  	c.ifNoneMatch_ = entityTag
 34008  	return c
 34009  }
 34010  
 34011  // Context sets the context to be used in this call's Do method.
 34012  func (c *ProjectsLocationsAgentSearchCall) Context(ctx context.Context) *ProjectsLocationsAgentSearchCall {
 34013  	c.ctx_ = ctx
 34014  	return c
 34015  }
 34016  
 34017  // Header returns a http.Header that can be modified by the caller to add
 34018  // headers to the request.
 34019  func (c *ProjectsLocationsAgentSearchCall) Header() http.Header {
 34020  	if c.header_ == nil {
 34021  		c.header_ = make(http.Header)
 34022  	}
 34023  	return c.header_
 34024  }
 34025  
 34026  func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
 34027  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34028  	if c.ifNoneMatch_ != "" {
 34029  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34030  	}
 34031  	var body io.Reader = nil
 34032  	c.urlParams_.Set("alt", alt)
 34033  	c.urlParams_.Set("prettyPrint", "false")
 34034  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
 34035  	urls += "?" + c.urlParams_.Encode()
 34036  	req, err := http.NewRequest("GET", urls, body)
 34037  	if err != nil {
 34038  		return nil, err
 34039  	}
 34040  	req.Header = reqHeaders
 34041  	googleapi.Expand(req.URL, map[string]string{
 34042  		"parent": c.parent,
 34043  	})
 34044  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34045  }
 34046  
 34047  // Do executes the "dialogflow.projects.locations.agent.search" call.
 34048  // Any non-2xx status code is an error. Response headers are in either
 34049  // *GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Header or
 34050  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 34051  // googleapi.IsNotModified to check whether the returned error was because
 34052  // http.StatusNotModified was returned.
 34053  func (c *ProjectsLocationsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
 34054  	gensupport.SetOptions(c.urlParams_, opts...)
 34055  	res, err := c.doRequest("json")
 34056  	if res != nil && res.StatusCode == http.StatusNotModified {
 34057  		if res.Body != nil {
 34058  			res.Body.Close()
 34059  		}
 34060  		return nil, gensupport.WrapError(&googleapi.Error{
 34061  			Code:   res.StatusCode,
 34062  			Header: res.Header,
 34063  		})
 34064  	}
 34065  	if err != nil {
 34066  		return nil, err
 34067  	}
 34068  	defer googleapi.CloseBody(res)
 34069  	if err := googleapi.CheckResponse(res); err != nil {
 34070  		return nil, gensupport.WrapError(err)
 34071  	}
 34072  	ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
 34073  		ServerResponse: googleapi.ServerResponse{
 34074  			Header:         res.Header,
 34075  			HTTPStatusCode: res.StatusCode,
 34076  		},
 34077  	}
 34078  	target := &ret
 34079  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34080  		return nil, err
 34081  	}
 34082  	return ret, nil
 34083  }
 34084  
 34085  // Pages invokes f for each page of results.
 34086  // A non-nil error returned from f will halt the iteration.
 34087  // The provided context supersedes any context provided to the Context method.
 34088  func (c *ProjectsLocationsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
 34089  	c.ctx_ = ctx
 34090  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 34091  	for {
 34092  		x, err := c.Do()
 34093  		if err != nil {
 34094  			return err
 34095  		}
 34096  		if err := f(x); err != nil {
 34097  			return err
 34098  		}
 34099  		if x.NextPageToken == "" {
 34100  			return nil
 34101  		}
 34102  		c.PageToken(x.NextPageToken)
 34103  	}
 34104  }
 34105  
 34106  type ProjectsLocationsAgentTrainCall struct {
 34107  	s                                             *Service
 34108  	parent                                        string
 34109  	googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
 34110  	urlParams_                                    gensupport.URLParams
 34111  	ctx_                                          context.Context
 34112  	header_                                       http.Header
 34113  }
 34114  
 34115  // Train: Trains the specified agent. This method is a long-running operation
 34116  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34117  // The returned `Operation` type has the following method-specific fields: -
 34118  // `metadata`: An empty Struct message
 34119  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34120  // - `response`: An Empty message
 34121  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 34122  // Note: You should always train an agent prior to sending it queries. See the
 34123  // training documentation
 34124  // (https://cloud.google.com/dialogflow/es/docs/training).
 34125  //
 34126  //   - parent: The project that the agent to train is associated with. Format:
 34127  //     `projects/` or `projects//locations/`.
 34128  func (r *ProjectsLocationsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsLocationsAgentTrainCall {
 34129  	c := &ProjectsLocationsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34130  	c.parent = parent
 34131  	c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
 34132  	return c
 34133  }
 34134  
 34135  // Fields allows partial responses to be retrieved. See
 34136  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34137  // details.
 34138  func (c *ProjectsLocationsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentTrainCall {
 34139  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34140  	return c
 34141  }
 34142  
 34143  // Context sets the context to be used in this call's Do method.
 34144  func (c *ProjectsLocationsAgentTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentTrainCall {
 34145  	c.ctx_ = ctx
 34146  	return c
 34147  }
 34148  
 34149  // Header returns a http.Header that can be modified by the caller to add
 34150  // headers to the request.
 34151  func (c *ProjectsLocationsAgentTrainCall) Header() http.Header {
 34152  	if c.header_ == nil {
 34153  		c.header_ = make(http.Header)
 34154  	}
 34155  	return c.header_
 34156  }
 34157  
 34158  func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
 34159  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34160  	var body io.Reader = nil
 34161  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
 34162  	if err != nil {
 34163  		return nil, err
 34164  	}
 34165  	c.urlParams_.Set("alt", alt)
 34166  	c.urlParams_.Set("prettyPrint", "false")
 34167  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
 34168  	urls += "?" + c.urlParams_.Encode()
 34169  	req, err := http.NewRequest("POST", urls, body)
 34170  	if err != nil {
 34171  		return nil, err
 34172  	}
 34173  	req.Header = reqHeaders
 34174  	googleapi.Expand(req.URL, map[string]string{
 34175  		"parent": c.parent,
 34176  	})
 34177  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34178  }
 34179  
 34180  // Do executes the "dialogflow.projects.locations.agent.train" call.
 34181  // Any non-2xx status code is an error. Response headers are in either
 34182  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34183  // returned at all) in error.(*googleapi.Error).Header. Use
 34184  // googleapi.IsNotModified to check whether the returned error was because
 34185  // http.StatusNotModified was returned.
 34186  func (c *ProjectsLocationsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34187  	gensupport.SetOptions(c.urlParams_, opts...)
 34188  	res, err := c.doRequest("json")
 34189  	if res != nil && res.StatusCode == http.StatusNotModified {
 34190  		if res.Body != nil {
 34191  			res.Body.Close()
 34192  		}
 34193  		return nil, gensupport.WrapError(&googleapi.Error{
 34194  			Code:   res.StatusCode,
 34195  			Header: res.Header,
 34196  		})
 34197  	}
 34198  	if err != nil {
 34199  		return nil, err
 34200  	}
 34201  	defer googleapi.CloseBody(res)
 34202  	if err := googleapi.CheckResponse(res); err != nil {
 34203  		return nil, gensupport.WrapError(err)
 34204  	}
 34205  	ret := &GoogleLongrunningOperation{
 34206  		ServerResponse: googleapi.ServerResponse{
 34207  			Header:         res.Header,
 34208  			HTTPStatusCode: res.StatusCode,
 34209  		},
 34210  	}
 34211  	target := &ret
 34212  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34213  		return nil, err
 34214  	}
 34215  	return ret, nil
 34216  }
 34217  
 34218  type ProjectsLocationsAgentUpdateFulfillmentCall struct {
 34219  	s                                       *Service
 34220  	nameid                                  string
 34221  	googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
 34222  	urlParams_                              gensupport.URLParams
 34223  	ctx_                                    context.Context
 34224  	header_                                 http.Header
 34225  }
 34226  
 34227  // UpdateFulfillment: Updates the fulfillment.
 34228  //
 34229  //   - name: The unique identifier of the fulfillment. Supported formats: -
 34230  //     `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
 34231  //     This field is not used for Fulfillment in an Environment.
 34232  func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34233  	c := &ProjectsLocationsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34234  	c.nameid = nameid
 34235  	c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
 34236  	return c
 34237  }
 34238  
 34239  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 34240  // control which fields get updated. If the mask is not present, all fields
 34241  // will be updated.
 34242  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34243  	c.urlParams_.Set("updateMask", updateMask)
 34244  	return c
 34245  }
 34246  
 34247  // Fields allows partial responses to be retrieved. See
 34248  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34249  // details.
 34250  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34251  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34252  	return c
 34253  }
 34254  
 34255  // Context sets the context to be used in this call's Do method.
 34256  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentUpdateFulfillmentCall {
 34257  	c.ctx_ = ctx
 34258  	return c
 34259  }
 34260  
 34261  // Header returns a http.Header that can be modified by the caller to add
 34262  // headers to the request.
 34263  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header {
 34264  	if c.header_ == nil {
 34265  		c.header_ = make(http.Header)
 34266  	}
 34267  	return c.header_
 34268  }
 34269  
 34270  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
 34271  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34272  	var body io.Reader = nil
 34273  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
 34274  	if err != nil {
 34275  		return nil, err
 34276  	}
 34277  	c.urlParams_.Set("alt", alt)
 34278  	c.urlParams_.Set("prettyPrint", "false")
 34279  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 34280  	urls += "?" + c.urlParams_.Encode()
 34281  	req, err := http.NewRequest("PATCH", urls, body)
 34282  	if err != nil {
 34283  		return nil, err
 34284  	}
 34285  	req.Header = reqHeaders
 34286  	googleapi.Expand(req.URL, map[string]string{
 34287  		"name": c.nameid,
 34288  	})
 34289  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34290  }
 34291  
 34292  // Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call.
 34293  // Any non-2xx status code is an error. Response headers are in either
 34294  // *GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if a
 34295  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34296  // googleapi.IsNotModified to check whether the returned error was because
 34297  // http.StatusNotModified was returned.
 34298  func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
 34299  	gensupport.SetOptions(c.urlParams_, opts...)
 34300  	res, err := c.doRequest("json")
 34301  	if res != nil && res.StatusCode == http.StatusNotModified {
 34302  		if res.Body != nil {
 34303  			res.Body.Close()
 34304  		}
 34305  		return nil, gensupport.WrapError(&googleapi.Error{
 34306  			Code:   res.StatusCode,
 34307  			Header: res.Header,
 34308  		})
 34309  	}
 34310  	if err != nil {
 34311  		return nil, err
 34312  	}
 34313  	defer googleapi.CloseBody(res)
 34314  	if err := googleapi.CheckResponse(res); err != nil {
 34315  		return nil, gensupport.WrapError(err)
 34316  	}
 34317  	ret := &GoogleCloudDialogflowV2beta1Fulfillment{
 34318  		ServerResponse: googleapi.ServerResponse{
 34319  			Header:         res.Header,
 34320  			HTTPStatusCode: res.StatusCode,
 34321  		},
 34322  	}
 34323  	target := &ret
 34324  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34325  		return nil, err
 34326  	}
 34327  	return ret, nil
 34328  }
 34329  
 34330  type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {
 34331  	s                                                         *Service
 34332  	parent                                                    string
 34333  	googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
 34334  	urlParams_                                                gensupport.URLParams
 34335  	ctx_                                                      context.Context
 34336  	header_                                                   http.Header
 34337  }
 34338  
 34339  // BatchDelete: Deletes entity types in the specified agent. This method is a
 34340  // long-running operation
 34341  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34342  // The returned `Operation` type has the following method-specific fields: -
 34343  // `metadata`: An empty Struct message
 34344  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34345  // - `response`: An Empty message
 34346  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 34347  // Note: You should always train an agent prior to sending it queries. See the
 34348  // training documentation
 34349  // (https://cloud.google.com/dialogflow/es/docs/training).
 34350  //
 34351  //   - parent: The name of the agent to delete all entities types for. Supported
 34352  //     formats: - `projects//agent`, - `projects//locations//agent`.
 34353  func (r *ProjectsLocationsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
 34354  	c := &ProjectsLocationsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34355  	c.parent = parent
 34356  	c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
 34357  	return c
 34358  }
 34359  
 34360  // Fields allows partial responses to be retrieved. See
 34361  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34362  // details.
 34363  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
 34364  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34365  	return c
 34366  }
 34367  
 34368  // Context sets the context to be used in this call's Do method.
 34369  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
 34370  	c.ctx_ = ctx
 34371  	return c
 34372  }
 34373  
 34374  // Header returns a http.Header that can be modified by the caller to add
 34375  // headers to the request.
 34376  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header {
 34377  	if c.header_ == nil {
 34378  		c.header_ = make(http.Header)
 34379  	}
 34380  	return c.header_
 34381  }
 34382  
 34383  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 34384  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34385  	var body io.Reader = nil
 34386  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
 34387  	if err != nil {
 34388  		return nil, err
 34389  	}
 34390  	c.urlParams_.Set("alt", alt)
 34391  	c.urlParams_.Set("prettyPrint", "false")
 34392  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
 34393  	urls += "?" + c.urlParams_.Encode()
 34394  	req, err := http.NewRequest("POST", urls, body)
 34395  	if err != nil {
 34396  		return nil, err
 34397  	}
 34398  	req.Header = reqHeaders
 34399  	googleapi.Expand(req.URL, map[string]string{
 34400  		"parent": c.parent,
 34401  	})
 34402  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34403  }
 34404  
 34405  // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call.
 34406  // Any non-2xx status code is an error. Response headers are in either
 34407  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34408  // returned at all) in error.(*googleapi.Error).Header. Use
 34409  // googleapi.IsNotModified to check whether the returned error was because
 34410  // http.StatusNotModified was returned.
 34411  func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34412  	gensupport.SetOptions(c.urlParams_, opts...)
 34413  	res, err := c.doRequest("json")
 34414  	if res != nil && res.StatusCode == http.StatusNotModified {
 34415  		if res.Body != nil {
 34416  			res.Body.Close()
 34417  		}
 34418  		return nil, gensupport.WrapError(&googleapi.Error{
 34419  			Code:   res.StatusCode,
 34420  			Header: res.Header,
 34421  		})
 34422  	}
 34423  	if err != nil {
 34424  		return nil, err
 34425  	}
 34426  	defer googleapi.CloseBody(res)
 34427  	if err := googleapi.CheckResponse(res); err != nil {
 34428  		return nil, gensupport.WrapError(err)
 34429  	}
 34430  	ret := &GoogleLongrunningOperation{
 34431  		ServerResponse: googleapi.ServerResponse{
 34432  			Header:         res.Header,
 34433  			HTTPStatusCode: res.StatusCode,
 34434  		},
 34435  	}
 34436  	target := &ret
 34437  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34438  		return nil, err
 34439  	}
 34440  	return ret, nil
 34441  }
 34442  
 34443  type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {
 34444  	s                                                         *Service
 34445  	parent                                                    string
 34446  	googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
 34447  	urlParams_                                                gensupport.URLParams
 34448  	ctx_                                                      context.Context
 34449  	header_                                                   http.Header
 34450  }
 34451  
 34452  // BatchUpdate: Updates/Creates multiple entity types in the specified agent.
 34453  // This method is a long-running operation
 34454  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 34455  // The returned `Operation` type has the following method-specific fields: -
 34456  // `metadata`: An empty Struct message
 34457  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 34458  // - `response`: BatchUpdateEntityTypesResponse Note: You should always train
 34459  // an agent prior to sending it queries. See the training documentation
 34460  // (https://cloud.google.com/dialogflow/es/docs/training).
 34461  //
 34462  //   - parent: The name of the agent to update or create entity types in.
 34463  //     Supported formats: - `projects//agent` - `projects//locations//agent`.
 34464  func (r *ProjectsLocationsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
 34465  	c := &ProjectsLocationsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34466  	c.parent = parent
 34467  	c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
 34468  	return c
 34469  }
 34470  
 34471  // Fields allows partial responses to be retrieved. See
 34472  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34473  // details.
 34474  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
 34475  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34476  	return c
 34477  }
 34478  
 34479  // Context sets the context to be used in this call's Do method.
 34480  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
 34481  	c.ctx_ = ctx
 34482  	return c
 34483  }
 34484  
 34485  // Header returns a http.Header that can be modified by the caller to add
 34486  // headers to the request.
 34487  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header {
 34488  	if c.header_ == nil {
 34489  		c.header_ = make(http.Header)
 34490  	}
 34491  	return c.header_
 34492  }
 34493  
 34494  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 34495  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34496  	var body io.Reader = nil
 34497  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
 34498  	if err != nil {
 34499  		return nil, err
 34500  	}
 34501  	c.urlParams_.Set("alt", alt)
 34502  	c.urlParams_.Set("prettyPrint", "false")
 34503  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
 34504  	urls += "?" + c.urlParams_.Encode()
 34505  	req, err := http.NewRequest("POST", urls, body)
 34506  	if err != nil {
 34507  		return nil, err
 34508  	}
 34509  	req.Header = reqHeaders
 34510  	googleapi.Expand(req.URL, map[string]string{
 34511  		"parent": c.parent,
 34512  	})
 34513  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34514  }
 34515  
 34516  // Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call.
 34517  // Any non-2xx status code is an error. Response headers are in either
 34518  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34519  // returned at all) in error.(*googleapi.Error).Header. Use
 34520  // googleapi.IsNotModified to check whether the returned error was because
 34521  // http.StatusNotModified was returned.
 34522  func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34523  	gensupport.SetOptions(c.urlParams_, opts...)
 34524  	res, err := c.doRequest("json")
 34525  	if res != nil && res.StatusCode == http.StatusNotModified {
 34526  		if res.Body != nil {
 34527  			res.Body.Close()
 34528  		}
 34529  		return nil, gensupport.WrapError(&googleapi.Error{
 34530  			Code:   res.StatusCode,
 34531  			Header: res.Header,
 34532  		})
 34533  	}
 34534  	if err != nil {
 34535  		return nil, err
 34536  	}
 34537  	defer googleapi.CloseBody(res)
 34538  	if err := googleapi.CheckResponse(res); err != nil {
 34539  		return nil, gensupport.WrapError(err)
 34540  	}
 34541  	ret := &GoogleLongrunningOperation{
 34542  		ServerResponse: googleapi.ServerResponse{
 34543  			Header:         res.Header,
 34544  			HTTPStatusCode: res.StatusCode,
 34545  		},
 34546  	}
 34547  	target := &ret
 34548  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34549  		return nil, err
 34550  	}
 34551  	return ret, nil
 34552  }
 34553  
 34554  type ProjectsLocationsAgentEntityTypesCreateCall struct {
 34555  	s                                      *Service
 34556  	parent                                 string
 34557  	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
 34558  	urlParams_                             gensupport.URLParams
 34559  	ctx_                                   context.Context
 34560  	header_                                http.Header
 34561  }
 34562  
 34563  // Create: Creates an entity type in the specified agent. Note: You should
 34564  // always train an agent prior to sending it queries. See the training
 34565  // documentation (https://cloud.google.com/dialogflow/es/docs/training).
 34566  //
 34567  //   - parent: The agent to create a entity type for. Supported formats: -
 34568  //     `projects//agent` - `projects//locations//agent`.
 34569  func (r *ProjectsLocationsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesCreateCall {
 34570  	c := &ProjectsLocationsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34571  	c.parent = parent
 34572  	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
 34573  	return c
 34574  }
 34575  
 34576  // LanguageCode sets the optional parameter "languageCode": The language used
 34577  // to access language-specific data. If not specified, the agent's default
 34578  // language is used. For more information, see Multilingual intent and entity
 34579  // data
 34580  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 34581  func (c *ProjectsLocationsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesCreateCall {
 34582  	c.urlParams_.Set("languageCode", languageCode)
 34583  	return c
 34584  }
 34585  
 34586  // Fields allows partial responses to be retrieved. See
 34587  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34588  // details.
 34589  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesCreateCall {
 34590  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34591  	return c
 34592  }
 34593  
 34594  // Context sets the context to be used in this call's Do method.
 34595  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesCreateCall {
 34596  	c.ctx_ = ctx
 34597  	return c
 34598  }
 34599  
 34600  // Header returns a http.Header that can be modified by the caller to add
 34601  // headers to the request.
 34602  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header {
 34603  	if c.header_ == nil {
 34604  		c.header_ = make(http.Header)
 34605  	}
 34606  	return c.header_
 34607  }
 34608  
 34609  func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 34610  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34611  	var body io.Reader = nil
 34612  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
 34613  	if err != nil {
 34614  		return nil, err
 34615  	}
 34616  	c.urlParams_.Set("alt", alt)
 34617  	c.urlParams_.Set("prettyPrint", "false")
 34618  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 34619  	urls += "?" + c.urlParams_.Encode()
 34620  	req, err := http.NewRequest("POST", urls, body)
 34621  	if err != nil {
 34622  		return nil, err
 34623  	}
 34624  	req.Header = reqHeaders
 34625  	googleapi.Expand(req.URL, map[string]string{
 34626  		"parent": c.parent,
 34627  	})
 34628  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34629  }
 34630  
 34631  // Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call.
 34632  // Any non-2xx status code is an error. Response headers are in either
 34633  // *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if a
 34634  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34635  // googleapi.IsNotModified to check whether the returned error was because
 34636  // http.StatusNotModified was returned.
 34637  func (c *ProjectsLocationsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
 34638  	gensupport.SetOptions(c.urlParams_, opts...)
 34639  	res, err := c.doRequest("json")
 34640  	if res != nil && res.StatusCode == http.StatusNotModified {
 34641  		if res.Body != nil {
 34642  			res.Body.Close()
 34643  		}
 34644  		return nil, gensupport.WrapError(&googleapi.Error{
 34645  			Code:   res.StatusCode,
 34646  			Header: res.Header,
 34647  		})
 34648  	}
 34649  	if err != nil {
 34650  		return nil, err
 34651  	}
 34652  	defer googleapi.CloseBody(res)
 34653  	if err := googleapi.CheckResponse(res); err != nil {
 34654  		return nil, gensupport.WrapError(err)
 34655  	}
 34656  	ret := &GoogleCloudDialogflowV2beta1EntityType{
 34657  		ServerResponse: googleapi.ServerResponse{
 34658  			Header:         res.Header,
 34659  			HTTPStatusCode: res.StatusCode,
 34660  		},
 34661  	}
 34662  	target := &ret
 34663  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34664  		return nil, err
 34665  	}
 34666  	return ret, nil
 34667  }
 34668  
 34669  type ProjectsLocationsAgentEntityTypesDeleteCall struct {
 34670  	s          *Service
 34671  	name       string
 34672  	urlParams_ gensupport.URLParams
 34673  	ctx_       context.Context
 34674  	header_    http.Header
 34675  }
 34676  
 34677  // Delete: Deletes the specified entity type. Note: You should always train an
 34678  // agent prior to sending it queries. See the training documentation
 34679  // (https://cloud.google.com/dialogflow/es/docs/training).
 34680  //
 34681  //   - name: The name of the entity type to delete. Supported formats: -
 34682  //     `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.
 34683  func (r *ProjectsLocationsAgentEntityTypesService) Delete(name string) *ProjectsLocationsAgentEntityTypesDeleteCall {
 34684  	c := &ProjectsLocationsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34685  	c.name = name
 34686  	return c
 34687  }
 34688  
 34689  // Fields allows partial responses to be retrieved. See
 34690  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34691  // details.
 34692  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesDeleteCall {
 34693  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34694  	return c
 34695  }
 34696  
 34697  // Context sets the context to be used in this call's Do method.
 34698  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesDeleteCall {
 34699  	c.ctx_ = ctx
 34700  	return c
 34701  }
 34702  
 34703  // Header returns a http.Header that can be modified by the caller to add
 34704  // headers to the request.
 34705  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header {
 34706  	if c.header_ == nil {
 34707  		c.header_ = make(http.Header)
 34708  	}
 34709  	return c.header_
 34710  }
 34711  
 34712  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 34713  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34714  	var body io.Reader = nil
 34715  	c.urlParams_.Set("alt", alt)
 34716  	c.urlParams_.Set("prettyPrint", "false")
 34717  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 34718  	urls += "?" + c.urlParams_.Encode()
 34719  	req, err := http.NewRequest("DELETE", urls, body)
 34720  	if err != nil {
 34721  		return nil, err
 34722  	}
 34723  	req.Header = reqHeaders
 34724  	googleapi.Expand(req.URL, map[string]string{
 34725  		"name": c.name,
 34726  	})
 34727  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34728  }
 34729  
 34730  // Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call.
 34731  // Any non-2xx status code is an error. Response headers are in either
 34732  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 34733  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 34734  // check whether the returned error was because http.StatusNotModified was
 34735  // returned.
 34736  func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 34737  	gensupport.SetOptions(c.urlParams_, opts...)
 34738  	res, err := c.doRequest("json")
 34739  	if res != nil && res.StatusCode == http.StatusNotModified {
 34740  		if res.Body != nil {
 34741  			res.Body.Close()
 34742  		}
 34743  		return nil, gensupport.WrapError(&googleapi.Error{
 34744  			Code:   res.StatusCode,
 34745  			Header: res.Header,
 34746  		})
 34747  	}
 34748  	if err != nil {
 34749  		return nil, err
 34750  	}
 34751  	defer googleapi.CloseBody(res)
 34752  	if err := googleapi.CheckResponse(res); err != nil {
 34753  		return nil, gensupport.WrapError(err)
 34754  	}
 34755  	ret := &GoogleProtobufEmpty{
 34756  		ServerResponse: googleapi.ServerResponse{
 34757  			Header:         res.Header,
 34758  			HTTPStatusCode: res.StatusCode,
 34759  		},
 34760  	}
 34761  	target := &ret
 34762  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34763  		return nil, err
 34764  	}
 34765  	return ret, nil
 34766  }
 34767  
 34768  type ProjectsLocationsAgentEntityTypesGetCall struct {
 34769  	s            *Service
 34770  	name         string
 34771  	urlParams_   gensupport.URLParams
 34772  	ifNoneMatch_ string
 34773  	ctx_         context.Context
 34774  	header_      http.Header
 34775  }
 34776  
 34777  // Get: Retrieves the specified entity type.
 34778  //
 34779  //   - name: The name of the entity type. Supported formats: -
 34780  //     `projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.
 34781  func (r *ProjectsLocationsAgentEntityTypesService) Get(name string) *ProjectsLocationsAgentEntityTypesGetCall {
 34782  	c := &ProjectsLocationsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34783  	c.name = name
 34784  	return c
 34785  }
 34786  
 34787  // LanguageCode sets the optional parameter "languageCode": The language used
 34788  // to access language-specific data. If not specified, the agent's default
 34789  // language is used. For more information, see Multilingual intent and entity
 34790  // data
 34791  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 34792  func (c *ProjectsLocationsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesGetCall {
 34793  	c.urlParams_.Set("languageCode", languageCode)
 34794  	return c
 34795  }
 34796  
 34797  // Fields allows partial responses to be retrieved. See
 34798  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34799  // details.
 34800  func (c *ProjectsLocationsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesGetCall {
 34801  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34802  	return c
 34803  }
 34804  
 34805  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34806  // object's ETag matches the given value. This is useful for getting updates
 34807  // only after the object has changed since the last request.
 34808  func (c *ProjectsLocationsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesGetCall {
 34809  	c.ifNoneMatch_ = entityTag
 34810  	return c
 34811  }
 34812  
 34813  // Context sets the context to be used in this call's Do method.
 34814  func (c *ProjectsLocationsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesGetCall {
 34815  	c.ctx_ = ctx
 34816  	return c
 34817  }
 34818  
 34819  // Header returns a http.Header that can be modified by the caller to add
 34820  // headers to the request.
 34821  func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header {
 34822  	if c.header_ == nil {
 34823  		c.header_ = make(http.Header)
 34824  	}
 34825  	return c.header_
 34826  }
 34827  
 34828  func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 34829  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34830  	if c.ifNoneMatch_ != "" {
 34831  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34832  	}
 34833  	var body io.Reader = nil
 34834  	c.urlParams_.Set("alt", alt)
 34835  	c.urlParams_.Set("prettyPrint", "false")
 34836  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 34837  	urls += "?" + c.urlParams_.Encode()
 34838  	req, err := http.NewRequest("GET", urls, body)
 34839  	if err != nil {
 34840  		return nil, err
 34841  	}
 34842  	req.Header = reqHeaders
 34843  	googleapi.Expand(req.URL, map[string]string{
 34844  		"name": c.name,
 34845  	})
 34846  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34847  }
 34848  
 34849  // Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call.
 34850  // Any non-2xx status code is an error. Response headers are in either
 34851  // *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if a
 34852  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34853  // googleapi.IsNotModified to check whether the returned error was because
 34854  // http.StatusNotModified was returned.
 34855  func (c *ProjectsLocationsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
 34856  	gensupport.SetOptions(c.urlParams_, opts...)
 34857  	res, err := c.doRequest("json")
 34858  	if res != nil && res.StatusCode == http.StatusNotModified {
 34859  		if res.Body != nil {
 34860  			res.Body.Close()
 34861  		}
 34862  		return nil, gensupport.WrapError(&googleapi.Error{
 34863  			Code:   res.StatusCode,
 34864  			Header: res.Header,
 34865  		})
 34866  	}
 34867  	if err != nil {
 34868  		return nil, err
 34869  	}
 34870  	defer googleapi.CloseBody(res)
 34871  	if err := googleapi.CheckResponse(res); err != nil {
 34872  		return nil, gensupport.WrapError(err)
 34873  	}
 34874  	ret := &GoogleCloudDialogflowV2beta1EntityType{
 34875  		ServerResponse: googleapi.ServerResponse{
 34876  			Header:         res.Header,
 34877  			HTTPStatusCode: res.StatusCode,
 34878  		},
 34879  	}
 34880  	target := &ret
 34881  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34882  		return nil, err
 34883  	}
 34884  	return ret, nil
 34885  }
 34886  
 34887  type ProjectsLocationsAgentEntityTypesListCall struct {
 34888  	s            *Service
 34889  	parent       string
 34890  	urlParams_   gensupport.URLParams
 34891  	ifNoneMatch_ string
 34892  	ctx_         context.Context
 34893  	header_      http.Header
 34894  }
 34895  
 34896  // List: Returns the list of all entity types in the specified agent.
 34897  //
 34898  //   - parent: The agent to list all entity types from. Supported formats: -
 34899  //     `projects//agent` - `projects//locations//agent`.
 34900  func (r *ProjectsLocationsAgentEntityTypesService) List(parent string) *ProjectsLocationsAgentEntityTypesListCall {
 34901  	c := &ProjectsLocationsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34902  	c.parent = parent
 34903  	return c
 34904  }
 34905  
 34906  // LanguageCode sets the optional parameter "languageCode": The language used
 34907  // to access language-specific data. If not specified, the agent's default
 34908  // language is used. For more information, see Multilingual intent and entity
 34909  // data
 34910  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 34911  func (c *ProjectsLocationsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesListCall {
 34912  	c.urlParams_.Set("languageCode", languageCode)
 34913  	return c
 34914  }
 34915  
 34916  // PageSize sets the optional parameter "pageSize": The maximum number of items
 34917  // to return in a single page. By default 100 and at most 1000.
 34918  func (c *ProjectsLocationsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEntityTypesListCall {
 34919  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 34920  	return c
 34921  }
 34922  
 34923  // PageToken sets the optional parameter "pageToken": The next_page_token value
 34924  // returned from a previous list request.
 34925  func (c *ProjectsLocationsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEntityTypesListCall {
 34926  	c.urlParams_.Set("pageToken", pageToken)
 34927  	return c
 34928  }
 34929  
 34930  // Fields allows partial responses to be retrieved. See
 34931  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34932  // details.
 34933  func (c *ProjectsLocationsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesListCall {
 34934  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34935  	return c
 34936  }
 34937  
 34938  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34939  // object's ETag matches the given value. This is useful for getting updates
 34940  // only after the object has changed since the last request.
 34941  func (c *ProjectsLocationsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesListCall {
 34942  	c.ifNoneMatch_ = entityTag
 34943  	return c
 34944  }
 34945  
 34946  // Context sets the context to be used in this call's Do method.
 34947  func (c *ProjectsLocationsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesListCall {
 34948  	c.ctx_ = ctx
 34949  	return c
 34950  }
 34951  
 34952  // Header returns a http.Header that can be modified by the caller to add
 34953  // headers to the request.
 34954  func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header {
 34955  	if c.header_ == nil {
 34956  		c.header_ = make(http.Header)
 34957  	}
 34958  	return c.header_
 34959  }
 34960  
 34961  func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 34962  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34963  	if c.ifNoneMatch_ != "" {
 34964  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34965  	}
 34966  	var body io.Reader = nil
 34967  	c.urlParams_.Set("alt", alt)
 34968  	c.urlParams_.Set("prettyPrint", "false")
 34969  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 34970  	urls += "?" + c.urlParams_.Encode()
 34971  	req, err := http.NewRequest("GET", urls, body)
 34972  	if err != nil {
 34973  		return nil, err
 34974  	}
 34975  	req.Header = reqHeaders
 34976  	googleapi.Expand(req.URL, map[string]string{
 34977  		"parent": c.parent,
 34978  	})
 34979  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34980  }
 34981  
 34982  // Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call.
 34983  // Any non-2xx status code is an error. Response headers are in either
 34984  // *GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.Header
 34985  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 34986  // Use googleapi.IsNotModified to check whether the returned error was because
 34987  // http.StatusNotModified was returned.
 34988  func (c *ProjectsLocationsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
 34989  	gensupport.SetOptions(c.urlParams_, opts...)
 34990  	res, err := c.doRequest("json")
 34991  	if res != nil && res.StatusCode == http.StatusNotModified {
 34992  		if res.Body != nil {
 34993  			res.Body.Close()
 34994  		}
 34995  		return nil, gensupport.WrapError(&googleapi.Error{
 34996  			Code:   res.StatusCode,
 34997  			Header: res.Header,
 34998  		})
 34999  	}
 35000  	if err != nil {
 35001  		return nil, err
 35002  	}
 35003  	defer googleapi.CloseBody(res)
 35004  	if err := googleapi.CheckResponse(res); err != nil {
 35005  		return nil, gensupport.WrapError(err)
 35006  	}
 35007  	ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
 35008  		ServerResponse: googleapi.ServerResponse{
 35009  			Header:         res.Header,
 35010  			HTTPStatusCode: res.StatusCode,
 35011  		},
 35012  	}
 35013  	target := &ret
 35014  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35015  		return nil, err
 35016  	}
 35017  	return ret, nil
 35018  }
 35019  
 35020  // Pages invokes f for each page of results.
 35021  // A non-nil error returned from f will halt the iteration.
 35022  // The provided context supersedes any context provided to the Context method.
 35023  func (c *ProjectsLocationsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
 35024  	c.ctx_ = ctx
 35025  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 35026  	for {
 35027  		x, err := c.Do()
 35028  		if err != nil {
 35029  			return err
 35030  		}
 35031  		if err := f(x); err != nil {
 35032  			return err
 35033  		}
 35034  		if x.NextPageToken == "" {
 35035  			return nil
 35036  		}
 35037  		c.PageToken(x.NextPageToken)
 35038  	}
 35039  }
 35040  
 35041  type ProjectsLocationsAgentEntityTypesPatchCall struct {
 35042  	s                                      *Service
 35043  	nameid                                 string
 35044  	googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
 35045  	urlParams_                             gensupport.URLParams
 35046  	ctx_                                   context.Context
 35047  	header_                                http.Header
 35048  }
 35049  
 35050  // Patch: Updates the specified entity type. Note: You should always train an
 35051  // agent prior to sending it queries. See the training documentation
 35052  // (https://cloud.google.com/dialogflow/es/docs/training).
 35053  //
 35054  //   - name: The unique identifier of the entity type. Required for
 35055  //     EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes
 35056  //     methods. Supported formats: - `projects//agent/entityTypes/` -
 35057  //     `projects//locations//agent/entityTypes/`.
 35058  func (r *ProjectsLocationsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesPatchCall {
 35059  	c := &ProjectsLocationsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35060  	c.nameid = nameid
 35061  	c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
 35062  	return c
 35063  }
 35064  
 35065  // LanguageCode sets the optional parameter "languageCode": The language used
 35066  // to access language-specific data. If not specified, the agent's default
 35067  // language is used. For more information, see Multilingual intent and entity
 35068  // data
 35069  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 35070  func (c *ProjectsLocationsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesPatchCall {
 35071  	c.urlParams_.Set("languageCode", languageCode)
 35072  	return c
 35073  }
 35074  
 35075  // UpdateMask sets the optional parameter "updateMask": The mask to control
 35076  // which fields get updated.
 35077  func (c *ProjectsLocationsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEntityTypesPatchCall {
 35078  	c.urlParams_.Set("updateMask", updateMask)
 35079  	return c
 35080  }
 35081  
 35082  // Fields allows partial responses to be retrieved. See
 35083  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35084  // details.
 35085  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesPatchCall {
 35086  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35087  	return c
 35088  }
 35089  
 35090  // Context sets the context to be used in this call's Do method.
 35091  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesPatchCall {
 35092  	c.ctx_ = ctx
 35093  	return c
 35094  }
 35095  
 35096  // Header returns a http.Header that can be modified by the caller to add
 35097  // headers to the request.
 35098  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header {
 35099  	if c.header_ == nil {
 35100  		c.header_ = make(http.Header)
 35101  	}
 35102  	return c.header_
 35103  }
 35104  
 35105  func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 35106  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35107  	var body io.Reader = nil
 35108  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
 35109  	if err != nil {
 35110  		return nil, err
 35111  	}
 35112  	c.urlParams_.Set("alt", alt)
 35113  	c.urlParams_.Set("prettyPrint", "false")
 35114  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 35115  	urls += "?" + c.urlParams_.Encode()
 35116  	req, err := http.NewRequest("PATCH", urls, body)
 35117  	if err != nil {
 35118  		return nil, err
 35119  	}
 35120  	req.Header = reqHeaders
 35121  	googleapi.Expand(req.URL, map[string]string{
 35122  		"name": c.nameid,
 35123  	})
 35124  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35125  }
 35126  
 35127  // Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call.
 35128  // Any non-2xx status code is an error. Response headers are in either
 35129  // *GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if a
 35130  // response was returned at all) in error.(*googleapi.Error).Header. Use
 35131  // googleapi.IsNotModified to check whether the returned error was because
 35132  // http.StatusNotModified was returned.
 35133  func (c *ProjectsLocationsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
 35134  	gensupport.SetOptions(c.urlParams_, opts...)
 35135  	res, err := c.doRequest("json")
 35136  	if res != nil && res.StatusCode == http.StatusNotModified {
 35137  		if res.Body != nil {
 35138  			res.Body.Close()
 35139  		}
 35140  		return nil, gensupport.WrapError(&googleapi.Error{
 35141  			Code:   res.StatusCode,
 35142  			Header: res.Header,
 35143  		})
 35144  	}
 35145  	if err != nil {
 35146  		return nil, err
 35147  	}
 35148  	defer googleapi.CloseBody(res)
 35149  	if err := googleapi.CheckResponse(res); err != nil {
 35150  		return nil, gensupport.WrapError(err)
 35151  	}
 35152  	ret := &GoogleCloudDialogflowV2beta1EntityType{
 35153  		ServerResponse: googleapi.ServerResponse{
 35154  			Header:         res.Header,
 35155  			HTTPStatusCode: res.StatusCode,
 35156  		},
 35157  	}
 35158  	target := &ret
 35159  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35160  		return nil, err
 35161  	}
 35162  	return ret, nil
 35163  }
 35164  
 35165  type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {
 35166  	s                                                      *Service
 35167  	parent                                                 string
 35168  	googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
 35169  	urlParams_                                             gensupport.URLParams
 35170  	ctx_                                                   context.Context
 35171  	header_                                                http.Header
 35172  }
 35173  
 35174  // BatchCreate: Creates multiple new entities in the specified entity type.
 35175  // This method is a long-running operation
 35176  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 35177  // The returned `Operation` type has the following method-specific fields: -
 35178  // `metadata`: An empty Struct message
 35179  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 35180  // - `response`: An Empty message
 35181  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 35182  // Note: You should always train an agent prior to sending it queries. See the
 35183  // training documentation
 35184  // (https://cloud.google.com/dialogflow/es/docs/training).
 35185  //
 35186  //   - parent: The name of the entity type to create entities in. Supported
 35187  //     formats: - `projects//agent/entityTypes/` -
 35188  //     `projects//locations//agent/entityTypes/`.
 35189  func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
 35190  	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35191  	c.parent = parent
 35192  	c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
 35193  	return c
 35194  }
 35195  
 35196  // Fields allows partial responses to be retrieved. See
 35197  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35198  // details.
 35199  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
 35200  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35201  	return c
 35202  }
 35203  
 35204  // Context sets the context to be used in this call's Do method.
 35205  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
 35206  	c.ctx_ = ctx
 35207  	return c
 35208  }
 35209  
 35210  // Header returns a http.Header that can be modified by the caller to add
 35211  // headers to the request.
 35212  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
 35213  	if c.header_ == nil {
 35214  		c.header_ = make(http.Header)
 35215  	}
 35216  	return c.header_
 35217  }
 35218  
 35219  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 35220  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35221  	var body io.Reader = nil
 35222  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
 35223  	if err != nil {
 35224  		return nil, err
 35225  	}
 35226  	c.urlParams_.Set("alt", alt)
 35227  	c.urlParams_.Set("prettyPrint", "false")
 35228  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
 35229  	urls += "?" + c.urlParams_.Encode()
 35230  	req, err := http.NewRequest("POST", urls, body)
 35231  	if err != nil {
 35232  		return nil, err
 35233  	}
 35234  	req.Header = reqHeaders
 35235  	googleapi.Expand(req.URL, map[string]string{
 35236  		"parent": c.parent,
 35237  	})
 35238  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35239  }
 35240  
 35241  // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call.
 35242  // Any non-2xx status code is an error. Response headers are in either
 35243  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35244  // returned at all) in error.(*googleapi.Error).Header. Use
 35245  // googleapi.IsNotModified to check whether the returned error was because
 35246  // http.StatusNotModified was returned.
 35247  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35248  	gensupport.SetOptions(c.urlParams_, opts...)
 35249  	res, err := c.doRequest("json")
 35250  	if res != nil && res.StatusCode == http.StatusNotModified {
 35251  		if res.Body != nil {
 35252  			res.Body.Close()
 35253  		}
 35254  		return nil, gensupport.WrapError(&googleapi.Error{
 35255  			Code:   res.StatusCode,
 35256  			Header: res.Header,
 35257  		})
 35258  	}
 35259  	if err != nil {
 35260  		return nil, err
 35261  	}
 35262  	defer googleapi.CloseBody(res)
 35263  	if err := googleapi.CheckResponse(res); err != nil {
 35264  		return nil, gensupport.WrapError(err)
 35265  	}
 35266  	ret := &GoogleLongrunningOperation{
 35267  		ServerResponse: googleapi.ServerResponse{
 35268  			Header:         res.Header,
 35269  			HTTPStatusCode: res.StatusCode,
 35270  		},
 35271  	}
 35272  	target := &ret
 35273  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35274  		return nil, err
 35275  	}
 35276  	return ret, nil
 35277  }
 35278  
 35279  type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {
 35280  	s                                                      *Service
 35281  	parent                                                 string
 35282  	googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
 35283  	urlParams_                                             gensupport.URLParams
 35284  	ctx_                                                   context.Context
 35285  	header_                                                http.Header
 35286  }
 35287  
 35288  // BatchDelete: Deletes entities in the specified entity type. This method is a
 35289  // long-running operation
 35290  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 35291  // The returned `Operation` type has the following method-specific fields: -
 35292  // `metadata`: An empty Struct message
 35293  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 35294  // - `response`: An Empty message
 35295  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 35296  // Note: You should always train an agent prior to sending it queries. See the
 35297  // training documentation
 35298  // (https://cloud.google.com/dialogflow/es/docs/training).
 35299  //
 35300  //   - parent: The name of the entity type to delete entries for. Supported
 35301  //     formats: - `projects//agent/entityTypes/` -
 35302  //     `projects//locations//agent/entityTypes/`.
 35303  func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
 35304  	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35305  	c.parent = parent
 35306  	c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
 35307  	return c
 35308  }
 35309  
 35310  // Fields allows partial responses to be retrieved. See
 35311  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35312  // details.
 35313  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
 35314  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35315  	return c
 35316  }
 35317  
 35318  // Context sets the context to be used in this call's Do method.
 35319  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
 35320  	c.ctx_ = ctx
 35321  	return c
 35322  }
 35323  
 35324  // Header returns a http.Header that can be modified by the caller to add
 35325  // headers to the request.
 35326  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
 35327  	if c.header_ == nil {
 35328  		c.header_ = make(http.Header)
 35329  	}
 35330  	return c.header_
 35331  }
 35332  
 35333  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 35334  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35335  	var body io.Reader = nil
 35336  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
 35337  	if err != nil {
 35338  		return nil, err
 35339  	}
 35340  	c.urlParams_.Set("alt", alt)
 35341  	c.urlParams_.Set("prettyPrint", "false")
 35342  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
 35343  	urls += "?" + c.urlParams_.Encode()
 35344  	req, err := http.NewRequest("POST", urls, body)
 35345  	if err != nil {
 35346  		return nil, err
 35347  	}
 35348  	req.Header = reqHeaders
 35349  	googleapi.Expand(req.URL, map[string]string{
 35350  		"parent": c.parent,
 35351  	})
 35352  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35353  }
 35354  
 35355  // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call.
 35356  // Any non-2xx status code is an error. Response headers are in either
 35357  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35358  // returned at all) in error.(*googleapi.Error).Header. Use
 35359  // googleapi.IsNotModified to check whether the returned error was because
 35360  // http.StatusNotModified was returned.
 35361  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35362  	gensupport.SetOptions(c.urlParams_, opts...)
 35363  	res, err := c.doRequest("json")
 35364  	if res != nil && res.StatusCode == http.StatusNotModified {
 35365  		if res.Body != nil {
 35366  			res.Body.Close()
 35367  		}
 35368  		return nil, gensupport.WrapError(&googleapi.Error{
 35369  			Code:   res.StatusCode,
 35370  			Header: res.Header,
 35371  		})
 35372  	}
 35373  	if err != nil {
 35374  		return nil, err
 35375  	}
 35376  	defer googleapi.CloseBody(res)
 35377  	if err := googleapi.CheckResponse(res); err != nil {
 35378  		return nil, gensupport.WrapError(err)
 35379  	}
 35380  	ret := &GoogleLongrunningOperation{
 35381  		ServerResponse: googleapi.ServerResponse{
 35382  			Header:         res.Header,
 35383  			HTTPStatusCode: res.StatusCode,
 35384  		},
 35385  	}
 35386  	target := &ret
 35387  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35388  		return nil, err
 35389  	}
 35390  	return ret, nil
 35391  }
 35392  
 35393  type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {
 35394  	s                                                      *Service
 35395  	parent                                                 string
 35396  	googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
 35397  	urlParams_                                             gensupport.URLParams
 35398  	ctx_                                                   context.Context
 35399  	header_                                                http.Header
 35400  }
 35401  
 35402  // BatchUpdate: Updates or creates multiple entities in the specified entity
 35403  // type. This method does not affect entities in the entity type that aren't
 35404  // explicitly specified in the request. Note: You should always train an agent
 35405  // prior to sending it queries. See the training documentation
 35406  // (https://cloud.google.com/dialogflow/es/docs/training). This method is a
 35407  // long-running operation
 35408  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 35409  // The returned `Operation` type has the following method-specific fields: -
 35410  // `metadata`: An empty Struct message
 35411  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 35412  // - `response`: An Empty message
 35413  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 35414  //
 35415  //   - parent: The name of the entity type to update or create entities in.
 35416  //     Supported formats: - `projects//agent/entityTypes/` -
 35417  //     `projects//locations//agent/entityTypes/`.
 35418  func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
 35419  	c := &ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35420  	c.parent = parent
 35421  	c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
 35422  	return c
 35423  }
 35424  
 35425  // Fields allows partial responses to be retrieved. See
 35426  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35427  // details.
 35428  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
 35429  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35430  	return c
 35431  }
 35432  
 35433  // Context sets the context to be used in this call's Do method.
 35434  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
 35435  	c.ctx_ = ctx
 35436  	return c
 35437  }
 35438  
 35439  // Header returns a http.Header that can be modified by the caller to add
 35440  // headers to the request.
 35441  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
 35442  	if c.header_ == nil {
 35443  		c.header_ = make(http.Header)
 35444  	}
 35445  	return c.header_
 35446  }
 35447  
 35448  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 35449  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35450  	var body io.Reader = nil
 35451  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
 35452  	if err != nil {
 35453  		return nil, err
 35454  	}
 35455  	c.urlParams_.Set("alt", alt)
 35456  	c.urlParams_.Set("prettyPrint", "false")
 35457  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
 35458  	urls += "?" + c.urlParams_.Encode()
 35459  	req, err := http.NewRequest("POST", urls, body)
 35460  	if err != nil {
 35461  		return nil, err
 35462  	}
 35463  	req.Header = reqHeaders
 35464  	googleapi.Expand(req.URL, map[string]string{
 35465  		"parent": c.parent,
 35466  	})
 35467  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35468  }
 35469  
 35470  // Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call.
 35471  // Any non-2xx status code is an error. Response headers are in either
 35472  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 35473  // returned at all) in error.(*googleapi.Error).Header. Use
 35474  // googleapi.IsNotModified to check whether the returned error was because
 35475  // http.StatusNotModified was returned.
 35476  func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 35477  	gensupport.SetOptions(c.urlParams_, opts...)
 35478  	res, err := c.doRequest("json")
 35479  	if res != nil && res.StatusCode == http.StatusNotModified {
 35480  		if res.Body != nil {
 35481  			res.Body.Close()
 35482  		}
 35483  		return nil, gensupport.WrapError(&googleapi.Error{
 35484  			Code:   res.StatusCode,
 35485  			Header: res.Header,
 35486  		})
 35487  	}
 35488  	if err != nil {
 35489  		return nil, err
 35490  	}
 35491  	defer googleapi.CloseBody(res)
 35492  	if err := googleapi.CheckResponse(res); err != nil {
 35493  		return nil, gensupport.WrapError(err)
 35494  	}
 35495  	ret := &GoogleLongrunningOperation{
 35496  		ServerResponse: googleapi.ServerResponse{
 35497  			Header:         res.Header,
 35498  			HTTPStatusCode: res.StatusCode,
 35499  		},
 35500  	}
 35501  	target := &ret
 35502  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35503  		return nil, err
 35504  	}
 35505  	return ret, nil
 35506  }
 35507  
 35508  type ProjectsLocationsAgentEnvironmentsCreateCall struct {
 35509  	s                                       *Service
 35510  	parent                                  string
 35511  	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
 35512  	urlParams_                              gensupport.URLParams
 35513  	ctx_                                    context.Context
 35514  	header_                                 http.Header
 35515  }
 35516  
 35517  // Create: Creates an agent environment.
 35518  //
 35519  //   - parent: The agent to create an environment for. Supported formats: -
 35520  //     `projects//agent` - `projects//locations//agent`.
 35521  func (r *ProjectsLocationsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsCreateCall {
 35522  	c := &ProjectsLocationsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35523  	c.parent = parent
 35524  	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
 35525  	return c
 35526  }
 35527  
 35528  // EnvironmentId sets the optional parameter "environmentId": Required. The
 35529  // unique id of the new environment.
 35530  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsAgentEnvironmentsCreateCall {
 35531  	c.urlParams_.Set("environmentId", environmentId)
 35532  	return c
 35533  }
 35534  
 35535  // Fields allows partial responses to be retrieved. See
 35536  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35537  // details.
 35538  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsCreateCall {
 35539  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35540  	return c
 35541  }
 35542  
 35543  // Context sets the context to be used in this call's Do method.
 35544  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsCreateCall {
 35545  	c.ctx_ = ctx
 35546  	return c
 35547  }
 35548  
 35549  // Header returns a http.Header that can be modified by the caller to add
 35550  // headers to the request.
 35551  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Header() http.Header {
 35552  	if c.header_ == nil {
 35553  		c.header_ = make(http.Header)
 35554  	}
 35555  	return c.header_
 35556  }
 35557  
 35558  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 35559  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35560  	var body io.Reader = nil
 35561  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
 35562  	if err != nil {
 35563  		return nil, err
 35564  	}
 35565  	c.urlParams_.Set("alt", alt)
 35566  	c.urlParams_.Set("prettyPrint", "false")
 35567  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
 35568  	urls += "?" + c.urlParams_.Encode()
 35569  	req, err := http.NewRequest("POST", urls, body)
 35570  	if err != nil {
 35571  		return nil, err
 35572  	}
 35573  	req.Header = reqHeaders
 35574  	googleapi.Expand(req.URL, map[string]string{
 35575  		"parent": c.parent,
 35576  	})
 35577  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35578  }
 35579  
 35580  // Do executes the "dialogflow.projects.locations.agent.environments.create" call.
 35581  // Any non-2xx status code is an error. Response headers are in either
 35582  // *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if a
 35583  // response was returned at all) in error.(*googleapi.Error).Header. Use
 35584  // googleapi.IsNotModified to check whether the returned error was because
 35585  // http.StatusNotModified was returned.
 35586  func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
 35587  	gensupport.SetOptions(c.urlParams_, opts...)
 35588  	res, err := c.doRequest("json")
 35589  	if res != nil && res.StatusCode == http.StatusNotModified {
 35590  		if res.Body != nil {
 35591  			res.Body.Close()
 35592  		}
 35593  		return nil, gensupport.WrapError(&googleapi.Error{
 35594  			Code:   res.StatusCode,
 35595  			Header: res.Header,
 35596  		})
 35597  	}
 35598  	if err != nil {
 35599  		return nil, err
 35600  	}
 35601  	defer googleapi.CloseBody(res)
 35602  	if err := googleapi.CheckResponse(res); err != nil {
 35603  		return nil, gensupport.WrapError(err)
 35604  	}
 35605  	ret := &GoogleCloudDialogflowV2beta1Environment{
 35606  		ServerResponse: googleapi.ServerResponse{
 35607  			Header:         res.Header,
 35608  			HTTPStatusCode: res.StatusCode,
 35609  		},
 35610  	}
 35611  	target := &ret
 35612  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35613  		return nil, err
 35614  	}
 35615  	return ret, nil
 35616  }
 35617  
 35618  type ProjectsLocationsAgentEnvironmentsDeleteCall struct {
 35619  	s          *Service
 35620  	name       string
 35621  	urlParams_ gensupport.URLParams
 35622  	ctx_       context.Context
 35623  	header_    http.Header
 35624  }
 35625  
 35626  // Delete: Deletes the specified agent environment.
 35627  //
 35628  //   - name: The name of the environment to delete. / Format: -
 35629  //     `projects//agent/environments/` -
 35630  //     `projects//locations//agent/environments/`.
 35631  func (r *ProjectsLocationsAgentEnvironmentsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsDeleteCall {
 35632  	c := &ProjectsLocationsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35633  	c.name = name
 35634  	return c
 35635  }
 35636  
 35637  // Fields allows partial responses to be retrieved. See
 35638  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35639  // details.
 35640  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsDeleteCall {
 35641  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35642  	return c
 35643  }
 35644  
 35645  // Context sets the context to be used in this call's Do method.
 35646  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsDeleteCall {
 35647  	c.ctx_ = ctx
 35648  	return c
 35649  }
 35650  
 35651  // Header returns a http.Header that can be modified by the caller to add
 35652  // headers to the request.
 35653  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Header() http.Header {
 35654  	if c.header_ == nil {
 35655  		c.header_ = make(http.Header)
 35656  	}
 35657  	return c.header_
 35658  }
 35659  
 35660  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 35661  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35662  	var body io.Reader = nil
 35663  	c.urlParams_.Set("alt", alt)
 35664  	c.urlParams_.Set("prettyPrint", "false")
 35665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 35666  	urls += "?" + c.urlParams_.Encode()
 35667  	req, err := http.NewRequest("DELETE", urls, body)
 35668  	if err != nil {
 35669  		return nil, err
 35670  	}
 35671  	req.Header = reqHeaders
 35672  	googleapi.Expand(req.URL, map[string]string{
 35673  		"name": c.name,
 35674  	})
 35675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35676  }
 35677  
 35678  // Do executes the "dialogflow.projects.locations.agent.environments.delete" call.
 35679  // Any non-2xx status code is an error. Response headers are in either
 35680  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 35681  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35682  // check whether the returned error was because http.StatusNotModified was
 35683  // returned.
 35684  func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 35685  	gensupport.SetOptions(c.urlParams_, opts...)
 35686  	res, err := c.doRequest("json")
 35687  	if res != nil && res.StatusCode == http.StatusNotModified {
 35688  		if res.Body != nil {
 35689  			res.Body.Close()
 35690  		}
 35691  		return nil, gensupport.WrapError(&googleapi.Error{
 35692  			Code:   res.StatusCode,
 35693  			Header: res.Header,
 35694  		})
 35695  	}
 35696  	if err != nil {
 35697  		return nil, err
 35698  	}
 35699  	defer googleapi.CloseBody(res)
 35700  	if err := googleapi.CheckResponse(res); err != nil {
 35701  		return nil, gensupport.WrapError(err)
 35702  	}
 35703  	ret := &GoogleProtobufEmpty{
 35704  		ServerResponse: googleapi.ServerResponse{
 35705  			Header:         res.Header,
 35706  			HTTPStatusCode: res.StatusCode,
 35707  		},
 35708  	}
 35709  	target := &ret
 35710  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35711  		return nil, err
 35712  	}
 35713  	return ret, nil
 35714  }
 35715  
 35716  type ProjectsLocationsAgentEnvironmentsGetCall struct {
 35717  	s            *Service
 35718  	name         string
 35719  	urlParams_   gensupport.URLParams
 35720  	ifNoneMatch_ string
 35721  	ctx_         context.Context
 35722  	header_      http.Header
 35723  }
 35724  
 35725  // Get: Retrieves the specified agent environment.
 35726  //
 35727  //   - name: The name of the environment. Supported formats: -
 35728  //     `projects//agent/environments/` -
 35729  //     `projects//locations//agent/environments/`.
 35730  func (r *ProjectsLocationsAgentEnvironmentsService) Get(name string) *ProjectsLocationsAgentEnvironmentsGetCall {
 35731  	c := &ProjectsLocationsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35732  	c.name = name
 35733  	return c
 35734  }
 35735  
 35736  // Fields allows partial responses to be retrieved. See
 35737  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35738  // details.
 35739  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetCall {
 35740  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35741  	return c
 35742  }
 35743  
 35744  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35745  // object's ETag matches the given value. This is useful for getting updates
 35746  // only after the object has changed since the last request.
 35747  func (c *ProjectsLocationsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetCall {
 35748  	c.ifNoneMatch_ = entityTag
 35749  	return c
 35750  }
 35751  
 35752  // Context sets the context to be used in this call's Do method.
 35753  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetCall {
 35754  	c.ctx_ = ctx
 35755  	return c
 35756  }
 35757  
 35758  // Header returns a http.Header that can be modified by the caller to add
 35759  // headers to the request.
 35760  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Header() http.Header {
 35761  	if c.header_ == nil {
 35762  		c.header_ = make(http.Header)
 35763  	}
 35764  	return c.header_
 35765  }
 35766  
 35767  func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 35768  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35769  	if c.ifNoneMatch_ != "" {
 35770  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35771  	}
 35772  	var body io.Reader = nil
 35773  	c.urlParams_.Set("alt", alt)
 35774  	c.urlParams_.Set("prettyPrint", "false")
 35775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 35776  	urls += "?" + c.urlParams_.Encode()
 35777  	req, err := http.NewRequest("GET", urls, body)
 35778  	if err != nil {
 35779  		return nil, err
 35780  	}
 35781  	req.Header = reqHeaders
 35782  	googleapi.Expand(req.URL, map[string]string{
 35783  		"name": c.name,
 35784  	})
 35785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35786  }
 35787  
 35788  // Do executes the "dialogflow.projects.locations.agent.environments.get" call.
 35789  // Any non-2xx status code is an error. Response headers are in either
 35790  // *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if a
 35791  // response was returned at all) in error.(*googleapi.Error).Header. Use
 35792  // googleapi.IsNotModified to check whether the returned error was because
 35793  // http.StatusNotModified was returned.
 35794  func (c *ProjectsLocationsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
 35795  	gensupport.SetOptions(c.urlParams_, opts...)
 35796  	res, err := c.doRequest("json")
 35797  	if res != nil && res.StatusCode == http.StatusNotModified {
 35798  		if res.Body != nil {
 35799  			res.Body.Close()
 35800  		}
 35801  		return nil, gensupport.WrapError(&googleapi.Error{
 35802  			Code:   res.StatusCode,
 35803  			Header: res.Header,
 35804  		})
 35805  	}
 35806  	if err != nil {
 35807  		return nil, err
 35808  	}
 35809  	defer googleapi.CloseBody(res)
 35810  	if err := googleapi.CheckResponse(res); err != nil {
 35811  		return nil, gensupport.WrapError(err)
 35812  	}
 35813  	ret := &GoogleCloudDialogflowV2beta1Environment{
 35814  		ServerResponse: googleapi.ServerResponse{
 35815  			Header:         res.Header,
 35816  			HTTPStatusCode: res.StatusCode,
 35817  		},
 35818  	}
 35819  	target := &ret
 35820  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35821  		return nil, err
 35822  	}
 35823  	return ret, nil
 35824  }
 35825  
 35826  type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {
 35827  	s            *Service
 35828  	parent       string
 35829  	urlParams_   gensupport.URLParams
 35830  	ifNoneMatch_ string
 35831  	ctx_         context.Context
 35832  	header_      http.Header
 35833  }
 35834  
 35835  // GetHistory: Gets the history of the specified environment.
 35836  //
 35837  //   - parent: The name of the environment to retrieve history for. Supported
 35838  //     formats: - `projects//agent/environments/` -
 35839  //     `projects//locations//agent/environments/`.
 35840  func (r *ProjectsLocationsAgentEnvironmentsService) GetHistory(parent string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 35841  	c := &ProjectsLocationsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35842  	c.parent = parent
 35843  	return c
 35844  }
 35845  
 35846  // PageSize sets the optional parameter "pageSize": The maximum number of items
 35847  // to return in a single page. By default 100 and at most 1000.
 35848  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 35849  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 35850  	return c
 35851  }
 35852  
 35853  // PageToken sets the optional parameter "pageToken": The next_page_token value
 35854  // returned from a previous list request.
 35855  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 35856  	c.urlParams_.Set("pageToken", pageToken)
 35857  	return c
 35858  }
 35859  
 35860  // Fields allows partial responses to be retrieved. See
 35861  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35862  // details.
 35863  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 35864  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35865  	return c
 35866  }
 35867  
 35868  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35869  // object's ETag matches the given value. This is useful for getting updates
 35870  // only after the object has changed since the last request.
 35871  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 35872  	c.ifNoneMatch_ = entityTag
 35873  	return c
 35874  }
 35875  
 35876  // Context sets the context to be used in this call's Do method.
 35877  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
 35878  	c.ctx_ = ctx
 35879  	return c
 35880  }
 35881  
 35882  // Header returns a http.Header that can be modified by the caller to add
 35883  // headers to the request.
 35884  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Header() http.Header {
 35885  	if c.header_ == nil {
 35886  		c.header_ = make(http.Header)
 35887  	}
 35888  	return c.header_
 35889  }
 35890  
 35891  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
 35892  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35893  	if c.ifNoneMatch_ != "" {
 35894  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35895  	}
 35896  	var body io.Reader = nil
 35897  	c.urlParams_.Set("alt", alt)
 35898  	c.urlParams_.Set("prettyPrint", "false")
 35899  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
 35900  	urls += "?" + c.urlParams_.Encode()
 35901  	req, err := http.NewRequest("GET", urls, body)
 35902  	if err != nil {
 35903  		return nil, err
 35904  	}
 35905  	req.Header = reqHeaders
 35906  	googleapi.Expand(req.URL, map[string]string{
 35907  		"parent": c.parent,
 35908  	})
 35909  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35910  }
 35911  
 35912  // Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call.
 35913  // Any non-2xx status code is an error. Response headers are in either
 35914  // *GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header or (if
 35915  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 35916  // googleapi.IsNotModified to check whether the returned error was because
 35917  // http.StatusNotModified was returned.
 35918  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
 35919  	gensupport.SetOptions(c.urlParams_, opts...)
 35920  	res, err := c.doRequest("json")
 35921  	if res != nil && res.StatusCode == http.StatusNotModified {
 35922  		if res.Body != nil {
 35923  			res.Body.Close()
 35924  		}
 35925  		return nil, gensupport.WrapError(&googleapi.Error{
 35926  			Code:   res.StatusCode,
 35927  			Header: res.Header,
 35928  		})
 35929  	}
 35930  	if err != nil {
 35931  		return nil, err
 35932  	}
 35933  	defer googleapi.CloseBody(res)
 35934  	if err := googleapi.CheckResponse(res); err != nil {
 35935  		return nil, gensupport.WrapError(err)
 35936  	}
 35937  	ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
 35938  		ServerResponse: googleapi.ServerResponse{
 35939  			Header:         res.Header,
 35940  			HTTPStatusCode: res.StatusCode,
 35941  		},
 35942  	}
 35943  	target := &ret
 35944  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35945  		return nil, err
 35946  	}
 35947  	return ret, nil
 35948  }
 35949  
 35950  // Pages invokes f for each page of results.
 35951  // A non-nil error returned from f will halt the iteration.
 35952  // The provided context supersedes any context provided to the Context method.
 35953  func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
 35954  	c.ctx_ = ctx
 35955  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 35956  	for {
 35957  		x, err := c.Do()
 35958  		if err != nil {
 35959  			return err
 35960  		}
 35961  		if err := f(x); err != nil {
 35962  			return err
 35963  		}
 35964  		if x.NextPageToken == "" {
 35965  			return nil
 35966  		}
 35967  		c.PageToken(x.NextPageToken)
 35968  	}
 35969  }
 35970  
 35971  type ProjectsLocationsAgentEnvironmentsListCall struct {
 35972  	s            *Service
 35973  	parent       string
 35974  	urlParams_   gensupport.URLParams
 35975  	ifNoneMatch_ string
 35976  	ctx_         context.Context
 35977  	header_      http.Header
 35978  }
 35979  
 35980  // List: Returns the list of all non-draft environments of the specified agent.
 35981  //
 35982  //   - parent: The agent to list all environments from. Format: -
 35983  //     `projects//agent` - `projects//locations//agent`.
 35984  func (r *ProjectsLocationsAgentEnvironmentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsListCall {
 35985  	c := &ProjectsLocationsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35986  	c.parent = parent
 35987  	return c
 35988  }
 35989  
 35990  // PageSize sets the optional parameter "pageSize": The maximum number of items
 35991  // to return in a single page. By default 100 and at most 1000.
 35992  func (c *ProjectsLocationsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsListCall {
 35993  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 35994  	return c
 35995  }
 35996  
 35997  // PageToken sets the optional parameter "pageToken": The next_page_token value
 35998  // returned from a previous list request.
 35999  func (c *ProjectsLocationsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsListCall {
 36000  	c.urlParams_.Set("pageToken", pageToken)
 36001  	return c
 36002  }
 36003  
 36004  // Fields allows partial responses to be retrieved. See
 36005  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36006  // details.
 36007  func (c *ProjectsLocationsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsListCall {
 36008  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36009  	return c
 36010  }
 36011  
 36012  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36013  // object's ETag matches the given value. This is useful for getting updates
 36014  // only after the object has changed since the last request.
 36015  func (c *ProjectsLocationsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsListCall {
 36016  	c.ifNoneMatch_ = entityTag
 36017  	return c
 36018  }
 36019  
 36020  // Context sets the context to be used in this call's Do method.
 36021  func (c *ProjectsLocationsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsListCall {
 36022  	c.ctx_ = ctx
 36023  	return c
 36024  }
 36025  
 36026  // Header returns a http.Header that can be modified by the caller to add
 36027  // headers to the request.
 36028  func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header {
 36029  	if c.header_ == nil {
 36030  		c.header_ = make(http.Header)
 36031  	}
 36032  	return c.header_
 36033  }
 36034  
 36035  func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
 36036  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36037  	if c.ifNoneMatch_ != "" {
 36038  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36039  	}
 36040  	var body io.Reader = nil
 36041  	c.urlParams_.Set("alt", alt)
 36042  	c.urlParams_.Set("prettyPrint", "false")
 36043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
 36044  	urls += "?" + c.urlParams_.Encode()
 36045  	req, err := http.NewRequest("GET", urls, body)
 36046  	if err != nil {
 36047  		return nil, err
 36048  	}
 36049  	req.Header = reqHeaders
 36050  	googleapi.Expand(req.URL, map[string]string{
 36051  		"parent": c.parent,
 36052  	})
 36053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36054  }
 36055  
 36056  // Do executes the "dialogflow.projects.locations.agent.environments.list" call.
 36057  // Any non-2xx status code is an error. Response headers are in either
 36058  // *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.Header
 36059  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 36060  // Use googleapi.IsNotModified to check whether the returned error was because
 36061  // http.StatusNotModified was returned.
 36062  func (c *ProjectsLocationsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
 36063  	gensupport.SetOptions(c.urlParams_, opts...)
 36064  	res, err := c.doRequest("json")
 36065  	if res != nil && res.StatusCode == http.StatusNotModified {
 36066  		if res.Body != nil {
 36067  			res.Body.Close()
 36068  		}
 36069  		return nil, gensupport.WrapError(&googleapi.Error{
 36070  			Code:   res.StatusCode,
 36071  			Header: res.Header,
 36072  		})
 36073  	}
 36074  	if err != nil {
 36075  		return nil, err
 36076  	}
 36077  	defer googleapi.CloseBody(res)
 36078  	if err := googleapi.CheckResponse(res); err != nil {
 36079  		return nil, gensupport.WrapError(err)
 36080  	}
 36081  	ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
 36082  		ServerResponse: googleapi.ServerResponse{
 36083  			Header:         res.Header,
 36084  			HTTPStatusCode: res.StatusCode,
 36085  		},
 36086  	}
 36087  	target := &ret
 36088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36089  		return nil, err
 36090  	}
 36091  	return ret, nil
 36092  }
 36093  
 36094  // Pages invokes f for each page of results.
 36095  // A non-nil error returned from f will halt the iteration.
 36096  // The provided context supersedes any context provided to the Context method.
 36097  func (c *ProjectsLocationsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
 36098  	c.ctx_ = ctx
 36099  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 36100  	for {
 36101  		x, err := c.Do()
 36102  		if err != nil {
 36103  			return err
 36104  		}
 36105  		if err := f(x); err != nil {
 36106  			return err
 36107  		}
 36108  		if x.NextPageToken == "" {
 36109  			return nil
 36110  		}
 36111  		c.PageToken(x.NextPageToken)
 36112  	}
 36113  }
 36114  
 36115  type ProjectsLocationsAgentEnvironmentsPatchCall struct {
 36116  	s                                       *Service
 36117  	nameid                                  string
 36118  	googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
 36119  	urlParams_                              gensupport.URLParams
 36120  	ctx_                                    context.Context
 36121  	header_                                 http.Header
 36122  }
 36123  
 36124  // Patch: Updates the specified agent environment. This method allows you to
 36125  // deploy new agent versions into the environment. When an environment is
 36126  // pointed to a new agent version by setting `environment.agent_version`, the
 36127  // environment is temporarily set to the `LOADING` state. During that time, the
 36128  // environment keeps on serving the previous version of the agent. After the
 36129  // new agent version is done loading, the environment is set back to the
 36130  // `RUNNING` state. You can use "-" as Environment ID in environment name to
 36131  // update version in "draft" environment. WARNING: this will negate all recent
 36132  // changes to draft and can't be undone. You may want to save the draft to a
 36133  // version before calling this function.
 36134  //
 36135  //   - name: Output only. The unique identifier of this agent environment.
 36136  //     Supported formats: - `projects//agent/environments/` -
 36137  //     `projects//locations//agent/environments/`.
 36138  func (r *ProjectsLocationsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36139  	c := &ProjectsLocationsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36140  	c.nameid = nameid
 36141  	c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
 36142  	return c
 36143  }
 36144  
 36145  // AllowLoadToDraftAndDiscardChanges sets the optional parameter
 36146  // "allowLoadToDraftAndDiscardChanges": This field is used to prevent
 36147  // accidental overwrite of the draft environment, which is an operation that
 36148  // cannot be undone. To confirm that the caller desires this overwrite, this
 36149  // field must be explicitly set to true when updating the draft environment
 36150  // (environment ID = `-`).
 36151  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36152  	c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
 36153  	return c
 36154  }
 36155  
 36156  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 36157  // control which fields get updated.
 36158  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36159  	c.urlParams_.Set("updateMask", updateMask)
 36160  	return c
 36161  }
 36162  
 36163  // Fields allows partial responses to be retrieved. See
 36164  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36165  // details.
 36166  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36167  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36168  	return c
 36169  }
 36170  
 36171  // Context sets the context to be used in this call's Do method.
 36172  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsPatchCall {
 36173  	c.ctx_ = ctx
 36174  	return c
 36175  }
 36176  
 36177  // Header returns a http.Header that can be modified by the caller to add
 36178  // headers to the request.
 36179  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Header() http.Header {
 36180  	if c.header_ == nil {
 36181  		c.header_ = make(http.Header)
 36182  	}
 36183  	return c.header_
 36184  }
 36185  
 36186  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
 36187  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36188  	var body io.Reader = nil
 36189  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
 36190  	if err != nil {
 36191  		return nil, err
 36192  	}
 36193  	c.urlParams_.Set("alt", alt)
 36194  	c.urlParams_.Set("prettyPrint", "false")
 36195  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 36196  	urls += "?" + c.urlParams_.Encode()
 36197  	req, err := http.NewRequest("PATCH", urls, body)
 36198  	if err != nil {
 36199  		return nil, err
 36200  	}
 36201  	req.Header = reqHeaders
 36202  	googleapi.Expand(req.URL, map[string]string{
 36203  		"name": c.nameid,
 36204  	})
 36205  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36206  }
 36207  
 36208  // Do executes the "dialogflow.projects.locations.agent.environments.patch" call.
 36209  // Any non-2xx status code is an error. Response headers are in either
 36210  // *GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if a
 36211  // response was returned at all) in error.(*googleapi.Error).Header. Use
 36212  // googleapi.IsNotModified to check whether the returned error was because
 36213  // http.StatusNotModified was returned.
 36214  func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
 36215  	gensupport.SetOptions(c.urlParams_, opts...)
 36216  	res, err := c.doRequest("json")
 36217  	if res != nil && res.StatusCode == http.StatusNotModified {
 36218  		if res.Body != nil {
 36219  			res.Body.Close()
 36220  		}
 36221  		return nil, gensupport.WrapError(&googleapi.Error{
 36222  			Code:   res.StatusCode,
 36223  			Header: res.Header,
 36224  		})
 36225  	}
 36226  	if err != nil {
 36227  		return nil, err
 36228  	}
 36229  	defer googleapi.CloseBody(res)
 36230  	if err := googleapi.CheckResponse(res); err != nil {
 36231  		return nil, gensupport.WrapError(err)
 36232  	}
 36233  	ret := &GoogleCloudDialogflowV2beta1Environment{
 36234  		ServerResponse: googleapi.ServerResponse{
 36235  			Header:         res.Header,
 36236  			HTTPStatusCode: res.StatusCode,
 36237  		},
 36238  	}
 36239  	target := &ret
 36240  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36241  		return nil, err
 36242  	}
 36243  	return ret, nil
 36244  }
 36245  
 36246  type ProjectsLocationsAgentEnvironmentsIntentsListCall struct {
 36247  	s            *Service
 36248  	parent       string
 36249  	urlParams_   gensupport.URLParams
 36250  	ifNoneMatch_ string
 36251  	ctx_         context.Context
 36252  	header_      http.Header
 36253  }
 36254  
 36255  // List: Returns the list of all intents in the specified agent.
 36256  //
 36257  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 36258  //     `projects//locations//agent`. Alternatively, you can specify the
 36259  //     environment to list intents for. Format: `projects//agent/environments/`
 36260  //     or `projects//locations//agent/environments/`. Note: training phrases of
 36261  //     the intents will not be returned for non-draft environment.
 36262  func (r *ProjectsLocationsAgentEnvironmentsIntentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36263  	c := &ProjectsLocationsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36264  	c.parent = parent
 36265  	return c
 36266  }
 36267  
 36268  // IntentView sets the optional parameter "intentView": The resource view to
 36269  // apply to the returned intent.
 36270  //
 36271  // Possible values:
 36272  //
 36273  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 36274  //
 36275  // response.
 36276  //
 36277  //	"INTENT_VIEW_FULL" - All fields are populated.
 36278  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36279  	c.urlParams_.Set("intentView", intentView)
 36280  	return c
 36281  }
 36282  
 36283  // LanguageCode sets the optional parameter "languageCode": The language used
 36284  // to access language-specific data. If not specified, the agent's default
 36285  // language is used. For more information, see Multilingual intent and entity
 36286  // data
 36287  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 36288  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36289  	c.urlParams_.Set("languageCode", languageCode)
 36290  	return c
 36291  }
 36292  
 36293  // PageSize sets the optional parameter "pageSize": The maximum number of items
 36294  // to return in a single page. By default 100 and at most 1000.
 36295  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36296  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 36297  	return c
 36298  }
 36299  
 36300  // PageToken sets the optional parameter "pageToken": The next_page_token value
 36301  // returned from a previous list request.
 36302  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36303  	c.urlParams_.Set("pageToken", pageToken)
 36304  	return c
 36305  }
 36306  
 36307  // Fields allows partial responses to be retrieved. See
 36308  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36309  // details.
 36310  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36311  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36312  	return c
 36313  }
 36314  
 36315  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36316  // object's ETag matches the given value. This is useful for getting updates
 36317  // only after the object has changed since the last request.
 36318  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36319  	c.ifNoneMatch_ = entityTag
 36320  	return c
 36321  }
 36322  
 36323  // Context sets the context to be used in this call's Do method.
 36324  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
 36325  	c.ctx_ = ctx
 36326  	return c
 36327  }
 36328  
 36329  // Header returns a http.Header that can be modified by the caller to add
 36330  // headers to the request.
 36331  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Header() http.Header {
 36332  	if c.header_ == nil {
 36333  		c.header_ = make(http.Header)
 36334  	}
 36335  	return c.header_
 36336  }
 36337  
 36338  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
 36339  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36340  	if c.ifNoneMatch_ != "" {
 36341  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36342  	}
 36343  	var body io.Reader = nil
 36344  	c.urlParams_.Set("alt", alt)
 36345  	c.urlParams_.Set("prettyPrint", "false")
 36346  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
 36347  	urls += "?" + c.urlParams_.Encode()
 36348  	req, err := http.NewRequest("GET", urls, body)
 36349  	if err != nil {
 36350  		return nil, err
 36351  	}
 36352  	req.Header = reqHeaders
 36353  	googleapi.Expand(req.URL, map[string]string{
 36354  		"parent": c.parent,
 36355  	})
 36356  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36357  }
 36358  
 36359  // Do executes the "dialogflow.projects.locations.agent.environments.intents.list" call.
 36360  // Any non-2xx status code is an error. Response headers are in either
 36361  // *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or
 36362  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 36363  // googleapi.IsNotModified to check whether the returned error was because
 36364  // http.StatusNotModified was returned.
 36365  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
 36366  	gensupport.SetOptions(c.urlParams_, opts...)
 36367  	res, err := c.doRequest("json")
 36368  	if res != nil && res.StatusCode == http.StatusNotModified {
 36369  		if res.Body != nil {
 36370  			res.Body.Close()
 36371  		}
 36372  		return nil, gensupport.WrapError(&googleapi.Error{
 36373  			Code:   res.StatusCode,
 36374  			Header: res.Header,
 36375  		})
 36376  	}
 36377  	if err != nil {
 36378  		return nil, err
 36379  	}
 36380  	defer googleapi.CloseBody(res)
 36381  	if err := googleapi.CheckResponse(res); err != nil {
 36382  		return nil, gensupport.WrapError(err)
 36383  	}
 36384  	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
 36385  		ServerResponse: googleapi.ServerResponse{
 36386  			Header:         res.Header,
 36387  			HTTPStatusCode: res.StatusCode,
 36388  		},
 36389  	}
 36390  	target := &ret
 36391  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36392  		return nil, err
 36393  	}
 36394  	return ret, nil
 36395  }
 36396  
 36397  // Pages invokes f for each page of results.
 36398  // A non-nil error returned from f will halt the iteration.
 36399  // The provided context supersedes any context provided to the Context method.
 36400  func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
 36401  	c.ctx_ = ctx
 36402  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 36403  	for {
 36404  		x, err := c.Do()
 36405  		if err != nil {
 36406  			return err
 36407  		}
 36408  		if err := f(x); err != nil {
 36409  			return err
 36410  		}
 36411  		if x.NextPageToken == "" {
 36412  			return nil
 36413  		}
 36414  		c.PageToken(x.NextPageToken)
 36415  	}
 36416  }
 36417  
 36418  type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
 36419  	s          *Service
 36420  	parent     string
 36421  	urlParams_ gensupport.URLParams
 36422  	ctx_       context.Context
 36423  	header_    http.Header
 36424  }
 36425  
 36426  // DeleteContexts: Deletes all active contexts in the specified session.
 36427  //
 36428  //   - parent: The name of the session to delete all contexts from. Supported
 36429  //     formats: - `projects//agent/sessions/, -
 36430  //     `projects//locations//agent/sessions/`, -
 36431  //     `projects//agent/environments//users//sessions/`, -
 36432  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 36433  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 36434  //     is not specified we assume default 'draft' environment. If `User ID` is
 36435  //     not specified, we assume default '-' user.
 36436  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 36437  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36438  	c.parent = parent
 36439  	return c
 36440  }
 36441  
 36442  // Fields allows partial responses to be retrieved. See
 36443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36444  // details.
 36445  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 36446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36447  	return c
 36448  }
 36449  
 36450  // Context sets the context to be used in this call's Do method.
 36451  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
 36452  	c.ctx_ = ctx
 36453  	return c
 36454  }
 36455  
 36456  // Header returns a http.Header that can be modified by the caller to add
 36457  // headers to the request.
 36458  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
 36459  	if c.header_ == nil {
 36460  		c.header_ = make(http.Header)
 36461  	}
 36462  	return c.header_
 36463  }
 36464  
 36465  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 36466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36467  	var body io.Reader = nil
 36468  	c.urlParams_.Set("alt", alt)
 36469  	c.urlParams_.Set("prettyPrint", "false")
 36470  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 36471  	urls += "?" + c.urlParams_.Encode()
 36472  	req, err := http.NewRequest("DELETE", urls, body)
 36473  	if err != nil {
 36474  		return nil, err
 36475  	}
 36476  	req.Header = reqHeaders
 36477  	googleapi.Expand(req.URL, map[string]string{
 36478  		"parent": c.parent,
 36479  	})
 36480  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36481  }
 36482  
 36483  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call.
 36484  // Any non-2xx status code is an error. Response headers are in either
 36485  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 36486  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 36487  // check whether the returned error was because http.StatusNotModified was
 36488  // returned.
 36489  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 36490  	gensupport.SetOptions(c.urlParams_, opts...)
 36491  	res, err := c.doRequest("json")
 36492  	if res != nil && res.StatusCode == http.StatusNotModified {
 36493  		if res.Body != nil {
 36494  			res.Body.Close()
 36495  		}
 36496  		return nil, gensupport.WrapError(&googleapi.Error{
 36497  			Code:   res.StatusCode,
 36498  			Header: res.Header,
 36499  		})
 36500  	}
 36501  	if err != nil {
 36502  		return nil, err
 36503  	}
 36504  	defer googleapi.CloseBody(res)
 36505  	if err := googleapi.CheckResponse(res); err != nil {
 36506  		return nil, gensupport.WrapError(err)
 36507  	}
 36508  	ret := &GoogleProtobufEmpty{
 36509  		ServerResponse: googleapi.ServerResponse{
 36510  			Header:         res.Header,
 36511  			HTTPStatusCode: res.StatusCode,
 36512  		},
 36513  	}
 36514  	target := &ret
 36515  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36516  		return nil, err
 36517  	}
 36518  	return ret, nil
 36519  }
 36520  
 36521  type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
 36522  	s                                               *Service
 36523  	sessionid                                       string
 36524  	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
 36525  	urlParams_                                      gensupport.URLParams
 36526  	ctx_                                            context.Context
 36527  	header_                                         http.Header
 36528  }
 36529  
 36530  // DetectIntent: Processes a natural language query and returns structured,
 36531  // actionable data as a result. This method is not idempotent, because it may
 36532  // cause contexts and session entity types to be updated, which in turn might
 36533  // affect results of future queries. If you might use Agent Assist
 36534  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 36535  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 36536  // `AnalyzeContent` has additional functionality for Agent Assist and other
 36537  // CCAI products. Note: Always use agent versions for production traffic. See
 36538  // Versions and environments
 36539  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 36540  //
 36541  // - session: The name of the session this query is sent to. Supported formats:
 36542  //   - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 36543  //     `projects//agent/environments//users//sessions/`, -
 36544  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 36545  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 36546  //     is not specified, we assume default 'draft' environment (`Environment ID`
 36547  //     might be referred to as environment name at some places). If `User ID` is
 36548  //     not specified, we are using "-". It's up to the API caller to choose an
 36549  //     appropriate `Session ID` and `User Id`. They can be a random number or
 36550  //     some type of user and session identifiers (preferably hashed). The length
 36551  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 36552  //     information, see the API interactions guide
 36553  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 36554  //     agent versions for production traffic. See Versions and environments
 36555  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 36556  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
 36557  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36558  	c.sessionid = sessionid
 36559  	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
 36560  	return c
 36561  }
 36562  
 36563  // Fields allows partial responses to be retrieved. See
 36564  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36565  // details.
 36566  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
 36567  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36568  	return c
 36569  }
 36570  
 36571  // Context sets the context to be used in this call's Do method.
 36572  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
 36573  	c.ctx_ = ctx
 36574  	return c
 36575  }
 36576  
 36577  // Header returns a http.Header that can be modified by the caller to add
 36578  // headers to the request.
 36579  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
 36580  	if c.header_ == nil {
 36581  		c.header_ = make(http.Header)
 36582  	}
 36583  	return c.header_
 36584  }
 36585  
 36586  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 36587  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36588  	var body io.Reader = nil
 36589  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
 36590  	if err != nil {
 36591  		return nil, err
 36592  	}
 36593  	c.urlParams_.Set("alt", alt)
 36594  	c.urlParams_.Set("prettyPrint", "false")
 36595  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
 36596  	urls += "?" + c.urlParams_.Encode()
 36597  	req, err := http.NewRequest("POST", urls, body)
 36598  	if err != nil {
 36599  		return nil, err
 36600  	}
 36601  	req.Header = reqHeaders
 36602  	googleapi.Expand(req.URL, map[string]string{
 36603  		"session": c.sessionid,
 36604  	})
 36605  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36606  }
 36607  
 36608  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call.
 36609  // Any non-2xx status code is an error. Response headers are in either
 36610  // *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or
 36611  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 36612  // googleapi.IsNotModified to check whether the returned error was because
 36613  // http.StatusNotModified was returned.
 36614  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
 36615  	gensupport.SetOptions(c.urlParams_, opts...)
 36616  	res, err := c.doRequest("json")
 36617  	if res != nil && res.StatusCode == http.StatusNotModified {
 36618  		if res.Body != nil {
 36619  			res.Body.Close()
 36620  		}
 36621  		return nil, gensupport.WrapError(&googleapi.Error{
 36622  			Code:   res.StatusCode,
 36623  			Header: res.Header,
 36624  		})
 36625  	}
 36626  	if err != nil {
 36627  		return nil, err
 36628  	}
 36629  	defer googleapi.CloseBody(res)
 36630  	if err := googleapi.CheckResponse(res); err != nil {
 36631  		return nil, gensupport.WrapError(err)
 36632  	}
 36633  	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
 36634  		ServerResponse: googleapi.ServerResponse{
 36635  			Header:         res.Header,
 36636  			HTTPStatusCode: res.StatusCode,
 36637  		},
 36638  	}
 36639  	target := &ret
 36640  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36641  		return nil, err
 36642  	}
 36643  	return ret, nil
 36644  }
 36645  
 36646  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
 36647  	s                                   *Service
 36648  	parent                              string
 36649  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 36650  	urlParams_                          gensupport.URLParams
 36651  	ctx_                                context.Context
 36652  	header_                             http.Header
 36653  }
 36654  
 36655  // Create: Creates a context. If the specified context already exists,
 36656  // overrides the context.
 36657  //
 36658  //   - parent: The session to create a context for. Supported formats: -
 36659  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 36660  //     `projects//agent/environments//users//sessions/`, -
 36661  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 36662  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 36663  //     is not specified, we assume default 'draft' environment. If `User ID` is
 36664  //     not specified, we assume default '-' user.
 36665  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
 36666  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36667  	c.parent = parent
 36668  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 36669  	return c
 36670  }
 36671  
 36672  // Fields allows partial responses to be retrieved. See
 36673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36674  // details.
 36675  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
 36676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36677  	return c
 36678  }
 36679  
 36680  // Context sets the context to be used in this call's Do method.
 36681  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
 36682  	c.ctx_ = ctx
 36683  	return c
 36684  }
 36685  
 36686  // Header returns a http.Header that can be modified by the caller to add
 36687  // headers to the request.
 36688  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
 36689  	if c.header_ == nil {
 36690  		c.header_ = make(http.Header)
 36691  	}
 36692  	return c.header_
 36693  }
 36694  
 36695  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 36696  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36697  	var body io.Reader = nil
 36698  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 36699  	if err != nil {
 36700  		return nil, err
 36701  	}
 36702  	c.urlParams_.Set("alt", alt)
 36703  	c.urlParams_.Set("prettyPrint", "false")
 36704  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 36705  	urls += "?" + c.urlParams_.Encode()
 36706  	req, err := http.NewRequest("POST", urls, body)
 36707  	if err != nil {
 36708  		return nil, err
 36709  	}
 36710  	req.Header = reqHeaders
 36711  	googleapi.Expand(req.URL, map[string]string{
 36712  		"parent": c.parent,
 36713  	})
 36714  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36715  }
 36716  
 36717  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call.
 36718  // Any non-2xx status code is an error. Response headers are in either
 36719  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 36720  // was returned at all) in error.(*googleapi.Error).Header. Use
 36721  // googleapi.IsNotModified to check whether the returned error was because
 36722  // http.StatusNotModified was returned.
 36723  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 36724  	gensupport.SetOptions(c.urlParams_, opts...)
 36725  	res, err := c.doRequest("json")
 36726  	if res != nil && res.StatusCode == http.StatusNotModified {
 36727  		if res.Body != nil {
 36728  			res.Body.Close()
 36729  		}
 36730  		return nil, gensupport.WrapError(&googleapi.Error{
 36731  			Code:   res.StatusCode,
 36732  			Header: res.Header,
 36733  		})
 36734  	}
 36735  	if err != nil {
 36736  		return nil, err
 36737  	}
 36738  	defer googleapi.CloseBody(res)
 36739  	if err := googleapi.CheckResponse(res); err != nil {
 36740  		return nil, gensupport.WrapError(err)
 36741  	}
 36742  	ret := &GoogleCloudDialogflowV2beta1Context{
 36743  		ServerResponse: googleapi.ServerResponse{
 36744  			Header:         res.Header,
 36745  			HTTPStatusCode: res.StatusCode,
 36746  		},
 36747  	}
 36748  	target := &ret
 36749  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36750  		return nil, err
 36751  	}
 36752  	return ret, nil
 36753  }
 36754  
 36755  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
 36756  	s          *Service
 36757  	name       string
 36758  	urlParams_ gensupport.URLParams
 36759  	ctx_       context.Context
 36760  	header_    http.Header
 36761  }
 36762  
 36763  // Delete: Deletes the specified context.
 36764  //
 36765  //   - name: The name of the context to delete. Supported formats: -
 36766  //     `projects//agent/sessions//contexts/`, -
 36767  //     `projects//locations//agent/sessions//contexts/`, -
 36768  //     `projects//agent/environments//users//sessions//contexts/`, -
 36769  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 36770  //     `Location ID` is not specified we assume default 'us' location. If
 36771  //     `Environment ID` is not specified, we assume default 'draft' environment.
 36772  //     If `User ID` is not specified, we assume default '-' user.
 36773  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 36774  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36775  	c.name = name
 36776  	return c
 36777  }
 36778  
 36779  // Fields allows partial responses to be retrieved. See
 36780  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36781  // details.
 36782  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 36783  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36784  	return c
 36785  }
 36786  
 36787  // Context sets the context to be used in this call's Do method.
 36788  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
 36789  	c.ctx_ = ctx
 36790  	return c
 36791  }
 36792  
 36793  // Header returns a http.Header that can be modified by the caller to add
 36794  // headers to the request.
 36795  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
 36796  	if c.header_ == nil {
 36797  		c.header_ = make(http.Header)
 36798  	}
 36799  	return c.header_
 36800  }
 36801  
 36802  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 36803  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36804  	var body io.Reader = nil
 36805  	c.urlParams_.Set("alt", alt)
 36806  	c.urlParams_.Set("prettyPrint", "false")
 36807  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 36808  	urls += "?" + c.urlParams_.Encode()
 36809  	req, err := http.NewRequest("DELETE", urls, body)
 36810  	if err != nil {
 36811  		return nil, err
 36812  	}
 36813  	req.Header = reqHeaders
 36814  	googleapi.Expand(req.URL, map[string]string{
 36815  		"name": c.name,
 36816  	})
 36817  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36818  }
 36819  
 36820  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call.
 36821  // Any non-2xx status code is an error. Response headers are in either
 36822  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 36823  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 36824  // check whether the returned error was because http.StatusNotModified was
 36825  // returned.
 36826  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 36827  	gensupport.SetOptions(c.urlParams_, opts...)
 36828  	res, err := c.doRequest("json")
 36829  	if res != nil && res.StatusCode == http.StatusNotModified {
 36830  		if res.Body != nil {
 36831  			res.Body.Close()
 36832  		}
 36833  		return nil, gensupport.WrapError(&googleapi.Error{
 36834  			Code:   res.StatusCode,
 36835  			Header: res.Header,
 36836  		})
 36837  	}
 36838  	if err != nil {
 36839  		return nil, err
 36840  	}
 36841  	defer googleapi.CloseBody(res)
 36842  	if err := googleapi.CheckResponse(res); err != nil {
 36843  		return nil, gensupport.WrapError(err)
 36844  	}
 36845  	ret := &GoogleProtobufEmpty{
 36846  		ServerResponse: googleapi.ServerResponse{
 36847  			Header:         res.Header,
 36848  			HTTPStatusCode: res.StatusCode,
 36849  		},
 36850  	}
 36851  	target := &ret
 36852  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36853  		return nil, err
 36854  	}
 36855  	return ret, nil
 36856  }
 36857  
 36858  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {
 36859  	s            *Service
 36860  	name         string
 36861  	urlParams_   gensupport.URLParams
 36862  	ifNoneMatch_ string
 36863  	ctx_         context.Context
 36864  	header_      http.Header
 36865  }
 36866  
 36867  // Get: Retrieves the specified context.
 36868  //
 36869  //   - name: The name of the context. Supported formats: -
 36870  //     `projects//agent/sessions//contexts/`, -
 36871  //     `projects//locations//agent/sessions//contexts/`, -
 36872  //     `projects//agent/environments//users//sessions//contexts/`, -
 36873  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 36874  //     `Location ID` is not specified we assume default 'us' location. If
 36875  //     `Environment ID` is not specified, we assume default 'draft' environment.
 36876  //     If `User ID` is not specified, we assume default '-' user.
 36877  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 36878  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36879  	c.name = name
 36880  	return c
 36881  }
 36882  
 36883  // Fields allows partial responses to be retrieved. See
 36884  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36885  // details.
 36886  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 36887  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36888  	return c
 36889  }
 36890  
 36891  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36892  // object's ETag matches the given value. This is useful for getting updates
 36893  // only after the object has changed since the last request.
 36894  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 36895  	c.ifNoneMatch_ = entityTag
 36896  	return c
 36897  }
 36898  
 36899  // Context sets the context to be used in this call's Do method.
 36900  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
 36901  	c.ctx_ = ctx
 36902  	return c
 36903  }
 36904  
 36905  // Header returns a http.Header that can be modified by the caller to add
 36906  // headers to the request.
 36907  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
 36908  	if c.header_ == nil {
 36909  		c.header_ = make(http.Header)
 36910  	}
 36911  	return c.header_
 36912  }
 36913  
 36914  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 36915  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36916  	if c.ifNoneMatch_ != "" {
 36917  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36918  	}
 36919  	var body io.Reader = nil
 36920  	c.urlParams_.Set("alt", alt)
 36921  	c.urlParams_.Set("prettyPrint", "false")
 36922  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 36923  	urls += "?" + c.urlParams_.Encode()
 36924  	req, err := http.NewRequest("GET", urls, body)
 36925  	if err != nil {
 36926  		return nil, err
 36927  	}
 36928  	req.Header = reqHeaders
 36929  	googleapi.Expand(req.URL, map[string]string{
 36930  		"name": c.name,
 36931  	})
 36932  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36933  }
 36934  
 36935  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call.
 36936  // Any non-2xx status code is an error. Response headers are in either
 36937  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 36938  // was returned at all) in error.(*googleapi.Error).Header. Use
 36939  // googleapi.IsNotModified to check whether the returned error was because
 36940  // http.StatusNotModified was returned.
 36941  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 36942  	gensupport.SetOptions(c.urlParams_, opts...)
 36943  	res, err := c.doRequest("json")
 36944  	if res != nil && res.StatusCode == http.StatusNotModified {
 36945  		if res.Body != nil {
 36946  			res.Body.Close()
 36947  		}
 36948  		return nil, gensupport.WrapError(&googleapi.Error{
 36949  			Code:   res.StatusCode,
 36950  			Header: res.Header,
 36951  		})
 36952  	}
 36953  	if err != nil {
 36954  		return nil, err
 36955  	}
 36956  	defer googleapi.CloseBody(res)
 36957  	if err := googleapi.CheckResponse(res); err != nil {
 36958  		return nil, gensupport.WrapError(err)
 36959  	}
 36960  	ret := &GoogleCloudDialogflowV2beta1Context{
 36961  		ServerResponse: googleapi.ServerResponse{
 36962  			Header:         res.Header,
 36963  			HTTPStatusCode: res.StatusCode,
 36964  		},
 36965  	}
 36966  	target := &ret
 36967  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36968  		return nil, err
 36969  	}
 36970  	return ret, nil
 36971  }
 36972  
 36973  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {
 36974  	s            *Service
 36975  	parent       string
 36976  	urlParams_   gensupport.URLParams
 36977  	ifNoneMatch_ string
 36978  	ctx_         context.Context
 36979  	header_      http.Header
 36980  }
 36981  
 36982  // List: Returns the list of all contexts in the specified session.
 36983  //
 36984  //   - parent: The session to list all contexts from. Supported formats: -
 36985  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 36986  //     `projects//agent/environments//users//sessions/`, -
 36987  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 36988  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 36989  //     is not specified, we assume default 'draft' environment. If `User ID` is
 36990  //     not specified, we assume default '-' user.
 36991  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 36992  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36993  	c.parent = parent
 36994  	return c
 36995  }
 36996  
 36997  // PageSize sets the optional parameter "pageSize": The maximum number of items
 36998  // to return in a single page. By default 100 and at most 1000.
 36999  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37000  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 37001  	return c
 37002  }
 37003  
 37004  // PageToken sets the optional parameter "pageToken": The next_page_token value
 37005  // returned from a previous list request.
 37006  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37007  	c.urlParams_.Set("pageToken", pageToken)
 37008  	return c
 37009  }
 37010  
 37011  // Fields allows partial responses to be retrieved. See
 37012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37013  // details.
 37014  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37016  	return c
 37017  }
 37018  
 37019  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37020  // object's ETag matches the given value. This is useful for getting updates
 37021  // only after the object has changed since the last request.
 37022  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37023  	c.ifNoneMatch_ = entityTag
 37024  	return c
 37025  }
 37026  
 37027  // Context sets the context to be used in this call's Do method.
 37028  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
 37029  	c.ctx_ = ctx
 37030  	return c
 37031  }
 37032  
 37033  // Header returns a http.Header that can be modified by the caller to add
 37034  // headers to the request.
 37035  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
 37036  	if c.header_ == nil {
 37037  		c.header_ = make(http.Header)
 37038  	}
 37039  	return c.header_
 37040  }
 37041  
 37042  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 37043  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37044  	if c.ifNoneMatch_ != "" {
 37045  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37046  	}
 37047  	var body io.Reader = nil
 37048  	c.urlParams_.Set("alt", alt)
 37049  	c.urlParams_.Set("prettyPrint", "false")
 37050  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 37051  	urls += "?" + c.urlParams_.Encode()
 37052  	req, err := http.NewRequest("GET", urls, body)
 37053  	if err != nil {
 37054  		return nil, err
 37055  	}
 37056  	req.Header = reqHeaders
 37057  	googleapi.Expand(req.URL, map[string]string{
 37058  		"parent": c.parent,
 37059  	})
 37060  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37061  }
 37062  
 37063  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call.
 37064  // Any non-2xx status code is an error. Response headers are in either
 37065  // *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or
 37066  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 37067  // googleapi.IsNotModified to check whether the returned error was because
 37068  // http.StatusNotModified was returned.
 37069  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
 37070  	gensupport.SetOptions(c.urlParams_, opts...)
 37071  	res, err := c.doRequest("json")
 37072  	if res != nil && res.StatusCode == http.StatusNotModified {
 37073  		if res.Body != nil {
 37074  			res.Body.Close()
 37075  		}
 37076  		return nil, gensupport.WrapError(&googleapi.Error{
 37077  			Code:   res.StatusCode,
 37078  			Header: res.Header,
 37079  		})
 37080  	}
 37081  	if err != nil {
 37082  		return nil, err
 37083  	}
 37084  	defer googleapi.CloseBody(res)
 37085  	if err := googleapi.CheckResponse(res); err != nil {
 37086  		return nil, gensupport.WrapError(err)
 37087  	}
 37088  	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
 37089  		ServerResponse: googleapi.ServerResponse{
 37090  			Header:         res.Header,
 37091  			HTTPStatusCode: res.StatusCode,
 37092  		},
 37093  	}
 37094  	target := &ret
 37095  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37096  		return nil, err
 37097  	}
 37098  	return ret, nil
 37099  }
 37100  
 37101  // Pages invokes f for each page of results.
 37102  // A non-nil error returned from f will halt the iteration.
 37103  // The provided context supersedes any context provided to the Context method.
 37104  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
 37105  	c.ctx_ = ctx
 37106  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 37107  	for {
 37108  		x, err := c.Do()
 37109  		if err != nil {
 37110  			return err
 37111  		}
 37112  		if err := f(x); err != nil {
 37113  			return err
 37114  		}
 37115  		if x.NextPageToken == "" {
 37116  			return nil
 37117  		}
 37118  		c.PageToken(x.NextPageToken)
 37119  	}
 37120  }
 37121  
 37122  type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
 37123  	s                                   *Service
 37124  	nameid                              string
 37125  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 37126  	urlParams_                          gensupport.URLParams
 37127  	ctx_                                context.Context
 37128  	header_                             http.Header
 37129  }
 37130  
 37131  // Patch: Updates the specified context.
 37132  //
 37133  //   - name: The unique identifier of the context. Supported formats: -
 37134  //     `projects//agent/sessions//contexts/`, -
 37135  //     `projects//locations//agent/sessions//contexts/`, -
 37136  //     `projects//agent/environments//users//sessions//contexts/`, -
 37137  //     `projects//locations//agent/environments//users//sessions//contexts/`, The
 37138  //     `Context ID` is always converted to lowercase, may only contain characters
 37139  //     in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID`
 37140  //     is not specified, we assume default 'draft' environment. If `User ID` is
 37141  //     not specified, we assume default '-' user. The following context names are
 37142  //     reserved for internal use by Dialogflow. You should not use these contexts
 37143  //     or create contexts with these names: * `__system_counters__` *
 37144  //     `*_id_dialog_context` * `*_dialog_params_size`.
 37145  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37146  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37147  	c.nameid = nameid
 37148  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 37149  	return c
 37150  }
 37151  
 37152  // UpdateMask sets the optional parameter "updateMask": The mask to control
 37153  // which fields get updated.
 37154  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37155  	c.urlParams_.Set("updateMask", updateMask)
 37156  	return c
 37157  }
 37158  
 37159  // Fields allows partial responses to be retrieved. See
 37160  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37161  // details.
 37162  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37163  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37164  	return c
 37165  }
 37166  
 37167  // Context sets the context to be used in this call's Do method.
 37168  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
 37169  	c.ctx_ = ctx
 37170  	return c
 37171  }
 37172  
 37173  // Header returns a http.Header that can be modified by the caller to add
 37174  // headers to the request.
 37175  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
 37176  	if c.header_ == nil {
 37177  		c.header_ = make(http.Header)
 37178  	}
 37179  	return c.header_
 37180  }
 37181  
 37182  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 37183  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37184  	var body io.Reader = nil
 37185  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 37186  	if err != nil {
 37187  		return nil, err
 37188  	}
 37189  	c.urlParams_.Set("alt", alt)
 37190  	c.urlParams_.Set("prettyPrint", "false")
 37191  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 37192  	urls += "?" + c.urlParams_.Encode()
 37193  	req, err := http.NewRequest("PATCH", urls, body)
 37194  	if err != nil {
 37195  		return nil, err
 37196  	}
 37197  	req.Header = reqHeaders
 37198  	googleapi.Expand(req.URL, map[string]string{
 37199  		"name": c.nameid,
 37200  	})
 37201  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37202  }
 37203  
 37204  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call.
 37205  // Any non-2xx status code is an error. Response headers are in either
 37206  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 37207  // was returned at all) in error.(*googleapi.Error).Header. Use
 37208  // googleapi.IsNotModified to check whether the returned error was because
 37209  // http.StatusNotModified was returned.
 37210  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 37211  	gensupport.SetOptions(c.urlParams_, opts...)
 37212  	res, err := c.doRequest("json")
 37213  	if res != nil && res.StatusCode == http.StatusNotModified {
 37214  		if res.Body != nil {
 37215  			res.Body.Close()
 37216  		}
 37217  		return nil, gensupport.WrapError(&googleapi.Error{
 37218  			Code:   res.StatusCode,
 37219  			Header: res.Header,
 37220  		})
 37221  	}
 37222  	if err != nil {
 37223  		return nil, err
 37224  	}
 37225  	defer googleapi.CloseBody(res)
 37226  	if err := googleapi.CheckResponse(res); err != nil {
 37227  		return nil, gensupport.WrapError(err)
 37228  	}
 37229  	ret := &GoogleCloudDialogflowV2beta1Context{
 37230  		ServerResponse: googleapi.ServerResponse{
 37231  			Header:         res.Header,
 37232  			HTTPStatusCode: res.StatusCode,
 37233  		},
 37234  	}
 37235  	target := &ret
 37236  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37237  		return nil, err
 37238  	}
 37239  	return ret, nil
 37240  }
 37241  
 37242  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
 37243  	s                                             *Service
 37244  	parent                                        string
 37245  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 37246  	urlParams_                                    gensupport.URLParams
 37247  	ctx_                                          context.Context
 37248  	header_                                       http.Header
 37249  }
 37250  
 37251  // Create: Creates a session entity type. If the specified session entity type
 37252  // already exists, overrides the session entity type. This method doesn't work
 37253  // with Google Assistant integration. Contact Dialogflow support if you need to
 37254  // use session entities with Google Assistant integration.
 37255  //
 37256  //   - parent: The session to create a session entity type for. Supported
 37257  //     formats: - `projects//agent/sessions/, -
 37258  //     `projects//locations//agent/sessions/`, -
 37259  //     `projects//agent/environments//users//sessions/`, -
 37260  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 37261  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 37262  //     is not specified, we assume default 'draft' environment. If `User ID` is
 37263  //     not specified, we assume default '-' user.
 37264  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 37265  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37266  	c.parent = parent
 37267  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 37268  	return c
 37269  }
 37270  
 37271  // Fields allows partial responses to be retrieved. See
 37272  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37273  // details.
 37274  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 37275  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37276  	return c
 37277  }
 37278  
 37279  // Context sets the context to be used in this call's Do method.
 37280  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
 37281  	c.ctx_ = ctx
 37282  	return c
 37283  }
 37284  
 37285  // Header returns a http.Header that can be modified by the caller to add
 37286  // headers to the request.
 37287  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
 37288  	if c.header_ == nil {
 37289  		c.header_ = make(http.Header)
 37290  	}
 37291  	return c.header_
 37292  }
 37293  
 37294  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 37295  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37296  	var body io.Reader = nil
 37297  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 37298  	if err != nil {
 37299  		return nil, err
 37300  	}
 37301  	c.urlParams_.Set("alt", alt)
 37302  	c.urlParams_.Set("prettyPrint", "false")
 37303  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 37304  	urls += "?" + c.urlParams_.Encode()
 37305  	req, err := http.NewRequest("POST", urls, body)
 37306  	if err != nil {
 37307  		return nil, err
 37308  	}
 37309  	req.Header = reqHeaders
 37310  	googleapi.Expand(req.URL, map[string]string{
 37311  		"parent": c.parent,
 37312  	})
 37313  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37314  }
 37315  
 37316  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call.
 37317  // Any non-2xx status code is an error. Response headers are in either
 37318  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 37319  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 37320  // googleapi.IsNotModified to check whether the returned error was because
 37321  // http.StatusNotModified was returned.
 37322  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 37323  	gensupport.SetOptions(c.urlParams_, opts...)
 37324  	res, err := c.doRequest("json")
 37325  	if res != nil && res.StatusCode == http.StatusNotModified {
 37326  		if res.Body != nil {
 37327  			res.Body.Close()
 37328  		}
 37329  		return nil, gensupport.WrapError(&googleapi.Error{
 37330  			Code:   res.StatusCode,
 37331  			Header: res.Header,
 37332  		})
 37333  	}
 37334  	if err != nil {
 37335  		return nil, err
 37336  	}
 37337  	defer googleapi.CloseBody(res)
 37338  	if err := googleapi.CheckResponse(res); err != nil {
 37339  		return nil, gensupport.WrapError(err)
 37340  	}
 37341  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 37342  		ServerResponse: googleapi.ServerResponse{
 37343  			Header:         res.Header,
 37344  			HTTPStatusCode: res.StatusCode,
 37345  		},
 37346  	}
 37347  	target := &ret
 37348  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37349  		return nil, err
 37350  	}
 37351  	return ret, nil
 37352  }
 37353  
 37354  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
 37355  	s          *Service
 37356  	name       string
 37357  	urlParams_ gensupport.URLParams
 37358  	ctx_       context.Context
 37359  	header_    http.Header
 37360  }
 37361  
 37362  // Delete: Deletes the specified session entity type. This method doesn't work
 37363  // with Google Assistant integration. Contact Dialogflow support if you need to
 37364  // use session entities with Google Assistant integration.
 37365  //
 37366  //   - name: The name of the entity type to delete. Supported formats: -
 37367  //     `projects//agent/sessions//entityTypes/` -
 37368  //     `projects//locations//agent/sessions//entityTypes/` -
 37369  //     `projects//agent/environments//users//sessions//entityTypes/` -
 37370  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 37371  //     If `Location ID` is not specified we assume default 'us' location. If
 37372  //     `Environment ID` is not specified, we assume default 'draft' environment.
 37373  //     If `User ID` is not specified, we assume default '-' user.
 37374  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 37375  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37376  	c.name = name
 37377  	return c
 37378  }
 37379  
 37380  // Fields allows partial responses to be retrieved. See
 37381  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37382  // details.
 37383  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 37384  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37385  	return c
 37386  }
 37387  
 37388  // Context sets the context to be used in this call's Do method.
 37389  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
 37390  	c.ctx_ = ctx
 37391  	return c
 37392  }
 37393  
 37394  // Header returns a http.Header that can be modified by the caller to add
 37395  // headers to the request.
 37396  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
 37397  	if c.header_ == nil {
 37398  		c.header_ = make(http.Header)
 37399  	}
 37400  	return c.header_
 37401  }
 37402  
 37403  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 37404  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37405  	var body io.Reader = nil
 37406  	c.urlParams_.Set("alt", alt)
 37407  	c.urlParams_.Set("prettyPrint", "false")
 37408  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 37409  	urls += "?" + c.urlParams_.Encode()
 37410  	req, err := http.NewRequest("DELETE", urls, body)
 37411  	if err != nil {
 37412  		return nil, err
 37413  	}
 37414  	req.Header = reqHeaders
 37415  	googleapi.Expand(req.URL, map[string]string{
 37416  		"name": c.name,
 37417  	})
 37418  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37419  }
 37420  
 37421  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call.
 37422  // Any non-2xx status code is an error. Response headers are in either
 37423  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 37424  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 37425  // check whether the returned error was because http.StatusNotModified was
 37426  // returned.
 37427  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 37428  	gensupport.SetOptions(c.urlParams_, opts...)
 37429  	res, err := c.doRequest("json")
 37430  	if res != nil && res.StatusCode == http.StatusNotModified {
 37431  		if res.Body != nil {
 37432  			res.Body.Close()
 37433  		}
 37434  		return nil, gensupport.WrapError(&googleapi.Error{
 37435  			Code:   res.StatusCode,
 37436  			Header: res.Header,
 37437  		})
 37438  	}
 37439  	if err != nil {
 37440  		return nil, err
 37441  	}
 37442  	defer googleapi.CloseBody(res)
 37443  	if err := googleapi.CheckResponse(res); err != nil {
 37444  		return nil, gensupport.WrapError(err)
 37445  	}
 37446  	ret := &GoogleProtobufEmpty{
 37447  		ServerResponse: googleapi.ServerResponse{
 37448  			Header:         res.Header,
 37449  			HTTPStatusCode: res.StatusCode,
 37450  		},
 37451  	}
 37452  	target := &ret
 37453  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37454  		return nil, err
 37455  	}
 37456  	return ret, nil
 37457  }
 37458  
 37459  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
 37460  	s            *Service
 37461  	name         string
 37462  	urlParams_   gensupport.URLParams
 37463  	ifNoneMatch_ string
 37464  	ctx_         context.Context
 37465  	header_      http.Header
 37466  }
 37467  
 37468  // Get: Retrieves the specified session entity type. This method doesn't work
 37469  // with Google Assistant integration. Contact Dialogflow support if you need to
 37470  // use session entities with Google Assistant integration.
 37471  //
 37472  //   - name: The name of the session entity type. Supported formats: -
 37473  //     `projects//agent/sessions//entityTypes/` -
 37474  //     `projects//locations//agent/sessions//entityTypes/` -
 37475  //     `projects//agent/environments//users//sessions//entityTypes/` -
 37476  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 37477  //     If `Location ID` is not specified we assume default 'us' location. If
 37478  //     `Environment ID` is not specified, we assume default 'draft' environment.
 37479  //     If `User ID` is not specified, we assume default '-' user.
 37480  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 37481  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37482  	c.name = name
 37483  	return c
 37484  }
 37485  
 37486  // Fields allows partial responses to be retrieved. See
 37487  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37488  // details.
 37489  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 37490  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37491  	return c
 37492  }
 37493  
 37494  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37495  // object's ETag matches the given value. This is useful for getting updates
 37496  // only after the object has changed since the last request.
 37497  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 37498  	c.ifNoneMatch_ = entityTag
 37499  	return c
 37500  }
 37501  
 37502  // Context sets the context to be used in this call's Do method.
 37503  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
 37504  	c.ctx_ = ctx
 37505  	return c
 37506  }
 37507  
 37508  // Header returns a http.Header that can be modified by the caller to add
 37509  // headers to the request.
 37510  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
 37511  	if c.header_ == nil {
 37512  		c.header_ = make(http.Header)
 37513  	}
 37514  	return c.header_
 37515  }
 37516  
 37517  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 37518  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37519  	if c.ifNoneMatch_ != "" {
 37520  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37521  	}
 37522  	var body io.Reader = nil
 37523  	c.urlParams_.Set("alt", alt)
 37524  	c.urlParams_.Set("prettyPrint", "false")
 37525  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 37526  	urls += "?" + c.urlParams_.Encode()
 37527  	req, err := http.NewRequest("GET", urls, body)
 37528  	if err != nil {
 37529  		return nil, err
 37530  	}
 37531  	req.Header = reqHeaders
 37532  	googleapi.Expand(req.URL, map[string]string{
 37533  		"name": c.name,
 37534  	})
 37535  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37536  }
 37537  
 37538  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call.
 37539  // Any non-2xx status code is an error. Response headers are in either
 37540  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 37541  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 37542  // googleapi.IsNotModified to check whether the returned error was because
 37543  // http.StatusNotModified was returned.
 37544  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 37545  	gensupport.SetOptions(c.urlParams_, opts...)
 37546  	res, err := c.doRequest("json")
 37547  	if res != nil && res.StatusCode == http.StatusNotModified {
 37548  		if res.Body != nil {
 37549  			res.Body.Close()
 37550  		}
 37551  		return nil, gensupport.WrapError(&googleapi.Error{
 37552  			Code:   res.StatusCode,
 37553  			Header: res.Header,
 37554  		})
 37555  	}
 37556  	if err != nil {
 37557  		return nil, err
 37558  	}
 37559  	defer googleapi.CloseBody(res)
 37560  	if err := googleapi.CheckResponse(res); err != nil {
 37561  		return nil, gensupport.WrapError(err)
 37562  	}
 37563  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 37564  		ServerResponse: googleapi.ServerResponse{
 37565  			Header:         res.Header,
 37566  			HTTPStatusCode: res.StatusCode,
 37567  		},
 37568  	}
 37569  	target := &ret
 37570  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37571  		return nil, err
 37572  	}
 37573  	return ret, nil
 37574  }
 37575  
 37576  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
 37577  	s            *Service
 37578  	parent       string
 37579  	urlParams_   gensupport.URLParams
 37580  	ifNoneMatch_ string
 37581  	ctx_         context.Context
 37582  	header_      http.Header
 37583  }
 37584  
 37585  // List: Returns the list of all session entity types in the specified session.
 37586  // This method doesn't work with Google Assistant integration. Contact
 37587  // Dialogflow support if you need to use session entities with Google Assistant
 37588  // integration.
 37589  //
 37590  //   - parent: The session to list all session entity types from. Supported
 37591  //     formats: - `projects//agent/sessions/, -
 37592  //     `projects//locations//agent/sessions/`, -
 37593  //     `projects//agent/environments//users//sessions/`, -
 37594  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 37595  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 37596  //     is not specified, we assume default 'draft' environment. If `User ID` is
 37597  //     not specified, we assume default '-' user.
 37598  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 37599  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37600  	c.parent = parent
 37601  	return c
 37602  }
 37603  
 37604  // PageSize sets the optional parameter "pageSize": The maximum number of items
 37605  // to return in a single page. By default 100 and at most 1000.
 37606  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 37607  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 37608  	return c
 37609  }
 37610  
 37611  // PageToken sets the optional parameter "pageToken": The next_page_token value
 37612  // returned from a previous list request.
 37613  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 37614  	c.urlParams_.Set("pageToken", pageToken)
 37615  	return c
 37616  }
 37617  
 37618  // Fields allows partial responses to be retrieved. See
 37619  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37620  // details.
 37621  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 37622  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37623  	return c
 37624  }
 37625  
 37626  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 37627  // object's ETag matches the given value. This is useful for getting updates
 37628  // only after the object has changed since the last request.
 37629  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 37630  	c.ifNoneMatch_ = entityTag
 37631  	return c
 37632  }
 37633  
 37634  // Context sets the context to be used in this call's Do method.
 37635  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
 37636  	c.ctx_ = ctx
 37637  	return c
 37638  }
 37639  
 37640  // Header returns a http.Header that can be modified by the caller to add
 37641  // headers to the request.
 37642  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
 37643  	if c.header_ == nil {
 37644  		c.header_ = make(http.Header)
 37645  	}
 37646  	return c.header_
 37647  }
 37648  
 37649  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 37650  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 37651  	if c.ifNoneMatch_ != "" {
 37652  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 37653  	}
 37654  	var body io.Reader = nil
 37655  	c.urlParams_.Set("alt", alt)
 37656  	c.urlParams_.Set("prettyPrint", "false")
 37657  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 37658  	urls += "?" + c.urlParams_.Encode()
 37659  	req, err := http.NewRequest("GET", urls, body)
 37660  	if err != nil {
 37661  		return nil, err
 37662  	}
 37663  	req.Header = reqHeaders
 37664  	googleapi.Expand(req.URL, map[string]string{
 37665  		"parent": c.parent,
 37666  	})
 37667  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37668  }
 37669  
 37670  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call.
 37671  // Any non-2xx status code is an error. Response headers are in either
 37672  // *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.He
 37673  // ader or (if a response was returned at all) in
 37674  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 37675  // whether the returned error was because http.StatusNotModified was returned.
 37676  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
 37677  	gensupport.SetOptions(c.urlParams_, opts...)
 37678  	res, err := c.doRequest("json")
 37679  	if res != nil && res.StatusCode == http.StatusNotModified {
 37680  		if res.Body != nil {
 37681  			res.Body.Close()
 37682  		}
 37683  		return nil, gensupport.WrapError(&googleapi.Error{
 37684  			Code:   res.StatusCode,
 37685  			Header: res.Header,
 37686  		})
 37687  	}
 37688  	if err != nil {
 37689  		return nil, err
 37690  	}
 37691  	defer googleapi.CloseBody(res)
 37692  	if err := googleapi.CheckResponse(res); err != nil {
 37693  		return nil, gensupport.WrapError(err)
 37694  	}
 37695  	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
 37696  		ServerResponse: googleapi.ServerResponse{
 37697  			Header:         res.Header,
 37698  			HTTPStatusCode: res.StatusCode,
 37699  		},
 37700  	}
 37701  	target := &ret
 37702  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37703  		return nil, err
 37704  	}
 37705  	return ret, nil
 37706  }
 37707  
 37708  // Pages invokes f for each page of results.
 37709  // A non-nil error returned from f will halt the iteration.
 37710  // The provided context supersedes any context provided to the Context method.
 37711  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
 37712  	c.ctx_ = ctx
 37713  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 37714  	for {
 37715  		x, err := c.Do()
 37716  		if err != nil {
 37717  			return err
 37718  		}
 37719  		if err := f(x); err != nil {
 37720  			return err
 37721  		}
 37722  		if x.NextPageToken == "" {
 37723  			return nil
 37724  		}
 37725  		c.PageToken(x.NextPageToken)
 37726  	}
 37727  }
 37728  
 37729  type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
 37730  	s                                             *Service
 37731  	nameid                                        string
 37732  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 37733  	urlParams_                                    gensupport.URLParams
 37734  	ctx_                                          context.Context
 37735  	header_                                       http.Header
 37736  }
 37737  
 37738  // Patch: Updates the specified session entity type. This method doesn't work
 37739  // with Google Assistant integration. Contact Dialogflow support if you need to
 37740  // use session entities with Google Assistant integration.
 37741  //
 37742  //   - name: The unique identifier of this session entity type. Supported
 37743  //     formats: - `projects//agent/sessions//entityTypes/` -
 37744  //     `projects//locations//agent/sessions//entityTypes/` -
 37745  //     `projects//agent/environments//users//sessions//entityTypes/` -
 37746  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 37747  //     If `Location ID` is not specified we assume default 'us' location. If
 37748  //     `Environment ID` is not specified, we assume default 'draft' environment.
 37749  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 37750  //     display name of an existing entity type in the same agent that will be
 37751  //     overridden or supplemented.
 37752  func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 37753  	c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37754  	c.nameid = nameid
 37755  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 37756  	return c
 37757  }
 37758  
 37759  // UpdateMask sets the optional parameter "updateMask": The mask to control
 37760  // which fields get updated.
 37761  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 37762  	c.urlParams_.Set("updateMask", updateMask)
 37763  	return c
 37764  }
 37765  
 37766  // Fields allows partial responses to be retrieved. See
 37767  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37768  // details.
 37769  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 37770  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37771  	return c
 37772  }
 37773  
 37774  // Context sets the context to be used in this call's Do method.
 37775  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
 37776  	c.ctx_ = ctx
 37777  	return c
 37778  }
 37779  
 37780  // Header returns a http.Header that can be modified by the caller to add
 37781  // headers to the request.
 37782  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
 37783  	if c.header_ == nil {
 37784  		c.header_ = make(http.Header)
 37785  	}
 37786  	return c.header_
 37787  }
 37788  
 37789  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 37790  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37791  	var body io.Reader = nil
 37792  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 37793  	if err != nil {
 37794  		return nil, err
 37795  	}
 37796  	c.urlParams_.Set("alt", alt)
 37797  	c.urlParams_.Set("prettyPrint", "false")
 37798  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 37799  	urls += "?" + c.urlParams_.Encode()
 37800  	req, err := http.NewRequest("PATCH", urls, body)
 37801  	if err != nil {
 37802  		return nil, err
 37803  	}
 37804  	req.Header = reqHeaders
 37805  	googleapi.Expand(req.URL, map[string]string{
 37806  		"name": c.nameid,
 37807  	})
 37808  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37809  }
 37810  
 37811  // Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call.
 37812  // Any non-2xx status code is an error. Response headers are in either
 37813  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 37814  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 37815  // googleapi.IsNotModified to check whether the returned error was because
 37816  // http.StatusNotModified was returned.
 37817  func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 37818  	gensupport.SetOptions(c.urlParams_, opts...)
 37819  	res, err := c.doRequest("json")
 37820  	if res != nil && res.StatusCode == http.StatusNotModified {
 37821  		if res.Body != nil {
 37822  			res.Body.Close()
 37823  		}
 37824  		return nil, gensupport.WrapError(&googleapi.Error{
 37825  			Code:   res.StatusCode,
 37826  			Header: res.Header,
 37827  		})
 37828  	}
 37829  	if err != nil {
 37830  		return nil, err
 37831  	}
 37832  	defer googleapi.CloseBody(res)
 37833  	if err := googleapi.CheckResponse(res); err != nil {
 37834  		return nil, gensupport.WrapError(err)
 37835  	}
 37836  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 37837  		ServerResponse: googleapi.ServerResponse{
 37838  			Header:         res.Header,
 37839  			HTTPStatusCode: res.StatusCode,
 37840  		},
 37841  	}
 37842  	target := &ret
 37843  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37844  		return nil, err
 37845  	}
 37846  	return ret, nil
 37847  }
 37848  
 37849  type ProjectsLocationsAgentIntentsBatchDeleteCall struct {
 37850  	s                                                     *Service
 37851  	parent                                                string
 37852  	googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
 37853  	urlParams_                                            gensupport.URLParams
 37854  	ctx_                                                  context.Context
 37855  	header_                                               http.Header
 37856  }
 37857  
 37858  // BatchDelete: Deletes intents in the specified agent. This method is a
 37859  // long-running operation
 37860  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 37861  // The returned `Operation` type has the following method-specific fields: -
 37862  // `metadata`: An empty Struct message
 37863  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 37864  // - `response`: An Empty message
 37865  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 37866  // Note: You should always train an agent prior to sending it queries. See the
 37867  // training documentation
 37868  // (https://cloud.google.com/dialogflow/es/docs/training).
 37869  //
 37870  //   - parent: The name of the agent to delete all entities types for. Supported
 37871  //     formats: - `projects//agent` - `projects//locations//agent`.
 37872  func (r *ProjectsLocationsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsLocationsAgentIntentsBatchDeleteCall {
 37873  	c := &ProjectsLocationsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37874  	c.parent = parent
 37875  	c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
 37876  	return c
 37877  }
 37878  
 37879  // Fields allows partial responses to be retrieved. See
 37880  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37881  // details.
 37882  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchDeleteCall {
 37883  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37884  	return c
 37885  }
 37886  
 37887  // Context sets the context to be used in this call's Do method.
 37888  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchDeleteCall {
 37889  	c.ctx_ = ctx
 37890  	return c
 37891  }
 37892  
 37893  // Header returns a http.Header that can be modified by the caller to add
 37894  // headers to the request.
 37895  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header {
 37896  	if c.header_ == nil {
 37897  		c.header_ = make(http.Header)
 37898  	}
 37899  	return c.header_
 37900  }
 37901  
 37902  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 37903  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 37904  	var body io.Reader = nil
 37905  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
 37906  	if err != nil {
 37907  		return nil, err
 37908  	}
 37909  	c.urlParams_.Set("alt", alt)
 37910  	c.urlParams_.Set("prettyPrint", "false")
 37911  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
 37912  	urls += "?" + c.urlParams_.Encode()
 37913  	req, err := http.NewRequest("POST", urls, body)
 37914  	if err != nil {
 37915  		return nil, err
 37916  	}
 37917  	req.Header = reqHeaders
 37918  	googleapi.Expand(req.URL, map[string]string{
 37919  		"parent": c.parent,
 37920  	})
 37921  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 37922  }
 37923  
 37924  // Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call.
 37925  // Any non-2xx status code is an error. Response headers are in either
 37926  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 37927  // returned at all) in error.(*googleapi.Error).Header. Use
 37928  // googleapi.IsNotModified to check whether the returned error was because
 37929  // http.StatusNotModified was returned.
 37930  func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 37931  	gensupport.SetOptions(c.urlParams_, opts...)
 37932  	res, err := c.doRequest("json")
 37933  	if res != nil && res.StatusCode == http.StatusNotModified {
 37934  		if res.Body != nil {
 37935  			res.Body.Close()
 37936  		}
 37937  		return nil, gensupport.WrapError(&googleapi.Error{
 37938  			Code:   res.StatusCode,
 37939  			Header: res.Header,
 37940  		})
 37941  	}
 37942  	if err != nil {
 37943  		return nil, err
 37944  	}
 37945  	defer googleapi.CloseBody(res)
 37946  	if err := googleapi.CheckResponse(res); err != nil {
 37947  		return nil, gensupport.WrapError(err)
 37948  	}
 37949  	ret := &GoogleLongrunningOperation{
 37950  		ServerResponse: googleapi.ServerResponse{
 37951  			Header:         res.Header,
 37952  			HTTPStatusCode: res.StatusCode,
 37953  		},
 37954  	}
 37955  	target := &ret
 37956  	if err := gensupport.DecodeResponse(target, res); err != nil {
 37957  		return nil, err
 37958  	}
 37959  	return ret, nil
 37960  }
 37961  
 37962  type ProjectsLocationsAgentIntentsBatchUpdateCall struct {
 37963  	s                                                     *Service
 37964  	parent                                                string
 37965  	googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
 37966  	urlParams_                                            gensupport.URLParams
 37967  	ctx_                                                  context.Context
 37968  	header_                                               http.Header
 37969  }
 37970  
 37971  // BatchUpdate: Updates/Creates multiple intents in the specified agent. This
 37972  // method is a long-running operation
 37973  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 37974  // The returned `Operation` type has the following method-specific fields: -
 37975  // `metadata`: An empty Struct message
 37976  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
 37977  // - `response`: BatchUpdateIntentsResponse Note: You should always train an
 37978  // agent prior to sending it queries. See the training documentation
 37979  // (https://cloud.google.com/dialogflow/es/docs/training).
 37980  //
 37981  //   - parent: The name of the agent to update or create intents in. Supported
 37982  //     formats: - `projects//agent` - `projects//locations//agent`.
 37983  func (r *ProjectsLocationsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsLocationsAgentIntentsBatchUpdateCall {
 37984  	c := &ProjectsLocationsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 37985  	c.parent = parent
 37986  	c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
 37987  	return c
 37988  }
 37989  
 37990  // Fields allows partial responses to be retrieved. See
 37991  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 37992  // details.
 37993  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchUpdateCall {
 37994  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 37995  	return c
 37996  }
 37997  
 37998  // Context sets the context to be used in this call's Do method.
 37999  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchUpdateCall {
 38000  	c.ctx_ = ctx
 38001  	return c
 38002  }
 38003  
 38004  // Header returns a http.Header that can be modified by the caller to add
 38005  // headers to the request.
 38006  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header {
 38007  	if c.header_ == nil {
 38008  		c.header_ = make(http.Header)
 38009  	}
 38010  	return c.header_
 38011  }
 38012  
 38013  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 38014  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38015  	var body io.Reader = nil
 38016  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
 38017  	if err != nil {
 38018  		return nil, err
 38019  	}
 38020  	c.urlParams_.Set("alt", alt)
 38021  	c.urlParams_.Set("prettyPrint", "false")
 38022  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
 38023  	urls += "?" + c.urlParams_.Encode()
 38024  	req, err := http.NewRequest("POST", urls, body)
 38025  	if err != nil {
 38026  		return nil, err
 38027  	}
 38028  	req.Header = reqHeaders
 38029  	googleapi.Expand(req.URL, map[string]string{
 38030  		"parent": c.parent,
 38031  	})
 38032  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38033  }
 38034  
 38035  // Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call.
 38036  // Any non-2xx status code is an error. Response headers are in either
 38037  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 38038  // returned at all) in error.(*googleapi.Error).Header. Use
 38039  // googleapi.IsNotModified to check whether the returned error was because
 38040  // http.StatusNotModified was returned.
 38041  func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 38042  	gensupport.SetOptions(c.urlParams_, opts...)
 38043  	res, err := c.doRequest("json")
 38044  	if res != nil && res.StatusCode == http.StatusNotModified {
 38045  		if res.Body != nil {
 38046  			res.Body.Close()
 38047  		}
 38048  		return nil, gensupport.WrapError(&googleapi.Error{
 38049  			Code:   res.StatusCode,
 38050  			Header: res.Header,
 38051  		})
 38052  	}
 38053  	if err != nil {
 38054  		return nil, err
 38055  	}
 38056  	defer googleapi.CloseBody(res)
 38057  	if err := googleapi.CheckResponse(res); err != nil {
 38058  		return nil, gensupport.WrapError(err)
 38059  	}
 38060  	ret := &GoogleLongrunningOperation{
 38061  		ServerResponse: googleapi.ServerResponse{
 38062  			Header:         res.Header,
 38063  			HTTPStatusCode: res.StatusCode,
 38064  		},
 38065  	}
 38066  	target := &ret
 38067  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38068  		return nil, err
 38069  	}
 38070  	return ret, nil
 38071  }
 38072  
 38073  type ProjectsLocationsAgentIntentsCreateCall struct {
 38074  	s                                  *Service
 38075  	parent                             string
 38076  	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
 38077  	urlParams_                         gensupport.URLParams
 38078  	ctx_                               context.Context
 38079  	header_                            http.Header
 38080  }
 38081  
 38082  // Create: Creates an intent in the specified agent. Note: You should always
 38083  // train an agent prior to sending it queries. See the training documentation
 38084  // (https://cloud.google.com/dialogflow/es/docs/training).
 38085  //
 38086  //   - parent: The agent to create a intent for. Supported formats: -
 38087  //     `projects//agent` - `projects//locations//agent`.
 38088  func (r *ProjectsLocationsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsCreateCall {
 38089  	c := &ProjectsLocationsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38090  	c.parent = parent
 38091  	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
 38092  	return c
 38093  }
 38094  
 38095  // IntentView sets the optional parameter "intentView": The resource view to
 38096  // apply to the returned intent.
 38097  //
 38098  // Possible values:
 38099  //
 38100  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 38101  //
 38102  // response.
 38103  //
 38104  //	"INTENT_VIEW_FULL" - All fields are populated.
 38105  func (c *ProjectsLocationsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsCreateCall {
 38106  	c.urlParams_.Set("intentView", intentView)
 38107  	return c
 38108  }
 38109  
 38110  // LanguageCode sets the optional parameter "languageCode": The language used
 38111  // to access language-specific data. If not specified, the agent's default
 38112  // language is used. For more information, see Multilingual intent and entity
 38113  // data
 38114  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 38115  func (c *ProjectsLocationsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsCreateCall {
 38116  	c.urlParams_.Set("languageCode", languageCode)
 38117  	return c
 38118  }
 38119  
 38120  // Fields allows partial responses to be retrieved. See
 38121  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38122  // details.
 38123  func (c *ProjectsLocationsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsCreateCall {
 38124  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38125  	return c
 38126  }
 38127  
 38128  // Context sets the context to be used in this call's Do method.
 38129  func (c *ProjectsLocationsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsCreateCall {
 38130  	c.ctx_ = ctx
 38131  	return c
 38132  }
 38133  
 38134  // Header returns a http.Header that can be modified by the caller to add
 38135  // headers to the request.
 38136  func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header {
 38137  	if c.header_ == nil {
 38138  		c.header_ = make(http.Header)
 38139  	}
 38140  	return c.header_
 38141  }
 38142  
 38143  func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
 38144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38145  	var body io.Reader = nil
 38146  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
 38147  	if err != nil {
 38148  		return nil, err
 38149  	}
 38150  	c.urlParams_.Set("alt", alt)
 38151  	c.urlParams_.Set("prettyPrint", "false")
 38152  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
 38153  	urls += "?" + c.urlParams_.Encode()
 38154  	req, err := http.NewRequest("POST", urls, body)
 38155  	if err != nil {
 38156  		return nil, err
 38157  	}
 38158  	req.Header = reqHeaders
 38159  	googleapi.Expand(req.URL, map[string]string{
 38160  		"parent": c.parent,
 38161  	})
 38162  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38163  }
 38164  
 38165  // Do executes the "dialogflow.projects.locations.agent.intents.create" call.
 38166  // Any non-2xx status code is an error. Response headers are in either
 38167  // *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a response
 38168  // was returned at all) in error.(*googleapi.Error).Header. Use
 38169  // googleapi.IsNotModified to check whether the returned error was because
 38170  // http.StatusNotModified was returned.
 38171  func (c *ProjectsLocationsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
 38172  	gensupport.SetOptions(c.urlParams_, opts...)
 38173  	res, err := c.doRequest("json")
 38174  	if res != nil && res.StatusCode == http.StatusNotModified {
 38175  		if res.Body != nil {
 38176  			res.Body.Close()
 38177  		}
 38178  		return nil, gensupport.WrapError(&googleapi.Error{
 38179  			Code:   res.StatusCode,
 38180  			Header: res.Header,
 38181  		})
 38182  	}
 38183  	if err != nil {
 38184  		return nil, err
 38185  	}
 38186  	defer googleapi.CloseBody(res)
 38187  	if err := googleapi.CheckResponse(res); err != nil {
 38188  		return nil, gensupport.WrapError(err)
 38189  	}
 38190  	ret := &GoogleCloudDialogflowV2beta1Intent{
 38191  		ServerResponse: googleapi.ServerResponse{
 38192  			Header:         res.Header,
 38193  			HTTPStatusCode: res.StatusCode,
 38194  		},
 38195  	}
 38196  	target := &ret
 38197  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38198  		return nil, err
 38199  	}
 38200  	return ret, nil
 38201  }
 38202  
 38203  type ProjectsLocationsAgentIntentsDeleteCall struct {
 38204  	s          *Service
 38205  	name       string
 38206  	urlParams_ gensupport.URLParams
 38207  	ctx_       context.Context
 38208  	header_    http.Header
 38209  }
 38210  
 38211  // Delete: Deletes the specified intent and its direct or indirect followup
 38212  // intents. Note: You should always train an agent prior to sending it queries.
 38213  // See the training documentation
 38214  // (https://cloud.google.com/dialogflow/es/docs/training).
 38215  //
 38216  //   - name: The name of the intent to delete. If this intent has direct or
 38217  //     indirect followup intents, we also delete them. Supported formats: -
 38218  //     `projects//agent/intents/` - `projects//locations//agent/intents/`.
 38219  func (r *ProjectsLocationsAgentIntentsService) Delete(name string) *ProjectsLocationsAgentIntentsDeleteCall {
 38220  	c := &ProjectsLocationsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38221  	c.name = name
 38222  	return c
 38223  }
 38224  
 38225  // Fields allows partial responses to be retrieved. See
 38226  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38227  // details.
 38228  func (c *ProjectsLocationsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsDeleteCall {
 38229  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38230  	return c
 38231  }
 38232  
 38233  // Context sets the context to be used in this call's Do method.
 38234  func (c *ProjectsLocationsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsDeleteCall {
 38235  	c.ctx_ = ctx
 38236  	return c
 38237  }
 38238  
 38239  // Header returns a http.Header that can be modified by the caller to add
 38240  // headers to the request.
 38241  func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header {
 38242  	if c.header_ == nil {
 38243  		c.header_ = make(http.Header)
 38244  	}
 38245  	return c.header_
 38246  }
 38247  
 38248  func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 38249  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38250  	var body io.Reader = nil
 38251  	c.urlParams_.Set("alt", alt)
 38252  	c.urlParams_.Set("prettyPrint", "false")
 38253  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 38254  	urls += "?" + c.urlParams_.Encode()
 38255  	req, err := http.NewRequest("DELETE", urls, body)
 38256  	if err != nil {
 38257  		return nil, err
 38258  	}
 38259  	req.Header = reqHeaders
 38260  	googleapi.Expand(req.URL, map[string]string{
 38261  		"name": c.name,
 38262  	})
 38263  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38264  }
 38265  
 38266  // Do executes the "dialogflow.projects.locations.agent.intents.delete" call.
 38267  // Any non-2xx status code is an error. Response headers are in either
 38268  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 38269  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 38270  // check whether the returned error was because http.StatusNotModified was
 38271  // returned.
 38272  func (c *ProjectsLocationsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 38273  	gensupport.SetOptions(c.urlParams_, opts...)
 38274  	res, err := c.doRequest("json")
 38275  	if res != nil && res.StatusCode == http.StatusNotModified {
 38276  		if res.Body != nil {
 38277  			res.Body.Close()
 38278  		}
 38279  		return nil, gensupport.WrapError(&googleapi.Error{
 38280  			Code:   res.StatusCode,
 38281  			Header: res.Header,
 38282  		})
 38283  	}
 38284  	if err != nil {
 38285  		return nil, err
 38286  	}
 38287  	defer googleapi.CloseBody(res)
 38288  	if err := googleapi.CheckResponse(res); err != nil {
 38289  		return nil, gensupport.WrapError(err)
 38290  	}
 38291  	ret := &GoogleProtobufEmpty{
 38292  		ServerResponse: googleapi.ServerResponse{
 38293  			Header:         res.Header,
 38294  			HTTPStatusCode: res.StatusCode,
 38295  		},
 38296  	}
 38297  	target := &ret
 38298  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38299  		return nil, err
 38300  	}
 38301  	return ret, nil
 38302  }
 38303  
 38304  type ProjectsLocationsAgentIntentsGetCall struct {
 38305  	s            *Service
 38306  	name         string
 38307  	urlParams_   gensupport.URLParams
 38308  	ifNoneMatch_ string
 38309  	ctx_         context.Context
 38310  	header_      http.Header
 38311  }
 38312  
 38313  // Get: Retrieves the specified intent.
 38314  //
 38315  //   - name: The name of the intent. Supported formats: -
 38316  //     `projects//agent/intents/` - `projects//locations//agent/intents/`.
 38317  func (r *ProjectsLocationsAgentIntentsService) Get(name string) *ProjectsLocationsAgentIntentsGetCall {
 38318  	c := &ProjectsLocationsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38319  	c.name = name
 38320  	return c
 38321  }
 38322  
 38323  // IntentView sets the optional parameter "intentView": The resource view to
 38324  // apply to the returned intent.
 38325  //
 38326  // Possible values:
 38327  //
 38328  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 38329  //
 38330  // response.
 38331  //
 38332  //	"INTENT_VIEW_FULL" - All fields are populated.
 38333  func (c *ProjectsLocationsAgentIntentsGetCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsGetCall {
 38334  	c.urlParams_.Set("intentView", intentView)
 38335  	return c
 38336  }
 38337  
 38338  // LanguageCode sets the optional parameter "languageCode": The language used
 38339  // to access language-specific data. If not specified, the agent's default
 38340  // language is used. For more information, see Multilingual intent and entity
 38341  // data
 38342  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 38343  func (c *ProjectsLocationsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsGetCall {
 38344  	c.urlParams_.Set("languageCode", languageCode)
 38345  	return c
 38346  }
 38347  
 38348  // Fields allows partial responses to be retrieved. See
 38349  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38350  // details.
 38351  func (c *ProjectsLocationsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsGetCall {
 38352  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38353  	return c
 38354  }
 38355  
 38356  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38357  // object's ETag matches the given value. This is useful for getting updates
 38358  // only after the object has changed since the last request.
 38359  func (c *ProjectsLocationsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsGetCall {
 38360  	c.ifNoneMatch_ = entityTag
 38361  	return c
 38362  }
 38363  
 38364  // Context sets the context to be used in this call's Do method.
 38365  func (c *ProjectsLocationsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsGetCall {
 38366  	c.ctx_ = ctx
 38367  	return c
 38368  }
 38369  
 38370  // Header returns a http.Header that can be modified by the caller to add
 38371  // headers to the request.
 38372  func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header {
 38373  	if c.header_ == nil {
 38374  		c.header_ = make(http.Header)
 38375  	}
 38376  	return c.header_
 38377  }
 38378  
 38379  func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
 38380  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38381  	if c.ifNoneMatch_ != "" {
 38382  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38383  	}
 38384  	var body io.Reader = nil
 38385  	c.urlParams_.Set("alt", alt)
 38386  	c.urlParams_.Set("prettyPrint", "false")
 38387  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 38388  	urls += "?" + c.urlParams_.Encode()
 38389  	req, err := http.NewRequest("GET", urls, body)
 38390  	if err != nil {
 38391  		return nil, err
 38392  	}
 38393  	req.Header = reqHeaders
 38394  	googleapi.Expand(req.URL, map[string]string{
 38395  		"name": c.name,
 38396  	})
 38397  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38398  }
 38399  
 38400  // Do executes the "dialogflow.projects.locations.agent.intents.get" call.
 38401  // Any non-2xx status code is an error. Response headers are in either
 38402  // *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a response
 38403  // was returned at all) in error.(*googleapi.Error).Header. Use
 38404  // googleapi.IsNotModified to check whether the returned error was because
 38405  // http.StatusNotModified was returned.
 38406  func (c *ProjectsLocationsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
 38407  	gensupport.SetOptions(c.urlParams_, opts...)
 38408  	res, err := c.doRequest("json")
 38409  	if res != nil && res.StatusCode == http.StatusNotModified {
 38410  		if res.Body != nil {
 38411  			res.Body.Close()
 38412  		}
 38413  		return nil, gensupport.WrapError(&googleapi.Error{
 38414  			Code:   res.StatusCode,
 38415  			Header: res.Header,
 38416  		})
 38417  	}
 38418  	if err != nil {
 38419  		return nil, err
 38420  	}
 38421  	defer googleapi.CloseBody(res)
 38422  	if err := googleapi.CheckResponse(res); err != nil {
 38423  		return nil, gensupport.WrapError(err)
 38424  	}
 38425  	ret := &GoogleCloudDialogflowV2beta1Intent{
 38426  		ServerResponse: googleapi.ServerResponse{
 38427  			Header:         res.Header,
 38428  			HTTPStatusCode: res.StatusCode,
 38429  		},
 38430  	}
 38431  	target := &ret
 38432  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38433  		return nil, err
 38434  	}
 38435  	return ret, nil
 38436  }
 38437  
 38438  type ProjectsLocationsAgentIntentsListCall struct {
 38439  	s            *Service
 38440  	parent       string
 38441  	urlParams_   gensupport.URLParams
 38442  	ifNoneMatch_ string
 38443  	ctx_         context.Context
 38444  	header_      http.Header
 38445  }
 38446  
 38447  // List: Returns the list of all intents in the specified agent.
 38448  //
 38449  //   - parent: The agent to list all intents from. Format: `projects//agent` or
 38450  //     `projects//locations//agent`. Alternatively, you can specify the
 38451  //     environment to list intents for. Format: `projects//agent/environments/`
 38452  //     or `projects//locations//agent/environments/`. Note: training phrases of
 38453  //     the intents will not be returned for non-draft environment.
 38454  func (r *ProjectsLocationsAgentIntentsService) List(parent string) *ProjectsLocationsAgentIntentsListCall {
 38455  	c := &ProjectsLocationsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38456  	c.parent = parent
 38457  	return c
 38458  }
 38459  
 38460  // IntentView sets the optional parameter "intentView": The resource view to
 38461  // apply to the returned intent.
 38462  //
 38463  // Possible values:
 38464  //
 38465  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 38466  //
 38467  // response.
 38468  //
 38469  //	"INTENT_VIEW_FULL" - All fields are populated.
 38470  func (c *ProjectsLocationsAgentIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsListCall {
 38471  	c.urlParams_.Set("intentView", intentView)
 38472  	return c
 38473  }
 38474  
 38475  // LanguageCode sets the optional parameter "languageCode": The language used
 38476  // to access language-specific data. If not specified, the agent's default
 38477  // language is used. For more information, see Multilingual intent and entity
 38478  // data
 38479  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 38480  func (c *ProjectsLocationsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsListCall {
 38481  	c.urlParams_.Set("languageCode", languageCode)
 38482  	return c
 38483  }
 38484  
 38485  // PageSize sets the optional parameter "pageSize": The maximum number of items
 38486  // to return in a single page. By default 100 and at most 1000.
 38487  func (c *ProjectsLocationsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentIntentsListCall {
 38488  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 38489  	return c
 38490  }
 38491  
 38492  // PageToken sets the optional parameter "pageToken": The next_page_token value
 38493  // returned from a previous list request.
 38494  func (c *ProjectsLocationsAgentIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentIntentsListCall {
 38495  	c.urlParams_.Set("pageToken", pageToken)
 38496  	return c
 38497  }
 38498  
 38499  // Fields allows partial responses to be retrieved. See
 38500  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38501  // details.
 38502  func (c *ProjectsLocationsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsListCall {
 38503  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38504  	return c
 38505  }
 38506  
 38507  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 38508  // object's ETag matches the given value. This is useful for getting updates
 38509  // only after the object has changed since the last request.
 38510  func (c *ProjectsLocationsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsListCall {
 38511  	c.ifNoneMatch_ = entityTag
 38512  	return c
 38513  }
 38514  
 38515  // Context sets the context to be used in this call's Do method.
 38516  func (c *ProjectsLocationsAgentIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsListCall {
 38517  	c.ctx_ = ctx
 38518  	return c
 38519  }
 38520  
 38521  // Header returns a http.Header that can be modified by the caller to add
 38522  // headers to the request.
 38523  func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header {
 38524  	if c.header_ == nil {
 38525  		c.header_ = make(http.Header)
 38526  	}
 38527  	return c.header_
 38528  }
 38529  
 38530  func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
 38531  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38532  	if c.ifNoneMatch_ != "" {
 38533  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 38534  	}
 38535  	var body io.Reader = nil
 38536  	c.urlParams_.Set("alt", alt)
 38537  	c.urlParams_.Set("prettyPrint", "false")
 38538  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
 38539  	urls += "?" + c.urlParams_.Encode()
 38540  	req, err := http.NewRequest("GET", urls, body)
 38541  	if err != nil {
 38542  		return nil, err
 38543  	}
 38544  	req.Header = reqHeaders
 38545  	googleapi.Expand(req.URL, map[string]string{
 38546  		"parent": c.parent,
 38547  	})
 38548  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38549  }
 38550  
 38551  // Do executes the "dialogflow.projects.locations.agent.intents.list" call.
 38552  // Any non-2xx status code is an error. Response headers are in either
 38553  // *GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or
 38554  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 38555  // googleapi.IsNotModified to check whether the returned error was because
 38556  // http.StatusNotModified was returned.
 38557  func (c *ProjectsLocationsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
 38558  	gensupport.SetOptions(c.urlParams_, opts...)
 38559  	res, err := c.doRequest("json")
 38560  	if res != nil && res.StatusCode == http.StatusNotModified {
 38561  		if res.Body != nil {
 38562  			res.Body.Close()
 38563  		}
 38564  		return nil, gensupport.WrapError(&googleapi.Error{
 38565  			Code:   res.StatusCode,
 38566  			Header: res.Header,
 38567  		})
 38568  	}
 38569  	if err != nil {
 38570  		return nil, err
 38571  	}
 38572  	defer googleapi.CloseBody(res)
 38573  	if err := googleapi.CheckResponse(res); err != nil {
 38574  		return nil, gensupport.WrapError(err)
 38575  	}
 38576  	ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
 38577  		ServerResponse: googleapi.ServerResponse{
 38578  			Header:         res.Header,
 38579  			HTTPStatusCode: res.StatusCode,
 38580  		},
 38581  	}
 38582  	target := &ret
 38583  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38584  		return nil, err
 38585  	}
 38586  	return ret, nil
 38587  }
 38588  
 38589  // Pages invokes f for each page of results.
 38590  // A non-nil error returned from f will halt the iteration.
 38591  // The provided context supersedes any context provided to the Context method.
 38592  func (c *ProjectsLocationsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
 38593  	c.ctx_ = ctx
 38594  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 38595  	for {
 38596  		x, err := c.Do()
 38597  		if err != nil {
 38598  			return err
 38599  		}
 38600  		if err := f(x); err != nil {
 38601  			return err
 38602  		}
 38603  		if x.NextPageToken == "" {
 38604  			return nil
 38605  		}
 38606  		c.PageToken(x.NextPageToken)
 38607  	}
 38608  }
 38609  
 38610  type ProjectsLocationsAgentIntentsPatchCall struct {
 38611  	s                                  *Service
 38612  	nameid                             string
 38613  	googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
 38614  	urlParams_                         gensupport.URLParams
 38615  	ctx_                               context.Context
 38616  	header_                            http.Header
 38617  }
 38618  
 38619  // Patch: Updates the specified intent. Note: You should always train an agent
 38620  // prior to sending it queries. See the training documentation
 38621  // (https://cloud.google.com/dialogflow/es/docs/training).
 38622  //
 38623  //   - name: Optional. The unique identifier of this intent. Required for
 38624  //     Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Supported
 38625  //     formats: - `projects//agent/intents/` -
 38626  //     `projects//locations//agent/intents/`.
 38627  func (r *ProjectsLocationsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsPatchCall {
 38628  	c := &ProjectsLocationsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38629  	c.nameid = nameid
 38630  	c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
 38631  	return c
 38632  }
 38633  
 38634  // IntentView sets the optional parameter "intentView": The resource view to
 38635  // apply to the returned intent.
 38636  //
 38637  // Possible values:
 38638  //
 38639  //	"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated in the
 38640  //
 38641  // response.
 38642  //
 38643  //	"INTENT_VIEW_FULL" - All fields are populated.
 38644  func (c *ProjectsLocationsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsPatchCall {
 38645  	c.urlParams_.Set("intentView", intentView)
 38646  	return c
 38647  }
 38648  
 38649  // LanguageCode sets the optional parameter "languageCode": The language used
 38650  // to access language-specific data. If not specified, the agent's default
 38651  // language is used. For more information, see Multilingual intent and entity
 38652  // data
 38653  // (https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
 38654  func (c *ProjectsLocationsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsPatchCall {
 38655  	c.urlParams_.Set("languageCode", languageCode)
 38656  	return c
 38657  }
 38658  
 38659  // UpdateMask sets the optional parameter "updateMask": The mask to control
 38660  // which fields get updated.
 38661  func (c *ProjectsLocationsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentIntentsPatchCall {
 38662  	c.urlParams_.Set("updateMask", updateMask)
 38663  	return c
 38664  }
 38665  
 38666  // Fields allows partial responses to be retrieved. See
 38667  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38668  // details.
 38669  func (c *ProjectsLocationsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsPatchCall {
 38670  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38671  	return c
 38672  }
 38673  
 38674  // Context sets the context to be used in this call's Do method.
 38675  func (c *ProjectsLocationsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsPatchCall {
 38676  	c.ctx_ = ctx
 38677  	return c
 38678  }
 38679  
 38680  // Header returns a http.Header that can be modified by the caller to add
 38681  // headers to the request.
 38682  func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header {
 38683  	if c.header_ == nil {
 38684  		c.header_ = make(http.Header)
 38685  	}
 38686  	return c.header_
 38687  }
 38688  
 38689  func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
 38690  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38691  	var body io.Reader = nil
 38692  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
 38693  	if err != nil {
 38694  		return nil, err
 38695  	}
 38696  	c.urlParams_.Set("alt", alt)
 38697  	c.urlParams_.Set("prettyPrint", "false")
 38698  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 38699  	urls += "?" + c.urlParams_.Encode()
 38700  	req, err := http.NewRequest("PATCH", urls, body)
 38701  	if err != nil {
 38702  		return nil, err
 38703  	}
 38704  	req.Header = reqHeaders
 38705  	googleapi.Expand(req.URL, map[string]string{
 38706  		"name": c.nameid,
 38707  	})
 38708  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38709  }
 38710  
 38711  // Do executes the "dialogflow.projects.locations.agent.intents.patch" call.
 38712  // Any non-2xx status code is an error. Response headers are in either
 38713  // *GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a response
 38714  // was returned at all) in error.(*googleapi.Error).Header. Use
 38715  // googleapi.IsNotModified to check whether the returned error was because
 38716  // http.StatusNotModified was returned.
 38717  func (c *ProjectsLocationsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
 38718  	gensupport.SetOptions(c.urlParams_, opts...)
 38719  	res, err := c.doRequest("json")
 38720  	if res != nil && res.StatusCode == http.StatusNotModified {
 38721  		if res.Body != nil {
 38722  			res.Body.Close()
 38723  		}
 38724  		return nil, gensupport.WrapError(&googleapi.Error{
 38725  			Code:   res.StatusCode,
 38726  			Header: res.Header,
 38727  		})
 38728  	}
 38729  	if err != nil {
 38730  		return nil, err
 38731  	}
 38732  	defer googleapi.CloseBody(res)
 38733  	if err := googleapi.CheckResponse(res); err != nil {
 38734  		return nil, gensupport.WrapError(err)
 38735  	}
 38736  	ret := &GoogleCloudDialogflowV2beta1Intent{
 38737  		ServerResponse: googleapi.ServerResponse{
 38738  			Header:         res.Header,
 38739  			HTTPStatusCode: res.StatusCode,
 38740  		},
 38741  	}
 38742  	target := &ret
 38743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38744  		return nil, err
 38745  	}
 38746  	return ret, nil
 38747  }
 38748  
 38749  type ProjectsLocationsAgentSessionsDeleteContextsCall struct {
 38750  	s          *Service
 38751  	parent     string
 38752  	urlParams_ gensupport.URLParams
 38753  	ctx_       context.Context
 38754  	header_    http.Header
 38755  }
 38756  
 38757  // DeleteContexts: Deletes all active contexts in the specified session.
 38758  //
 38759  //   - parent: The name of the session to delete all contexts from. Supported
 38760  //     formats: - `projects//agent/sessions/, -
 38761  //     `projects//locations//agent/sessions/`, -
 38762  //     `projects//agent/environments//users//sessions/`, -
 38763  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 38764  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 38765  //     is not specified we assume default 'draft' environment. If `User ID` is
 38766  //     not specified, we assume default '-' user.
 38767  func (r *ProjectsLocationsAgentSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentSessionsDeleteContextsCall {
 38768  	c := &ProjectsLocationsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38769  	c.parent = parent
 38770  	return c
 38771  }
 38772  
 38773  // Fields allows partial responses to be retrieved. See
 38774  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38775  // details.
 38776  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDeleteContextsCall {
 38777  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38778  	return c
 38779  }
 38780  
 38781  // Context sets the context to be used in this call's Do method.
 38782  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDeleteContextsCall {
 38783  	c.ctx_ = ctx
 38784  	return c
 38785  }
 38786  
 38787  // Header returns a http.Header that can be modified by the caller to add
 38788  // headers to the request.
 38789  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header {
 38790  	if c.header_ == nil {
 38791  		c.header_ = make(http.Header)
 38792  	}
 38793  	return c.header_
 38794  }
 38795  
 38796  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
 38797  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 38798  	var body io.Reader = nil
 38799  	c.urlParams_.Set("alt", alt)
 38800  	c.urlParams_.Set("prettyPrint", "false")
 38801  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 38802  	urls += "?" + c.urlParams_.Encode()
 38803  	req, err := http.NewRequest("DELETE", urls, body)
 38804  	if err != nil {
 38805  		return nil, err
 38806  	}
 38807  	req.Header = reqHeaders
 38808  	googleapi.Expand(req.URL, map[string]string{
 38809  		"parent": c.parent,
 38810  	})
 38811  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38812  }
 38813  
 38814  // Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call.
 38815  // Any non-2xx status code is an error. Response headers are in either
 38816  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 38817  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 38818  // check whether the returned error was because http.StatusNotModified was
 38819  // returned.
 38820  func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 38821  	gensupport.SetOptions(c.urlParams_, opts...)
 38822  	res, err := c.doRequest("json")
 38823  	if res != nil && res.StatusCode == http.StatusNotModified {
 38824  		if res.Body != nil {
 38825  			res.Body.Close()
 38826  		}
 38827  		return nil, gensupport.WrapError(&googleapi.Error{
 38828  			Code:   res.StatusCode,
 38829  			Header: res.Header,
 38830  		})
 38831  	}
 38832  	if err != nil {
 38833  		return nil, err
 38834  	}
 38835  	defer googleapi.CloseBody(res)
 38836  	if err := googleapi.CheckResponse(res); err != nil {
 38837  		return nil, gensupport.WrapError(err)
 38838  	}
 38839  	ret := &GoogleProtobufEmpty{
 38840  		ServerResponse: googleapi.ServerResponse{
 38841  			Header:         res.Header,
 38842  			HTTPStatusCode: res.StatusCode,
 38843  		},
 38844  	}
 38845  	target := &ret
 38846  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38847  		return nil, err
 38848  	}
 38849  	return ret, nil
 38850  }
 38851  
 38852  type ProjectsLocationsAgentSessionsDetectIntentCall struct {
 38853  	s                                               *Service
 38854  	sessionid                                       string
 38855  	googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
 38856  	urlParams_                                      gensupport.URLParams
 38857  	ctx_                                            context.Context
 38858  	header_                                         http.Header
 38859  }
 38860  
 38861  // DetectIntent: Processes a natural language query and returns structured,
 38862  // actionable data as a result. This method is not idempotent, because it may
 38863  // cause contexts and session entity types to be updated, which in turn might
 38864  // affect results of future queries. If you might use Agent Assist
 38865  // (https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or
 38866  // in the future, consider using AnalyzeContent instead of `DetectIntent`.
 38867  // `AnalyzeContent` has additional functionality for Agent Assist and other
 38868  // CCAI products. Note: Always use agent versions for production traffic. See
 38869  // Versions and environments
 38870  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 38871  //
 38872  // - session: The name of the session this query is sent to. Supported formats:
 38873  //   - `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 38874  //     `projects//agent/environments//users//sessions/`, -
 38875  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 38876  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 38877  //     is not specified, we assume default 'draft' environment (`Environment ID`
 38878  //     might be referred to as environment name at some places). If `User ID` is
 38879  //     not specified, we are using "-". It's up to the API caller to choose an
 38880  //     appropriate `Session ID` and `User Id`. They can be a random number or
 38881  //     some type of user and session identifiers (preferably hashed). The length
 38882  //     of the `Session ID` and `User ID` must not exceed 36 characters. For more
 38883  //     information, see the API interactions guide
 38884  //     (https://cloud.google.com/dialogflow/docs/api-overview). Note: Always use
 38885  //     agent versions for production traffic. See Versions and environments
 38886  //     (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 38887  func (r *ProjectsLocationsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentSessionsDetectIntentCall {
 38888  	c := &ProjectsLocationsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38889  	c.sessionid = sessionid
 38890  	c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
 38891  	return c
 38892  }
 38893  
 38894  // Fields allows partial responses to be retrieved. See
 38895  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 38896  // details.
 38897  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDetectIntentCall {
 38898  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 38899  	return c
 38900  }
 38901  
 38902  // Context sets the context to be used in this call's Do method.
 38903  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDetectIntentCall {
 38904  	c.ctx_ = ctx
 38905  	return c
 38906  }
 38907  
 38908  // Header returns a http.Header that can be modified by the caller to add
 38909  // headers to the request.
 38910  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header {
 38911  	if c.header_ == nil {
 38912  		c.header_ = make(http.Header)
 38913  	}
 38914  	return c.header_
 38915  }
 38916  
 38917  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
 38918  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 38919  	var body io.Reader = nil
 38920  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
 38921  	if err != nil {
 38922  		return nil, err
 38923  	}
 38924  	c.urlParams_.Set("alt", alt)
 38925  	c.urlParams_.Set("prettyPrint", "false")
 38926  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
 38927  	urls += "?" + c.urlParams_.Encode()
 38928  	req, err := http.NewRequest("POST", urls, body)
 38929  	if err != nil {
 38930  		return nil, err
 38931  	}
 38932  	req.Header = reqHeaders
 38933  	googleapi.Expand(req.URL, map[string]string{
 38934  		"session": c.sessionid,
 38935  	})
 38936  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 38937  }
 38938  
 38939  // Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call.
 38940  // Any non-2xx status code is an error. Response headers are in either
 38941  // *GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or
 38942  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 38943  // googleapi.IsNotModified to check whether the returned error was because
 38944  // http.StatusNotModified was returned.
 38945  func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
 38946  	gensupport.SetOptions(c.urlParams_, opts...)
 38947  	res, err := c.doRequest("json")
 38948  	if res != nil && res.StatusCode == http.StatusNotModified {
 38949  		if res.Body != nil {
 38950  			res.Body.Close()
 38951  		}
 38952  		return nil, gensupport.WrapError(&googleapi.Error{
 38953  			Code:   res.StatusCode,
 38954  			Header: res.Header,
 38955  		})
 38956  	}
 38957  	if err != nil {
 38958  		return nil, err
 38959  	}
 38960  	defer googleapi.CloseBody(res)
 38961  	if err := googleapi.CheckResponse(res); err != nil {
 38962  		return nil, gensupport.WrapError(err)
 38963  	}
 38964  	ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
 38965  		ServerResponse: googleapi.ServerResponse{
 38966  			Header:         res.Header,
 38967  			HTTPStatusCode: res.StatusCode,
 38968  		},
 38969  	}
 38970  	target := &ret
 38971  	if err := gensupport.DecodeResponse(target, res); err != nil {
 38972  		return nil, err
 38973  	}
 38974  	return ret, nil
 38975  }
 38976  
 38977  type ProjectsLocationsAgentSessionsContextsCreateCall struct {
 38978  	s                                   *Service
 38979  	parent                              string
 38980  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 38981  	urlParams_                          gensupport.URLParams
 38982  	ctx_                                context.Context
 38983  	header_                             http.Header
 38984  }
 38985  
 38986  // Create: Creates a context. If the specified context already exists,
 38987  // overrides the context.
 38988  //
 38989  //   - parent: The session to create a context for. Supported formats: -
 38990  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 38991  //     `projects//agent/environments//users//sessions/`, -
 38992  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 38993  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 38994  //     is not specified, we assume default 'draft' environment. If `User ID` is
 38995  //     not specified, we assume default '-' user.
 38996  func (r *ProjectsLocationsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
 38997  	c := &ProjectsLocationsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 38998  	c.parent = parent
 38999  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 39000  	return c
 39001  }
 39002  
 39003  // Fields allows partial responses to be retrieved. See
 39004  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39005  // details.
 39006  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsCreateCall {
 39007  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39008  	return c
 39009  }
 39010  
 39011  // Context sets the context to be used in this call's Do method.
 39012  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
 39013  	c.ctx_ = ctx
 39014  	return c
 39015  }
 39016  
 39017  // Header returns a http.Header that can be modified by the caller to add
 39018  // headers to the request.
 39019  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header {
 39020  	if c.header_ == nil {
 39021  		c.header_ = make(http.Header)
 39022  	}
 39023  	return c.header_
 39024  }
 39025  
 39026  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
 39027  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39028  	var body io.Reader = nil
 39029  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 39030  	if err != nil {
 39031  		return nil, err
 39032  	}
 39033  	c.urlParams_.Set("alt", alt)
 39034  	c.urlParams_.Set("prettyPrint", "false")
 39035  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 39036  	urls += "?" + c.urlParams_.Encode()
 39037  	req, err := http.NewRequest("POST", urls, body)
 39038  	if err != nil {
 39039  		return nil, err
 39040  	}
 39041  	req.Header = reqHeaders
 39042  	googleapi.Expand(req.URL, map[string]string{
 39043  		"parent": c.parent,
 39044  	})
 39045  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39046  }
 39047  
 39048  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call.
 39049  // Any non-2xx status code is an error. Response headers are in either
 39050  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 39051  // was returned at all) in error.(*googleapi.Error).Header. Use
 39052  // googleapi.IsNotModified to check whether the returned error was because
 39053  // http.StatusNotModified was returned.
 39054  func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 39055  	gensupport.SetOptions(c.urlParams_, opts...)
 39056  	res, err := c.doRequest("json")
 39057  	if res != nil && res.StatusCode == http.StatusNotModified {
 39058  		if res.Body != nil {
 39059  			res.Body.Close()
 39060  		}
 39061  		return nil, gensupport.WrapError(&googleapi.Error{
 39062  			Code:   res.StatusCode,
 39063  			Header: res.Header,
 39064  		})
 39065  	}
 39066  	if err != nil {
 39067  		return nil, err
 39068  	}
 39069  	defer googleapi.CloseBody(res)
 39070  	if err := googleapi.CheckResponse(res); err != nil {
 39071  		return nil, gensupport.WrapError(err)
 39072  	}
 39073  	ret := &GoogleCloudDialogflowV2beta1Context{
 39074  		ServerResponse: googleapi.ServerResponse{
 39075  			Header:         res.Header,
 39076  			HTTPStatusCode: res.StatusCode,
 39077  		},
 39078  	}
 39079  	target := &ret
 39080  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39081  		return nil, err
 39082  	}
 39083  	return ret, nil
 39084  }
 39085  
 39086  type ProjectsLocationsAgentSessionsContextsDeleteCall struct {
 39087  	s          *Service
 39088  	name       string
 39089  	urlParams_ gensupport.URLParams
 39090  	ctx_       context.Context
 39091  	header_    http.Header
 39092  }
 39093  
 39094  // Delete: Deletes the specified context.
 39095  //
 39096  //   - name: The name of the context to delete. Supported formats: -
 39097  //     `projects//agent/sessions//contexts/`, -
 39098  //     `projects//locations//agent/sessions//contexts/`, -
 39099  //     `projects//agent/environments//users//sessions//contexts/`, -
 39100  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 39101  //     `Location ID` is not specified we assume default 'us' location. If
 39102  //     `Environment ID` is not specified, we assume default 'draft' environment.
 39103  //     If `User ID` is not specified, we assume default '-' user.
 39104  func (r *ProjectsLocationsAgentSessionsContextsService) Delete(name string) *ProjectsLocationsAgentSessionsContextsDeleteCall {
 39105  	c := &ProjectsLocationsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39106  	c.name = name
 39107  	return c
 39108  }
 39109  
 39110  // Fields allows partial responses to be retrieved. See
 39111  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39112  // details.
 39113  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsDeleteCall {
 39114  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39115  	return c
 39116  }
 39117  
 39118  // Context sets the context to be used in this call's Do method.
 39119  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsDeleteCall {
 39120  	c.ctx_ = ctx
 39121  	return c
 39122  }
 39123  
 39124  // Header returns a http.Header that can be modified by the caller to add
 39125  // headers to the request.
 39126  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header {
 39127  	if c.header_ == nil {
 39128  		c.header_ = make(http.Header)
 39129  	}
 39130  	return c.header_
 39131  }
 39132  
 39133  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
 39134  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39135  	var body io.Reader = nil
 39136  	c.urlParams_.Set("alt", alt)
 39137  	c.urlParams_.Set("prettyPrint", "false")
 39138  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 39139  	urls += "?" + c.urlParams_.Encode()
 39140  	req, err := http.NewRequest("DELETE", urls, body)
 39141  	if err != nil {
 39142  		return nil, err
 39143  	}
 39144  	req.Header = reqHeaders
 39145  	googleapi.Expand(req.URL, map[string]string{
 39146  		"name": c.name,
 39147  	})
 39148  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39149  }
 39150  
 39151  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call.
 39152  // Any non-2xx status code is an error. Response headers are in either
 39153  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 39154  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 39155  // check whether the returned error was because http.StatusNotModified was
 39156  // returned.
 39157  func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 39158  	gensupport.SetOptions(c.urlParams_, opts...)
 39159  	res, err := c.doRequest("json")
 39160  	if res != nil && res.StatusCode == http.StatusNotModified {
 39161  		if res.Body != nil {
 39162  			res.Body.Close()
 39163  		}
 39164  		return nil, gensupport.WrapError(&googleapi.Error{
 39165  			Code:   res.StatusCode,
 39166  			Header: res.Header,
 39167  		})
 39168  	}
 39169  	if err != nil {
 39170  		return nil, err
 39171  	}
 39172  	defer googleapi.CloseBody(res)
 39173  	if err := googleapi.CheckResponse(res); err != nil {
 39174  		return nil, gensupport.WrapError(err)
 39175  	}
 39176  	ret := &GoogleProtobufEmpty{
 39177  		ServerResponse: googleapi.ServerResponse{
 39178  			Header:         res.Header,
 39179  			HTTPStatusCode: res.StatusCode,
 39180  		},
 39181  	}
 39182  	target := &ret
 39183  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39184  		return nil, err
 39185  	}
 39186  	return ret, nil
 39187  }
 39188  
 39189  type ProjectsLocationsAgentSessionsContextsGetCall struct {
 39190  	s            *Service
 39191  	name         string
 39192  	urlParams_   gensupport.URLParams
 39193  	ifNoneMatch_ string
 39194  	ctx_         context.Context
 39195  	header_      http.Header
 39196  }
 39197  
 39198  // Get: Retrieves the specified context.
 39199  //
 39200  //   - name: The name of the context. Supported formats: -
 39201  //     `projects//agent/sessions//contexts/`, -
 39202  //     `projects//locations//agent/sessions//contexts/`, -
 39203  //     `projects//agent/environments//users//sessions//contexts/`, -
 39204  //     `projects//locations//agent/environments//users//sessions//contexts/`, If
 39205  //     `Location ID` is not specified we assume default 'us' location. If
 39206  //     `Environment ID` is not specified, we assume default 'draft' environment.
 39207  //     If `User ID` is not specified, we assume default '-' user.
 39208  func (r *ProjectsLocationsAgentSessionsContextsService) Get(name string) *ProjectsLocationsAgentSessionsContextsGetCall {
 39209  	c := &ProjectsLocationsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39210  	c.name = name
 39211  	return c
 39212  }
 39213  
 39214  // Fields allows partial responses to be retrieved. See
 39215  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39216  // details.
 39217  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsGetCall {
 39218  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39219  	return c
 39220  }
 39221  
 39222  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39223  // object's ETag matches the given value. This is useful for getting updates
 39224  // only after the object has changed since the last request.
 39225  func (c *ProjectsLocationsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsGetCall {
 39226  	c.ifNoneMatch_ = entityTag
 39227  	return c
 39228  }
 39229  
 39230  // Context sets the context to be used in this call's Do method.
 39231  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsGetCall {
 39232  	c.ctx_ = ctx
 39233  	return c
 39234  }
 39235  
 39236  // Header returns a http.Header that can be modified by the caller to add
 39237  // headers to the request.
 39238  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header {
 39239  	if c.header_ == nil {
 39240  		c.header_ = make(http.Header)
 39241  	}
 39242  	return c.header_
 39243  }
 39244  
 39245  func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
 39246  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39247  	if c.ifNoneMatch_ != "" {
 39248  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39249  	}
 39250  	var body io.Reader = nil
 39251  	c.urlParams_.Set("alt", alt)
 39252  	c.urlParams_.Set("prettyPrint", "false")
 39253  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 39254  	urls += "?" + c.urlParams_.Encode()
 39255  	req, err := http.NewRequest("GET", urls, body)
 39256  	if err != nil {
 39257  		return nil, err
 39258  	}
 39259  	req.Header = reqHeaders
 39260  	googleapi.Expand(req.URL, map[string]string{
 39261  		"name": c.name,
 39262  	})
 39263  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39264  }
 39265  
 39266  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call.
 39267  // Any non-2xx status code is an error. Response headers are in either
 39268  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 39269  // was returned at all) in error.(*googleapi.Error).Header. Use
 39270  // googleapi.IsNotModified to check whether the returned error was because
 39271  // http.StatusNotModified was returned.
 39272  func (c *ProjectsLocationsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 39273  	gensupport.SetOptions(c.urlParams_, opts...)
 39274  	res, err := c.doRequest("json")
 39275  	if res != nil && res.StatusCode == http.StatusNotModified {
 39276  		if res.Body != nil {
 39277  			res.Body.Close()
 39278  		}
 39279  		return nil, gensupport.WrapError(&googleapi.Error{
 39280  			Code:   res.StatusCode,
 39281  			Header: res.Header,
 39282  		})
 39283  	}
 39284  	if err != nil {
 39285  		return nil, err
 39286  	}
 39287  	defer googleapi.CloseBody(res)
 39288  	if err := googleapi.CheckResponse(res); err != nil {
 39289  		return nil, gensupport.WrapError(err)
 39290  	}
 39291  	ret := &GoogleCloudDialogflowV2beta1Context{
 39292  		ServerResponse: googleapi.ServerResponse{
 39293  			Header:         res.Header,
 39294  			HTTPStatusCode: res.StatusCode,
 39295  		},
 39296  	}
 39297  	target := &ret
 39298  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39299  		return nil, err
 39300  	}
 39301  	return ret, nil
 39302  }
 39303  
 39304  type ProjectsLocationsAgentSessionsContextsListCall struct {
 39305  	s            *Service
 39306  	parent       string
 39307  	urlParams_   gensupport.URLParams
 39308  	ifNoneMatch_ string
 39309  	ctx_         context.Context
 39310  	header_      http.Header
 39311  }
 39312  
 39313  // List: Returns the list of all contexts in the specified session.
 39314  //
 39315  //   - parent: The session to list all contexts from. Supported formats: -
 39316  //     `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -
 39317  //     `projects//agent/environments//users//sessions/`, -
 39318  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 39319  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 39320  //     is not specified, we assume default 'draft' environment. If `User ID` is
 39321  //     not specified, we assume default '-' user.
 39322  func (r *ProjectsLocationsAgentSessionsContextsService) List(parent string) *ProjectsLocationsAgentSessionsContextsListCall {
 39323  	c := &ProjectsLocationsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39324  	c.parent = parent
 39325  	return c
 39326  }
 39327  
 39328  // PageSize sets the optional parameter "pageSize": The maximum number of items
 39329  // to return in a single page. By default 100 and at most 1000.
 39330  func (c *ProjectsLocationsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsContextsListCall {
 39331  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 39332  	return c
 39333  }
 39334  
 39335  // PageToken sets the optional parameter "pageToken": The next_page_token value
 39336  // returned from a previous list request.
 39337  func (c *ProjectsLocationsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsContextsListCall {
 39338  	c.urlParams_.Set("pageToken", pageToken)
 39339  	return c
 39340  }
 39341  
 39342  // Fields allows partial responses to be retrieved. See
 39343  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39344  // details.
 39345  func (c *ProjectsLocationsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsListCall {
 39346  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39347  	return c
 39348  }
 39349  
 39350  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39351  // object's ETag matches the given value. This is useful for getting updates
 39352  // only after the object has changed since the last request.
 39353  func (c *ProjectsLocationsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsListCall {
 39354  	c.ifNoneMatch_ = entityTag
 39355  	return c
 39356  }
 39357  
 39358  // Context sets the context to be used in this call's Do method.
 39359  func (c *ProjectsLocationsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsListCall {
 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 *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header {
 39367  	if c.header_ == nil {
 39368  		c.header_ = make(http.Header)
 39369  	}
 39370  	return c.header_
 39371  }
 39372  
 39373  func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
 39374  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39375  	if c.ifNoneMatch_ != "" {
 39376  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39377  	}
 39378  	var body io.Reader = nil
 39379  	c.urlParams_.Set("alt", alt)
 39380  	c.urlParams_.Set("prettyPrint", "false")
 39381  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
 39382  	urls += "?" + c.urlParams_.Encode()
 39383  	req, err := http.NewRequest("GET", urls, body)
 39384  	if err != nil {
 39385  		return nil, err
 39386  	}
 39387  	req.Header = reqHeaders
 39388  	googleapi.Expand(req.URL, map[string]string{
 39389  		"parent": c.parent,
 39390  	})
 39391  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39392  }
 39393  
 39394  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call.
 39395  // Any non-2xx status code is an error. Response headers are in either
 39396  // *GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or
 39397  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 39398  // googleapi.IsNotModified to check whether the returned error was because
 39399  // http.StatusNotModified was returned.
 39400  func (c *ProjectsLocationsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
 39401  	gensupport.SetOptions(c.urlParams_, opts...)
 39402  	res, err := c.doRequest("json")
 39403  	if res != nil && res.StatusCode == http.StatusNotModified {
 39404  		if res.Body != nil {
 39405  			res.Body.Close()
 39406  		}
 39407  		return nil, gensupport.WrapError(&googleapi.Error{
 39408  			Code:   res.StatusCode,
 39409  			Header: res.Header,
 39410  		})
 39411  	}
 39412  	if err != nil {
 39413  		return nil, err
 39414  	}
 39415  	defer googleapi.CloseBody(res)
 39416  	if err := googleapi.CheckResponse(res); err != nil {
 39417  		return nil, gensupport.WrapError(err)
 39418  	}
 39419  	ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
 39420  		ServerResponse: googleapi.ServerResponse{
 39421  			Header:         res.Header,
 39422  			HTTPStatusCode: res.StatusCode,
 39423  		},
 39424  	}
 39425  	target := &ret
 39426  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39427  		return nil, err
 39428  	}
 39429  	return ret, nil
 39430  }
 39431  
 39432  // Pages invokes f for each page of results.
 39433  // A non-nil error returned from f will halt the iteration.
 39434  // The provided context supersedes any context provided to the Context method.
 39435  func (c *ProjectsLocationsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
 39436  	c.ctx_ = ctx
 39437  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 39438  	for {
 39439  		x, err := c.Do()
 39440  		if err != nil {
 39441  			return err
 39442  		}
 39443  		if err := f(x); err != nil {
 39444  			return err
 39445  		}
 39446  		if x.NextPageToken == "" {
 39447  			return nil
 39448  		}
 39449  		c.PageToken(x.NextPageToken)
 39450  	}
 39451  }
 39452  
 39453  type ProjectsLocationsAgentSessionsContextsPatchCall struct {
 39454  	s                                   *Service
 39455  	nameid                              string
 39456  	googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
 39457  	urlParams_                          gensupport.URLParams
 39458  	ctx_                                context.Context
 39459  	header_                             http.Header
 39460  }
 39461  
 39462  // Patch: Updates the specified context.
 39463  //
 39464  //   - name: The unique identifier of the context. Supported formats: -
 39465  //     `projects//agent/sessions//contexts/`, -
 39466  //     `projects//locations//agent/sessions//contexts/`, -
 39467  //     `projects//agent/environments//users//sessions//contexts/`, -
 39468  //     `projects//locations//agent/environments//users//sessions//contexts/`, The
 39469  //     `Context ID` is always converted to lowercase, may only contain characters
 39470  //     in `a-zA-Z0-9_-%` and may be at most 250 bytes long. If `Environment ID`
 39471  //     is not specified, we assume default 'draft' environment. If `User ID` is
 39472  //     not specified, we assume default '-' user. The following context names are
 39473  //     reserved for internal use by Dialogflow. You should not use these contexts
 39474  //     or create contexts with these names: * `__system_counters__` *
 39475  //     `*_id_dialog_context` * `*_dialog_params_size`.
 39476  func (r *ProjectsLocationsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
 39477  	c := &ProjectsLocationsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39478  	c.nameid = nameid
 39479  	c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
 39480  	return c
 39481  }
 39482  
 39483  // UpdateMask sets the optional parameter "updateMask": The mask to control
 39484  // which fields get updated.
 39485  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsContextsPatchCall {
 39486  	c.urlParams_.Set("updateMask", updateMask)
 39487  	return c
 39488  }
 39489  
 39490  // Fields allows partial responses to be retrieved. See
 39491  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39492  // details.
 39493  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsPatchCall {
 39494  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39495  	return c
 39496  }
 39497  
 39498  // Context sets the context to be used in this call's Do method.
 39499  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
 39500  	c.ctx_ = ctx
 39501  	return c
 39502  }
 39503  
 39504  // Header returns a http.Header that can be modified by the caller to add
 39505  // headers to the request.
 39506  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header {
 39507  	if c.header_ == nil {
 39508  		c.header_ = make(http.Header)
 39509  	}
 39510  	return c.header_
 39511  }
 39512  
 39513  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
 39514  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39515  	var body io.Reader = nil
 39516  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
 39517  	if err != nil {
 39518  		return nil, err
 39519  	}
 39520  	c.urlParams_.Set("alt", alt)
 39521  	c.urlParams_.Set("prettyPrint", "false")
 39522  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 39523  	urls += "?" + c.urlParams_.Encode()
 39524  	req, err := http.NewRequest("PATCH", urls, body)
 39525  	if err != nil {
 39526  		return nil, err
 39527  	}
 39528  	req.Header = reqHeaders
 39529  	googleapi.Expand(req.URL, map[string]string{
 39530  		"name": c.nameid,
 39531  	})
 39532  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39533  }
 39534  
 39535  // Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call.
 39536  // Any non-2xx status code is an error. Response headers are in either
 39537  // *GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a response
 39538  // was returned at all) in error.(*googleapi.Error).Header. Use
 39539  // googleapi.IsNotModified to check whether the returned error was because
 39540  // http.StatusNotModified was returned.
 39541  func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
 39542  	gensupport.SetOptions(c.urlParams_, opts...)
 39543  	res, err := c.doRequest("json")
 39544  	if res != nil && res.StatusCode == http.StatusNotModified {
 39545  		if res.Body != nil {
 39546  			res.Body.Close()
 39547  		}
 39548  		return nil, gensupport.WrapError(&googleapi.Error{
 39549  			Code:   res.StatusCode,
 39550  			Header: res.Header,
 39551  		})
 39552  	}
 39553  	if err != nil {
 39554  		return nil, err
 39555  	}
 39556  	defer googleapi.CloseBody(res)
 39557  	if err := googleapi.CheckResponse(res); err != nil {
 39558  		return nil, gensupport.WrapError(err)
 39559  	}
 39560  	ret := &GoogleCloudDialogflowV2beta1Context{
 39561  		ServerResponse: googleapi.ServerResponse{
 39562  			Header:         res.Header,
 39563  			HTTPStatusCode: res.StatusCode,
 39564  		},
 39565  	}
 39566  	target := &ret
 39567  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39568  		return nil, err
 39569  	}
 39570  	return ret, nil
 39571  }
 39572  
 39573  type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {
 39574  	s                                             *Service
 39575  	parent                                        string
 39576  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 39577  	urlParams_                                    gensupport.URLParams
 39578  	ctx_                                          context.Context
 39579  	header_                                       http.Header
 39580  }
 39581  
 39582  // Create: Creates a session entity type. If the specified session entity type
 39583  // already exists, overrides the session entity type. This method doesn't work
 39584  // with Google Assistant integration. Contact Dialogflow support if you need to
 39585  // use session entities with Google Assistant integration.
 39586  //
 39587  //   - parent: The session to create a session entity type for. Supported
 39588  //     formats: - `projects//agent/sessions/, -
 39589  //     `projects//locations//agent/sessions/`, -
 39590  //     `projects//agent/environments//users//sessions/`, -
 39591  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 39592  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 39593  //     is not specified, we assume default 'draft' environment. If `User ID` is
 39594  //     not specified, we assume default '-' user.
 39595  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
 39596  	c := &ProjectsLocationsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39597  	c.parent = parent
 39598  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 39599  	return c
 39600  }
 39601  
 39602  // Fields allows partial responses to be retrieved. See
 39603  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39604  // details.
 39605  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
 39606  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39607  	return c
 39608  }
 39609  
 39610  // Context sets the context to be used in this call's Do method.
 39611  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
 39612  	c.ctx_ = ctx
 39613  	return c
 39614  }
 39615  
 39616  // Header returns a http.Header that can be modified by the caller to add
 39617  // headers to the request.
 39618  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Header {
 39619  	if c.header_ == nil {
 39620  		c.header_ = make(http.Header)
 39621  	}
 39622  	return c.header_
 39623  }
 39624  
 39625  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 39626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 39627  	var body io.Reader = nil
 39628  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 39629  	if err != nil {
 39630  		return nil, err
 39631  	}
 39632  	c.urlParams_.Set("alt", alt)
 39633  	c.urlParams_.Set("prettyPrint", "false")
 39634  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 39635  	urls += "?" + c.urlParams_.Encode()
 39636  	req, err := http.NewRequest("POST", urls, body)
 39637  	if err != nil {
 39638  		return nil, err
 39639  	}
 39640  	req.Header = reqHeaders
 39641  	googleapi.Expand(req.URL, map[string]string{
 39642  		"parent": c.parent,
 39643  	})
 39644  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39645  }
 39646  
 39647  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call.
 39648  // Any non-2xx status code is an error. Response headers are in either
 39649  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 39650  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 39651  // googleapi.IsNotModified to check whether the returned error was because
 39652  // http.StatusNotModified was returned.
 39653  func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 39654  	gensupport.SetOptions(c.urlParams_, opts...)
 39655  	res, err := c.doRequest("json")
 39656  	if res != nil && res.StatusCode == http.StatusNotModified {
 39657  		if res.Body != nil {
 39658  			res.Body.Close()
 39659  		}
 39660  		return nil, gensupport.WrapError(&googleapi.Error{
 39661  			Code:   res.StatusCode,
 39662  			Header: res.Header,
 39663  		})
 39664  	}
 39665  	if err != nil {
 39666  		return nil, err
 39667  	}
 39668  	defer googleapi.CloseBody(res)
 39669  	if err := googleapi.CheckResponse(res); err != nil {
 39670  		return nil, gensupport.WrapError(err)
 39671  	}
 39672  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 39673  		ServerResponse: googleapi.ServerResponse{
 39674  			Header:         res.Header,
 39675  			HTTPStatusCode: res.StatusCode,
 39676  		},
 39677  	}
 39678  	target := &ret
 39679  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39680  		return nil, err
 39681  	}
 39682  	return ret, nil
 39683  }
 39684  
 39685  type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {
 39686  	s          *Service
 39687  	name       string
 39688  	urlParams_ gensupport.URLParams
 39689  	ctx_       context.Context
 39690  	header_    http.Header
 39691  }
 39692  
 39693  // Delete: Deletes the specified session entity type. This method doesn't work
 39694  // with Google Assistant integration. Contact Dialogflow support if you need to
 39695  // use session entities with Google Assistant integration.
 39696  //
 39697  //   - name: The name of the entity type to delete. Supported formats: -
 39698  //     `projects//agent/sessions//entityTypes/` -
 39699  //     `projects//locations//agent/sessions//entityTypes/` -
 39700  //     `projects//agent/environments//users//sessions//entityTypes/` -
 39701  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 39702  //     If `Location ID` is not specified we assume default 'us' location. If
 39703  //     `Environment ID` is not specified, we assume default 'draft' environment.
 39704  //     If `User ID` is not specified, we assume default '-' user.
 39705  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
 39706  	c := &ProjectsLocationsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39707  	c.name = name
 39708  	return c
 39709  }
 39710  
 39711  // Fields allows partial responses to be retrieved. See
 39712  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39713  // details.
 39714  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
 39715  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39716  	return c
 39717  }
 39718  
 39719  // Context sets the context to be used in this call's Do method.
 39720  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
 39721  	c.ctx_ = ctx
 39722  	return c
 39723  }
 39724  
 39725  // Header returns a http.Header that can be modified by the caller to add
 39726  // headers to the request.
 39727  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
 39728  	if c.header_ == nil {
 39729  		c.header_ = make(http.Header)
 39730  	}
 39731  	return c.header_
 39732  }
 39733  
 39734  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 39735  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39736  	var body io.Reader = nil
 39737  	c.urlParams_.Set("alt", alt)
 39738  	c.urlParams_.Set("prettyPrint", "false")
 39739  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 39740  	urls += "?" + c.urlParams_.Encode()
 39741  	req, err := http.NewRequest("DELETE", urls, body)
 39742  	if err != nil {
 39743  		return nil, err
 39744  	}
 39745  	req.Header = reqHeaders
 39746  	googleapi.Expand(req.URL, map[string]string{
 39747  		"name": c.name,
 39748  	})
 39749  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39750  }
 39751  
 39752  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call.
 39753  // Any non-2xx status code is an error. Response headers are in either
 39754  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 39755  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 39756  // check whether the returned error was because http.StatusNotModified was
 39757  // returned.
 39758  func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 39759  	gensupport.SetOptions(c.urlParams_, opts...)
 39760  	res, err := c.doRequest("json")
 39761  	if res != nil && res.StatusCode == http.StatusNotModified {
 39762  		if res.Body != nil {
 39763  			res.Body.Close()
 39764  		}
 39765  		return nil, gensupport.WrapError(&googleapi.Error{
 39766  			Code:   res.StatusCode,
 39767  			Header: res.Header,
 39768  		})
 39769  	}
 39770  	if err != nil {
 39771  		return nil, err
 39772  	}
 39773  	defer googleapi.CloseBody(res)
 39774  	if err := googleapi.CheckResponse(res); err != nil {
 39775  		return nil, gensupport.WrapError(err)
 39776  	}
 39777  	ret := &GoogleProtobufEmpty{
 39778  		ServerResponse: googleapi.ServerResponse{
 39779  			Header:         res.Header,
 39780  			HTTPStatusCode: res.StatusCode,
 39781  		},
 39782  	}
 39783  	target := &ret
 39784  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39785  		return nil, err
 39786  	}
 39787  	return ret, nil
 39788  }
 39789  
 39790  type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {
 39791  	s            *Service
 39792  	name         string
 39793  	urlParams_   gensupport.URLParams
 39794  	ifNoneMatch_ string
 39795  	ctx_         context.Context
 39796  	header_      http.Header
 39797  }
 39798  
 39799  // Get: Retrieves the specified session entity type. This method doesn't work
 39800  // with Google Assistant integration. Contact Dialogflow support if you need to
 39801  // use session entities with Google Assistant integration.
 39802  //
 39803  //   - name: The name of the session entity type. Supported formats: -
 39804  //     `projects//agent/sessions//entityTypes/` -
 39805  //     `projects//locations//agent/sessions//entityTypes/` -
 39806  //     `projects//agent/environments//users//sessions//entityTypes/` -
 39807  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 39808  //     If `Location ID` is not specified we assume default 'us' location. If
 39809  //     `Environment ID` is not specified, we assume default 'draft' environment.
 39810  //     If `User ID` is not specified, we assume default '-' user.
 39811  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 39812  	c := &ProjectsLocationsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39813  	c.name = name
 39814  	return c
 39815  }
 39816  
 39817  // Fields allows partial responses to be retrieved. See
 39818  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39819  // details.
 39820  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 39821  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39822  	return c
 39823  }
 39824  
 39825  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39826  // object's ETag matches the given value. This is useful for getting updates
 39827  // only after the object has changed since the last request.
 39828  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 39829  	c.ifNoneMatch_ = entityTag
 39830  	return c
 39831  }
 39832  
 39833  // Context sets the context to be used in this call's Do method.
 39834  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
 39835  	c.ctx_ = ctx
 39836  	return c
 39837  }
 39838  
 39839  // Header returns a http.Header that can be modified by the caller to add
 39840  // headers to the request.
 39841  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header {
 39842  	if c.header_ == nil {
 39843  		c.header_ = make(http.Header)
 39844  	}
 39845  	return c.header_
 39846  }
 39847  
 39848  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
 39849  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39850  	if c.ifNoneMatch_ != "" {
 39851  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39852  	}
 39853  	var body io.Reader = nil
 39854  	c.urlParams_.Set("alt", alt)
 39855  	c.urlParams_.Set("prettyPrint", "false")
 39856  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 39857  	urls += "?" + c.urlParams_.Encode()
 39858  	req, err := http.NewRequest("GET", urls, body)
 39859  	if err != nil {
 39860  		return nil, err
 39861  	}
 39862  	req.Header = reqHeaders
 39863  	googleapi.Expand(req.URL, map[string]string{
 39864  		"name": c.name,
 39865  	})
 39866  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39867  }
 39868  
 39869  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call.
 39870  // Any non-2xx status code is an error. Response headers are in either
 39871  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 39872  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 39873  // googleapi.IsNotModified to check whether the returned error was because
 39874  // http.StatusNotModified was returned.
 39875  func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 39876  	gensupport.SetOptions(c.urlParams_, opts...)
 39877  	res, err := c.doRequest("json")
 39878  	if res != nil && res.StatusCode == http.StatusNotModified {
 39879  		if res.Body != nil {
 39880  			res.Body.Close()
 39881  		}
 39882  		return nil, gensupport.WrapError(&googleapi.Error{
 39883  			Code:   res.StatusCode,
 39884  			Header: res.Header,
 39885  		})
 39886  	}
 39887  	if err != nil {
 39888  		return nil, err
 39889  	}
 39890  	defer googleapi.CloseBody(res)
 39891  	if err := googleapi.CheckResponse(res); err != nil {
 39892  		return nil, gensupport.WrapError(err)
 39893  	}
 39894  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 39895  		ServerResponse: googleapi.ServerResponse{
 39896  			Header:         res.Header,
 39897  			HTTPStatusCode: res.StatusCode,
 39898  		},
 39899  	}
 39900  	target := &ret
 39901  	if err := gensupport.DecodeResponse(target, res); err != nil {
 39902  		return nil, err
 39903  	}
 39904  	return ret, nil
 39905  }
 39906  
 39907  type ProjectsLocationsAgentSessionsEntityTypesListCall struct {
 39908  	s            *Service
 39909  	parent       string
 39910  	urlParams_   gensupport.URLParams
 39911  	ifNoneMatch_ string
 39912  	ctx_         context.Context
 39913  	header_      http.Header
 39914  }
 39915  
 39916  // List: Returns the list of all session entity types in the specified session.
 39917  // This method doesn't work with Google Assistant integration. Contact
 39918  // Dialogflow support if you need to use session entities with Google Assistant
 39919  // integration.
 39920  //
 39921  //   - parent: The session to list all session entity types from. Supported
 39922  //     formats: - `projects//agent/sessions/, -
 39923  //     `projects//locations//agent/sessions/`, -
 39924  //     `projects//agent/environments//users//sessions/`, -
 39925  //     `projects//locations//agent/environments//users//sessions/`, If `Location
 39926  //     ID` is not specified we assume default 'us' location. If `Environment ID`
 39927  //     is not specified, we assume default 'draft' environment. If `User ID` is
 39928  //     not specified, we assume default '-' user.
 39929  func (r *ProjectsLocationsAgentSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 39930  	c := &ProjectsLocationsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 39931  	c.parent = parent
 39932  	return c
 39933  }
 39934  
 39935  // PageSize sets the optional parameter "pageSize": The maximum number of items
 39936  // to return in a single page. By default 100 and at most 1000.
 39937  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 39938  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 39939  	return c
 39940  }
 39941  
 39942  // PageToken sets the optional parameter "pageToken": The next_page_token value
 39943  // returned from a previous list request.
 39944  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 39945  	c.urlParams_.Set("pageToken", pageToken)
 39946  	return c
 39947  }
 39948  
 39949  // Fields allows partial responses to be retrieved. See
 39950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 39951  // details.
 39952  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 39953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 39954  	return c
 39955  }
 39956  
 39957  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 39958  // object's ETag matches the given value. This is useful for getting updates
 39959  // only after the object has changed since the last request.
 39960  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 39961  	c.ifNoneMatch_ = entityTag
 39962  	return c
 39963  }
 39964  
 39965  // Context sets the context to be used in this call's Do method.
 39966  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesListCall {
 39967  	c.ctx_ = ctx
 39968  	return c
 39969  }
 39970  
 39971  // Header returns a http.Header that can be modified by the caller to add
 39972  // headers to the request.
 39973  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header {
 39974  	if c.header_ == nil {
 39975  		c.header_ = make(http.Header)
 39976  	}
 39977  	return c.header_
 39978  }
 39979  
 39980  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
 39981  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 39982  	if c.ifNoneMatch_ != "" {
 39983  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 39984  	}
 39985  	var body io.Reader = nil
 39986  	c.urlParams_.Set("alt", alt)
 39987  	c.urlParams_.Set("prettyPrint", "false")
 39988  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
 39989  	urls += "?" + c.urlParams_.Encode()
 39990  	req, err := http.NewRequest("GET", urls, body)
 39991  	if err != nil {
 39992  		return nil, err
 39993  	}
 39994  	req.Header = reqHeaders
 39995  	googleapi.Expand(req.URL, map[string]string{
 39996  		"parent": c.parent,
 39997  	})
 39998  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 39999  }
 40000  
 40001  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call.
 40002  // Any non-2xx status code is an error. Response headers are in either
 40003  // *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.He
 40004  // ader or (if a response was returned at all) in
 40005  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 40006  // whether the returned error was because http.StatusNotModified was returned.
 40007  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
 40008  	gensupport.SetOptions(c.urlParams_, opts...)
 40009  	res, err := c.doRequest("json")
 40010  	if res != nil && res.StatusCode == http.StatusNotModified {
 40011  		if res.Body != nil {
 40012  			res.Body.Close()
 40013  		}
 40014  		return nil, gensupport.WrapError(&googleapi.Error{
 40015  			Code:   res.StatusCode,
 40016  			Header: res.Header,
 40017  		})
 40018  	}
 40019  	if err != nil {
 40020  		return nil, err
 40021  	}
 40022  	defer googleapi.CloseBody(res)
 40023  	if err := googleapi.CheckResponse(res); err != nil {
 40024  		return nil, gensupport.WrapError(err)
 40025  	}
 40026  	ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
 40027  		ServerResponse: googleapi.ServerResponse{
 40028  			Header:         res.Header,
 40029  			HTTPStatusCode: res.StatusCode,
 40030  		},
 40031  	}
 40032  	target := &ret
 40033  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40034  		return nil, err
 40035  	}
 40036  	return ret, nil
 40037  }
 40038  
 40039  // Pages invokes f for each page of results.
 40040  // A non-nil error returned from f will halt the iteration.
 40041  // The provided context supersedes any context provided to the Context method.
 40042  func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
 40043  	c.ctx_ = ctx
 40044  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40045  	for {
 40046  		x, err := c.Do()
 40047  		if err != nil {
 40048  			return err
 40049  		}
 40050  		if err := f(x); err != nil {
 40051  			return err
 40052  		}
 40053  		if x.NextPageToken == "" {
 40054  			return nil
 40055  		}
 40056  		c.PageToken(x.NextPageToken)
 40057  	}
 40058  }
 40059  
 40060  type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {
 40061  	s                                             *Service
 40062  	nameid                                        string
 40063  	googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
 40064  	urlParams_                                    gensupport.URLParams
 40065  	ctx_                                          context.Context
 40066  	header_                                       http.Header
 40067  }
 40068  
 40069  // Patch: Updates the specified session entity type. This method doesn't work
 40070  // with Google Assistant integration. Contact Dialogflow support if you need to
 40071  // use session entities with Google Assistant integration.
 40072  //
 40073  //   - name: The unique identifier of this session entity type. Supported
 40074  //     formats: - `projects//agent/sessions//entityTypes/` -
 40075  //     `projects//locations//agent/sessions//entityTypes/` -
 40076  //     `projects//agent/environments//users//sessions//entityTypes/` -
 40077  //     `projects//locations//agent/environments/ /users//sessions//entityTypes/`
 40078  //     If `Location ID` is not specified we assume default 'us' location. If
 40079  //     `Environment ID` is not specified, we assume default 'draft' environment.
 40080  //     If `User ID` is not specified, we assume default '-' user. “ must be the
 40081  //     display name of an existing entity type in the same agent that will be
 40082  //     overridden or supplemented.
 40083  func (r *ProjectsLocationsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40084  	c := &ProjectsLocationsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40085  	c.nameid = nameid
 40086  	c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
 40087  	return c
 40088  }
 40089  
 40090  // UpdateMask sets the optional parameter "updateMask": The mask to control
 40091  // which fields get updated.
 40092  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40093  	c.urlParams_.Set("updateMask", updateMask)
 40094  	return c
 40095  }
 40096  
 40097  // Fields allows partial responses to be retrieved. See
 40098  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40099  // details.
 40100  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40101  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40102  	return c
 40103  }
 40104  
 40105  // Context sets the context to be used in this call's Do method.
 40106  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
 40107  	c.ctx_ = ctx
 40108  	return c
 40109  }
 40110  
 40111  // Header returns a http.Header that can be modified by the caller to add
 40112  // headers to the request.
 40113  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Header {
 40114  	if c.header_ == nil {
 40115  		c.header_ = make(http.Header)
 40116  	}
 40117  	return c.header_
 40118  }
 40119  
 40120  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 40121  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40122  	var body io.Reader = nil
 40123  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
 40124  	if err != nil {
 40125  		return nil, err
 40126  	}
 40127  	c.urlParams_.Set("alt", alt)
 40128  	c.urlParams_.Set("prettyPrint", "false")
 40129  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 40130  	urls += "?" + c.urlParams_.Encode()
 40131  	req, err := http.NewRequest("PATCH", urls, body)
 40132  	if err != nil {
 40133  		return nil, err
 40134  	}
 40135  	req.Header = reqHeaders
 40136  	googleapi.Expand(req.URL, map[string]string{
 40137  		"name": c.nameid,
 40138  	})
 40139  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40140  }
 40141  
 40142  // Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call.
 40143  // Any non-2xx status code is an error. Response headers are in either
 40144  // *GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (if
 40145  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 40146  // googleapi.IsNotModified to check whether the returned error was because
 40147  // http.StatusNotModified was returned.
 40148  func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
 40149  	gensupport.SetOptions(c.urlParams_, opts...)
 40150  	res, err := c.doRequest("json")
 40151  	if res != nil && res.StatusCode == http.StatusNotModified {
 40152  		if res.Body != nil {
 40153  			res.Body.Close()
 40154  		}
 40155  		return nil, gensupport.WrapError(&googleapi.Error{
 40156  			Code:   res.StatusCode,
 40157  			Header: res.Header,
 40158  		})
 40159  	}
 40160  	if err != nil {
 40161  		return nil, err
 40162  	}
 40163  	defer googleapi.CloseBody(res)
 40164  	if err := googleapi.CheckResponse(res); err != nil {
 40165  		return nil, gensupport.WrapError(err)
 40166  	}
 40167  	ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
 40168  		ServerResponse: googleapi.ServerResponse{
 40169  			Header:         res.Header,
 40170  			HTTPStatusCode: res.StatusCode,
 40171  		},
 40172  	}
 40173  	target := &ret
 40174  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40175  		return nil, err
 40176  	}
 40177  	return ret, nil
 40178  }
 40179  
 40180  type ProjectsLocationsAgentVersionsCreateCall struct {
 40181  	s                                   *Service
 40182  	parent                              string
 40183  	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
 40184  	urlParams_                          gensupport.URLParams
 40185  	ctx_                                context.Context
 40186  	header_                             http.Header
 40187  }
 40188  
 40189  // Create: Creates an agent version. The new version points to the agent
 40190  // instance in the "default" environment.
 40191  //
 40192  //   - parent: The agent to create a version for. Supported formats: -
 40193  //     `projects//agent` - `projects//locations//agent`.
 40194  func (r *ProjectsLocationsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsCreateCall {
 40195  	c := &ProjectsLocationsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40196  	c.parent = parent
 40197  	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
 40198  	return c
 40199  }
 40200  
 40201  // Fields allows partial responses to be retrieved. See
 40202  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40203  // details.
 40204  func (c *ProjectsLocationsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsCreateCall {
 40205  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40206  	return c
 40207  }
 40208  
 40209  // Context sets the context to be used in this call's Do method.
 40210  func (c *ProjectsLocationsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsCreateCall {
 40211  	c.ctx_ = ctx
 40212  	return c
 40213  }
 40214  
 40215  // Header returns a http.Header that can be modified by the caller to add
 40216  // headers to the request.
 40217  func (c *ProjectsLocationsAgentVersionsCreateCall) Header() http.Header {
 40218  	if c.header_ == nil {
 40219  		c.header_ = make(http.Header)
 40220  	}
 40221  	return c.header_
 40222  }
 40223  
 40224  func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
 40225  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40226  	var body io.Reader = nil
 40227  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
 40228  	if err != nil {
 40229  		return nil, err
 40230  	}
 40231  	c.urlParams_.Set("alt", alt)
 40232  	c.urlParams_.Set("prettyPrint", "false")
 40233  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
 40234  	urls += "?" + c.urlParams_.Encode()
 40235  	req, err := http.NewRequest("POST", urls, body)
 40236  	if err != nil {
 40237  		return nil, err
 40238  	}
 40239  	req.Header = reqHeaders
 40240  	googleapi.Expand(req.URL, map[string]string{
 40241  		"parent": c.parent,
 40242  	})
 40243  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40244  }
 40245  
 40246  // Do executes the "dialogflow.projects.locations.agent.versions.create" call.
 40247  // Any non-2xx status code is an error. Response headers are in either
 40248  // *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a response
 40249  // was returned at all) in error.(*googleapi.Error).Header. Use
 40250  // googleapi.IsNotModified to check whether the returned error was because
 40251  // http.StatusNotModified was returned.
 40252  func (c *ProjectsLocationsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
 40253  	gensupport.SetOptions(c.urlParams_, opts...)
 40254  	res, err := c.doRequest("json")
 40255  	if res != nil && res.StatusCode == http.StatusNotModified {
 40256  		if res.Body != nil {
 40257  			res.Body.Close()
 40258  		}
 40259  		return nil, gensupport.WrapError(&googleapi.Error{
 40260  			Code:   res.StatusCode,
 40261  			Header: res.Header,
 40262  		})
 40263  	}
 40264  	if err != nil {
 40265  		return nil, err
 40266  	}
 40267  	defer googleapi.CloseBody(res)
 40268  	if err := googleapi.CheckResponse(res); err != nil {
 40269  		return nil, gensupport.WrapError(err)
 40270  	}
 40271  	ret := &GoogleCloudDialogflowV2beta1Version{
 40272  		ServerResponse: googleapi.ServerResponse{
 40273  			Header:         res.Header,
 40274  			HTTPStatusCode: res.StatusCode,
 40275  		},
 40276  	}
 40277  	target := &ret
 40278  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40279  		return nil, err
 40280  	}
 40281  	return ret, nil
 40282  }
 40283  
 40284  type ProjectsLocationsAgentVersionsDeleteCall struct {
 40285  	s          *Service
 40286  	name       string
 40287  	urlParams_ gensupport.URLParams
 40288  	ctx_       context.Context
 40289  	header_    http.Header
 40290  }
 40291  
 40292  // Delete: Delete the specified agent version.
 40293  //
 40294  //   - name: The name of the version to delete. Supported formats: -
 40295  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 40296  func (r *ProjectsLocationsAgentVersionsService) Delete(name string) *ProjectsLocationsAgentVersionsDeleteCall {
 40297  	c := &ProjectsLocationsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40298  	c.name = name
 40299  	return c
 40300  }
 40301  
 40302  // Fields allows partial responses to be retrieved. See
 40303  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40304  // details.
 40305  func (c *ProjectsLocationsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsDeleteCall {
 40306  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40307  	return c
 40308  }
 40309  
 40310  // Context sets the context to be used in this call's Do method.
 40311  func (c *ProjectsLocationsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsDeleteCall {
 40312  	c.ctx_ = ctx
 40313  	return c
 40314  }
 40315  
 40316  // Header returns a http.Header that can be modified by the caller to add
 40317  // headers to the request.
 40318  func (c *ProjectsLocationsAgentVersionsDeleteCall) Header() http.Header {
 40319  	if c.header_ == nil {
 40320  		c.header_ = make(http.Header)
 40321  	}
 40322  	return c.header_
 40323  }
 40324  
 40325  func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 40326  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40327  	var body io.Reader = nil
 40328  	c.urlParams_.Set("alt", alt)
 40329  	c.urlParams_.Set("prettyPrint", "false")
 40330  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 40331  	urls += "?" + c.urlParams_.Encode()
 40332  	req, err := http.NewRequest("DELETE", urls, body)
 40333  	if err != nil {
 40334  		return nil, err
 40335  	}
 40336  	req.Header = reqHeaders
 40337  	googleapi.Expand(req.URL, map[string]string{
 40338  		"name": c.name,
 40339  	})
 40340  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40341  }
 40342  
 40343  // Do executes the "dialogflow.projects.locations.agent.versions.delete" call.
 40344  // Any non-2xx status code is an error. Response headers are in either
 40345  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 40346  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 40347  // check whether the returned error was because http.StatusNotModified was
 40348  // returned.
 40349  func (c *ProjectsLocationsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 40350  	gensupport.SetOptions(c.urlParams_, opts...)
 40351  	res, err := c.doRequest("json")
 40352  	if res != nil && res.StatusCode == http.StatusNotModified {
 40353  		if res.Body != nil {
 40354  			res.Body.Close()
 40355  		}
 40356  		return nil, gensupport.WrapError(&googleapi.Error{
 40357  			Code:   res.StatusCode,
 40358  			Header: res.Header,
 40359  		})
 40360  	}
 40361  	if err != nil {
 40362  		return nil, err
 40363  	}
 40364  	defer googleapi.CloseBody(res)
 40365  	if err := googleapi.CheckResponse(res); err != nil {
 40366  		return nil, gensupport.WrapError(err)
 40367  	}
 40368  	ret := &GoogleProtobufEmpty{
 40369  		ServerResponse: googleapi.ServerResponse{
 40370  			Header:         res.Header,
 40371  			HTTPStatusCode: res.StatusCode,
 40372  		},
 40373  	}
 40374  	target := &ret
 40375  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40376  		return nil, err
 40377  	}
 40378  	return ret, nil
 40379  }
 40380  
 40381  type ProjectsLocationsAgentVersionsGetCall struct {
 40382  	s            *Service
 40383  	name         string
 40384  	urlParams_   gensupport.URLParams
 40385  	ifNoneMatch_ string
 40386  	ctx_         context.Context
 40387  	header_      http.Header
 40388  }
 40389  
 40390  // Get: Retrieves the specified agent version.
 40391  //
 40392  //   - name: The name of the version. Supported formats: -
 40393  //     `projects//agent/versions/` - `projects//locations//agent/versions/`.
 40394  func (r *ProjectsLocationsAgentVersionsService) Get(name string) *ProjectsLocationsAgentVersionsGetCall {
 40395  	c := &ProjectsLocationsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40396  	c.name = name
 40397  	return c
 40398  }
 40399  
 40400  // Fields allows partial responses to be retrieved. See
 40401  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40402  // details.
 40403  func (c *ProjectsLocationsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsGetCall {
 40404  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40405  	return c
 40406  }
 40407  
 40408  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40409  // object's ETag matches the given value. This is useful for getting updates
 40410  // only after the object has changed since the last request.
 40411  func (c *ProjectsLocationsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsGetCall {
 40412  	c.ifNoneMatch_ = entityTag
 40413  	return c
 40414  }
 40415  
 40416  // Context sets the context to be used in this call's Do method.
 40417  func (c *ProjectsLocationsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsGetCall {
 40418  	c.ctx_ = ctx
 40419  	return c
 40420  }
 40421  
 40422  // Header returns a http.Header that can be modified by the caller to add
 40423  // headers to the request.
 40424  func (c *ProjectsLocationsAgentVersionsGetCall) Header() http.Header {
 40425  	if c.header_ == nil {
 40426  		c.header_ = make(http.Header)
 40427  	}
 40428  	return c.header_
 40429  }
 40430  
 40431  func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
 40432  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40433  	if c.ifNoneMatch_ != "" {
 40434  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40435  	}
 40436  	var body io.Reader = nil
 40437  	c.urlParams_.Set("alt", alt)
 40438  	c.urlParams_.Set("prettyPrint", "false")
 40439  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 40440  	urls += "?" + c.urlParams_.Encode()
 40441  	req, err := http.NewRequest("GET", urls, body)
 40442  	if err != nil {
 40443  		return nil, err
 40444  	}
 40445  	req.Header = reqHeaders
 40446  	googleapi.Expand(req.URL, map[string]string{
 40447  		"name": c.name,
 40448  	})
 40449  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40450  }
 40451  
 40452  // Do executes the "dialogflow.projects.locations.agent.versions.get" call.
 40453  // Any non-2xx status code is an error. Response headers are in either
 40454  // *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a response
 40455  // was returned at all) in error.(*googleapi.Error).Header. Use
 40456  // googleapi.IsNotModified to check whether the returned error was because
 40457  // http.StatusNotModified was returned.
 40458  func (c *ProjectsLocationsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
 40459  	gensupport.SetOptions(c.urlParams_, opts...)
 40460  	res, err := c.doRequest("json")
 40461  	if res != nil && res.StatusCode == http.StatusNotModified {
 40462  		if res.Body != nil {
 40463  			res.Body.Close()
 40464  		}
 40465  		return nil, gensupport.WrapError(&googleapi.Error{
 40466  			Code:   res.StatusCode,
 40467  			Header: res.Header,
 40468  		})
 40469  	}
 40470  	if err != nil {
 40471  		return nil, err
 40472  	}
 40473  	defer googleapi.CloseBody(res)
 40474  	if err := googleapi.CheckResponse(res); err != nil {
 40475  		return nil, gensupport.WrapError(err)
 40476  	}
 40477  	ret := &GoogleCloudDialogflowV2beta1Version{
 40478  		ServerResponse: googleapi.ServerResponse{
 40479  			Header:         res.Header,
 40480  			HTTPStatusCode: res.StatusCode,
 40481  		},
 40482  	}
 40483  	target := &ret
 40484  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40485  		return nil, err
 40486  	}
 40487  	return ret, nil
 40488  }
 40489  
 40490  type ProjectsLocationsAgentVersionsListCall struct {
 40491  	s            *Service
 40492  	parent       string
 40493  	urlParams_   gensupport.URLParams
 40494  	ifNoneMatch_ string
 40495  	ctx_         context.Context
 40496  	header_      http.Header
 40497  }
 40498  
 40499  // List: Returns the list of all versions of the specified agent.
 40500  //
 40501  //   - parent: The agent to list all versions from. Supported formats: -
 40502  //     `projects//agent` - `projects//locations//agent`.
 40503  func (r *ProjectsLocationsAgentVersionsService) List(parent string) *ProjectsLocationsAgentVersionsListCall {
 40504  	c := &ProjectsLocationsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40505  	c.parent = parent
 40506  	return c
 40507  }
 40508  
 40509  // PageSize sets the optional parameter "pageSize": The maximum number of items
 40510  // to return in a single page. By default 100 and at most 1000.
 40511  func (c *ProjectsLocationsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentVersionsListCall {
 40512  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 40513  	return c
 40514  }
 40515  
 40516  // PageToken sets the optional parameter "pageToken": The next_page_token value
 40517  // returned from a previous list request.
 40518  func (c *ProjectsLocationsAgentVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentVersionsListCall {
 40519  	c.urlParams_.Set("pageToken", pageToken)
 40520  	return c
 40521  }
 40522  
 40523  // Fields allows partial responses to be retrieved. See
 40524  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40525  // details.
 40526  func (c *ProjectsLocationsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsListCall {
 40527  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40528  	return c
 40529  }
 40530  
 40531  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40532  // object's ETag matches the given value. This is useful for getting updates
 40533  // only after the object has changed since the last request.
 40534  func (c *ProjectsLocationsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsListCall {
 40535  	c.ifNoneMatch_ = entityTag
 40536  	return c
 40537  }
 40538  
 40539  // Context sets the context to be used in this call's Do method.
 40540  func (c *ProjectsLocationsAgentVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsListCall {
 40541  	c.ctx_ = ctx
 40542  	return c
 40543  }
 40544  
 40545  // Header returns a http.Header that can be modified by the caller to add
 40546  // headers to the request.
 40547  func (c *ProjectsLocationsAgentVersionsListCall) Header() http.Header {
 40548  	if c.header_ == nil {
 40549  		c.header_ = make(http.Header)
 40550  	}
 40551  	return c.header_
 40552  }
 40553  
 40554  func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
 40555  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40556  	if c.ifNoneMatch_ != "" {
 40557  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40558  	}
 40559  	var body io.Reader = nil
 40560  	c.urlParams_.Set("alt", alt)
 40561  	c.urlParams_.Set("prettyPrint", "false")
 40562  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
 40563  	urls += "?" + c.urlParams_.Encode()
 40564  	req, err := http.NewRequest("GET", urls, body)
 40565  	if err != nil {
 40566  		return nil, err
 40567  	}
 40568  	req.Header = reqHeaders
 40569  	googleapi.Expand(req.URL, map[string]string{
 40570  		"parent": c.parent,
 40571  	})
 40572  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40573  }
 40574  
 40575  // Do executes the "dialogflow.projects.locations.agent.versions.list" call.
 40576  // Any non-2xx status code is an error. Response headers are in either
 40577  // *GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Header or
 40578  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 40579  // googleapi.IsNotModified to check whether the returned error was because
 40580  // http.StatusNotModified was returned.
 40581  func (c *ProjectsLocationsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
 40582  	gensupport.SetOptions(c.urlParams_, opts...)
 40583  	res, err := c.doRequest("json")
 40584  	if res != nil && res.StatusCode == http.StatusNotModified {
 40585  		if res.Body != nil {
 40586  			res.Body.Close()
 40587  		}
 40588  		return nil, gensupport.WrapError(&googleapi.Error{
 40589  			Code:   res.StatusCode,
 40590  			Header: res.Header,
 40591  		})
 40592  	}
 40593  	if err != nil {
 40594  		return nil, err
 40595  	}
 40596  	defer googleapi.CloseBody(res)
 40597  	if err := googleapi.CheckResponse(res); err != nil {
 40598  		return nil, gensupport.WrapError(err)
 40599  	}
 40600  	ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
 40601  		ServerResponse: googleapi.ServerResponse{
 40602  			Header:         res.Header,
 40603  			HTTPStatusCode: res.StatusCode,
 40604  		},
 40605  	}
 40606  	target := &ret
 40607  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40608  		return nil, err
 40609  	}
 40610  	return ret, nil
 40611  }
 40612  
 40613  // Pages invokes f for each page of results.
 40614  // A non-nil error returned from f will halt the iteration.
 40615  // The provided context supersedes any context provided to the Context method.
 40616  func (c *ProjectsLocationsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
 40617  	c.ctx_ = ctx
 40618  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40619  	for {
 40620  		x, err := c.Do()
 40621  		if err != nil {
 40622  			return err
 40623  		}
 40624  		if err := f(x); err != nil {
 40625  			return err
 40626  		}
 40627  		if x.NextPageToken == "" {
 40628  			return nil
 40629  		}
 40630  		c.PageToken(x.NextPageToken)
 40631  	}
 40632  }
 40633  
 40634  type ProjectsLocationsAgentVersionsPatchCall struct {
 40635  	s                                   *Service
 40636  	nameid                              string
 40637  	googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
 40638  	urlParams_                          gensupport.URLParams
 40639  	ctx_                                context.Context
 40640  	header_                             http.Header
 40641  }
 40642  
 40643  // Patch: Updates the specified agent version. Note that this method does not
 40644  // allow you to update the state of the agent the given version points to. It
 40645  // allows you to update only mutable properties of the version resource.
 40646  //
 40647  //   - name: Output only. The unique identifier of this agent version. Supported
 40648  //     formats: - `projects//agent/versions/` -
 40649  //     `projects//locations//agent/versions/`.
 40650  func (r *ProjectsLocationsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsPatchCall {
 40651  	c := &ProjectsLocationsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40652  	c.nameid = nameid
 40653  	c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
 40654  	return c
 40655  }
 40656  
 40657  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 40658  // control which fields get updated.
 40659  func (c *ProjectsLocationsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentVersionsPatchCall {
 40660  	c.urlParams_.Set("updateMask", updateMask)
 40661  	return c
 40662  }
 40663  
 40664  // Fields allows partial responses to be retrieved. See
 40665  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40666  // details.
 40667  func (c *ProjectsLocationsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsPatchCall {
 40668  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40669  	return c
 40670  }
 40671  
 40672  // Context sets the context to be used in this call's Do method.
 40673  func (c *ProjectsLocationsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsPatchCall {
 40674  	c.ctx_ = ctx
 40675  	return c
 40676  }
 40677  
 40678  // Header returns a http.Header that can be modified by the caller to add
 40679  // headers to the request.
 40680  func (c *ProjectsLocationsAgentVersionsPatchCall) Header() http.Header {
 40681  	if c.header_ == nil {
 40682  		c.header_ = make(http.Header)
 40683  	}
 40684  	return c.header_
 40685  }
 40686  
 40687  func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
 40688  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 40689  	var body io.Reader = nil
 40690  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
 40691  	if err != nil {
 40692  		return nil, err
 40693  	}
 40694  	c.urlParams_.Set("alt", alt)
 40695  	c.urlParams_.Set("prettyPrint", "false")
 40696  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 40697  	urls += "?" + c.urlParams_.Encode()
 40698  	req, err := http.NewRequest("PATCH", urls, body)
 40699  	if err != nil {
 40700  		return nil, err
 40701  	}
 40702  	req.Header = reqHeaders
 40703  	googleapi.Expand(req.URL, map[string]string{
 40704  		"name": c.nameid,
 40705  	})
 40706  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40707  }
 40708  
 40709  // Do executes the "dialogflow.projects.locations.agent.versions.patch" call.
 40710  // Any non-2xx status code is an error. Response headers are in either
 40711  // *GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a response
 40712  // was returned at all) in error.(*googleapi.Error).Header. Use
 40713  // googleapi.IsNotModified to check whether the returned error was because
 40714  // http.StatusNotModified was returned.
 40715  func (c *ProjectsLocationsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
 40716  	gensupport.SetOptions(c.urlParams_, opts...)
 40717  	res, err := c.doRequest("json")
 40718  	if res != nil && res.StatusCode == http.StatusNotModified {
 40719  		if res.Body != nil {
 40720  			res.Body.Close()
 40721  		}
 40722  		return nil, gensupport.WrapError(&googleapi.Error{
 40723  			Code:   res.StatusCode,
 40724  			Header: res.Header,
 40725  		})
 40726  	}
 40727  	if err != nil {
 40728  		return nil, err
 40729  	}
 40730  	defer googleapi.CloseBody(res)
 40731  	if err := googleapi.CheckResponse(res); err != nil {
 40732  		return nil, gensupport.WrapError(err)
 40733  	}
 40734  	ret := &GoogleCloudDialogflowV2beta1Version{
 40735  		ServerResponse: googleapi.ServerResponse{
 40736  			Header:         res.Header,
 40737  			HTTPStatusCode: res.StatusCode,
 40738  		},
 40739  	}
 40740  	target := &ret
 40741  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40742  		return nil, err
 40743  	}
 40744  	return ret, nil
 40745  }
 40746  
 40747  type ProjectsLocationsAnswerRecordsGetCall struct {
 40748  	s            *Service
 40749  	name         string
 40750  	urlParams_   gensupport.URLParams
 40751  	ifNoneMatch_ string
 40752  	ctx_         context.Context
 40753  	header_      http.Header
 40754  }
 40755  
 40756  // Get: Deprecated. Retrieves a specific answer record.
 40757  //
 40758  //   - name: The name of the answer record to retrieve. Format:
 40759  //     `projects//locations//answerRecords/`.
 40760  func (r *ProjectsLocationsAnswerRecordsService) Get(name string) *ProjectsLocationsAnswerRecordsGetCall {
 40761  	c := &ProjectsLocationsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40762  	c.name = name
 40763  	return c
 40764  }
 40765  
 40766  // Fields allows partial responses to be retrieved. See
 40767  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40768  // details.
 40769  func (c *ProjectsLocationsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsGetCall {
 40770  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40771  	return c
 40772  }
 40773  
 40774  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40775  // object's ETag matches the given value. This is useful for getting updates
 40776  // only after the object has changed since the last request.
 40777  func (c *ProjectsLocationsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsGetCall {
 40778  	c.ifNoneMatch_ = entityTag
 40779  	return c
 40780  }
 40781  
 40782  // Context sets the context to be used in this call's Do method.
 40783  func (c *ProjectsLocationsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsGetCall {
 40784  	c.ctx_ = ctx
 40785  	return c
 40786  }
 40787  
 40788  // Header returns a http.Header that can be modified by the caller to add
 40789  // headers to the request.
 40790  func (c *ProjectsLocationsAnswerRecordsGetCall) Header() http.Header {
 40791  	if c.header_ == nil {
 40792  		c.header_ = make(http.Header)
 40793  	}
 40794  	return c.header_
 40795  }
 40796  
 40797  func (c *ProjectsLocationsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, error) {
 40798  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40799  	if c.ifNoneMatch_ != "" {
 40800  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40801  	}
 40802  	var body io.Reader = nil
 40803  	c.urlParams_.Set("alt", alt)
 40804  	c.urlParams_.Set("prettyPrint", "false")
 40805  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 40806  	urls += "?" + c.urlParams_.Encode()
 40807  	req, err := http.NewRequest("GET", urls, body)
 40808  	if err != nil {
 40809  		return nil, err
 40810  	}
 40811  	req.Header = reqHeaders
 40812  	googleapi.Expand(req.URL, map[string]string{
 40813  		"name": c.name,
 40814  	})
 40815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40816  }
 40817  
 40818  // Do executes the "dialogflow.projects.locations.answerRecords.get" call.
 40819  // Any non-2xx status code is an error. Response headers are in either
 40820  // *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if a
 40821  // response was returned at all) in error.(*googleapi.Error).Header. Use
 40822  // googleapi.IsNotModified to check whether the returned error was because
 40823  // http.StatusNotModified was returned.
 40824  func (c *ProjectsLocationsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
 40825  	gensupport.SetOptions(c.urlParams_, opts...)
 40826  	res, err := c.doRequest("json")
 40827  	if res != nil && res.StatusCode == http.StatusNotModified {
 40828  		if res.Body != nil {
 40829  			res.Body.Close()
 40830  		}
 40831  		return nil, gensupport.WrapError(&googleapi.Error{
 40832  			Code:   res.StatusCode,
 40833  			Header: res.Header,
 40834  		})
 40835  	}
 40836  	if err != nil {
 40837  		return nil, err
 40838  	}
 40839  	defer googleapi.CloseBody(res)
 40840  	if err := googleapi.CheckResponse(res); err != nil {
 40841  		return nil, gensupport.WrapError(err)
 40842  	}
 40843  	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
 40844  		ServerResponse: googleapi.ServerResponse{
 40845  			Header:         res.Header,
 40846  			HTTPStatusCode: res.StatusCode,
 40847  		},
 40848  	}
 40849  	target := &ret
 40850  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40851  		return nil, err
 40852  	}
 40853  	return ret, nil
 40854  }
 40855  
 40856  type ProjectsLocationsAnswerRecordsListCall struct {
 40857  	s            *Service
 40858  	parent       string
 40859  	urlParams_   gensupport.URLParams
 40860  	ifNoneMatch_ string
 40861  	ctx_         context.Context
 40862  	header_      http.Header
 40863  }
 40864  
 40865  // List: Returns the list of all answer records in the specified project in
 40866  // reverse chronological order.
 40867  //
 40868  //   - parent: The project to list all answer records for in reverse
 40869  //     chronological order. Format: `projects//locations/`.
 40870  func (r *ProjectsLocationsAnswerRecordsService) List(parent string) *ProjectsLocationsAnswerRecordsListCall {
 40871  	c := &ProjectsLocationsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 40872  	c.parent = parent
 40873  	return c
 40874  }
 40875  
 40876  // Filter sets the optional parameter "filter": Filters to restrict results to
 40877  // specific answer records. For more information about filtering, see API
 40878  // Filtering (https://aip.dev/160).
 40879  func (c *ProjectsLocationsAnswerRecordsListCall) Filter(filter string) *ProjectsLocationsAnswerRecordsListCall {
 40880  	c.urlParams_.Set("filter", filter)
 40881  	return c
 40882  }
 40883  
 40884  // PageSize sets the optional parameter "pageSize": The maximum number of
 40885  // records to return in a single page. The server may return fewer records than
 40886  // this. If unspecified, we use 10. The maximum is 100.
 40887  func (c *ProjectsLocationsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsLocationsAnswerRecordsListCall {
 40888  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 40889  	return c
 40890  }
 40891  
 40892  // PageToken sets the optional parameter "pageToken": The
 40893  // ListAnswerRecordsResponse.next_page_token value returned from a previous
 40894  // list request used to continue listing on the next page.
 40895  func (c *ProjectsLocationsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsLocationsAnswerRecordsListCall {
 40896  	c.urlParams_.Set("pageToken", pageToken)
 40897  	return c
 40898  }
 40899  
 40900  // Fields allows partial responses to be retrieved. See
 40901  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 40902  // details.
 40903  func (c *ProjectsLocationsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsListCall {
 40904  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 40905  	return c
 40906  }
 40907  
 40908  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 40909  // object's ETag matches the given value. This is useful for getting updates
 40910  // only after the object has changed since the last request.
 40911  func (c *ProjectsLocationsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsListCall {
 40912  	c.ifNoneMatch_ = entityTag
 40913  	return c
 40914  }
 40915  
 40916  // Context sets the context to be used in this call's Do method.
 40917  func (c *ProjectsLocationsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsListCall {
 40918  	c.ctx_ = ctx
 40919  	return c
 40920  }
 40921  
 40922  // Header returns a http.Header that can be modified by the caller to add
 40923  // headers to the request.
 40924  func (c *ProjectsLocationsAnswerRecordsListCall) Header() http.Header {
 40925  	if c.header_ == nil {
 40926  		c.header_ = make(http.Header)
 40927  	}
 40928  	return c.header_
 40929  }
 40930  
 40931  func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
 40932  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 40933  	if c.ifNoneMatch_ != "" {
 40934  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 40935  	}
 40936  	var body io.Reader = nil
 40937  	c.urlParams_.Set("alt", alt)
 40938  	c.urlParams_.Set("prettyPrint", "false")
 40939  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
 40940  	urls += "?" + c.urlParams_.Encode()
 40941  	req, err := http.NewRequest("GET", urls, body)
 40942  	if err != nil {
 40943  		return nil, err
 40944  	}
 40945  	req.Header = reqHeaders
 40946  	googleapi.Expand(req.URL, map[string]string{
 40947  		"parent": c.parent,
 40948  	})
 40949  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 40950  }
 40951  
 40952  // Do executes the "dialogflow.projects.locations.answerRecords.list" call.
 40953  // Any non-2xx status code is an error. Response headers are in either
 40954  // *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.Header
 40955  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 40956  // Use googleapi.IsNotModified to check whether the returned error was because
 40957  // http.StatusNotModified was returned.
 40958  func (c *ProjectsLocationsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
 40959  	gensupport.SetOptions(c.urlParams_, opts...)
 40960  	res, err := c.doRequest("json")
 40961  	if res != nil && res.StatusCode == http.StatusNotModified {
 40962  		if res.Body != nil {
 40963  			res.Body.Close()
 40964  		}
 40965  		return nil, gensupport.WrapError(&googleapi.Error{
 40966  			Code:   res.StatusCode,
 40967  			Header: res.Header,
 40968  		})
 40969  	}
 40970  	if err != nil {
 40971  		return nil, err
 40972  	}
 40973  	defer googleapi.CloseBody(res)
 40974  	if err := googleapi.CheckResponse(res); err != nil {
 40975  		return nil, gensupport.WrapError(err)
 40976  	}
 40977  	ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
 40978  		ServerResponse: googleapi.ServerResponse{
 40979  			Header:         res.Header,
 40980  			HTTPStatusCode: res.StatusCode,
 40981  		},
 40982  	}
 40983  	target := &ret
 40984  	if err := gensupport.DecodeResponse(target, res); err != nil {
 40985  		return nil, err
 40986  	}
 40987  	return ret, nil
 40988  }
 40989  
 40990  // Pages invokes f for each page of results.
 40991  // A non-nil error returned from f will halt the iteration.
 40992  // The provided context supersedes any context provided to the Context method.
 40993  func (c *ProjectsLocationsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
 40994  	c.ctx_ = ctx
 40995  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 40996  	for {
 40997  		x, err := c.Do()
 40998  		if err != nil {
 40999  			return err
 41000  		}
 41001  		if err := f(x); err != nil {
 41002  			return err
 41003  		}
 41004  		if x.NextPageToken == "" {
 41005  			return nil
 41006  		}
 41007  		c.PageToken(x.NextPageToken)
 41008  	}
 41009  }
 41010  
 41011  type ProjectsLocationsAnswerRecordsPatchCall struct {
 41012  	s                                        *Service
 41013  	nameid                                   string
 41014  	googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
 41015  	urlParams_                               gensupport.URLParams
 41016  	ctx_                                     context.Context
 41017  	header_                                  http.Header
 41018  }
 41019  
 41020  // Patch: Updates the specified answer record.
 41021  //
 41022  //   - name: The unique identifier of this answer record. Required for
 41023  //     AnswerRecords.UpdateAnswerRecord method. Format:
 41024  //     `projects//locations//answerRecords/`.
 41025  func (r *ProjectsLocationsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsLocationsAnswerRecordsPatchCall {
 41026  	c := &ProjectsLocationsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41027  	c.nameid = nameid
 41028  	c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
 41029  	return c
 41030  }
 41031  
 41032  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 41033  // control which fields get updated.
 41034  func (c *ProjectsLocationsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnswerRecordsPatchCall {
 41035  	c.urlParams_.Set("updateMask", updateMask)
 41036  	return c
 41037  }
 41038  
 41039  // Fields allows partial responses to be retrieved. See
 41040  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41041  // details.
 41042  func (c *ProjectsLocationsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsPatchCall {
 41043  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41044  	return c
 41045  }
 41046  
 41047  // Context sets the context to be used in this call's Do method.
 41048  func (c *ProjectsLocationsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsPatchCall {
 41049  	c.ctx_ = ctx
 41050  	return c
 41051  }
 41052  
 41053  // Header returns a http.Header that can be modified by the caller to add
 41054  // headers to the request.
 41055  func (c *ProjectsLocationsAnswerRecordsPatchCall) Header() http.Header {
 41056  	if c.header_ == nil {
 41057  		c.header_ = make(http.Header)
 41058  	}
 41059  	return c.header_
 41060  }
 41061  
 41062  func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
 41063  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41064  	var body io.Reader = nil
 41065  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
 41066  	if err != nil {
 41067  		return nil, err
 41068  	}
 41069  	c.urlParams_.Set("alt", alt)
 41070  	c.urlParams_.Set("prettyPrint", "false")
 41071  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 41072  	urls += "?" + c.urlParams_.Encode()
 41073  	req, err := http.NewRequest("PATCH", urls, body)
 41074  	if err != nil {
 41075  		return nil, err
 41076  	}
 41077  	req.Header = reqHeaders
 41078  	googleapi.Expand(req.URL, map[string]string{
 41079  		"name": c.nameid,
 41080  	})
 41081  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41082  }
 41083  
 41084  // Do executes the "dialogflow.projects.locations.answerRecords.patch" call.
 41085  // Any non-2xx status code is an error. Response headers are in either
 41086  // *GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if a
 41087  // response was returned at all) in error.(*googleapi.Error).Header. Use
 41088  // googleapi.IsNotModified to check whether the returned error was because
 41089  // http.StatusNotModified was returned.
 41090  func (c *ProjectsLocationsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
 41091  	gensupport.SetOptions(c.urlParams_, opts...)
 41092  	res, err := c.doRequest("json")
 41093  	if res != nil && res.StatusCode == http.StatusNotModified {
 41094  		if res.Body != nil {
 41095  			res.Body.Close()
 41096  		}
 41097  		return nil, gensupport.WrapError(&googleapi.Error{
 41098  			Code:   res.StatusCode,
 41099  			Header: res.Header,
 41100  		})
 41101  	}
 41102  	if err != nil {
 41103  		return nil, err
 41104  	}
 41105  	defer googleapi.CloseBody(res)
 41106  	if err := googleapi.CheckResponse(res); err != nil {
 41107  		return nil, gensupport.WrapError(err)
 41108  	}
 41109  	ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
 41110  		ServerResponse: googleapi.ServerResponse{
 41111  			Header:         res.Header,
 41112  			HTTPStatusCode: res.StatusCode,
 41113  		},
 41114  	}
 41115  	target := &ret
 41116  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41117  		return nil, err
 41118  	}
 41119  	return ret, nil
 41120  }
 41121  
 41122  type ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall struct {
 41123  	s                                                               *Service
 41124  	conversationProfile                                             string
 41125  	googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest
 41126  	urlParams_                                                      gensupport.URLParams
 41127  	ctx_                                                            context.Context
 41128  	header_                                                         http.Header
 41129  }
 41130  
 41131  // ClearSuggestionFeatureConfig: Clears a suggestion feature from a
 41132  // conversation profile for the given participant role. This method is a
 41133  // long-running operation
 41134  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 41135  // The returned `Operation` type has the following method-specific fields: -
 41136  // `metadata`: ClearSuggestionFeatureConfigOperationMetadata - `response`:
 41137  // ConversationProfile
 41138  //
 41139  //   - conversationProfile: The Conversation Profile to add or update the
 41140  //     suggestion feature config. Format:
 41141  //     `projects//locations//conversationProfiles/`.
 41142  func (r *ProjectsLocationsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
 41143  	c := &ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41144  	c.conversationProfile = conversationProfile
 41145  	c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest
 41146  	return c
 41147  }
 41148  
 41149  // Fields allows partial responses to be retrieved. See
 41150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41151  // details.
 41152  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
 41153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41154  	return c
 41155  }
 41156  
 41157  // Context sets the context to be used in this call's Do method.
 41158  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
 41159  	c.ctx_ = ctx
 41160  	return c
 41161  }
 41162  
 41163  // Header returns a http.Header that can be modified by the caller to add
 41164  // headers to the request.
 41165  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
 41166  	if c.header_ == nil {
 41167  		c.header_ = make(http.Header)
 41168  	}
 41169  	return c.header_
 41170  }
 41171  
 41172  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 41173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41174  	var body io.Reader = nil
 41175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest)
 41176  	if err != nil {
 41177  		return nil, err
 41178  	}
 41179  	c.urlParams_.Set("alt", alt)
 41180  	c.urlParams_.Set("prettyPrint", "false")
 41181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig")
 41182  	urls += "?" + c.urlParams_.Encode()
 41183  	req, err := http.NewRequest("POST", urls, body)
 41184  	if err != nil {
 41185  		return nil, err
 41186  	}
 41187  	req.Header = reqHeaders
 41188  	googleapi.Expand(req.URL, map[string]string{
 41189  		"conversationProfile": c.conversationProfile,
 41190  	})
 41191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41192  }
 41193  
 41194  // Do executes the "dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig" call.
 41195  // Any non-2xx status code is an error. Response headers are in either
 41196  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41197  // returned at all) in error.(*googleapi.Error).Header. Use
 41198  // googleapi.IsNotModified to check whether the returned error was because
 41199  // http.StatusNotModified was returned.
 41200  func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41201  	gensupport.SetOptions(c.urlParams_, opts...)
 41202  	res, err := c.doRequest("json")
 41203  	if res != nil && res.StatusCode == http.StatusNotModified {
 41204  		if res.Body != nil {
 41205  			res.Body.Close()
 41206  		}
 41207  		return nil, gensupport.WrapError(&googleapi.Error{
 41208  			Code:   res.StatusCode,
 41209  			Header: res.Header,
 41210  		})
 41211  	}
 41212  	if err != nil {
 41213  		return nil, err
 41214  	}
 41215  	defer googleapi.CloseBody(res)
 41216  	if err := googleapi.CheckResponse(res); err != nil {
 41217  		return nil, gensupport.WrapError(err)
 41218  	}
 41219  	ret := &GoogleLongrunningOperation{
 41220  		ServerResponse: googleapi.ServerResponse{
 41221  			Header:         res.Header,
 41222  			HTTPStatusCode: res.StatusCode,
 41223  		},
 41224  	}
 41225  	target := &ret
 41226  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41227  		return nil, err
 41228  	}
 41229  	return ret, nil
 41230  }
 41231  
 41232  type ProjectsLocationsConversationProfilesCreateCall struct {
 41233  	s                                               *Service
 41234  	parent                                          string
 41235  	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
 41236  	urlParams_                                      gensupport.URLParams
 41237  	ctx_                                            context.Context
 41238  	header_                                         http.Header
 41239  }
 41240  
 41241  // Create: Creates a conversation profile in the specified project.
 41242  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 41243  // populated in the response. You can retrieve them via GetConversationProfile
 41244  // API.
 41245  //
 41246  //   - parent: The project to create a conversation profile for. Format:
 41247  //     `projects//locations/`.
 41248  func (r *ProjectsLocationsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesCreateCall {
 41249  	c := &ProjectsLocationsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41250  	c.parent = parent
 41251  	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
 41252  	return c
 41253  }
 41254  
 41255  // Fields allows partial responses to be retrieved. See
 41256  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41257  // details.
 41258  func (c *ProjectsLocationsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesCreateCall {
 41259  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41260  	return c
 41261  }
 41262  
 41263  // Context sets the context to be used in this call's Do method.
 41264  func (c *ProjectsLocationsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesCreateCall {
 41265  	c.ctx_ = ctx
 41266  	return c
 41267  }
 41268  
 41269  // Header returns a http.Header that can be modified by the caller to add
 41270  // headers to the request.
 41271  func (c *ProjectsLocationsConversationProfilesCreateCall) Header() http.Header {
 41272  	if c.header_ == nil {
 41273  		c.header_ = make(http.Header)
 41274  	}
 41275  	return c.header_
 41276  }
 41277  
 41278  func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
 41279  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41280  	var body io.Reader = nil
 41281  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
 41282  	if err != nil {
 41283  		return nil, err
 41284  	}
 41285  	c.urlParams_.Set("alt", alt)
 41286  	c.urlParams_.Set("prettyPrint", "false")
 41287  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
 41288  	urls += "?" + c.urlParams_.Encode()
 41289  	req, err := http.NewRequest("POST", urls, body)
 41290  	if err != nil {
 41291  		return nil, err
 41292  	}
 41293  	req.Header = reqHeaders
 41294  	googleapi.Expand(req.URL, map[string]string{
 41295  		"parent": c.parent,
 41296  	})
 41297  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41298  }
 41299  
 41300  // Do executes the "dialogflow.projects.locations.conversationProfiles.create" call.
 41301  // Any non-2xx status code is an error. Response headers are in either
 41302  // *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or
 41303  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 41304  // googleapi.IsNotModified to check whether the returned error was because
 41305  // http.StatusNotModified was returned.
 41306  func (c *ProjectsLocationsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
 41307  	gensupport.SetOptions(c.urlParams_, opts...)
 41308  	res, err := c.doRequest("json")
 41309  	if res != nil && res.StatusCode == http.StatusNotModified {
 41310  		if res.Body != nil {
 41311  			res.Body.Close()
 41312  		}
 41313  		return nil, gensupport.WrapError(&googleapi.Error{
 41314  			Code:   res.StatusCode,
 41315  			Header: res.Header,
 41316  		})
 41317  	}
 41318  	if err != nil {
 41319  		return nil, err
 41320  	}
 41321  	defer googleapi.CloseBody(res)
 41322  	if err := googleapi.CheckResponse(res); err != nil {
 41323  		return nil, gensupport.WrapError(err)
 41324  	}
 41325  	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
 41326  		ServerResponse: googleapi.ServerResponse{
 41327  			Header:         res.Header,
 41328  			HTTPStatusCode: res.StatusCode,
 41329  		},
 41330  	}
 41331  	target := &ret
 41332  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41333  		return nil, err
 41334  	}
 41335  	return ret, nil
 41336  }
 41337  
 41338  type ProjectsLocationsConversationProfilesDeleteCall struct {
 41339  	s          *Service
 41340  	name       string
 41341  	urlParams_ gensupport.URLParams
 41342  	ctx_       context.Context
 41343  	header_    http.Header
 41344  }
 41345  
 41346  // Delete: Deletes the specified conversation profile.
 41347  //
 41348  //   - name: The name of the conversation profile to delete. Format:
 41349  //     `projects//locations//conversationProfiles/`.
 41350  func (r *ProjectsLocationsConversationProfilesService) Delete(name string) *ProjectsLocationsConversationProfilesDeleteCall {
 41351  	c := &ProjectsLocationsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41352  	c.name = name
 41353  	return c
 41354  }
 41355  
 41356  // Fields allows partial responses to be retrieved. See
 41357  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41358  // details.
 41359  func (c *ProjectsLocationsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesDeleteCall {
 41360  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41361  	return c
 41362  }
 41363  
 41364  // Context sets the context to be used in this call's Do method.
 41365  func (c *ProjectsLocationsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesDeleteCall {
 41366  	c.ctx_ = ctx
 41367  	return c
 41368  }
 41369  
 41370  // Header returns a http.Header that can be modified by the caller to add
 41371  // headers to the request.
 41372  func (c *ProjectsLocationsConversationProfilesDeleteCall) Header() http.Header {
 41373  	if c.header_ == nil {
 41374  		c.header_ = make(http.Header)
 41375  	}
 41376  	return c.header_
 41377  }
 41378  
 41379  func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 41380  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41381  	var body io.Reader = nil
 41382  	c.urlParams_.Set("alt", alt)
 41383  	c.urlParams_.Set("prettyPrint", "false")
 41384  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 41385  	urls += "?" + c.urlParams_.Encode()
 41386  	req, err := http.NewRequest("DELETE", urls, body)
 41387  	if err != nil {
 41388  		return nil, err
 41389  	}
 41390  	req.Header = reqHeaders
 41391  	googleapi.Expand(req.URL, map[string]string{
 41392  		"name": c.name,
 41393  	})
 41394  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41395  }
 41396  
 41397  // Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call.
 41398  // Any non-2xx status code is an error. Response headers are in either
 41399  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 41400  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 41401  // check whether the returned error was because http.StatusNotModified was
 41402  // returned.
 41403  func (c *ProjectsLocationsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 41404  	gensupport.SetOptions(c.urlParams_, opts...)
 41405  	res, err := c.doRequest("json")
 41406  	if res != nil && res.StatusCode == http.StatusNotModified {
 41407  		if res.Body != nil {
 41408  			res.Body.Close()
 41409  		}
 41410  		return nil, gensupport.WrapError(&googleapi.Error{
 41411  			Code:   res.StatusCode,
 41412  			Header: res.Header,
 41413  		})
 41414  	}
 41415  	if err != nil {
 41416  		return nil, err
 41417  	}
 41418  	defer googleapi.CloseBody(res)
 41419  	if err := googleapi.CheckResponse(res); err != nil {
 41420  		return nil, gensupport.WrapError(err)
 41421  	}
 41422  	ret := &GoogleProtobufEmpty{
 41423  		ServerResponse: googleapi.ServerResponse{
 41424  			Header:         res.Header,
 41425  			HTTPStatusCode: res.StatusCode,
 41426  		},
 41427  	}
 41428  	target := &ret
 41429  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41430  		return nil, err
 41431  	}
 41432  	return ret, nil
 41433  }
 41434  
 41435  type ProjectsLocationsConversationProfilesGetCall struct {
 41436  	s            *Service
 41437  	name         string
 41438  	urlParams_   gensupport.URLParams
 41439  	ifNoneMatch_ string
 41440  	ctx_         context.Context
 41441  	header_      http.Header
 41442  }
 41443  
 41444  // Get: Retrieves the specified conversation profile.
 41445  //
 41446  //   - name: The resource name of the conversation profile. Format:
 41447  //     `projects//locations//conversationProfiles/`.
 41448  func (r *ProjectsLocationsConversationProfilesService) Get(name string) *ProjectsLocationsConversationProfilesGetCall {
 41449  	c := &ProjectsLocationsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41450  	c.name = name
 41451  	return c
 41452  }
 41453  
 41454  // Fields allows partial responses to be retrieved. See
 41455  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41456  // details.
 41457  func (c *ProjectsLocationsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesGetCall {
 41458  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41459  	return c
 41460  }
 41461  
 41462  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41463  // object's ETag matches the given value. This is useful for getting updates
 41464  // only after the object has changed since the last request.
 41465  func (c *ProjectsLocationsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesGetCall {
 41466  	c.ifNoneMatch_ = entityTag
 41467  	return c
 41468  }
 41469  
 41470  // Context sets the context to be used in this call's Do method.
 41471  func (c *ProjectsLocationsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesGetCall {
 41472  	c.ctx_ = ctx
 41473  	return c
 41474  }
 41475  
 41476  // Header returns a http.Header that can be modified by the caller to add
 41477  // headers to the request.
 41478  func (c *ProjectsLocationsConversationProfilesGetCall) Header() http.Header {
 41479  	if c.header_ == nil {
 41480  		c.header_ = make(http.Header)
 41481  	}
 41482  	return c.header_
 41483  }
 41484  
 41485  func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 41486  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41487  	if c.ifNoneMatch_ != "" {
 41488  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41489  	}
 41490  	var body io.Reader = nil
 41491  	c.urlParams_.Set("alt", alt)
 41492  	c.urlParams_.Set("prettyPrint", "false")
 41493  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 41494  	urls += "?" + c.urlParams_.Encode()
 41495  	req, err := http.NewRequest("GET", urls, body)
 41496  	if err != nil {
 41497  		return nil, err
 41498  	}
 41499  	req.Header = reqHeaders
 41500  	googleapi.Expand(req.URL, map[string]string{
 41501  		"name": c.name,
 41502  	})
 41503  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41504  }
 41505  
 41506  // Do executes the "dialogflow.projects.locations.conversationProfiles.get" call.
 41507  // Any non-2xx status code is an error. Response headers are in either
 41508  // *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or
 41509  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 41510  // googleapi.IsNotModified to check whether the returned error was because
 41511  // http.StatusNotModified was returned.
 41512  func (c *ProjectsLocationsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
 41513  	gensupport.SetOptions(c.urlParams_, opts...)
 41514  	res, err := c.doRequest("json")
 41515  	if res != nil && res.StatusCode == http.StatusNotModified {
 41516  		if res.Body != nil {
 41517  			res.Body.Close()
 41518  		}
 41519  		return nil, gensupport.WrapError(&googleapi.Error{
 41520  			Code:   res.StatusCode,
 41521  			Header: res.Header,
 41522  		})
 41523  	}
 41524  	if err != nil {
 41525  		return nil, err
 41526  	}
 41527  	defer googleapi.CloseBody(res)
 41528  	if err := googleapi.CheckResponse(res); err != nil {
 41529  		return nil, gensupport.WrapError(err)
 41530  	}
 41531  	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
 41532  		ServerResponse: googleapi.ServerResponse{
 41533  			Header:         res.Header,
 41534  			HTTPStatusCode: res.StatusCode,
 41535  		},
 41536  	}
 41537  	target := &ret
 41538  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41539  		return nil, err
 41540  	}
 41541  	return ret, nil
 41542  }
 41543  
 41544  type ProjectsLocationsConversationProfilesListCall struct {
 41545  	s            *Service
 41546  	parent       string
 41547  	urlParams_   gensupport.URLParams
 41548  	ifNoneMatch_ string
 41549  	ctx_         context.Context
 41550  	header_      http.Header
 41551  }
 41552  
 41553  // List: Returns the list of all conversation profiles in the specified
 41554  // project.
 41555  //
 41556  //   - parent: The project to list all conversation profiles from. Format:
 41557  //     `projects//locations/`.
 41558  func (r *ProjectsLocationsConversationProfilesService) List(parent string) *ProjectsLocationsConversationProfilesListCall {
 41559  	c := &ProjectsLocationsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41560  	c.parent = parent
 41561  	return c
 41562  }
 41563  
 41564  // PageSize sets the optional parameter "pageSize": The maximum number of items
 41565  // to return in a single page. By default 100 and at most 1000.
 41566  func (c *ProjectsLocationsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationProfilesListCall {
 41567  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 41568  	return c
 41569  }
 41570  
 41571  // PageToken sets the optional parameter "pageToken": The next_page_token value
 41572  // returned from a previous list request.
 41573  func (c *ProjectsLocationsConversationProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConversationProfilesListCall {
 41574  	c.urlParams_.Set("pageToken", pageToken)
 41575  	return c
 41576  }
 41577  
 41578  // Fields allows partial responses to be retrieved. See
 41579  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41580  // details.
 41581  func (c *ProjectsLocationsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesListCall {
 41582  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41583  	return c
 41584  }
 41585  
 41586  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 41587  // object's ETag matches the given value. This is useful for getting updates
 41588  // only after the object has changed since the last request.
 41589  func (c *ProjectsLocationsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesListCall {
 41590  	c.ifNoneMatch_ = entityTag
 41591  	return c
 41592  }
 41593  
 41594  // Context sets the context to be used in this call's Do method.
 41595  func (c *ProjectsLocationsConversationProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesListCall {
 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 *ProjectsLocationsConversationProfilesListCall) Header() http.Header {
 41603  	if c.header_ == nil {
 41604  		c.header_ = make(http.Header)
 41605  	}
 41606  	return c.header_
 41607  }
 41608  
 41609  func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
 41610  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 41611  	if c.ifNoneMatch_ != "" {
 41612  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 41613  	}
 41614  	var body io.Reader = nil
 41615  	c.urlParams_.Set("alt", alt)
 41616  	c.urlParams_.Set("prettyPrint", "false")
 41617  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
 41618  	urls += "?" + c.urlParams_.Encode()
 41619  	req, err := http.NewRequest("GET", urls, body)
 41620  	if err != nil {
 41621  		return nil, err
 41622  	}
 41623  	req.Header = reqHeaders
 41624  	googleapi.Expand(req.URL, map[string]string{
 41625  		"parent": c.parent,
 41626  	})
 41627  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41628  }
 41629  
 41630  // Do executes the "dialogflow.projects.locations.conversationProfiles.list" call.
 41631  // Any non-2xx status code is an error. Response headers are in either
 41632  // *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerResponse.
 41633  // Header or (if a response was returned at all) in
 41634  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 41635  // whether the returned error was because http.StatusNotModified was returned.
 41636  func (c *ProjectsLocationsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
 41637  	gensupport.SetOptions(c.urlParams_, opts...)
 41638  	res, err := c.doRequest("json")
 41639  	if res != nil && res.StatusCode == http.StatusNotModified {
 41640  		if res.Body != nil {
 41641  			res.Body.Close()
 41642  		}
 41643  		return nil, gensupport.WrapError(&googleapi.Error{
 41644  			Code:   res.StatusCode,
 41645  			Header: res.Header,
 41646  		})
 41647  	}
 41648  	if err != nil {
 41649  		return nil, err
 41650  	}
 41651  	defer googleapi.CloseBody(res)
 41652  	if err := googleapi.CheckResponse(res); err != nil {
 41653  		return nil, gensupport.WrapError(err)
 41654  	}
 41655  	ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
 41656  		ServerResponse: googleapi.ServerResponse{
 41657  			Header:         res.Header,
 41658  			HTTPStatusCode: res.StatusCode,
 41659  		},
 41660  	}
 41661  	target := &ret
 41662  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41663  		return nil, err
 41664  	}
 41665  	return ret, nil
 41666  }
 41667  
 41668  // Pages invokes f for each page of results.
 41669  // A non-nil error returned from f will halt the iteration.
 41670  // The provided context supersedes any context provided to the Context method.
 41671  func (c *ProjectsLocationsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
 41672  	c.ctx_ = ctx
 41673  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 41674  	for {
 41675  		x, err := c.Do()
 41676  		if err != nil {
 41677  			return err
 41678  		}
 41679  		if err := f(x); err != nil {
 41680  			return err
 41681  		}
 41682  		if x.NextPageToken == "" {
 41683  			return nil
 41684  		}
 41685  		c.PageToken(x.NextPageToken)
 41686  	}
 41687  }
 41688  
 41689  type ProjectsLocationsConversationProfilesPatchCall struct {
 41690  	s                                               *Service
 41691  	nameid                                          string
 41692  	googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
 41693  	urlParams_                                      gensupport.URLParams
 41694  	ctx_                                            context.Context
 41695  	header_                                         http.Header
 41696  }
 41697  
 41698  // Patch: Updates the specified conversation profile.
 41699  // ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't
 41700  // populated in the response. You can retrieve them via GetConversationProfile
 41701  // API.
 41702  //
 41703  //   - name: The unique identifier of this conversation profile. Format:
 41704  //     `projects//locations//conversationProfiles/`.
 41705  func (r *ProjectsLocationsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesPatchCall {
 41706  	c := &ProjectsLocationsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41707  	c.nameid = nameid
 41708  	c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
 41709  	return c
 41710  }
 41711  
 41712  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 41713  // control which fields to update.
 41714  func (c *ProjectsLocationsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationProfilesPatchCall {
 41715  	c.urlParams_.Set("updateMask", updateMask)
 41716  	return c
 41717  }
 41718  
 41719  // Fields allows partial responses to be retrieved. See
 41720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41721  // details.
 41722  func (c *ProjectsLocationsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesPatchCall {
 41723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41724  	return c
 41725  }
 41726  
 41727  // Context sets the context to be used in this call's Do method.
 41728  func (c *ProjectsLocationsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesPatchCall {
 41729  	c.ctx_ = ctx
 41730  	return c
 41731  }
 41732  
 41733  // Header returns a http.Header that can be modified by the caller to add
 41734  // headers to the request.
 41735  func (c *ProjectsLocationsConversationProfilesPatchCall) Header() http.Header {
 41736  	if c.header_ == nil {
 41737  		c.header_ = make(http.Header)
 41738  	}
 41739  	return c.header_
 41740  }
 41741  
 41742  func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
 41743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41744  	var body io.Reader = nil
 41745  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
 41746  	if err != nil {
 41747  		return nil, err
 41748  	}
 41749  	c.urlParams_.Set("alt", alt)
 41750  	c.urlParams_.Set("prettyPrint", "false")
 41751  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 41752  	urls += "?" + c.urlParams_.Encode()
 41753  	req, err := http.NewRequest("PATCH", urls, body)
 41754  	if err != nil {
 41755  		return nil, err
 41756  	}
 41757  	req.Header = reqHeaders
 41758  	googleapi.Expand(req.URL, map[string]string{
 41759  		"name": c.nameid,
 41760  	})
 41761  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41762  }
 41763  
 41764  // Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call.
 41765  // Any non-2xx status code is an error. Response headers are in either
 41766  // *GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or
 41767  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 41768  // googleapi.IsNotModified to check whether the returned error was because
 41769  // http.StatusNotModified was returned.
 41770  func (c *ProjectsLocationsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
 41771  	gensupport.SetOptions(c.urlParams_, opts...)
 41772  	res, err := c.doRequest("json")
 41773  	if res != nil && res.StatusCode == http.StatusNotModified {
 41774  		if res.Body != nil {
 41775  			res.Body.Close()
 41776  		}
 41777  		return nil, gensupport.WrapError(&googleapi.Error{
 41778  			Code:   res.StatusCode,
 41779  			Header: res.Header,
 41780  		})
 41781  	}
 41782  	if err != nil {
 41783  		return nil, err
 41784  	}
 41785  	defer googleapi.CloseBody(res)
 41786  	if err := googleapi.CheckResponse(res); err != nil {
 41787  		return nil, gensupport.WrapError(err)
 41788  	}
 41789  	ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
 41790  		ServerResponse: googleapi.ServerResponse{
 41791  			Header:         res.Header,
 41792  			HTTPStatusCode: res.StatusCode,
 41793  		},
 41794  	}
 41795  	target := &ret
 41796  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41797  		return nil, err
 41798  	}
 41799  	return ret, nil
 41800  }
 41801  
 41802  type ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall struct {
 41803  	s                                                             *Service
 41804  	conversationProfile                                           string
 41805  	googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest
 41806  	urlParams_                                                    gensupport.URLParams
 41807  	ctx_                                                          context.Context
 41808  	header_                                                       http.Header
 41809  }
 41810  
 41811  // SetSuggestionFeatureConfig: Adds or updates a suggestion feature in a
 41812  // conversation profile. If the conversation profile contains the type of
 41813  // suggestion feature for the participant role, it will update it. Otherwise it
 41814  // will insert the suggestion feature. This method is a long-running operation
 41815  // (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
 41816  // The returned `Operation` type has the following method-specific fields: -
 41817  // `metadata`: SetSuggestionFeatureConfigOperationMetadata - `response`:
 41818  // ConversationProfile If a long running operation to add or update suggestion
 41819  // feature config for the same conversation profile, participant role and
 41820  // suggestion feature type exists, please cancel the existing long running
 41821  // operation before sending such request, otherwise the request will be
 41822  // rejected.
 41823  //
 41824  //   - conversationProfile: The Conversation Profile to add or update the
 41825  //     suggestion feature config. Format:
 41826  //     `projects//locations//conversationProfiles/`.
 41827  func (r *ProjectsLocationsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
 41828  	c := &ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41829  	c.conversationProfile = conversationProfile
 41830  	c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest
 41831  	return c
 41832  }
 41833  
 41834  // Fields allows partial responses to be retrieved. See
 41835  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41836  // details.
 41837  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
 41838  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41839  	return c
 41840  }
 41841  
 41842  // Context sets the context to be used in this call's Do method.
 41843  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
 41844  	c.ctx_ = ctx
 41845  	return c
 41846  }
 41847  
 41848  // Header returns a http.Header that can be modified by the caller to add
 41849  // headers to the request.
 41850  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
 41851  	if c.header_ == nil {
 41852  		c.header_ = make(http.Header)
 41853  	}
 41854  	return c.header_
 41855  }
 41856  
 41857  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
 41858  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41859  	var body io.Reader = nil
 41860  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest)
 41861  	if err != nil {
 41862  		return nil, err
 41863  	}
 41864  	c.urlParams_.Set("alt", alt)
 41865  	c.urlParams_.Set("prettyPrint", "false")
 41866  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:setSuggestionFeatureConfig")
 41867  	urls += "?" + c.urlParams_.Encode()
 41868  	req, err := http.NewRequest("POST", urls, body)
 41869  	if err != nil {
 41870  		return nil, err
 41871  	}
 41872  	req.Header = reqHeaders
 41873  	googleapi.Expand(req.URL, map[string]string{
 41874  		"conversationProfile": c.conversationProfile,
 41875  	})
 41876  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41877  }
 41878  
 41879  // Do executes the "dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig" call.
 41880  // Any non-2xx status code is an error. Response headers are in either
 41881  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 41882  // returned at all) in error.(*googleapi.Error).Header. Use
 41883  // googleapi.IsNotModified to check whether the returned error was because
 41884  // http.StatusNotModified was returned.
 41885  func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 41886  	gensupport.SetOptions(c.urlParams_, opts...)
 41887  	res, err := c.doRequest("json")
 41888  	if res != nil && res.StatusCode == http.StatusNotModified {
 41889  		if res.Body != nil {
 41890  			res.Body.Close()
 41891  		}
 41892  		return nil, gensupport.WrapError(&googleapi.Error{
 41893  			Code:   res.StatusCode,
 41894  			Header: res.Header,
 41895  		})
 41896  	}
 41897  	if err != nil {
 41898  		return nil, err
 41899  	}
 41900  	defer googleapi.CloseBody(res)
 41901  	if err := googleapi.CheckResponse(res); err != nil {
 41902  		return nil, gensupport.WrapError(err)
 41903  	}
 41904  	ret := &GoogleLongrunningOperation{
 41905  		ServerResponse: googleapi.ServerResponse{
 41906  			Header:         res.Header,
 41907  			HTTPStatusCode: res.StatusCode,
 41908  		},
 41909  	}
 41910  	target := &ret
 41911  	if err := gensupport.DecodeResponse(target, res); err != nil {
 41912  		return nil, err
 41913  	}
 41914  	return ret, nil
 41915  }
 41916  
 41917  type ProjectsLocationsConversationsCompleteCall struct {
 41918  	s                                                       *Service
 41919  	nameid                                                  string
 41920  	googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
 41921  	urlParams_                                              gensupport.URLParams
 41922  	ctx_                                                    context.Context
 41923  	header_                                                 http.Header
 41924  }
 41925  
 41926  // Complete: Completes the specified conversation. Finished conversations are
 41927  // purged from the database after 30 days.
 41928  //
 41929  //   - name: Resource identifier of the conversation to close. Format:
 41930  //     `projects//locations//conversations/`.
 41931  func (r *ProjectsLocationsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsLocationsConversationsCompleteCall {
 41932  	c := &ProjectsLocationsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 41933  	c.nameid = nameid
 41934  	c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
 41935  	return c
 41936  }
 41937  
 41938  // Fields allows partial responses to be retrieved. See
 41939  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 41940  // details.
 41941  func (c *ProjectsLocationsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCompleteCall {
 41942  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 41943  	return c
 41944  }
 41945  
 41946  // Context sets the context to be used in this call's Do method.
 41947  func (c *ProjectsLocationsConversationsCompleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsCompleteCall {
 41948  	c.ctx_ = ctx
 41949  	return c
 41950  }
 41951  
 41952  // Header returns a http.Header that can be modified by the caller to add
 41953  // headers to the request.
 41954  func (c *ProjectsLocationsConversationsCompleteCall) Header() http.Header {
 41955  	if c.header_ == nil {
 41956  		c.header_ = make(http.Header)
 41957  	}
 41958  	return c.header_
 41959  }
 41960  
 41961  func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
 41962  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 41963  	var body io.Reader = nil
 41964  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
 41965  	if err != nil {
 41966  		return nil, err
 41967  	}
 41968  	c.urlParams_.Set("alt", alt)
 41969  	c.urlParams_.Set("prettyPrint", "false")
 41970  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
 41971  	urls += "?" + c.urlParams_.Encode()
 41972  	req, err := http.NewRequest("POST", urls, body)
 41973  	if err != nil {
 41974  		return nil, err
 41975  	}
 41976  	req.Header = reqHeaders
 41977  	googleapi.Expand(req.URL, map[string]string{
 41978  		"name": c.nameid,
 41979  	})
 41980  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 41981  }
 41982  
 41983  // Do executes the "dialogflow.projects.locations.conversations.complete" call.
 41984  // Any non-2xx status code is an error. Response headers are in either
 41985  // *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if a
 41986  // response was returned at all) in error.(*googleapi.Error).Header. Use
 41987  // googleapi.IsNotModified to check whether the returned error was because
 41988  // http.StatusNotModified was returned.
 41989  func (c *ProjectsLocationsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
 41990  	gensupport.SetOptions(c.urlParams_, opts...)
 41991  	res, err := c.doRequest("json")
 41992  	if res != nil && res.StatusCode == http.StatusNotModified {
 41993  		if res.Body != nil {
 41994  			res.Body.Close()
 41995  		}
 41996  		return nil, gensupport.WrapError(&googleapi.Error{
 41997  			Code:   res.StatusCode,
 41998  			Header: res.Header,
 41999  		})
 42000  	}
 42001  	if err != nil {
 42002  		return nil, err
 42003  	}
 42004  	defer googleapi.CloseBody(res)
 42005  	if err := googleapi.CheckResponse(res); err != nil {
 42006  		return nil, gensupport.WrapError(err)
 42007  	}
 42008  	ret := &GoogleCloudDialogflowV2beta1Conversation{
 42009  		ServerResponse: googleapi.ServerResponse{
 42010  			Header:         res.Header,
 42011  			HTTPStatusCode: res.StatusCode,
 42012  		},
 42013  	}
 42014  	target := &ret
 42015  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42016  		return nil, err
 42017  	}
 42018  	return ret, nil
 42019  }
 42020  
 42021  type ProjectsLocationsConversationsCreateCall struct {
 42022  	s                                        *Service
 42023  	parentid                                 string
 42024  	googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
 42025  	urlParams_                               gensupport.URLParams
 42026  	ctx_                                     context.Context
 42027  	header_                                  http.Header
 42028  }
 42029  
 42030  // Create: Creates a new conversation. Conversations are auto-completed after
 42031  // 24 hours. Conversation Lifecycle: There are two stages during a
 42032  // conversation: Automated Agent Stage and Assist Stage. For Automated Agent
 42033  // Stage, there will be a dialogflow agent responding to user queries. For
 42034  // Assist Stage, there's no dialogflow agent responding to user queries. But we
 42035  // will provide suggestions which are generated from conversation. If
 42036  // Conversation.conversation_profile is configured for a dialogflow agent,
 42037  // conversation will start from `Automated Agent Stage`, otherwise, it will
 42038  // start from `Assist Stage`. And during `Automated Agent Stage`, once an
 42039  // Intent with Intent.live_agent_handoff is triggered, conversation will
 42040  // transfer to Assist Stage.
 42041  //
 42042  //   - parent: Resource identifier of the project creating the conversation.
 42043  //     Format: `projects//locations/`.
 42044  func (r *ProjectsLocationsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsLocationsConversationsCreateCall {
 42045  	c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42046  	c.parentid = parentid
 42047  	c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
 42048  	return c
 42049  }
 42050  
 42051  // ConversationId sets the optional parameter "conversationId": Identifier of
 42052  // the conversation. Generally it's auto generated by Google. Only set it if
 42053  // you cannot wait for the response to return a auto-generated one to you. The
 42054  // conversation ID must be compliant with the regression fomula `a-zA-Z*` with
 42055  // the characters length in range of [3,64]. If the field is provided, the
 42056  // caller is resposible for 1. the uniqueness of the ID, otherwise the request
 42057  // will be rejected. 2. the consistency for whether to use custom ID or not
 42058  // under a project to better ensure uniqueness.
 42059  func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
 42060  	c.urlParams_.Set("conversationId", conversationId)
 42061  	return c
 42062  }
 42063  
 42064  // Fields allows partial responses to be retrieved. See
 42065  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42066  // details.
 42067  func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
 42068  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42069  	return c
 42070  }
 42071  
 42072  // Context sets the context to be used in this call's Do method.
 42073  func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
 42074  	c.ctx_ = ctx
 42075  	return c
 42076  }
 42077  
 42078  // Header returns a http.Header that can be modified by the caller to add
 42079  // headers to the request.
 42080  func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
 42081  	if c.header_ == nil {
 42082  		c.header_ = make(http.Header)
 42083  	}
 42084  	return c.header_
 42085  }
 42086  
 42087  func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 42088  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42089  	var body io.Reader = nil
 42090  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
 42091  	if err != nil {
 42092  		return nil, err
 42093  	}
 42094  	c.urlParams_.Set("alt", alt)
 42095  	c.urlParams_.Set("prettyPrint", "false")
 42096  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
 42097  	urls += "?" + c.urlParams_.Encode()
 42098  	req, err := http.NewRequest("POST", urls, body)
 42099  	if err != nil {
 42100  		return nil, err
 42101  	}
 42102  	req.Header = reqHeaders
 42103  	googleapi.Expand(req.URL, map[string]string{
 42104  		"parent": c.parentid,
 42105  	})
 42106  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42107  }
 42108  
 42109  // Do executes the "dialogflow.projects.locations.conversations.create" call.
 42110  // Any non-2xx status code is an error. Response headers are in either
 42111  // *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if a
 42112  // response was returned at all) in error.(*googleapi.Error).Header. Use
 42113  // googleapi.IsNotModified to check whether the returned error was because
 42114  // http.StatusNotModified was returned.
 42115  func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
 42116  	gensupport.SetOptions(c.urlParams_, opts...)
 42117  	res, err := c.doRequest("json")
 42118  	if res != nil && res.StatusCode == http.StatusNotModified {
 42119  		if res.Body != nil {
 42120  			res.Body.Close()
 42121  		}
 42122  		return nil, gensupport.WrapError(&googleapi.Error{
 42123  			Code:   res.StatusCode,
 42124  			Header: res.Header,
 42125  		})
 42126  	}
 42127  	if err != nil {
 42128  		return nil, err
 42129  	}
 42130  	defer googleapi.CloseBody(res)
 42131  	if err := googleapi.CheckResponse(res); err != nil {
 42132  		return nil, gensupport.WrapError(err)
 42133  	}
 42134  	ret := &GoogleCloudDialogflowV2beta1Conversation{
 42135  		ServerResponse: googleapi.ServerResponse{
 42136  			Header:         res.Header,
 42137  			HTTPStatusCode: res.StatusCode,
 42138  		},
 42139  	}
 42140  	target := &ret
 42141  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42142  		return nil, err
 42143  	}
 42144  	return ret, nil
 42145  }
 42146  
 42147  type ProjectsLocationsConversationsGetCall struct {
 42148  	s            *Service
 42149  	name         string
 42150  	urlParams_   gensupport.URLParams
 42151  	ifNoneMatch_ string
 42152  	ctx_         context.Context
 42153  	header_      http.Header
 42154  }
 42155  
 42156  // Get: Retrieves the specific conversation.
 42157  //
 42158  //   - name: The name of the conversation. Format:
 42159  //     `projects//locations//conversations/`.
 42160  func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
 42161  	c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42162  	c.name = name
 42163  	return c
 42164  }
 42165  
 42166  // Fields allows partial responses to be retrieved. See
 42167  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42168  // details.
 42169  func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
 42170  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42171  	return c
 42172  }
 42173  
 42174  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42175  // object's ETag matches the given value. This is useful for getting updates
 42176  // only after the object has changed since the last request.
 42177  func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
 42178  	c.ifNoneMatch_ = entityTag
 42179  	return c
 42180  }
 42181  
 42182  // Context sets the context to be used in this call's Do method.
 42183  func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
 42184  	c.ctx_ = ctx
 42185  	return c
 42186  }
 42187  
 42188  // Header returns a http.Header that can be modified by the caller to add
 42189  // headers to the request.
 42190  func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
 42191  	if c.header_ == nil {
 42192  		c.header_ = make(http.Header)
 42193  	}
 42194  	return c.header_
 42195  }
 42196  
 42197  func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 42198  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42199  	if c.ifNoneMatch_ != "" {
 42200  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42201  	}
 42202  	var body io.Reader = nil
 42203  	c.urlParams_.Set("alt", alt)
 42204  	c.urlParams_.Set("prettyPrint", "false")
 42205  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 42206  	urls += "?" + c.urlParams_.Encode()
 42207  	req, err := http.NewRequest("GET", urls, body)
 42208  	if err != nil {
 42209  		return nil, err
 42210  	}
 42211  	req.Header = reqHeaders
 42212  	googleapi.Expand(req.URL, map[string]string{
 42213  		"name": c.name,
 42214  	})
 42215  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42216  }
 42217  
 42218  // Do executes the "dialogflow.projects.locations.conversations.get" call.
 42219  // Any non-2xx status code is an error. Response headers are in either
 42220  // *GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if a
 42221  // response was returned at all) in error.(*googleapi.Error).Header. Use
 42222  // googleapi.IsNotModified to check whether the returned error was because
 42223  // http.StatusNotModified was returned.
 42224  func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
 42225  	gensupport.SetOptions(c.urlParams_, opts...)
 42226  	res, err := c.doRequest("json")
 42227  	if res != nil && res.StatusCode == http.StatusNotModified {
 42228  		if res.Body != nil {
 42229  			res.Body.Close()
 42230  		}
 42231  		return nil, gensupport.WrapError(&googleapi.Error{
 42232  			Code:   res.StatusCode,
 42233  			Header: res.Header,
 42234  		})
 42235  	}
 42236  	if err != nil {
 42237  		return nil, err
 42238  	}
 42239  	defer googleapi.CloseBody(res)
 42240  	if err := googleapi.CheckResponse(res); err != nil {
 42241  		return nil, gensupport.WrapError(err)
 42242  	}
 42243  	ret := &GoogleCloudDialogflowV2beta1Conversation{
 42244  		ServerResponse: googleapi.ServerResponse{
 42245  			Header:         res.Header,
 42246  			HTTPStatusCode: res.StatusCode,
 42247  		},
 42248  	}
 42249  	target := &ret
 42250  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42251  		return nil, err
 42252  	}
 42253  	return ret, nil
 42254  }
 42255  
 42256  type ProjectsLocationsConversationsListCall struct {
 42257  	s            *Service
 42258  	parent       string
 42259  	urlParams_   gensupport.URLParams
 42260  	ifNoneMatch_ string
 42261  	ctx_         context.Context
 42262  	header_      http.Header
 42263  }
 42264  
 42265  // List: Returns the list of all conversations in the specified project.
 42266  //
 42267  //   - parent: The project from which to list all conversation. Format:
 42268  //     `projects//locations/`.
 42269  func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
 42270  	c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42271  	c.parent = parent
 42272  	return c
 42273  }
 42274  
 42275  // Filter sets the optional parameter "filter": A filter expression that
 42276  // filters conversations listed in the response. In general, the expression
 42277  // must specify the field name, a comparison operator, and the value to use for
 42278  // filtering: - The value must be a string, a number, or a boolean. - The
 42279  // comparison operator must be either `=`,`!=`, `>`, or `<`. - To filter on
 42280  // multiple expressions, separate the expressions with `AND` or `OR` (omitting
 42281  // both implies `AND`). - For clarity, expressions can be enclosed in
 42282  // parentheses. Only `lifecycle_state` can be filtered on in this way. For
 42283  // example, the following expression only returns `COMPLETED` conversations:
 42284  // `lifecycle_state = "COMPLETED" For more information about filtering, see
 42285  // API Filtering (https://aip.dev/160).
 42286  func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
 42287  	c.urlParams_.Set("filter", filter)
 42288  	return c
 42289  }
 42290  
 42291  // PageSize sets the optional parameter "pageSize": The maximum number of items
 42292  // to return in a single page. By default 100 and at most 1000.
 42293  func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
 42294  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 42295  	return c
 42296  }
 42297  
 42298  // PageToken sets the optional parameter "pageToken": The next_page_token value
 42299  // returned from a previous list request.
 42300  func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
 42301  	c.urlParams_.Set("pageToken", pageToken)
 42302  	return c
 42303  }
 42304  
 42305  // Fields allows partial responses to be retrieved. See
 42306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42307  // details.
 42308  func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
 42309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42310  	return c
 42311  }
 42312  
 42313  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42314  // object's ETag matches the given value. This is useful for getting updates
 42315  // only after the object has changed since the last request.
 42316  func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
 42317  	c.ifNoneMatch_ = entityTag
 42318  	return c
 42319  }
 42320  
 42321  // Context sets the context to be used in this call's Do method.
 42322  func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
 42323  	c.ctx_ = ctx
 42324  	return c
 42325  }
 42326  
 42327  // Header returns a http.Header that can be modified by the caller to add
 42328  // headers to the request.
 42329  func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
 42330  	if c.header_ == nil {
 42331  		c.header_ = make(http.Header)
 42332  	}
 42333  	return c.header_
 42334  }
 42335  
 42336  func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
 42337  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42338  	if c.ifNoneMatch_ != "" {
 42339  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42340  	}
 42341  	var body io.Reader = nil
 42342  	c.urlParams_.Set("alt", alt)
 42343  	c.urlParams_.Set("prettyPrint", "false")
 42344  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
 42345  	urls += "?" + c.urlParams_.Encode()
 42346  	req, err := http.NewRequest("GET", urls, body)
 42347  	if err != nil {
 42348  		return nil, err
 42349  	}
 42350  	req.Header = reqHeaders
 42351  	googleapi.Expand(req.URL, map[string]string{
 42352  		"parent": c.parent,
 42353  	})
 42354  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42355  }
 42356  
 42357  // Do executes the "dialogflow.projects.locations.conversations.list" call.
 42358  // Any non-2xx status code is an error. Response headers are in either
 42359  // *GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.Header
 42360  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 42361  // Use googleapi.IsNotModified to check whether the returned error was because
 42362  // http.StatusNotModified was returned.
 42363  func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
 42364  	gensupport.SetOptions(c.urlParams_, opts...)
 42365  	res, err := c.doRequest("json")
 42366  	if res != nil && res.StatusCode == http.StatusNotModified {
 42367  		if res.Body != nil {
 42368  			res.Body.Close()
 42369  		}
 42370  		return nil, gensupport.WrapError(&googleapi.Error{
 42371  			Code:   res.StatusCode,
 42372  			Header: res.Header,
 42373  		})
 42374  	}
 42375  	if err != nil {
 42376  		return nil, err
 42377  	}
 42378  	defer googleapi.CloseBody(res)
 42379  	if err := googleapi.CheckResponse(res); err != nil {
 42380  		return nil, gensupport.WrapError(err)
 42381  	}
 42382  	ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
 42383  		ServerResponse: googleapi.ServerResponse{
 42384  			Header:         res.Header,
 42385  			HTTPStatusCode: res.StatusCode,
 42386  		},
 42387  	}
 42388  	target := &ret
 42389  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42390  		return nil, err
 42391  	}
 42392  	return ret, nil
 42393  }
 42394  
 42395  // Pages invokes f for each page of results.
 42396  // A non-nil error returned from f will halt the iteration.
 42397  // The provided context supersedes any context provided to the Context method.
 42398  func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
 42399  	c.ctx_ = ctx
 42400  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 42401  	for {
 42402  		x, err := c.Do()
 42403  		if err != nil {
 42404  			return err
 42405  		}
 42406  		if err := f(x); err != nil {
 42407  			return err
 42408  		}
 42409  		if x.NextPageToken == "" {
 42410  			return nil
 42411  		}
 42412  		c.PageToken(x.NextPageToken)
 42413  	}
 42414  }
 42415  
 42416  type ProjectsLocationsConversationsMessagesBatchCreateCall struct {
 42417  	s                                                      *Service
 42418  	parentid                                               string
 42419  	googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
 42420  	urlParams_                                             gensupport.URLParams
 42421  	ctx_                                                   context.Context
 42422  	header_                                                http.Header
 42423  }
 42424  
 42425  // BatchCreate: Batch ingests messages to conversation. Customers can use this
 42426  // RPC to ingest historical messages to conversation.
 42427  //
 42428  //   - parent: Resource identifier of the conversation to create message. Format:
 42429  //     `projects//locations//conversations/`.
 42430  func (r *ProjectsLocationsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsLocationsConversationsMessagesBatchCreateCall {
 42431  	c := &ProjectsLocationsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42432  	c.parentid = parentid
 42433  	c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
 42434  	return c
 42435  }
 42436  
 42437  // Fields allows partial responses to be retrieved. See
 42438  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42439  // details.
 42440  func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesBatchCreateCall {
 42441  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42442  	return c
 42443  }
 42444  
 42445  // Context sets the context to be used in this call's Do method.
 42446  func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesBatchCreateCall {
 42447  	c.ctx_ = ctx
 42448  	return c
 42449  }
 42450  
 42451  // Header returns a http.Header that can be modified by the caller to add
 42452  // headers to the request.
 42453  func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Header() http.Header {
 42454  	if c.header_ == nil {
 42455  		c.header_ = make(http.Header)
 42456  	}
 42457  	return c.header_
 42458  }
 42459  
 42460  func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 42461  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42462  	var body io.Reader = nil
 42463  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
 42464  	if err != nil {
 42465  		return nil, err
 42466  	}
 42467  	c.urlParams_.Set("alt", alt)
 42468  	c.urlParams_.Set("prettyPrint", "false")
 42469  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
 42470  	urls += "?" + c.urlParams_.Encode()
 42471  	req, err := http.NewRequest("POST", urls, body)
 42472  	if err != nil {
 42473  		return nil, err
 42474  	}
 42475  	req.Header = reqHeaders
 42476  	googleapi.Expand(req.URL, map[string]string{
 42477  		"parent": c.parentid,
 42478  	})
 42479  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42480  }
 42481  
 42482  // Do executes the "dialogflow.projects.locations.conversations.messages.batchCreate" call.
 42483  // Any non-2xx status code is an error. Response headers are in either
 42484  // *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.ServerResponse.Heade
 42485  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 42486  // Use googleapi.IsNotModified to check whether the returned error was because
 42487  // http.StatusNotModified was returned.
 42488  func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
 42489  	gensupport.SetOptions(c.urlParams_, opts...)
 42490  	res, err := c.doRequest("json")
 42491  	if res != nil && res.StatusCode == http.StatusNotModified {
 42492  		if res.Body != nil {
 42493  			res.Body.Close()
 42494  		}
 42495  		return nil, gensupport.WrapError(&googleapi.Error{
 42496  			Code:   res.StatusCode,
 42497  			Header: res.Header,
 42498  		})
 42499  	}
 42500  	if err != nil {
 42501  		return nil, err
 42502  	}
 42503  	defer googleapi.CloseBody(res)
 42504  	if err := googleapi.CheckResponse(res); err != nil {
 42505  		return nil, gensupport.WrapError(err)
 42506  	}
 42507  	ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
 42508  		ServerResponse: googleapi.ServerResponse{
 42509  			Header:         res.Header,
 42510  			HTTPStatusCode: res.StatusCode,
 42511  		},
 42512  	}
 42513  	target := &ret
 42514  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42515  		return nil, err
 42516  	}
 42517  	return ret, nil
 42518  }
 42519  
 42520  type ProjectsLocationsConversationsMessagesListCall struct {
 42521  	s            *Service
 42522  	parent       string
 42523  	urlParams_   gensupport.URLParams
 42524  	ifNoneMatch_ string
 42525  	ctx_         context.Context
 42526  	header_      http.Header
 42527  }
 42528  
 42529  // List: Lists messages that belong to a given conversation. `messages` are
 42530  // ordered by `create_time` in descending order. To fetch updates without
 42531  // duplication, send request with filter `create_time_epoch_microseconds >
 42532  // [first item's create_time of previous request]` and empty page_token.
 42533  //
 42534  //   - parent: The name of the conversation to list messages for. Format:
 42535  //     `projects//locations//conversations/`.
 42536  func (r *ProjectsLocationsConversationsMessagesService) List(parent string) *ProjectsLocationsConversationsMessagesListCall {
 42537  	c := &ProjectsLocationsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42538  	c.parent = parent
 42539  	return c
 42540  }
 42541  
 42542  // Filter sets the optional parameter "filter": Filter on message fields.
 42543  // Currently predicates on `create_time` and `create_time_epoch_microseconds`
 42544  // are supported. `create_time` only support milliseconds accuracy. E.g.,
 42545  // `create_time_epoch_microseconds > 1551790877964485` or `create_time >
 42546  // "2017-01-15T01:30:15.01Z". For more information about filtering, see API
 42547  // Filtering (https://aip.dev/160).
 42548  func (c *ProjectsLocationsConversationsMessagesListCall) Filter(filter string) *ProjectsLocationsConversationsMessagesListCall {
 42549  	c.urlParams_.Set("filter", filter)
 42550  	return c
 42551  }
 42552  
 42553  // PageSize sets the optional parameter "pageSize": The maximum number of items
 42554  // to return in a single page. By default 100 and at most 1000.
 42555  func (c *ProjectsLocationsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsMessagesListCall {
 42556  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 42557  	return c
 42558  }
 42559  
 42560  // PageToken sets the optional parameter "pageToken": The next_page_token value
 42561  // returned from a previous list request.
 42562  func (c *ProjectsLocationsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsMessagesListCall {
 42563  	c.urlParams_.Set("pageToken", pageToken)
 42564  	return c
 42565  }
 42566  
 42567  // Fields allows partial responses to be retrieved. See
 42568  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42569  // details.
 42570  func (c *ProjectsLocationsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesListCall {
 42571  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42572  	return c
 42573  }
 42574  
 42575  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42576  // object's ETag matches the given value. This is useful for getting updates
 42577  // only after the object has changed since the last request.
 42578  func (c *ProjectsLocationsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsMessagesListCall {
 42579  	c.ifNoneMatch_ = entityTag
 42580  	return c
 42581  }
 42582  
 42583  // Context sets the context to be used in this call's Do method.
 42584  func (c *ProjectsLocationsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesListCall {
 42585  	c.ctx_ = ctx
 42586  	return c
 42587  }
 42588  
 42589  // Header returns a http.Header that can be modified by the caller to add
 42590  // headers to the request.
 42591  func (c *ProjectsLocationsConversationsMessagesListCall) Header() http.Header {
 42592  	if c.header_ == nil {
 42593  		c.header_ = make(http.Header)
 42594  	}
 42595  	return c.header_
 42596  }
 42597  
 42598  func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
 42599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42600  	if c.ifNoneMatch_ != "" {
 42601  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42602  	}
 42603  	var body io.Reader = nil
 42604  	c.urlParams_.Set("alt", alt)
 42605  	c.urlParams_.Set("prettyPrint", "false")
 42606  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
 42607  	urls += "?" + c.urlParams_.Encode()
 42608  	req, err := http.NewRequest("GET", urls, body)
 42609  	if err != nil {
 42610  		return nil, err
 42611  	}
 42612  	req.Header = reqHeaders
 42613  	googleapi.Expand(req.URL, map[string]string{
 42614  		"parent": c.parent,
 42615  	})
 42616  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42617  }
 42618  
 42619  // Do executes the "dialogflow.projects.locations.conversations.messages.list" call.
 42620  // Any non-2xx status code is an error. Response headers are in either
 42621  // *GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Header or
 42622  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 42623  // googleapi.IsNotModified to check whether the returned error was because
 42624  // http.StatusNotModified was returned.
 42625  func (c *ProjectsLocationsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
 42626  	gensupport.SetOptions(c.urlParams_, opts...)
 42627  	res, err := c.doRequest("json")
 42628  	if res != nil && res.StatusCode == http.StatusNotModified {
 42629  		if res.Body != nil {
 42630  			res.Body.Close()
 42631  		}
 42632  		return nil, gensupport.WrapError(&googleapi.Error{
 42633  			Code:   res.StatusCode,
 42634  			Header: res.Header,
 42635  		})
 42636  	}
 42637  	if err != nil {
 42638  		return nil, err
 42639  	}
 42640  	defer googleapi.CloseBody(res)
 42641  	if err := googleapi.CheckResponse(res); err != nil {
 42642  		return nil, gensupport.WrapError(err)
 42643  	}
 42644  	ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
 42645  		ServerResponse: googleapi.ServerResponse{
 42646  			Header:         res.Header,
 42647  			HTTPStatusCode: res.StatusCode,
 42648  		},
 42649  	}
 42650  	target := &ret
 42651  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42652  		return nil, err
 42653  	}
 42654  	return ret, nil
 42655  }
 42656  
 42657  // Pages invokes f for each page of results.
 42658  // A non-nil error returned from f will halt the iteration.
 42659  // The provided context supersedes any context provided to the Context method.
 42660  func (c *ProjectsLocationsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
 42661  	c.ctx_ = ctx
 42662  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 42663  	for {
 42664  		x, err := c.Do()
 42665  		if err != nil {
 42666  			return err
 42667  		}
 42668  		if err := f(x); err != nil {
 42669  			return err
 42670  		}
 42671  		if x.NextPageToken == "" {
 42672  			return nil
 42673  		}
 42674  		c.PageToken(x.NextPageToken)
 42675  	}
 42676  }
 42677  
 42678  type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {
 42679  	s                                                 *Service
 42680  	participant                                       string
 42681  	googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
 42682  	urlParams_                                        gensupport.URLParams
 42683  	ctx_                                              context.Context
 42684  	header_                                           http.Header
 42685  }
 42686  
 42687  // AnalyzeContent: Adds a text (chat, for example), or audio (phone recording,
 42688  // for example) message from a participant into the conversation. Note: Always
 42689  // use agent versions for production traffic sent to virtual agents. See
 42690  // Versions and environments
 42691  // (https://cloud.google.com/dialogflow/es/docs/agents-versions).
 42692  //
 42693  //   - participant: The name of the participant this text comes from. Format:
 42694  //     `projects//locations//conversations//participants/`.
 42695  func (r *ProjectsLocationsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
 42696  	c := &ProjectsLocationsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42697  	c.participant = participant
 42698  	c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
 42699  	return c
 42700  }
 42701  
 42702  // Fields allows partial responses to be retrieved. See
 42703  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42704  // details.
 42705  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
 42706  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42707  	return c
 42708  }
 42709  
 42710  // Context sets the context to be used in this call's Do method.
 42711  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
 42712  	c.ctx_ = ctx
 42713  	return c
 42714  }
 42715  
 42716  // Header returns a http.Header that can be modified by the caller to add
 42717  // headers to the request.
 42718  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
 42719  	if c.header_ == nil {
 42720  		c.header_ = make(http.Header)
 42721  	}
 42722  	return c.header_
 42723  }
 42724  
 42725  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
 42726  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42727  	var body io.Reader = nil
 42728  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
 42729  	if err != nil {
 42730  		return nil, err
 42731  	}
 42732  	c.urlParams_.Set("alt", alt)
 42733  	c.urlParams_.Set("prettyPrint", "false")
 42734  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
 42735  	urls += "?" + c.urlParams_.Encode()
 42736  	req, err := http.NewRequest("POST", urls, body)
 42737  	if err != nil {
 42738  		return nil, err
 42739  	}
 42740  	req.Header = reqHeaders
 42741  	googleapi.Expand(req.URL, map[string]string{
 42742  		"participant": c.participant,
 42743  	})
 42744  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42745  }
 42746  
 42747  // Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call.
 42748  // Any non-2xx status code is an error. Response headers are in either
 42749  // *GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Header or
 42750  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 42751  // googleapi.IsNotModified to check whether the returned error was because
 42752  // http.StatusNotModified was returned.
 42753  func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
 42754  	gensupport.SetOptions(c.urlParams_, opts...)
 42755  	res, err := c.doRequest("json")
 42756  	if res != nil && res.StatusCode == http.StatusNotModified {
 42757  		if res.Body != nil {
 42758  			res.Body.Close()
 42759  		}
 42760  		return nil, gensupport.WrapError(&googleapi.Error{
 42761  			Code:   res.StatusCode,
 42762  			Header: res.Header,
 42763  		})
 42764  	}
 42765  	if err != nil {
 42766  		return nil, err
 42767  	}
 42768  	defer googleapi.CloseBody(res)
 42769  	if err := googleapi.CheckResponse(res); err != nil {
 42770  		return nil, gensupport.WrapError(err)
 42771  	}
 42772  	ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
 42773  		ServerResponse: googleapi.ServerResponse{
 42774  			Header:         res.Header,
 42775  			HTTPStatusCode: res.StatusCode,
 42776  		},
 42777  	}
 42778  	target := &ret
 42779  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42780  		return nil, err
 42781  	}
 42782  	return ret, nil
 42783  }
 42784  
 42785  type ProjectsLocationsConversationsParticipantsCreateCall struct {
 42786  	s                                       *Service
 42787  	parentid                                string
 42788  	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
 42789  	urlParams_                              gensupport.URLParams
 42790  	ctx_                                    context.Context
 42791  	header_                                 http.Header
 42792  }
 42793  
 42794  // Create: Creates a new participant in a conversation.
 42795  //
 42796  //   - parent: Resource identifier of the conversation adding the participant.
 42797  //     Format: `projects//locations//conversations/`.
 42798  func (r *ProjectsLocationsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsCreateCall {
 42799  	c := &ProjectsLocationsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42800  	c.parentid = parentid
 42801  	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
 42802  	return c
 42803  }
 42804  
 42805  // Fields allows partial responses to be retrieved. See
 42806  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42807  // details.
 42808  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsCreateCall {
 42809  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42810  	return c
 42811  }
 42812  
 42813  // Context sets the context to be used in this call's Do method.
 42814  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsCreateCall {
 42815  	c.ctx_ = ctx
 42816  	return c
 42817  }
 42818  
 42819  // Header returns a http.Header that can be modified by the caller to add
 42820  // headers to the request.
 42821  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Header() http.Header {
 42822  	if c.header_ == nil {
 42823  		c.header_ = make(http.Header)
 42824  	}
 42825  	return c.header_
 42826  }
 42827  
 42828  func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
 42829  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 42830  	var body io.Reader = nil
 42831  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
 42832  	if err != nil {
 42833  		return nil, err
 42834  	}
 42835  	c.urlParams_.Set("alt", alt)
 42836  	c.urlParams_.Set("prettyPrint", "false")
 42837  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
 42838  	urls += "?" + c.urlParams_.Encode()
 42839  	req, err := http.NewRequest("POST", urls, body)
 42840  	if err != nil {
 42841  		return nil, err
 42842  	}
 42843  	req.Header = reqHeaders
 42844  	googleapi.Expand(req.URL, map[string]string{
 42845  		"parent": c.parentid,
 42846  	})
 42847  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42848  }
 42849  
 42850  // Do executes the "dialogflow.projects.locations.conversations.participants.create" call.
 42851  // Any non-2xx status code is an error. Response headers are in either
 42852  // *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if a
 42853  // response was returned at all) in error.(*googleapi.Error).Header. Use
 42854  // googleapi.IsNotModified to check whether the returned error was because
 42855  // http.StatusNotModified was returned.
 42856  func (c *ProjectsLocationsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
 42857  	gensupport.SetOptions(c.urlParams_, opts...)
 42858  	res, err := c.doRequest("json")
 42859  	if res != nil && res.StatusCode == http.StatusNotModified {
 42860  		if res.Body != nil {
 42861  			res.Body.Close()
 42862  		}
 42863  		return nil, gensupport.WrapError(&googleapi.Error{
 42864  			Code:   res.StatusCode,
 42865  			Header: res.Header,
 42866  		})
 42867  	}
 42868  	if err != nil {
 42869  		return nil, err
 42870  	}
 42871  	defer googleapi.CloseBody(res)
 42872  	if err := googleapi.CheckResponse(res); err != nil {
 42873  		return nil, gensupport.WrapError(err)
 42874  	}
 42875  	ret := &GoogleCloudDialogflowV2beta1Participant{
 42876  		ServerResponse: googleapi.ServerResponse{
 42877  			Header:         res.Header,
 42878  			HTTPStatusCode: res.StatusCode,
 42879  		},
 42880  	}
 42881  	target := &ret
 42882  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42883  		return nil, err
 42884  	}
 42885  	return ret, nil
 42886  }
 42887  
 42888  type ProjectsLocationsConversationsParticipantsGetCall struct {
 42889  	s            *Service
 42890  	name         string
 42891  	urlParams_   gensupport.URLParams
 42892  	ifNoneMatch_ string
 42893  	ctx_         context.Context
 42894  	header_      http.Header
 42895  }
 42896  
 42897  // Get: Retrieves a conversation participant.
 42898  //
 42899  //   - name: The name of the participant. Format:
 42900  //     `projects//locations//conversations//participants/`.
 42901  func (r *ProjectsLocationsConversationsParticipantsService) Get(name string) *ProjectsLocationsConversationsParticipantsGetCall {
 42902  	c := &ProjectsLocationsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 42903  	c.name = name
 42904  	return c
 42905  }
 42906  
 42907  // Fields allows partial responses to be retrieved. See
 42908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 42909  // details.
 42910  func (c *ProjectsLocationsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsGetCall {
 42911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 42912  	return c
 42913  }
 42914  
 42915  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 42916  // object's ETag matches the given value. This is useful for getting updates
 42917  // only after the object has changed since the last request.
 42918  func (c *ProjectsLocationsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsGetCall {
 42919  	c.ifNoneMatch_ = entityTag
 42920  	return c
 42921  }
 42922  
 42923  // Context sets the context to be used in this call's Do method.
 42924  func (c *ProjectsLocationsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsGetCall {
 42925  	c.ctx_ = ctx
 42926  	return c
 42927  }
 42928  
 42929  // Header returns a http.Header that can be modified by the caller to add
 42930  // headers to the request.
 42931  func (c *ProjectsLocationsConversationsParticipantsGetCall) Header() http.Header {
 42932  	if c.header_ == nil {
 42933  		c.header_ = make(http.Header)
 42934  	}
 42935  	return c.header_
 42936  }
 42937  
 42938  func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
 42939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 42940  	if c.ifNoneMatch_ != "" {
 42941  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 42942  	}
 42943  	var body io.Reader = nil
 42944  	c.urlParams_.Set("alt", alt)
 42945  	c.urlParams_.Set("prettyPrint", "false")
 42946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 42947  	urls += "?" + c.urlParams_.Encode()
 42948  	req, err := http.NewRequest("GET", urls, body)
 42949  	if err != nil {
 42950  		return nil, err
 42951  	}
 42952  	req.Header = reqHeaders
 42953  	googleapi.Expand(req.URL, map[string]string{
 42954  		"name": c.name,
 42955  	})
 42956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 42957  }
 42958  
 42959  // Do executes the "dialogflow.projects.locations.conversations.participants.get" call.
 42960  // Any non-2xx status code is an error. Response headers are in either
 42961  // *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if a
 42962  // response was returned at all) in error.(*googleapi.Error).Header. Use
 42963  // googleapi.IsNotModified to check whether the returned error was because
 42964  // http.StatusNotModified was returned.
 42965  func (c *ProjectsLocationsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
 42966  	gensupport.SetOptions(c.urlParams_, opts...)
 42967  	res, err := c.doRequest("json")
 42968  	if res != nil && res.StatusCode == http.StatusNotModified {
 42969  		if res.Body != nil {
 42970  			res.Body.Close()
 42971  		}
 42972  		return nil, gensupport.WrapError(&googleapi.Error{
 42973  			Code:   res.StatusCode,
 42974  			Header: res.Header,
 42975  		})
 42976  	}
 42977  	if err != nil {
 42978  		return nil, err
 42979  	}
 42980  	defer googleapi.CloseBody(res)
 42981  	if err := googleapi.CheckResponse(res); err != nil {
 42982  		return nil, gensupport.WrapError(err)
 42983  	}
 42984  	ret := &GoogleCloudDialogflowV2beta1Participant{
 42985  		ServerResponse: googleapi.ServerResponse{
 42986  			Header:         res.Header,
 42987  			HTTPStatusCode: res.StatusCode,
 42988  		},
 42989  	}
 42990  	target := &ret
 42991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 42992  		return nil, err
 42993  	}
 42994  	return ret, nil
 42995  }
 42996  
 42997  type ProjectsLocationsConversationsParticipantsListCall struct {
 42998  	s            *Service
 42999  	parent       string
 43000  	urlParams_   gensupport.URLParams
 43001  	ifNoneMatch_ string
 43002  	ctx_         context.Context
 43003  	header_      http.Header
 43004  }
 43005  
 43006  // List: Returns the list of all participants in the specified conversation.
 43007  //
 43008  //   - parent: The conversation to list all participants from. Format:
 43009  //     `projects//locations//conversations/`.
 43010  func (r *ProjectsLocationsConversationsParticipantsService) List(parent string) *ProjectsLocationsConversationsParticipantsListCall {
 43011  	c := &ProjectsLocationsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43012  	c.parent = parent
 43013  	return c
 43014  }
 43015  
 43016  // PageSize sets the optional parameter "pageSize": The maximum number of items
 43017  // to return in a single page. By default 100 and at most 1000.
 43018  func (c *ProjectsLocationsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsParticipantsListCall {
 43019  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 43020  	return c
 43021  }
 43022  
 43023  // PageToken sets the optional parameter "pageToken": The next_page_token value
 43024  // returned from a previous list request.
 43025  func (c *ProjectsLocationsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsParticipantsListCall {
 43026  	c.urlParams_.Set("pageToken", pageToken)
 43027  	return c
 43028  }
 43029  
 43030  // Fields allows partial responses to be retrieved. See
 43031  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43032  // details.
 43033  func (c *ProjectsLocationsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsListCall {
 43034  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43035  	return c
 43036  }
 43037  
 43038  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 43039  // object's ETag matches the given value. This is useful for getting updates
 43040  // only after the object has changed since the last request.
 43041  func (c *ProjectsLocationsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsListCall {
 43042  	c.ifNoneMatch_ = entityTag
 43043  	return c
 43044  }
 43045  
 43046  // Context sets the context to be used in this call's Do method.
 43047  func (c *ProjectsLocationsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsListCall {
 43048  	c.ctx_ = ctx
 43049  	return c
 43050  }
 43051  
 43052  // Header returns a http.Header that can be modified by the caller to add
 43053  // headers to the request.
 43054  func (c *ProjectsLocationsConversationsParticipantsListCall) Header() http.Header {
 43055  	if c.header_ == nil {
 43056  		c.header_ = make(http.Header)
 43057  	}
 43058  	return c.header_
 43059  }
 43060  
 43061  func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
 43062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43063  	if c.ifNoneMatch_ != "" {
 43064  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 43065  	}
 43066  	var body io.Reader = nil
 43067  	c.urlParams_.Set("alt", alt)
 43068  	c.urlParams_.Set("prettyPrint", "false")
 43069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
 43070  	urls += "?" + c.urlParams_.Encode()
 43071  	req, err := http.NewRequest("GET", urls, body)
 43072  	if err != nil {
 43073  		return nil, err
 43074  	}
 43075  	req.Header = reqHeaders
 43076  	googleapi.Expand(req.URL, map[string]string{
 43077  		"parent": c.parent,
 43078  	})
 43079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43080  }
 43081  
 43082  // Do executes the "dialogflow.projects.locations.conversations.participants.list" call.
 43083  // Any non-2xx status code is an error. Response headers are in either
 43084  // *GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.Header
 43085  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 43086  // Use googleapi.IsNotModified to check whether the returned error was because
 43087  // http.StatusNotModified was returned.
 43088  func (c *ProjectsLocationsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
 43089  	gensupport.SetOptions(c.urlParams_, opts...)
 43090  	res, err := c.doRequest("json")
 43091  	if res != nil && res.StatusCode == http.StatusNotModified {
 43092  		if res.Body != nil {
 43093  			res.Body.Close()
 43094  		}
 43095  		return nil, gensupport.WrapError(&googleapi.Error{
 43096  			Code:   res.StatusCode,
 43097  			Header: res.Header,
 43098  		})
 43099  	}
 43100  	if err != nil {
 43101  		return nil, err
 43102  	}
 43103  	defer googleapi.CloseBody(res)
 43104  	if err := googleapi.CheckResponse(res); err != nil {
 43105  		return nil, gensupport.WrapError(err)
 43106  	}
 43107  	ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
 43108  		ServerResponse: googleapi.ServerResponse{
 43109  			Header:         res.Header,
 43110  			HTTPStatusCode: res.StatusCode,
 43111  		},
 43112  	}
 43113  	target := &ret
 43114  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43115  		return nil, err
 43116  	}
 43117  	return ret, nil
 43118  }
 43119  
 43120  // Pages invokes f for each page of results.
 43121  // A non-nil error returned from f will halt the iteration.
 43122  // The provided context supersedes any context provided to the Context method.
 43123  func (c *ProjectsLocationsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
 43124  	c.ctx_ = ctx
 43125  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 43126  	for {
 43127  		x, err := c.Do()
 43128  		if err != nil {
 43129  			return err
 43130  		}
 43131  		if err := f(x); err != nil {
 43132  			return err
 43133  		}
 43134  		if x.NextPageToken == "" {
 43135  			return nil
 43136  		}
 43137  		c.PageToken(x.NextPageToken)
 43138  	}
 43139  }
 43140  
 43141  type ProjectsLocationsConversationsParticipantsPatchCall struct {
 43142  	s                                       *Service
 43143  	nameid                                  string
 43144  	googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
 43145  	urlParams_                              gensupport.URLParams
 43146  	ctx_                                    context.Context
 43147  	header_                                 http.Header
 43148  }
 43149  
 43150  // Patch: Updates the specified participant.
 43151  //
 43152  //   - name: Optional. The unique identifier of this participant. Format:
 43153  //     `projects//locations//conversations//participants/`.
 43154  func (r *ProjectsLocationsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsPatchCall {
 43155  	c := &ProjectsLocationsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43156  	c.nameid = nameid
 43157  	c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
 43158  	return c
 43159  }
 43160  
 43161  // UpdateMask sets the optional parameter "updateMask": Required. The mask to
 43162  // specify which fields to update.
 43163  func (c *ProjectsLocationsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsParticipantsPatchCall {
 43164  	c.urlParams_.Set("updateMask", updateMask)
 43165  	return c
 43166  }
 43167  
 43168  // Fields allows partial responses to be retrieved. See
 43169  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43170  // details.
 43171  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsPatchCall {
 43172  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43173  	return c
 43174  }
 43175  
 43176  // Context sets the context to be used in this call's Do method.
 43177  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsPatchCall {
 43178  	c.ctx_ = ctx
 43179  	return c
 43180  }
 43181  
 43182  // Header returns a http.Header that can be modified by the caller to add
 43183  // headers to the request.
 43184  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Header() http.Header {
 43185  	if c.header_ == nil {
 43186  		c.header_ = make(http.Header)
 43187  	}
 43188  	return c.header_
 43189  }
 43190  
 43191  func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
 43192  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43193  	var body io.Reader = nil
 43194  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
 43195  	if err != nil {
 43196  		return nil, err
 43197  	}
 43198  	c.urlParams_.Set("alt", alt)
 43199  	c.urlParams_.Set("prettyPrint", "false")
 43200  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 43201  	urls += "?" + c.urlParams_.Encode()
 43202  	req, err := http.NewRequest("PATCH", urls, body)
 43203  	if err != nil {
 43204  		return nil, err
 43205  	}
 43206  	req.Header = reqHeaders
 43207  	googleapi.Expand(req.URL, map[string]string{
 43208  		"name": c.nameid,
 43209  	})
 43210  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43211  }
 43212  
 43213  // Do executes the "dialogflow.projects.locations.conversations.participants.patch" call.
 43214  // Any non-2xx status code is an error. Response headers are in either
 43215  // *GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if a
 43216  // response was returned at all) in error.(*googleapi.Error).Header. Use
 43217  // googleapi.IsNotModified to check whether the returned error was because
 43218  // http.StatusNotModified was returned.
 43219  func (c *ProjectsLocationsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
 43220  	gensupport.SetOptions(c.urlParams_, opts...)
 43221  	res, err := c.doRequest("json")
 43222  	if res != nil && res.StatusCode == http.StatusNotModified {
 43223  		if res.Body != nil {
 43224  			res.Body.Close()
 43225  		}
 43226  		return nil, gensupport.WrapError(&googleapi.Error{
 43227  			Code:   res.StatusCode,
 43228  			Header: res.Header,
 43229  		})
 43230  	}
 43231  	if err != nil {
 43232  		return nil, err
 43233  	}
 43234  	defer googleapi.CloseBody(res)
 43235  	if err := googleapi.CheckResponse(res); err != nil {
 43236  		return nil, gensupport.WrapError(err)
 43237  	}
 43238  	ret := &GoogleCloudDialogflowV2beta1Participant{
 43239  		ServerResponse: googleapi.ServerResponse{
 43240  			Header:         res.Header,
 43241  			HTTPStatusCode: res.StatusCode,
 43242  		},
 43243  	}
 43244  	target := &ret
 43245  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43246  		return nil, err
 43247  	}
 43248  	return ret, nil
 43249  }
 43250  
 43251  type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
 43252  	s                                                  *Service
 43253  	parent                                             string
 43254  	googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
 43255  	urlParams_                                         gensupport.URLParams
 43256  	ctx_                                               context.Context
 43257  	header_                                            http.Header
 43258  }
 43259  
 43260  // SuggestArticles: Gets suggested articles for a participant based on specific
 43261  // historical messages. Note that ListSuggestions will only list the
 43262  // auto-generated suggestions, while CompileSuggestion will try to compile
 43263  // suggestion based on the provided conversation context in the real time.
 43264  //
 43265  //   - parent: The name of the participant to fetch suggestion for. Format:
 43266  //     `projects//locations//conversations//participants/`.
 43267  func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
 43268  	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43269  	c.parent = parent
 43270  	c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
 43271  	return c
 43272  }
 43273  
 43274  // Fields allows partial responses to be retrieved. See
 43275  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43276  // details.
 43277  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
 43278  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43279  	return c
 43280  }
 43281  
 43282  // Context sets the context to be used in this call's Do method.
 43283  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
 43284  	c.ctx_ = ctx
 43285  	return c
 43286  }
 43287  
 43288  // Header returns a http.Header that can be modified by the caller to add
 43289  // headers to the request.
 43290  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
 43291  	if c.header_ == nil {
 43292  		c.header_ = make(http.Header)
 43293  	}
 43294  	return c.header_
 43295  }
 43296  
 43297  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
 43298  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43299  	var body io.Reader = nil
 43300  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
 43301  	if err != nil {
 43302  		return nil, err
 43303  	}
 43304  	c.urlParams_.Set("alt", alt)
 43305  	c.urlParams_.Set("prettyPrint", "false")
 43306  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
 43307  	urls += "?" + c.urlParams_.Encode()
 43308  	req, err := http.NewRequest("POST", urls, body)
 43309  	if err != nil {
 43310  		return nil, err
 43311  	}
 43312  	req.Header = reqHeaders
 43313  	googleapi.Expand(req.URL, map[string]string{
 43314  		"parent": c.parent,
 43315  	})
 43316  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43317  }
 43318  
 43319  // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call.
 43320  // Any non-2xx status code is an error. Response headers are in either
 43321  // *GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.Header
 43322  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 43323  // Use googleapi.IsNotModified to check whether the returned error was because
 43324  // http.StatusNotModified was returned.
 43325  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
 43326  	gensupport.SetOptions(c.urlParams_, opts...)
 43327  	res, err := c.doRequest("json")
 43328  	if res != nil && res.StatusCode == http.StatusNotModified {
 43329  		if res.Body != nil {
 43330  			res.Body.Close()
 43331  		}
 43332  		return nil, gensupport.WrapError(&googleapi.Error{
 43333  			Code:   res.StatusCode,
 43334  			Header: res.Header,
 43335  		})
 43336  	}
 43337  	if err != nil {
 43338  		return nil, err
 43339  	}
 43340  	defer googleapi.CloseBody(res)
 43341  	if err := googleapi.CheckResponse(res); err != nil {
 43342  		return nil, gensupport.WrapError(err)
 43343  	}
 43344  	ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
 43345  		ServerResponse: googleapi.ServerResponse{
 43346  			Header:         res.Header,
 43347  			HTTPStatusCode: res.StatusCode,
 43348  		},
 43349  	}
 43350  	target := &ret
 43351  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43352  		return nil, err
 43353  	}
 43354  	return ret, nil
 43355  }
 43356  
 43357  type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
 43358  	s                                                    *Service
 43359  	parent                                               string
 43360  	googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
 43361  	urlParams_                                           gensupport.URLParams
 43362  	ctx_                                                 context.Context
 43363  	header_                                              http.Header
 43364  }
 43365  
 43366  // SuggestFaqAnswers: Gets suggested faq answers for a participant based on
 43367  // specific historical messages.
 43368  //
 43369  //   - parent: The name of the participant to fetch suggestion for. Format:
 43370  //     `projects//locations//conversations//participants/`.
 43371  func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 43372  	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43373  	c.parent = parent
 43374  	c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
 43375  	return c
 43376  }
 43377  
 43378  // Fields allows partial responses to be retrieved. See
 43379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43380  // details.
 43381  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 43382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43383  	return c
 43384  }
 43385  
 43386  // Context sets the context to be used in this call's Do method.
 43387  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
 43388  	c.ctx_ = ctx
 43389  	return c
 43390  }
 43391  
 43392  // Header returns a http.Header that can be modified by the caller to add
 43393  // headers to the request.
 43394  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
 43395  	if c.header_ == nil {
 43396  		c.header_ = make(http.Header)
 43397  	}
 43398  	return c.header_
 43399  }
 43400  
 43401  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
 43402  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43403  	var body io.Reader = nil
 43404  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
 43405  	if err != nil {
 43406  		return nil, err
 43407  	}
 43408  	c.urlParams_.Set("alt", alt)
 43409  	c.urlParams_.Set("prettyPrint", "false")
 43410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
 43411  	urls += "?" + c.urlParams_.Encode()
 43412  	req, err := http.NewRequest("POST", urls, body)
 43413  	if err != nil {
 43414  		return nil, err
 43415  	}
 43416  	req.Header = reqHeaders
 43417  	googleapi.Expand(req.URL, map[string]string{
 43418  		"parent": c.parent,
 43419  	})
 43420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43421  }
 43422  
 43423  // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call.
 43424  // Any non-2xx status code is an error. Response headers are in either
 43425  // *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.Header
 43426  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 43427  // Use googleapi.IsNotModified to check whether the returned error was because
 43428  // http.StatusNotModified was returned.
 43429  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
 43430  	gensupport.SetOptions(c.urlParams_, opts...)
 43431  	res, err := c.doRequest("json")
 43432  	if res != nil && res.StatusCode == http.StatusNotModified {
 43433  		if res.Body != nil {
 43434  			res.Body.Close()
 43435  		}
 43436  		return nil, gensupport.WrapError(&googleapi.Error{
 43437  			Code:   res.StatusCode,
 43438  			Header: res.Header,
 43439  		})
 43440  	}
 43441  	if err != nil {
 43442  		return nil, err
 43443  	}
 43444  	defer googleapi.CloseBody(res)
 43445  	if err := googleapi.CheckResponse(res); err != nil {
 43446  		return nil, gensupport.WrapError(err)
 43447  	}
 43448  	ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
 43449  		ServerResponse: googleapi.ServerResponse{
 43450  			Header:         res.Header,
 43451  			HTTPStatusCode: res.StatusCode,
 43452  		},
 43453  	}
 43454  	target := &ret
 43455  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43456  		return nil, err
 43457  	}
 43458  	return ret, nil
 43459  }
 43460  
 43461  type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
 43462  	s                                                      *Service
 43463  	parent                                                 string
 43464  	googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
 43465  	urlParams_                                             gensupport.URLParams
 43466  	ctx_                                                   context.Context
 43467  	header_                                                http.Header
 43468  }
 43469  
 43470  // SuggestSmartReplies: Gets smart replies for a participant based on specific
 43471  // historical messages.
 43472  //
 43473  //   - parent: The name of the participant to fetch suggestion for. Format:
 43474  //     `projects//locations//conversations//participants/`.
 43475  func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 43476  	c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43477  	c.parent = parent
 43478  	c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
 43479  	return c
 43480  }
 43481  
 43482  // Fields allows partial responses to be retrieved. See
 43483  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43484  // details.
 43485  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 43486  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43487  	return c
 43488  }
 43489  
 43490  // Context sets the context to be used in this call's Do method.
 43491  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
 43492  	c.ctx_ = ctx
 43493  	return c
 43494  }
 43495  
 43496  // Header returns a http.Header that can be modified by the caller to add
 43497  // headers to the request.
 43498  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
 43499  	if c.header_ == nil {
 43500  		c.header_ = make(http.Header)
 43501  	}
 43502  	return c.header_
 43503  }
 43504  
 43505  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
 43506  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43507  	var body io.Reader = nil
 43508  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
 43509  	if err != nil {
 43510  		return nil, err
 43511  	}
 43512  	c.urlParams_.Set("alt", alt)
 43513  	c.urlParams_.Set("prettyPrint", "false")
 43514  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
 43515  	urls += "?" + c.urlParams_.Encode()
 43516  	req, err := http.NewRequest("POST", urls, body)
 43517  	if err != nil {
 43518  		return nil, err
 43519  	}
 43520  	req.Header = reqHeaders
 43521  	googleapi.Expand(req.URL, map[string]string{
 43522  		"parent": c.parent,
 43523  	})
 43524  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43525  }
 43526  
 43527  // Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call.
 43528  // Any non-2xx status code is an error. Response headers are in either
 43529  // *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.ServerResponse.Heade
 43530  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 43531  // Use googleapi.IsNotModified to check whether the returned error was because
 43532  // http.StatusNotModified was returned.
 43533  func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
 43534  	gensupport.SetOptions(c.urlParams_, opts...)
 43535  	res, err := c.doRequest("json")
 43536  	if res != nil && res.StatusCode == http.StatusNotModified {
 43537  		if res.Body != nil {
 43538  			res.Body.Close()
 43539  		}
 43540  		return nil, gensupport.WrapError(&googleapi.Error{
 43541  			Code:   res.StatusCode,
 43542  			Header: res.Header,
 43543  		})
 43544  	}
 43545  	if err != nil {
 43546  		return nil, err
 43547  	}
 43548  	defer googleapi.CloseBody(res)
 43549  	if err := googleapi.CheckResponse(res); err != nil {
 43550  		return nil, gensupport.WrapError(err)
 43551  	}
 43552  	ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
 43553  		ServerResponse: googleapi.ServerResponse{
 43554  			Header:         res.Header,
 43555  			HTTPStatusCode: res.StatusCode,
 43556  		},
 43557  	}
 43558  	target := &ret
 43559  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43560  		return nil, err
 43561  	}
 43562  	return ret, nil
 43563  }
 43564  
 43565  type ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall struct {
 43566  	s                                                  *Service
 43567  	conversation                                       string
 43568  	googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
 43569  	urlParams_                                         gensupport.URLParams
 43570  	ctx_                                               context.Context
 43571  	header_                                            http.Header
 43572  }
 43573  
 43574  // SearchKnowledge: Get answers for the given query based on knowledge
 43575  // documents.
 43576  //
 43577  //   - conversation: The conversation (between human agent and end user) where
 43578  //     the search request is triggered. Format:
 43579  //     `projects//locations//conversations/`.
 43580  func (r *ProjectsLocationsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
 43581  	c := &ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43582  	c.conversation = conversation
 43583  	c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
 43584  	return c
 43585  }
 43586  
 43587  // Fields allows partial responses to be retrieved. See
 43588  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43589  // details.
 43590  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
 43591  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43592  	return c
 43593  }
 43594  
 43595  // Context sets the context to be used in this call's Do method.
 43596  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
 43597  	c.ctx_ = ctx
 43598  	return c
 43599  }
 43600  
 43601  // Header returns a http.Header that can be modified by the caller to add
 43602  // headers to the request.
 43603  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
 43604  	if c.header_ == nil {
 43605  		c.header_ = make(http.Header)
 43606  	}
 43607  	return c.header_
 43608  }
 43609  
 43610  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 43611  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43612  	var body io.Reader = nil
 43613  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
 43614  	if err != nil {
 43615  		return nil, err
 43616  	}
 43617  	c.urlParams_.Set("alt", alt)
 43618  	c.urlParams_.Set("prettyPrint", "false")
 43619  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:searchKnowledge")
 43620  	urls += "?" + c.urlParams_.Encode()
 43621  	req, err := http.NewRequest("POST", urls, body)
 43622  	if err != nil {
 43623  		return nil, err
 43624  	}
 43625  	req.Header = reqHeaders
 43626  	googleapi.Expand(req.URL, map[string]string{
 43627  		"conversation": c.conversation,
 43628  	})
 43629  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43630  }
 43631  
 43632  // Do executes the "dialogflow.projects.locations.conversations.suggestions.searchKnowledge" call.
 43633  // Any non-2xx status code is an error. Response headers are in either
 43634  // *GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Header
 43635  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 43636  // Use googleapi.IsNotModified to check whether the returned error was because
 43637  // http.StatusNotModified was returned.
 43638  func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
 43639  	gensupport.SetOptions(c.urlParams_, opts...)
 43640  	res, err := c.doRequest("json")
 43641  	if res != nil && res.StatusCode == http.StatusNotModified {
 43642  		if res.Body != nil {
 43643  			res.Body.Close()
 43644  		}
 43645  		return nil, gensupport.WrapError(&googleapi.Error{
 43646  			Code:   res.StatusCode,
 43647  			Header: res.Header,
 43648  		})
 43649  	}
 43650  	if err != nil {
 43651  		return nil, err
 43652  	}
 43653  	defer googleapi.CloseBody(res)
 43654  	if err := googleapi.CheckResponse(res); err != nil {
 43655  		return nil, gensupport.WrapError(err)
 43656  	}
 43657  	ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
 43658  		ServerResponse: googleapi.ServerResponse{
 43659  			Header:         res.Header,
 43660  			HTTPStatusCode: res.StatusCode,
 43661  		},
 43662  	}
 43663  	target := &ret
 43664  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43665  		return nil, err
 43666  	}
 43667  	return ret, nil
 43668  }
 43669  
 43670  type ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall struct {
 43671  	s                                                             *Service
 43672  	conversation                                                  string
 43673  	googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
 43674  	urlParams_                                                    gensupport.URLParams
 43675  	ctx_                                                          context.Context
 43676  	header_                                                       http.Header
 43677  }
 43678  
 43679  // SuggestConversationSummary: Suggest summary for a conversation based on
 43680  // specific historical messages. The range of the messages to be used for
 43681  // summary can be specified in the request.
 43682  //
 43683  //   - conversation: The conversation to fetch suggestion for. Format:
 43684  //     `projects//locations//conversations/`.
 43685  func (r *ProjectsLocationsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
 43686  	c := &ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43687  	c.conversation = conversation
 43688  	c.googleclouddialogflowv2beta1suggestconversationsummaryrequest = googleclouddialogflowv2beta1suggestconversationsummaryrequest
 43689  	return c
 43690  }
 43691  
 43692  // Fields allows partial responses to be retrieved. See
 43693  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43694  // details.
 43695  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
 43696  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43697  	return c
 43698  }
 43699  
 43700  // Context sets the context to be used in this call's Do method.
 43701  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
 43702  	c.ctx_ = ctx
 43703  	return c
 43704  }
 43705  
 43706  // Header returns a http.Header that can be modified by the caller to add
 43707  // headers to the request.
 43708  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
 43709  	if c.header_ == nil {
 43710  		c.header_ = make(http.Header)
 43711  	}
 43712  	return c.header_
 43713  }
 43714  
 43715  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
 43716  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43717  	var body io.Reader = nil
 43718  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestconversationsummaryrequest)
 43719  	if err != nil {
 43720  		return nil, err
 43721  	}
 43722  	c.urlParams_.Set("alt", alt)
 43723  	c.urlParams_.Set("prettyPrint", "false")
 43724  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:suggestConversationSummary")
 43725  	urls += "?" + c.urlParams_.Encode()
 43726  	req, err := http.NewRequest("POST", urls, body)
 43727  	if err != nil {
 43728  		return nil, err
 43729  	}
 43730  	req.Header = reqHeaders
 43731  	googleapi.Expand(req.URL, map[string]string{
 43732  		"conversation": c.conversation,
 43733  	})
 43734  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43735  }
 43736  
 43737  // Do executes the "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary" call.
 43738  // Any non-2xx status code is an error. Response headers are in either
 43739  // *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse.ServerRespons
 43740  // e.Header or (if a response was returned at all) in
 43741  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 43742  // whether the returned error was because http.StatusNotModified was returned.
 43743  func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse, error) {
 43744  	gensupport.SetOptions(c.urlParams_, opts...)
 43745  	res, err := c.doRequest("json")
 43746  	if res != nil && res.StatusCode == http.StatusNotModified {
 43747  		if res.Body != nil {
 43748  			res.Body.Close()
 43749  		}
 43750  		return nil, gensupport.WrapError(&googleapi.Error{
 43751  			Code:   res.StatusCode,
 43752  			Header: res.Header,
 43753  		})
 43754  	}
 43755  	if err != nil {
 43756  		return nil, err
 43757  	}
 43758  	defer googleapi.CloseBody(res)
 43759  	if err := googleapi.CheckResponse(res); err != nil {
 43760  		return nil, gensupport.WrapError(err)
 43761  	}
 43762  	ret := &GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse{
 43763  		ServerResponse: googleapi.ServerResponse{
 43764  			Header:         res.Header,
 43765  			HTTPStatusCode: res.StatusCode,
 43766  		},
 43767  	}
 43768  	target := &ret
 43769  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43770  		return nil, err
 43771  	}
 43772  	return ret, nil
 43773  }
 43774  
 43775  type ProjectsLocationsKnowledgeBasesCreateCall struct {
 43776  	s                                         *Service
 43777  	parent                                    string
 43778  	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
 43779  	urlParams_                                gensupport.URLParams
 43780  	ctx_                                      context.Context
 43781  	header_                                   http.Header
 43782  }
 43783  
 43784  // Create: Creates a knowledge base. Note: The `projects.agent.knowledgeBases`
 43785  // resource is deprecated; only use `projects.knowledgeBases`.
 43786  //
 43787  //   - parent: The project to create a knowledge base for. Format:
 43788  //     `projects//locations/`.
 43789  func (r *ProjectsLocationsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesCreateCall {
 43790  	c := &ProjectsLocationsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43791  	c.parent = parent
 43792  	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
 43793  	return c
 43794  }
 43795  
 43796  // Fields allows partial responses to be retrieved. See
 43797  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43798  // details.
 43799  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesCreateCall {
 43800  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43801  	return c
 43802  }
 43803  
 43804  // Context sets the context to be used in this call's Do method.
 43805  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesCreateCall {
 43806  	c.ctx_ = ctx
 43807  	return c
 43808  }
 43809  
 43810  // Header returns a http.Header that can be modified by the caller to add
 43811  // headers to the request.
 43812  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Header() http.Header {
 43813  	if c.header_ == nil {
 43814  		c.header_ = make(http.Header)
 43815  	}
 43816  	return c.header_
 43817  }
 43818  
 43819  func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
 43820  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 43821  	var body io.Reader = nil
 43822  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
 43823  	if err != nil {
 43824  		return nil, err
 43825  	}
 43826  	c.urlParams_.Set("alt", alt)
 43827  	c.urlParams_.Set("prettyPrint", "false")
 43828  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
 43829  	urls += "?" + c.urlParams_.Encode()
 43830  	req, err := http.NewRequest("POST", urls, body)
 43831  	if err != nil {
 43832  		return nil, err
 43833  	}
 43834  	req.Header = reqHeaders
 43835  	googleapi.Expand(req.URL, map[string]string{
 43836  		"parent": c.parent,
 43837  	})
 43838  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43839  }
 43840  
 43841  // Do executes the "dialogflow.projects.locations.knowledgeBases.create" call.
 43842  // Any non-2xx status code is an error. Response headers are in either
 43843  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 43844  // response was returned at all) in error.(*googleapi.Error).Header. Use
 43845  // googleapi.IsNotModified to check whether the returned error was because
 43846  // http.StatusNotModified was returned.
 43847  func (c *ProjectsLocationsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 43848  	gensupport.SetOptions(c.urlParams_, opts...)
 43849  	res, err := c.doRequest("json")
 43850  	if res != nil && res.StatusCode == http.StatusNotModified {
 43851  		if res.Body != nil {
 43852  			res.Body.Close()
 43853  		}
 43854  		return nil, gensupport.WrapError(&googleapi.Error{
 43855  			Code:   res.StatusCode,
 43856  			Header: res.Header,
 43857  		})
 43858  	}
 43859  	if err != nil {
 43860  		return nil, err
 43861  	}
 43862  	defer googleapi.CloseBody(res)
 43863  	if err := googleapi.CheckResponse(res); err != nil {
 43864  		return nil, gensupport.WrapError(err)
 43865  	}
 43866  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 43867  		ServerResponse: googleapi.ServerResponse{
 43868  			Header:         res.Header,
 43869  			HTTPStatusCode: res.StatusCode,
 43870  		},
 43871  	}
 43872  	target := &ret
 43873  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43874  		return nil, err
 43875  	}
 43876  	return ret, nil
 43877  }
 43878  
 43879  type ProjectsLocationsKnowledgeBasesDeleteCall struct {
 43880  	s          *Service
 43881  	name       string
 43882  	urlParams_ gensupport.URLParams
 43883  	ctx_       context.Context
 43884  	header_    http.Header
 43885  }
 43886  
 43887  // Delete: Deletes the specified knowledge base. Note: The
 43888  // `projects.agent.knowledgeBases` resource is deprecated; only use
 43889  // `projects.knowledgeBases`.
 43890  //
 43891  //   - name: The name of the knowledge base to delete. Format:
 43892  //     `projects//locations//knowledgeBases/`.
 43893  func (r *ProjectsLocationsKnowledgeBasesService) Delete(name string) *ProjectsLocationsKnowledgeBasesDeleteCall {
 43894  	c := &ProjectsLocationsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 43895  	c.name = name
 43896  	return c
 43897  }
 43898  
 43899  // Force sets the optional parameter "force": Force deletes the knowledge base.
 43900  // When set to true, any documents in the knowledge base are also deleted.
 43901  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsLocationsKnowledgeBasesDeleteCall {
 43902  	c.urlParams_.Set("force", fmt.Sprint(force))
 43903  	return c
 43904  }
 43905  
 43906  // Fields allows partial responses to be retrieved. See
 43907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 43908  // details.
 43909  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDeleteCall {
 43910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 43911  	return c
 43912  }
 43913  
 43914  // Context sets the context to be used in this call's Do method.
 43915  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDeleteCall {
 43916  	c.ctx_ = ctx
 43917  	return c
 43918  }
 43919  
 43920  // Header returns a http.Header that can be modified by the caller to add
 43921  // headers to the request.
 43922  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Header() http.Header {
 43923  	if c.header_ == nil {
 43924  		c.header_ = make(http.Header)
 43925  	}
 43926  	return c.header_
 43927  }
 43928  
 43929  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
 43930  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 43931  	var body io.Reader = nil
 43932  	c.urlParams_.Set("alt", alt)
 43933  	c.urlParams_.Set("prettyPrint", "false")
 43934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 43935  	urls += "?" + c.urlParams_.Encode()
 43936  	req, err := http.NewRequest("DELETE", urls, body)
 43937  	if err != nil {
 43938  		return nil, err
 43939  	}
 43940  	req.Header = reqHeaders
 43941  	googleapi.Expand(req.URL, map[string]string{
 43942  		"name": c.name,
 43943  	})
 43944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 43945  }
 43946  
 43947  // Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call.
 43948  // Any non-2xx status code is an error. Response headers are in either
 43949  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 43950  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 43951  // check whether the returned error was because http.StatusNotModified was
 43952  // returned.
 43953  func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 43954  	gensupport.SetOptions(c.urlParams_, opts...)
 43955  	res, err := c.doRequest("json")
 43956  	if res != nil && res.StatusCode == http.StatusNotModified {
 43957  		if res.Body != nil {
 43958  			res.Body.Close()
 43959  		}
 43960  		return nil, gensupport.WrapError(&googleapi.Error{
 43961  			Code:   res.StatusCode,
 43962  			Header: res.Header,
 43963  		})
 43964  	}
 43965  	if err != nil {
 43966  		return nil, err
 43967  	}
 43968  	defer googleapi.CloseBody(res)
 43969  	if err := googleapi.CheckResponse(res); err != nil {
 43970  		return nil, gensupport.WrapError(err)
 43971  	}
 43972  	ret := &GoogleProtobufEmpty{
 43973  		ServerResponse: googleapi.ServerResponse{
 43974  			Header:         res.Header,
 43975  			HTTPStatusCode: res.StatusCode,
 43976  		},
 43977  	}
 43978  	target := &ret
 43979  	if err := gensupport.DecodeResponse(target, res); err != nil {
 43980  		return nil, err
 43981  	}
 43982  	return ret, nil
 43983  }
 43984  
 43985  type ProjectsLocationsKnowledgeBasesGetCall struct {
 43986  	s            *Service
 43987  	name         string
 43988  	urlParams_   gensupport.URLParams
 43989  	ifNoneMatch_ string
 43990  	ctx_         context.Context
 43991  	header_      http.Header
 43992  }
 43993  
 43994  // Get: Retrieves the specified knowledge base. Note: The
 43995  // `projects.agent.knowledgeBases` resource is deprecated; only use
 43996  // `projects.knowledgeBases`.
 43997  //
 43998  //   - name: The name of the knowledge base to retrieve. Format
 43999  //     `projects//locations//knowledgeBases/`.
 44000  func (r *ProjectsLocationsKnowledgeBasesService) Get(name string) *ProjectsLocationsKnowledgeBasesGetCall {
 44001  	c := &ProjectsLocationsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44002  	c.name = name
 44003  	return c
 44004  }
 44005  
 44006  // Fields allows partial responses to be retrieved. See
 44007  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44008  // details.
 44009  func (c *ProjectsLocationsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesGetCall {
 44010  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44011  	return c
 44012  }
 44013  
 44014  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44015  // object's ETag matches the given value. This is useful for getting updates
 44016  // only after the object has changed since the last request.
 44017  func (c *ProjectsLocationsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesGetCall {
 44018  	c.ifNoneMatch_ = entityTag
 44019  	return c
 44020  }
 44021  
 44022  // Context sets the context to be used in this call's Do method.
 44023  func (c *ProjectsLocationsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesGetCall {
 44024  	c.ctx_ = ctx
 44025  	return c
 44026  }
 44027  
 44028  // Header returns a http.Header that can be modified by the caller to add
 44029  // headers to the request.
 44030  func (c *ProjectsLocationsKnowledgeBasesGetCall) Header() http.Header {
 44031  	if c.header_ == nil {
 44032  		c.header_ = make(http.Header)
 44033  	}
 44034  	return c.header_
 44035  }
 44036  
 44037  func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
 44038  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44039  	if c.ifNoneMatch_ != "" {
 44040  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44041  	}
 44042  	var body io.Reader = nil
 44043  	c.urlParams_.Set("alt", alt)
 44044  	c.urlParams_.Set("prettyPrint", "false")
 44045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 44046  	urls += "?" + c.urlParams_.Encode()
 44047  	req, err := http.NewRequest("GET", urls, body)
 44048  	if err != nil {
 44049  		return nil, err
 44050  	}
 44051  	req.Header = reqHeaders
 44052  	googleapi.Expand(req.URL, map[string]string{
 44053  		"name": c.name,
 44054  	})
 44055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44056  }
 44057  
 44058  // Do executes the "dialogflow.projects.locations.knowledgeBases.get" call.
 44059  // Any non-2xx status code is an error. Response headers are in either
 44060  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 44061  // response was returned at all) in error.(*googleapi.Error).Header. Use
 44062  // googleapi.IsNotModified to check whether the returned error was because
 44063  // http.StatusNotModified was returned.
 44064  func (c *ProjectsLocationsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 44065  	gensupport.SetOptions(c.urlParams_, opts...)
 44066  	res, err := c.doRequest("json")
 44067  	if res != nil && res.StatusCode == http.StatusNotModified {
 44068  		if res.Body != nil {
 44069  			res.Body.Close()
 44070  		}
 44071  		return nil, gensupport.WrapError(&googleapi.Error{
 44072  			Code:   res.StatusCode,
 44073  			Header: res.Header,
 44074  		})
 44075  	}
 44076  	if err != nil {
 44077  		return nil, err
 44078  	}
 44079  	defer googleapi.CloseBody(res)
 44080  	if err := googleapi.CheckResponse(res); err != nil {
 44081  		return nil, gensupport.WrapError(err)
 44082  	}
 44083  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 44084  		ServerResponse: googleapi.ServerResponse{
 44085  			Header:         res.Header,
 44086  			HTTPStatusCode: res.StatusCode,
 44087  		},
 44088  	}
 44089  	target := &ret
 44090  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44091  		return nil, err
 44092  	}
 44093  	return ret, nil
 44094  }
 44095  
 44096  type ProjectsLocationsKnowledgeBasesListCall struct {
 44097  	s            *Service
 44098  	parent       string
 44099  	urlParams_   gensupport.URLParams
 44100  	ifNoneMatch_ string
 44101  	ctx_         context.Context
 44102  	header_      http.Header
 44103  }
 44104  
 44105  // List: Returns the list of all knowledge bases of the specified agent. Note:
 44106  // The `projects.agent.knowledgeBases` resource is deprecated; only use
 44107  // `projects.knowledgeBases`.
 44108  //
 44109  //   - parent: The project to list of knowledge bases for. Format:
 44110  //     `projects//locations/`.
 44111  func (r *ProjectsLocationsKnowledgeBasesService) List(parent string) *ProjectsLocationsKnowledgeBasesListCall {
 44112  	c := &ProjectsLocationsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44113  	c.parent = parent
 44114  	return c
 44115  }
 44116  
 44117  // Filter sets the optional parameter "filter": The filter expression used to
 44118  // filter knowledge bases returned by the list method. The expression has the
 44119  // following syntax: [AND ] ... The following fields and operators are
 44120  // supported: * display_name with has(:) operator * language_code with
 44121  // equals(=) operator Examples: * 'language_code=en-us' matches knowledge bases
 44122  // with en-us language code. * 'display_name:articles' matches knowledge bases
 44123  // whose display name contains "articles". * 'display_name:"Best Articles"'
 44124  // matches knowledge bases whose display name contains "Best Articles". *
 44125  // 'language_code=en-gb AND display_name=articles' matches all knowledge bases
 44126  // whose display name contains "articles" and whose language code is "en-gb".
 44127  // Note: An empty filter string (i.e. "") is a no-op and will result in no
 44128  // filtering. For more information about filtering, see API Filtering
 44129  // (https://aip.dev/160).
 44130  func (c *ProjectsLocationsKnowledgeBasesListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesListCall {
 44131  	c.urlParams_.Set("filter", filter)
 44132  	return c
 44133  }
 44134  
 44135  // PageSize sets the optional parameter "pageSize": The maximum number of items
 44136  // to return in a single page. By default 10 and at most 100.
 44137  func (c *ProjectsLocationsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesListCall {
 44138  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44139  	return c
 44140  }
 44141  
 44142  // PageToken sets the optional parameter "pageToken": The next_page_token value
 44143  // returned from a previous list request.
 44144  func (c *ProjectsLocationsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesListCall {
 44145  	c.urlParams_.Set("pageToken", pageToken)
 44146  	return c
 44147  }
 44148  
 44149  // Fields allows partial responses to be retrieved. See
 44150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44151  // details.
 44152  func (c *ProjectsLocationsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesListCall {
 44153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44154  	return c
 44155  }
 44156  
 44157  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44158  // object's ETag matches the given value. This is useful for getting updates
 44159  // only after the object has changed since the last request.
 44160  func (c *ProjectsLocationsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesListCall {
 44161  	c.ifNoneMatch_ = entityTag
 44162  	return c
 44163  }
 44164  
 44165  // Context sets the context to be used in this call's Do method.
 44166  func (c *ProjectsLocationsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesListCall {
 44167  	c.ctx_ = ctx
 44168  	return c
 44169  }
 44170  
 44171  // Header returns a http.Header that can be modified by the caller to add
 44172  // headers to the request.
 44173  func (c *ProjectsLocationsKnowledgeBasesListCall) Header() http.Header {
 44174  	if c.header_ == nil {
 44175  		c.header_ = make(http.Header)
 44176  	}
 44177  	return c.header_
 44178  }
 44179  
 44180  func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
 44181  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44182  	if c.ifNoneMatch_ != "" {
 44183  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44184  	}
 44185  	var body io.Reader = nil
 44186  	c.urlParams_.Set("alt", alt)
 44187  	c.urlParams_.Set("prettyPrint", "false")
 44188  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
 44189  	urls += "?" + c.urlParams_.Encode()
 44190  	req, err := http.NewRequest("GET", urls, body)
 44191  	if err != nil {
 44192  		return nil, err
 44193  	}
 44194  	req.Header = reqHeaders
 44195  	googleapi.Expand(req.URL, map[string]string{
 44196  		"parent": c.parent,
 44197  	})
 44198  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44199  }
 44200  
 44201  // Do executes the "dialogflow.projects.locations.knowledgeBases.list" call.
 44202  // Any non-2xx status code is an error. Response headers are in either
 44203  // *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.ServerResponse.Header
 44204  //
 44205  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 44206  //
 44207  // Use googleapi.IsNotModified to check whether the returned error was because
 44208  // http.StatusNotModified was returned.
 44209  func (c *ProjectsLocationsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
 44210  	gensupport.SetOptions(c.urlParams_, opts...)
 44211  	res, err := c.doRequest("json")
 44212  	if res != nil && res.StatusCode == http.StatusNotModified {
 44213  		if res.Body != nil {
 44214  			res.Body.Close()
 44215  		}
 44216  		return nil, gensupport.WrapError(&googleapi.Error{
 44217  			Code:   res.StatusCode,
 44218  			Header: res.Header,
 44219  		})
 44220  	}
 44221  	if err != nil {
 44222  		return nil, err
 44223  	}
 44224  	defer googleapi.CloseBody(res)
 44225  	if err := googleapi.CheckResponse(res); err != nil {
 44226  		return nil, gensupport.WrapError(err)
 44227  	}
 44228  	ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
 44229  		ServerResponse: googleapi.ServerResponse{
 44230  			Header:         res.Header,
 44231  			HTTPStatusCode: res.StatusCode,
 44232  		},
 44233  	}
 44234  	target := &ret
 44235  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44236  		return nil, err
 44237  	}
 44238  	return ret, nil
 44239  }
 44240  
 44241  // Pages invokes f for each page of results.
 44242  // A non-nil error returned from f will halt the iteration.
 44243  // The provided context supersedes any context provided to the Context method.
 44244  func (c *ProjectsLocationsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
 44245  	c.ctx_ = ctx
 44246  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 44247  	for {
 44248  		x, err := c.Do()
 44249  		if err != nil {
 44250  			return err
 44251  		}
 44252  		if err := f(x); err != nil {
 44253  			return err
 44254  		}
 44255  		if x.NextPageToken == "" {
 44256  			return nil
 44257  		}
 44258  		c.PageToken(x.NextPageToken)
 44259  	}
 44260  }
 44261  
 44262  type ProjectsLocationsKnowledgeBasesPatchCall struct {
 44263  	s                                         *Service
 44264  	name                                      string
 44265  	googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
 44266  	urlParams_                                gensupport.URLParams
 44267  	ctx_                                      context.Context
 44268  	header_                                   http.Header
 44269  }
 44270  
 44271  // Patch: Updates the specified knowledge base. Note: The
 44272  // `projects.agent.knowledgeBases` resource is deprecated; only use
 44273  // `projects.knowledgeBases`.
 44274  //
 44275  //   - name: The knowledge base resource name. The name must be empty when
 44276  //     creating a knowledge base. Format: `projects//locations//knowledgeBases/`.
 44277  func (r *ProjectsLocationsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesPatchCall {
 44278  	c := &ProjectsLocationsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44279  	c.name = name
 44280  	c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
 44281  	return c
 44282  }
 44283  
 44284  // UpdateMask sets the optional parameter "updateMask": Not specified means
 44285  // `update all`. Currently, only `display_name` can be updated, an
 44286  // InvalidArgument will be returned for attempting to update other fields.
 44287  func (c *ProjectsLocationsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesPatchCall {
 44288  	c.urlParams_.Set("updateMask", updateMask)
 44289  	return c
 44290  }
 44291  
 44292  // Fields allows partial responses to be retrieved. See
 44293  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44294  // details.
 44295  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesPatchCall {
 44296  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44297  	return c
 44298  }
 44299  
 44300  // Context sets the context to be used in this call's Do method.
 44301  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesPatchCall {
 44302  	c.ctx_ = ctx
 44303  	return c
 44304  }
 44305  
 44306  // Header returns a http.Header that can be modified by the caller to add
 44307  // headers to the request.
 44308  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Header() http.Header {
 44309  	if c.header_ == nil {
 44310  		c.header_ = make(http.Header)
 44311  	}
 44312  	return c.header_
 44313  }
 44314  
 44315  func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
 44316  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44317  	var body io.Reader = nil
 44318  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
 44319  	if err != nil {
 44320  		return nil, err
 44321  	}
 44322  	c.urlParams_.Set("alt", alt)
 44323  	c.urlParams_.Set("prettyPrint", "false")
 44324  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 44325  	urls += "?" + c.urlParams_.Encode()
 44326  	req, err := http.NewRequest("PATCH", urls, body)
 44327  	if err != nil {
 44328  		return nil, err
 44329  	}
 44330  	req.Header = reqHeaders
 44331  	googleapi.Expand(req.URL, map[string]string{
 44332  		"name": c.name,
 44333  	})
 44334  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44335  }
 44336  
 44337  // Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call.
 44338  // Any non-2xx status code is an error. Response headers are in either
 44339  // *GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if a
 44340  // response was returned at all) in error.(*googleapi.Error).Header. Use
 44341  // googleapi.IsNotModified to check whether the returned error was because
 44342  // http.StatusNotModified was returned.
 44343  func (c *ProjectsLocationsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
 44344  	gensupport.SetOptions(c.urlParams_, opts...)
 44345  	res, err := c.doRequest("json")
 44346  	if res != nil && res.StatusCode == http.StatusNotModified {
 44347  		if res.Body != nil {
 44348  			res.Body.Close()
 44349  		}
 44350  		return nil, gensupport.WrapError(&googleapi.Error{
 44351  			Code:   res.StatusCode,
 44352  			Header: res.Header,
 44353  		})
 44354  	}
 44355  	if err != nil {
 44356  		return nil, err
 44357  	}
 44358  	defer googleapi.CloseBody(res)
 44359  	if err := googleapi.CheckResponse(res); err != nil {
 44360  		return nil, gensupport.WrapError(err)
 44361  	}
 44362  	ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
 44363  		ServerResponse: googleapi.ServerResponse{
 44364  			Header:         res.Header,
 44365  			HTTPStatusCode: res.StatusCode,
 44366  		},
 44367  	}
 44368  	target := &ret
 44369  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44370  		return nil, err
 44371  	}
 44372  	return ret, nil
 44373  }
 44374  
 44375  type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {
 44376  	s                                    *Service
 44377  	parent                               string
 44378  	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
 44379  	urlParams_                           gensupport.URLParams
 44380  	ctx_                                 context.Context
 44381  	header_                              http.Header
 44382  }
 44383  
 44384  // Create: Creates a new document. This method is a long-running operation
 44385  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 44386  // The returned `Operation` type has the following method-specific fields: -
 44387  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 44388  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 44389  // `projects.knowledgeBases.documents`.
 44390  //
 44391  //   - parent: The knowledge base to create a document for. Format:
 44392  //     `projects//locations//knowledgeBases/`.
 44393  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 44394  	c := &ProjectsLocationsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44395  	c.parent = parent
 44396  	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
 44397  	return c
 44398  }
 44399  
 44400  // ImportGcsCustomMetadata sets the optional parameter
 44401  // "importGcsCustomMetadata": Whether to import custom metadata from Google
 44402  // Cloud Storage. Only valid when the document source is Google Cloud Storage
 44403  // URI.
 44404  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 44405  	c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
 44406  	return c
 44407  }
 44408  
 44409  // Fields allows partial responses to be retrieved. See
 44410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44411  // details.
 44412  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 44413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44414  	return c
 44415  }
 44416  
 44417  // Context sets the context to be used in this call's Do method.
 44418  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
 44419  	c.ctx_ = ctx
 44420  	return c
 44421  }
 44422  
 44423  // Header returns a http.Header that can be modified by the caller to add
 44424  // headers to the request.
 44425  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
 44426  	if c.header_ == nil {
 44427  		c.header_ = make(http.Header)
 44428  	}
 44429  	return c.header_
 44430  }
 44431  
 44432  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 44433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44434  	var body io.Reader = nil
 44435  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
 44436  	if err != nil {
 44437  		return nil, err
 44438  	}
 44439  	c.urlParams_.Set("alt", alt)
 44440  	c.urlParams_.Set("prettyPrint", "false")
 44441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
 44442  	urls += "?" + c.urlParams_.Encode()
 44443  	req, err := http.NewRequest("POST", urls, body)
 44444  	if err != nil {
 44445  		return nil, err
 44446  	}
 44447  	req.Header = reqHeaders
 44448  	googleapi.Expand(req.URL, map[string]string{
 44449  		"parent": c.parent,
 44450  	})
 44451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44452  }
 44453  
 44454  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call.
 44455  // Any non-2xx status code is an error. Response headers are in either
 44456  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 44457  // returned at all) in error.(*googleapi.Error).Header. Use
 44458  // googleapi.IsNotModified to check whether the returned error was because
 44459  // http.StatusNotModified was returned.
 44460  func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 44461  	gensupport.SetOptions(c.urlParams_, opts...)
 44462  	res, err := c.doRequest("json")
 44463  	if res != nil && res.StatusCode == http.StatusNotModified {
 44464  		if res.Body != nil {
 44465  			res.Body.Close()
 44466  		}
 44467  		return nil, gensupport.WrapError(&googleapi.Error{
 44468  			Code:   res.StatusCode,
 44469  			Header: res.Header,
 44470  		})
 44471  	}
 44472  	if err != nil {
 44473  		return nil, err
 44474  	}
 44475  	defer googleapi.CloseBody(res)
 44476  	if err := googleapi.CheckResponse(res); err != nil {
 44477  		return nil, gensupport.WrapError(err)
 44478  	}
 44479  	ret := &GoogleLongrunningOperation{
 44480  		ServerResponse: googleapi.ServerResponse{
 44481  			Header:         res.Header,
 44482  			HTTPStatusCode: res.StatusCode,
 44483  		},
 44484  	}
 44485  	target := &ret
 44486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44487  		return nil, err
 44488  	}
 44489  	return ret, nil
 44490  }
 44491  
 44492  type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {
 44493  	s          *Service
 44494  	name       string
 44495  	urlParams_ gensupport.URLParams
 44496  	ctx_       context.Context
 44497  	header_    http.Header
 44498  }
 44499  
 44500  // Delete: Deletes the specified document. This method is a long-running
 44501  // operation
 44502  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 44503  // The returned `Operation` type has the following method-specific fields: -
 44504  // `metadata`: KnowledgeOperationMetadata - `response`: An Empty message
 44505  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
 44506  // Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
 44507  // only use `projects.knowledgeBases.documents`.
 44508  //
 44509  //   - name: The name of the document to delete. Format:
 44510  //     `projects//locations//knowledgeBases//documents/`.
 44511  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
 44512  	c := &ProjectsLocationsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44513  	c.name = name
 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 *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
 44521  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44522  	return c
 44523  }
 44524  
 44525  // Context sets the context to be used in this call's Do method.
 44526  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
 44527  	c.ctx_ = ctx
 44528  	return c
 44529  }
 44530  
 44531  // Header returns a http.Header that can be modified by the caller to add
 44532  // headers to the request.
 44533  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
 44534  	if c.header_ == nil {
 44535  		c.header_ = make(http.Header)
 44536  	}
 44537  	return c.header_
 44538  }
 44539  
 44540  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 44541  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44542  	var body io.Reader = nil
 44543  	c.urlParams_.Set("alt", alt)
 44544  	c.urlParams_.Set("prettyPrint", "false")
 44545  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 44546  	urls += "?" + c.urlParams_.Encode()
 44547  	req, err := http.NewRequest("DELETE", urls, body)
 44548  	if err != nil {
 44549  		return nil, err
 44550  	}
 44551  	req.Header = reqHeaders
 44552  	googleapi.Expand(req.URL, map[string]string{
 44553  		"name": c.name,
 44554  	})
 44555  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44556  }
 44557  
 44558  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call.
 44559  // Any non-2xx status code is an error. Response headers are in either
 44560  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 44561  // returned at all) in error.(*googleapi.Error).Header. Use
 44562  // googleapi.IsNotModified to check whether the returned error was because
 44563  // http.StatusNotModified was returned.
 44564  func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 44565  	gensupport.SetOptions(c.urlParams_, opts...)
 44566  	res, err := c.doRequest("json")
 44567  	if res != nil && res.StatusCode == http.StatusNotModified {
 44568  		if res.Body != nil {
 44569  			res.Body.Close()
 44570  		}
 44571  		return nil, gensupport.WrapError(&googleapi.Error{
 44572  			Code:   res.StatusCode,
 44573  			Header: res.Header,
 44574  		})
 44575  	}
 44576  	if err != nil {
 44577  		return nil, err
 44578  	}
 44579  	defer googleapi.CloseBody(res)
 44580  	if err := googleapi.CheckResponse(res); err != nil {
 44581  		return nil, gensupport.WrapError(err)
 44582  	}
 44583  	ret := &GoogleLongrunningOperation{
 44584  		ServerResponse: googleapi.ServerResponse{
 44585  			Header:         res.Header,
 44586  			HTTPStatusCode: res.StatusCode,
 44587  		},
 44588  	}
 44589  	target := &ret
 44590  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44591  		return nil, err
 44592  	}
 44593  	return ret, nil
 44594  }
 44595  
 44596  type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {
 44597  	s            *Service
 44598  	name         string
 44599  	urlParams_   gensupport.URLParams
 44600  	ifNoneMatch_ string
 44601  	ctx_         context.Context
 44602  	header_      http.Header
 44603  }
 44604  
 44605  // Get: Retrieves the specified document. Note: The
 44606  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 44607  // `projects.knowledgeBases.documents`.
 44608  //
 44609  //   - name: The name of the document to retrieve. Format
 44610  //     `projects//locations//knowledgeBases//documents/`.
 44611  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Get(name string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 44612  	c := &ProjectsLocationsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44613  	c.name = name
 44614  	return c
 44615  }
 44616  
 44617  // Fields allows partial responses to be retrieved. See
 44618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44619  // details.
 44620  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 44621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44622  	return c
 44623  }
 44624  
 44625  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44626  // object's ETag matches the given value. This is useful for getting updates
 44627  // only after the object has changed since the last request.
 44628  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 44629  	c.ifNoneMatch_ = entityTag
 44630  	return c
 44631  }
 44632  
 44633  // Context sets the context to be used in this call's Do method.
 44634  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
 44635  	c.ctx_ = ctx
 44636  	return c
 44637  }
 44638  
 44639  // Header returns a http.Header that can be modified by the caller to add
 44640  // headers to the request.
 44641  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Header() http.Header {
 44642  	if c.header_ == nil {
 44643  		c.header_ = make(http.Header)
 44644  	}
 44645  	return c.header_
 44646  }
 44647  
 44648  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 44649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44650  	if c.ifNoneMatch_ != "" {
 44651  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44652  	}
 44653  	var body io.Reader = nil
 44654  	c.urlParams_.Set("alt", alt)
 44655  	c.urlParams_.Set("prettyPrint", "false")
 44656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 44657  	urls += "?" + c.urlParams_.Encode()
 44658  	req, err := http.NewRequest("GET", urls, body)
 44659  	if err != nil {
 44660  		return nil, err
 44661  	}
 44662  	req.Header = reqHeaders
 44663  	googleapi.Expand(req.URL, map[string]string{
 44664  		"name": c.name,
 44665  	})
 44666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44667  }
 44668  
 44669  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call.
 44670  // Any non-2xx status code is an error. Response headers are in either
 44671  // *GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or (if a
 44672  // response was returned at all) in error.(*googleapi.Error).Header. Use
 44673  // googleapi.IsNotModified to check whether the returned error was because
 44674  // http.StatusNotModified was returned.
 44675  func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
 44676  	gensupport.SetOptions(c.urlParams_, opts...)
 44677  	res, err := c.doRequest("json")
 44678  	if res != nil && res.StatusCode == http.StatusNotModified {
 44679  		if res.Body != nil {
 44680  			res.Body.Close()
 44681  		}
 44682  		return nil, gensupport.WrapError(&googleapi.Error{
 44683  			Code:   res.StatusCode,
 44684  			Header: res.Header,
 44685  		})
 44686  	}
 44687  	if err != nil {
 44688  		return nil, err
 44689  	}
 44690  	defer googleapi.CloseBody(res)
 44691  	if err := googleapi.CheckResponse(res); err != nil {
 44692  		return nil, gensupport.WrapError(err)
 44693  	}
 44694  	ret := &GoogleCloudDialogflowV2beta1Document{
 44695  		ServerResponse: googleapi.ServerResponse{
 44696  			Header:         res.Header,
 44697  			HTTPStatusCode: res.StatusCode,
 44698  		},
 44699  	}
 44700  	target := &ret
 44701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44702  		return nil, err
 44703  	}
 44704  	return ret, nil
 44705  }
 44706  
 44707  type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {
 44708  	s                                                  *Service
 44709  	parent                                             string
 44710  	googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
 44711  	urlParams_                                         gensupport.URLParams
 44712  	ctx_                                               context.Context
 44713  	header_                                            http.Header
 44714  }
 44715  
 44716  // Import: Create documents by importing data from external sources. Dialogflow
 44717  // supports up to 350 documents in each request. If you try to import more,
 44718  // Dialogflow will return an error. This method is a long-running operation
 44719  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 44720  // The returned `Operation` type has the following method-specific fields: -
 44721  // `metadata`: KnowledgeOperationMetadata - `response`: ImportDocumentsResponse
 44722  //
 44723  //   - parent: The knowledge base to import documents into. Format:
 44724  //     `projects//locations//knowledgeBases/`.
 44725  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
 44726  	c := &ProjectsLocationsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44727  	c.parent = parent
 44728  	c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
 44729  	return c
 44730  }
 44731  
 44732  // Fields allows partial responses to be retrieved. See
 44733  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44734  // details.
 44735  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
 44736  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44737  	return c
 44738  }
 44739  
 44740  // Context sets the context to be used in this call's Do method.
 44741  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
 44742  	c.ctx_ = ctx
 44743  	return c
 44744  }
 44745  
 44746  // Header returns a http.Header that can be modified by the caller to add
 44747  // headers to the request.
 44748  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Header() http.Header {
 44749  	if c.header_ == nil {
 44750  		c.header_ = make(http.Header)
 44751  	}
 44752  	return c.header_
 44753  }
 44754  
 44755  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 44756  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 44757  	var body io.Reader = nil
 44758  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
 44759  	if err != nil {
 44760  		return nil, err
 44761  	}
 44762  	c.urlParams_.Set("alt", alt)
 44763  	c.urlParams_.Set("prettyPrint", "false")
 44764  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
 44765  	urls += "?" + c.urlParams_.Encode()
 44766  	req, err := http.NewRequest("POST", urls, body)
 44767  	if err != nil {
 44768  		return nil, err
 44769  	}
 44770  	req.Header = reqHeaders
 44771  	googleapi.Expand(req.URL, map[string]string{
 44772  		"parent": c.parent,
 44773  	})
 44774  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44775  }
 44776  
 44777  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call.
 44778  // Any non-2xx status code is an error. Response headers are in either
 44779  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 44780  // returned at all) in error.(*googleapi.Error).Header. Use
 44781  // googleapi.IsNotModified to check whether the returned error was because
 44782  // http.StatusNotModified was returned.
 44783  func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 44784  	gensupport.SetOptions(c.urlParams_, opts...)
 44785  	res, err := c.doRequest("json")
 44786  	if res != nil && res.StatusCode == http.StatusNotModified {
 44787  		if res.Body != nil {
 44788  			res.Body.Close()
 44789  		}
 44790  		return nil, gensupport.WrapError(&googleapi.Error{
 44791  			Code:   res.StatusCode,
 44792  			Header: res.Header,
 44793  		})
 44794  	}
 44795  	if err != nil {
 44796  		return nil, err
 44797  	}
 44798  	defer googleapi.CloseBody(res)
 44799  	if err := googleapi.CheckResponse(res); err != nil {
 44800  		return nil, gensupport.WrapError(err)
 44801  	}
 44802  	ret := &GoogleLongrunningOperation{
 44803  		ServerResponse: googleapi.ServerResponse{
 44804  			Header:         res.Header,
 44805  			HTTPStatusCode: res.StatusCode,
 44806  		},
 44807  	}
 44808  	target := &ret
 44809  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44810  		return nil, err
 44811  	}
 44812  	return ret, nil
 44813  }
 44814  
 44815  type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {
 44816  	s            *Service
 44817  	parent       string
 44818  	urlParams_   gensupport.URLParams
 44819  	ifNoneMatch_ string
 44820  	ctx_         context.Context
 44821  	header_      http.Header
 44822  }
 44823  
 44824  // List: Returns the list of all documents of the knowledge base. Note: The
 44825  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 44826  // `projects.knowledgeBases.documents`.
 44827  //
 44828  //   - parent: The knowledge base to list all documents for. Format:
 44829  //     `projects//locations//knowledgeBases/`.
 44830  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) List(parent string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44831  	c := &ProjectsLocationsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44832  	c.parent = parent
 44833  	return c
 44834  }
 44835  
 44836  // Filter sets the optional parameter "filter": The filter expression used to
 44837  // filter documents returned by the list method. The expression has the
 44838  // following syntax: [AND ] ... The following fields and operators are
 44839  // supported: * knowledge_types with has(:) operator * display_name with has(:)
 44840  // operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"
 44841  // matches documents with FAQ knowledge type. * "display_name:customer" matches
 44842  // documents whose display name contains "customer". * "state=ACTIVE" matches
 44843  // documents with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"
 44844  // matches all active FAQ documents. For more information about filtering, see
 44845  // API Filtering (https://aip.dev/160).
 44846  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44847  	c.urlParams_.Set("filter", filter)
 44848  	return c
 44849  }
 44850  
 44851  // PageSize sets the optional parameter "pageSize": The maximum number of items
 44852  // to return in a single page. By default 10 and at most 100.
 44853  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44854  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 44855  	return c
 44856  }
 44857  
 44858  // PageToken sets the optional parameter "pageToken": The next_page_token value
 44859  // returned from a previous list request.
 44860  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44861  	c.urlParams_.Set("pageToken", pageToken)
 44862  	return c
 44863  }
 44864  
 44865  // Fields allows partial responses to be retrieved. See
 44866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 44867  // details.
 44868  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 44870  	return c
 44871  }
 44872  
 44873  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 44874  // object's ETag matches the given value. This is useful for getting updates
 44875  // only after the object has changed since the last request.
 44876  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44877  	c.ifNoneMatch_ = entityTag
 44878  	return c
 44879  }
 44880  
 44881  // Context sets the context to be used in this call's Do method.
 44882  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
 44883  	c.ctx_ = ctx
 44884  	return c
 44885  }
 44886  
 44887  // Header returns a http.Header that can be modified by the caller to add
 44888  // headers to the request.
 44889  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Header() http.Header {
 44890  	if c.header_ == nil {
 44891  		c.header_ = make(http.Header)
 44892  	}
 44893  	return c.header_
 44894  }
 44895  
 44896  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 44897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 44898  	if c.ifNoneMatch_ != "" {
 44899  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 44900  	}
 44901  	var body io.Reader = nil
 44902  	c.urlParams_.Set("alt", alt)
 44903  	c.urlParams_.Set("prettyPrint", "false")
 44904  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
 44905  	urls += "?" + c.urlParams_.Encode()
 44906  	req, err := http.NewRequest("GET", urls, body)
 44907  	if err != nil {
 44908  		return nil, err
 44909  	}
 44910  	req.Header = reqHeaders
 44911  	googleapi.Expand(req.URL, map[string]string{
 44912  		"parent": c.parent,
 44913  	})
 44914  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 44915  }
 44916  
 44917  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call.
 44918  // Any non-2xx status code is an error. Response headers are in either
 44919  // *GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Header or
 44920  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 44921  // googleapi.IsNotModified to check whether the returned error was because
 44922  // http.StatusNotModified was returned.
 44923  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
 44924  	gensupport.SetOptions(c.urlParams_, opts...)
 44925  	res, err := c.doRequest("json")
 44926  	if res != nil && res.StatusCode == http.StatusNotModified {
 44927  		if res.Body != nil {
 44928  			res.Body.Close()
 44929  		}
 44930  		return nil, gensupport.WrapError(&googleapi.Error{
 44931  			Code:   res.StatusCode,
 44932  			Header: res.Header,
 44933  		})
 44934  	}
 44935  	if err != nil {
 44936  		return nil, err
 44937  	}
 44938  	defer googleapi.CloseBody(res)
 44939  	if err := googleapi.CheckResponse(res); err != nil {
 44940  		return nil, gensupport.WrapError(err)
 44941  	}
 44942  	ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
 44943  		ServerResponse: googleapi.ServerResponse{
 44944  			Header:         res.Header,
 44945  			HTTPStatusCode: res.StatusCode,
 44946  		},
 44947  	}
 44948  	target := &ret
 44949  	if err := gensupport.DecodeResponse(target, res); err != nil {
 44950  		return nil, err
 44951  	}
 44952  	return ret, nil
 44953  }
 44954  
 44955  // Pages invokes f for each page of results.
 44956  // A non-nil error returned from f will halt the iteration.
 44957  // The provided context supersedes any context provided to the Context method.
 44958  func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
 44959  	c.ctx_ = ctx
 44960  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 44961  	for {
 44962  		x, err := c.Do()
 44963  		if err != nil {
 44964  			return err
 44965  		}
 44966  		if err := f(x); err != nil {
 44967  			return err
 44968  		}
 44969  		if x.NextPageToken == "" {
 44970  			return nil
 44971  		}
 44972  		c.PageToken(x.NextPageToken)
 44973  	}
 44974  }
 44975  
 44976  type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {
 44977  	s                                    *Service
 44978  	name                                 string
 44979  	googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
 44980  	urlParams_                           gensupport.URLParams
 44981  	ctx_                                 context.Context
 44982  	header_                              http.Header
 44983  }
 44984  
 44985  // Patch: Updates the specified document. This method is a long-running
 44986  // operation
 44987  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 44988  // The returned `Operation` type has the following method-specific fields: -
 44989  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 44990  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 44991  // `projects.knowledgeBases.documents`.
 44992  //
 44993  //   - name: Optional. The document resource name. The name must be empty when
 44994  //     creating a document. Format:
 44995  //     `projects//locations//knowledgeBases//documents/`.
 44996  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 44997  	c := &ProjectsLocationsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 44998  	c.name = name
 44999  	c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
 45000  	return c
 45001  }
 45002  
 45003  // UpdateMask sets the optional parameter "updateMask": Not specified means
 45004  // `update all`. Currently, only `display_name` can be updated, an
 45005  // InvalidArgument will be returned for attempting to update other fields.
 45006  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 45007  	c.urlParams_.Set("updateMask", updateMask)
 45008  	return c
 45009  }
 45010  
 45011  // Fields allows partial responses to be retrieved. See
 45012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45013  // details.
 45014  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 45015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45016  	return c
 45017  }
 45018  
 45019  // Context sets the context to be used in this call's Do method.
 45020  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
 45021  	c.ctx_ = ctx
 45022  	return c
 45023  }
 45024  
 45025  // Header returns a http.Header that can be modified by the caller to add
 45026  // headers to the request.
 45027  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
 45028  	if c.header_ == nil {
 45029  		c.header_ = make(http.Header)
 45030  	}
 45031  	return c.header_
 45032  }
 45033  
 45034  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 45035  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45036  	var body io.Reader = nil
 45037  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
 45038  	if err != nil {
 45039  		return nil, err
 45040  	}
 45041  	c.urlParams_.Set("alt", alt)
 45042  	c.urlParams_.Set("prettyPrint", "false")
 45043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 45044  	urls += "?" + c.urlParams_.Encode()
 45045  	req, err := http.NewRequest("PATCH", urls, body)
 45046  	if err != nil {
 45047  		return nil, err
 45048  	}
 45049  	req.Header = reqHeaders
 45050  	googleapi.Expand(req.URL, map[string]string{
 45051  		"name": c.name,
 45052  	})
 45053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45054  }
 45055  
 45056  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call.
 45057  // Any non-2xx status code is an error. Response headers are in either
 45058  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 45059  // returned at all) in error.(*googleapi.Error).Header. Use
 45060  // googleapi.IsNotModified to check whether the returned error was because
 45061  // http.StatusNotModified was returned.
 45062  func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 45063  	gensupport.SetOptions(c.urlParams_, opts...)
 45064  	res, err := c.doRequest("json")
 45065  	if res != nil && res.StatusCode == http.StatusNotModified {
 45066  		if res.Body != nil {
 45067  			res.Body.Close()
 45068  		}
 45069  		return nil, gensupport.WrapError(&googleapi.Error{
 45070  			Code:   res.StatusCode,
 45071  			Header: res.Header,
 45072  		})
 45073  	}
 45074  	if err != nil {
 45075  		return nil, err
 45076  	}
 45077  	defer googleapi.CloseBody(res)
 45078  	if err := googleapi.CheckResponse(res); err != nil {
 45079  		return nil, gensupport.WrapError(err)
 45080  	}
 45081  	ret := &GoogleLongrunningOperation{
 45082  		ServerResponse: googleapi.ServerResponse{
 45083  			Header:         res.Header,
 45084  			HTTPStatusCode: res.StatusCode,
 45085  		},
 45086  	}
 45087  	target := &ret
 45088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45089  		return nil, err
 45090  	}
 45091  	return ret, nil
 45092  }
 45093  
 45094  type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {
 45095  	s                                                 *Service
 45096  	name                                              string
 45097  	googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
 45098  	urlParams_                                        gensupport.URLParams
 45099  	ctx_                                              context.Context
 45100  	header_                                           http.Header
 45101  }
 45102  
 45103  // Reload: Reloads the specified document from its specified source,
 45104  // content_uri or content. The previously loaded content of the document will
 45105  // be deleted. Note: Even when the content of the document has not changed,
 45106  // there still may be side effects because of internal implementation changes.
 45107  // Note: If the document source is Google Cloud Storage URI, its metadata will
 45108  // be replaced with the custom metadata from Google Cloud Storage if the
 45109  // `import_gcs_custom_metadata` field is set to true in the request. This
 45110  // method is a long-running operation
 45111  // (https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
 45112  // The returned `Operation` type has the following method-specific fields: -
 45113  // `metadata`: KnowledgeOperationMetadata - `response`: Document Note: The
 45114  // `projects.agent.knowledgeBases.documents` resource is deprecated; only use
 45115  // `projects.knowledgeBases.documents`.
 45116  //
 45117  //   - name: The name of the document to reload. Format:
 45118  //     `projects//locations//knowledgeBases//documents/`.
 45119  func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
 45120  	c := &ProjectsLocationsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45121  	c.name = name
 45122  	c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
 45123  	return c
 45124  }
 45125  
 45126  // Fields allows partial responses to be retrieved. See
 45127  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45128  // details.
 45129  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
 45130  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45131  	return c
 45132  }
 45133  
 45134  // Context sets the context to be used in this call's Do method.
 45135  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
 45136  	c.ctx_ = ctx
 45137  	return c
 45138  }
 45139  
 45140  // Header returns a http.Header that can be modified by the caller to add
 45141  // headers to the request.
 45142  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
 45143  	if c.header_ == nil {
 45144  		c.header_ = make(http.Header)
 45145  	}
 45146  	return c.header_
 45147  }
 45148  
 45149  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
 45150  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45151  	var body io.Reader = nil
 45152  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
 45153  	if err != nil {
 45154  		return nil, err
 45155  	}
 45156  	c.urlParams_.Set("alt", alt)
 45157  	c.urlParams_.Set("prettyPrint", "false")
 45158  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
 45159  	urls += "?" + c.urlParams_.Encode()
 45160  	req, err := http.NewRequest("POST", urls, body)
 45161  	if err != nil {
 45162  		return nil, err
 45163  	}
 45164  	req.Header = reqHeaders
 45165  	googleapi.Expand(req.URL, map[string]string{
 45166  		"name": c.name,
 45167  	})
 45168  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45169  }
 45170  
 45171  // Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call.
 45172  // Any non-2xx status code is an error. Response headers are in either
 45173  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 45174  // returned at all) in error.(*googleapi.Error).Header. Use
 45175  // googleapi.IsNotModified to check whether the returned error was because
 45176  // http.StatusNotModified was returned.
 45177  func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 45178  	gensupport.SetOptions(c.urlParams_, opts...)
 45179  	res, err := c.doRequest("json")
 45180  	if res != nil && res.StatusCode == http.StatusNotModified {
 45181  		if res.Body != nil {
 45182  			res.Body.Close()
 45183  		}
 45184  		return nil, gensupport.WrapError(&googleapi.Error{
 45185  			Code:   res.StatusCode,
 45186  			Header: res.Header,
 45187  		})
 45188  	}
 45189  	if err != nil {
 45190  		return nil, err
 45191  	}
 45192  	defer googleapi.CloseBody(res)
 45193  	if err := googleapi.CheckResponse(res); err != nil {
 45194  		return nil, gensupport.WrapError(err)
 45195  	}
 45196  	ret := &GoogleLongrunningOperation{
 45197  		ServerResponse: googleapi.ServerResponse{
 45198  			Header:         res.Header,
 45199  			HTTPStatusCode: res.StatusCode,
 45200  		},
 45201  	}
 45202  	target := &ret
 45203  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45204  		return nil, err
 45205  	}
 45206  	return ret, nil
 45207  }
 45208  
 45209  type ProjectsLocationsOperationsCancelCall struct {
 45210  	s          *Service
 45211  	name       string
 45212  	urlParams_ gensupport.URLParams
 45213  	ctx_       context.Context
 45214  	header_    http.Header
 45215  }
 45216  
 45217  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 45218  // server makes a best effort to cancel the operation, but success is not
 45219  // guaranteed. If the server doesn't support this method, it returns
 45220  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 45221  // other methods to check whether the cancellation succeeded or whether the
 45222  // operation completed despite cancellation. On successful cancellation, the
 45223  // operation is not deleted; instead, it becomes an operation with an
 45224  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 45225  // `Code.CANCELLED`.
 45226  //
 45227  // - name: The name of the operation resource to be cancelled.
 45228  func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
 45229  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45230  	c.name = name
 45231  	return c
 45232  }
 45233  
 45234  // Fields allows partial responses to be retrieved. See
 45235  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45236  // details.
 45237  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 45238  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45239  	return c
 45240  }
 45241  
 45242  // Context sets the context to be used in this call's Do method.
 45243  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 45244  	c.ctx_ = ctx
 45245  	return c
 45246  }
 45247  
 45248  // Header returns a http.Header that can be modified by the caller to add
 45249  // headers to the request.
 45250  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 45251  	if c.header_ == nil {
 45252  		c.header_ = make(http.Header)
 45253  	}
 45254  	return c.header_
 45255  }
 45256  
 45257  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 45258  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45259  	var body io.Reader = nil
 45260  	c.urlParams_.Set("alt", alt)
 45261  	c.urlParams_.Set("prettyPrint", "false")
 45262  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
 45263  	urls += "?" + c.urlParams_.Encode()
 45264  	req, err := http.NewRequest("POST", urls, body)
 45265  	if err != nil {
 45266  		return nil, err
 45267  	}
 45268  	req.Header = reqHeaders
 45269  	googleapi.Expand(req.URL, map[string]string{
 45270  		"name": c.name,
 45271  	})
 45272  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45273  }
 45274  
 45275  // Do executes the "dialogflow.projects.locations.operations.cancel" call.
 45276  // Any non-2xx status code is an error. Response headers are in either
 45277  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 45278  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 45279  // check whether the returned error was because http.StatusNotModified was
 45280  // returned.
 45281  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 45282  	gensupport.SetOptions(c.urlParams_, opts...)
 45283  	res, err := c.doRequest("json")
 45284  	if res != nil && res.StatusCode == http.StatusNotModified {
 45285  		if res.Body != nil {
 45286  			res.Body.Close()
 45287  		}
 45288  		return nil, gensupport.WrapError(&googleapi.Error{
 45289  			Code:   res.StatusCode,
 45290  			Header: res.Header,
 45291  		})
 45292  	}
 45293  	if err != nil {
 45294  		return nil, err
 45295  	}
 45296  	defer googleapi.CloseBody(res)
 45297  	if err := googleapi.CheckResponse(res); err != nil {
 45298  		return nil, gensupport.WrapError(err)
 45299  	}
 45300  	ret := &GoogleProtobufEmpty{
 45301  		ServerResponse: googleapi.ServerResponse{
 45302  			Header:         res.Header,
 45303  			HTTPStatusCode: res.StatusCode,
 45304  		},
 45305  	}
 45306  	target := &ret
 45307  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45308  		return nil, err
 45309  	}
 45310  	return ret, nil
 45311  }
 45312  
 45313  type ProjectsLocationsOperationsGetCall struct {
 45314  	s            *Service
 45315  	name         string
 45316  	urlParams_   gensupport.URLParams
 45317  	ifNoneMatch_ string
 45318  	ctx_         context.Context
 45319  	header_      http.Header
 45320  }
 45321  
 45322  // Get: Gets the latest state of a long-running operation. Clients can use this
 45323  // method to poll the operation result at intervals as recommended by the API
 45324  // service.
 45325  //
 45326  // - name: The name of the operation resource.
 45327  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 45328  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45329  	c.name = name
 45330  	return c
 45331  }
 45332  
 45333  // Fields allows partial responses to be retrieved. See
 45334  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45335  // details.
 45336  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 45337  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45338  	return c
 45339  }
 45340  
 45341  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45342  // object's ETag matches the given value. This is useful for getting updates
 45343  // only after the object has changed since the last request.
 45344  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 45345  	c.ifNoneMatch_ = entityTag
 45346  	return c
 45347  }
 45348  
 45349  // Context sets the context to be used in this call's Do method.
 45350  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 45351  	c.ctx_ = ctx
 45352  	return c
 45353  }
 45354  
 45355  // Header returns a http.Header that can be modified by the caller to add
 45356  // headers to the request.
 45357  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 45358  	if c.header_ == nil {
 45359  		c.header_ = make(http.Header)
 45360  	}
 45361  	return c.header_
 45362  }
 45363  
 45364  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 45365  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45366  	if c.ifNoneMatch_ != "" {
 45367  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45368  	}
 45369  	var body io.Reader = nil
 45370  	c.urlParams_.Set("alt", alt)
 45371  	c.urlParams_.Set("prettyPrint", "false")
 45372  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 45373  	urls += "?" + c.urlParams_.Encode()
 45374  	req, err := http.NewRequest("GET", urls, body)
 45375  	if err != nil {
 45376  		return nil, err
 45377  	}
 45378  	req.Header = reqHeaders
 45379  	googleapi.Expand(req.URL, map[string]string{
 45380  		"name": c.name,
 45381  	})
 45382  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45383  }
 45384  
 45385  // Do executes the "dialogflow.projects.locations.operations.get" call.
 45386  // Any non-2xx status code is an error. Response headers are in either
 45387  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 45388  // returned at all) in error.(*googleapi.Error).Header. Use
 45389  // googleapi.IsNotModified to check whether the returned error was because
 45390  // http.StatusNotModified was returned.
 45391  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 45392  	gensupport.SetOptions(c.urlParams_, opts...)
 45393  	res, err := c.doRequest("json")
 45394  	if res != nil && res.StatusCode == http.StatusNotModified {
 45395  		if res.Body != nil {
 45396  			res.Body.Close()
 45397  		}
 45398  		return nil, gensupport.WrapError(&googleapi.Error{
 45399  			Code:   res.StatusCode,
 45400  			Header: res.Header,
 45401  		})
 45402  	}
 45403  	if err != nil {
 45404  		return nil, err
 45405  	}
 45406  	defer googleapi.CloseBody(res)
 45407  	if err := googleapi.CheckResponse(res); err != nil {
 45408  		return nil, gensupport.WrapError(err)
 45409  	}
 45410  	ret := &GoogleLongrunningOperation{
 45411  		ServerResponse: googleapi.ServerResponse{
 45412  			Header:         res.Header,
 45413  			HTTPStatusCode: res.StatusCode,
 45414  		},
 45415  	}
 45416  	target := &ret
 45417  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45418  		return nil, err
 45419  	}
 45420  	return ret, nil
 45421  }
 45422  
 45423  type ProjectsLocationsOperationsListCall struct {
 45424  	s            *Service
 45425  	name         string
 45426  	urlParams_   gensupport.URLParams
 45427  	ifNoneMatch_ string
 45428  	ctx_         context.Context
 45429  	header_      http.Header
 45430  }
 45431  
 45432  // List: Lists operations that match the specified filter in the request. If
 45433  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 45434  //
 45435  // - name: The name of the operation's parent resource.
 45436  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 45437  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45438  	c.name = name
 45439  	return c
 45440  }
 45441  
 45442  // Filter sets the optional parameter "filter": The standard list filter.
 45443  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 45444  	c.urlParams_.Set("filter", filter)
 45445  	return c
 45446  }
 45447  
 45448  // PageSize sets the optional parameter "pageSize": The standard list page
 45449  // size.
 45450  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 45451  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 45452  	return c
 45453  }
 45454  
 45455  // PageToken sets the optional parameter "pageToken": The standard list page
 45456  // token.
 45457  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 45458  	c.urlParams_.Set("pageToken", pageToken)
 45459  	return c
 45460  }
 45461  
 45462  // Fields allows partial responses to be retrieved. See
 45463  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45464  // details.
 45465  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 45466  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45467  	return c
 45468  }
 45469  
 45470  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45471  // object's ETag matches the given value. This is useful for getting updates
 45472  // only after the object has changed since the last request.
 45473  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 45474  	c.ifNoneMatch_ = entityTag
 45475  	return c
 45476  }
 45477  
 45478  // Context sets the context to be used in this call's Do method.
 45479  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 45480  	c.ctx_ = ctx
 45481  	return c
 45482  }
 45483  
 45484  // Header returns a http.Header that can be modified by the caller to add
 45485  // headers to the request.
 45486  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 45487  	if c.header_ == nil {
 45488  		c.header_ = make(http.Header)
 45489  	}
 45490  	return c.header_
 45491  }
 45492  
 45493  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 45494  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45495  	if c.ifNoneMatch_ != "" {
 45496  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45497  	}
 45498  	var body io.Reader = nil
 45499  	c.urlParams_.Set("alt", alt)
 45500  	c.urlParams_.Set("prettyPrint", "false")
 45501  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
 45502  	urls += "?" + c.urlParams_.Encode()
 45503  	req, err := http.NewRequest("GET", urls, body)
 45504  	if err != nil {
 45505  		return nil, err
 45506  	}
 45507  	req.Header = reqHeaders
 45508  	googleapi.Expand(req.URL, map[string]string{
 45509  		"name": c.name,
 45510  	})
 45511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45512  }
 45513  
 45514  // Do executes the "dialogflow.projects.locations.operations.list" call.
 45515  // Any non-2xx status code is an error. Response headers are in either
 45516  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 45517  // response was returned at all) in error.(*googleapi.Error).Header. Use
 45518  // googleapi.IsNotModified to check whether the returned error was because
 45519  // http.StatusNotModified was returned.
 45520  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 45521  	gensupport.SetOptions(c.urlParams_, opts...)
 45522  	res, err := c.doRequest("json")
 45523  	if res != nil && res.StatusCode == http.StatusNotModified {
 45524  		if res.Body != nil {
 45525  			res.Body.Close()
 45526  		}
 45527  		return nil, gensupport.WrapError(&googleapi.Error{
 45528  			Code:   res.StatusCode,
 45529  			Header: res.Header,
 45530  		})
 45531  	}
 45532  	if err != nil {
 45533  		return nil, err
 45534  	}
 45535  	defer googleapi.CloseBody(res)
 45536  	if err := googleapi.CheckResponse(res); err != nil {
 45537  		return nil, gensupport.WrapError(err)
 45538  	}
 45539  	ret := &GoogleLongrunningListOperationsResponse{
 45540  		ServerResponse: googleapi.ServerResponse{
 45541  			Header:         res.Header,
 45542  			HTTPStatusCode: res.StatusCode,
 45543  		},
 45544  	}
 45545  	target := &ret
 45546  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45547  		return nil, err
 45548  	}
 45549  	return ret, nil
 45550  }
 45551  
 45552  // Pages invokes f for each page of results.
 45553  // A non-nil error returned from f will halt the iteration.
 45554  // The provided context supersedes any context provided to the Context method.
 45555  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 45556  	c.ctx_ = ctx
 45557  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 45558  	for {
 45559  		x, err := c.Do()
 45560  		if err != nil {
 45561  			return err
 45562  		}
 45563  		if err := f(x); err != nil {
 45564  			return err
 45565  		}
 45566  		if x.NextPageToken == "" {
 45567  			return nil
 45568  		}
 45569  		c.PageToken(x.NextPageToken)
 45570  	}
 45571  }
 45572  
 45573  type ProjectsLocationsSuggestionsGenerateStatelessSummaryCall struct {
 45574  	s                                                           *Service
 45575  	parent                                                      string
 45576  	googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
 45577  	urlParams_                                                  gensupport.URLParams
 45578  	ctx_                                                        context.Context
 45579  	header_                                                     http.Header
 45580  }
 45581  
 45582  // GenerateStatelessSummary: Generates and returns a summary for a conversation
 45583  // that does not have a resource created for it.
 45584  //
 45585  //   - parent: The parent resource to charge for the Summary's generation.
 45586  //     Format: `projects//locations/`.
 45587  func (r *ProjectsLocationsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
 45588  	c := &ProjectsLocationsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45589  	c.parent = parent
 45590  	c.googleclouddialogflowv2beta1generatestatelesssummaryrequest = googleclouddialogflowv2beta1generatestatelesssummaryrequest
 45591  	return c
 45592  }
 45593  
 45594  // Fields allows partial responses to be retrieved. See
 45595  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45596  // details.
 45597  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
 45598  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45599  	return c
 45600  }
 45601  
 45602  // Context sets the context to be used in this call's Do method.
 45603  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
 45604  	c.ctx_ = ctx
 45605  	return c
 45606  }
 45607  
 45608  // Header returns a http.Header that can be modified by the caller to add
 45609  // headers to the request.
 45610  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
 45611  	if c.header_ == nil {
 45612  		c.header_ = make(http.Header)
 45613  	}
 45614  	return c.header_
 45615  }
 45616  
 45617  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
 45618  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45619  	var body io.Reader = nil
 45620  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1generatestatelesssummaryrequest)
 45621  	if err != nil {
 45622  		return nil, err
 45623  	}
 45624  	c.urlParams_.Set("alt", alt)
 45625  	c.urlParams_.Set("prettyPrint", "false")
 45626  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:generateStatelessSummary")
 45627  	urls += "?" + c.urlParams_.Encode()
 45628  	req, err := http.NewRequest("POST", urls, body)
 45629  	if err != nil {
 45630  		return nil, err
 45631  	}
 45632  	req.Header = reqHeaders
 45633  	googleapi.Expand(req.URL, map[string]string{
 45634  		"parent": c.parent,
 45635  	})
 45636  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45637  }
 45638  
 45639  // Do executes the "dialogflow.projects.locations.suggestions.generateStatelessSummary" call.
 45640  // Any non-2xx status code is an error. Response headers are in either
 45641  // *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse.ServerResponse.
 45642  // Header or (if a response was returned at all) in
 45643  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 45644  // whether the returned error was because http.StatusNotModified was returned.
 45645  func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse, error) {
 45646  	gensupport.SetOptions(c.urlParams_, opts...)
 45647  	res, err := c.doRequest("json")
 45648  	if res != nil && res.StatusCode == http.StatusNotModified {
 45649  		if res.Body != nil {
 45650  			res.Body.Close()
 45651  		}
 45652  		return nil, gensupport.WrapError(&googleapi.Error{
 45653  			Code:   res.StatusCode,
 45654  			Header: res.Header,
 45655  		})
 45656  	}
 45657  	if err != nil {
 45658  		return nil, err
 45659  	}
 45660  	defer googleapi.CloseBody(res)
 45661  	if err := googleapi.CheckResponse(res); err != nil {
 45662  		return nil, gensupport.WrapError(err)
 45663  	}
 45664  	ret := &GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse{
 45665  		ServerResponse: googleapi.ServerResponse{
 45666  			Header:         res.Header,
 45667  			HTTPStatusCode: res.StatusCode,
 45668  		},
 45669  	}
 45670  	target := &ret
 45671  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45672  		return nil, err
 45673  	}
 45674  	return ret, nil
 45675  }
 45676  
 45677  type ProjectsLocationsSuggestionsSearchKnowledgeCall struct {
 45678  	s                                                  *Service
 45679  	parent                                             string
 45680  	googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
 45681  	urlParams_                                         gensupport.URLParams
 45682  	ctx_                                               context.Context
 45683  	header_                                            http.Header
 45684  }
 45685  
 45686  // SearchKnowledge: Get answers for the given query based on knowledge
 45687  // documents.
 45688  //
 45689  //   - parent: The parent resource contains the conversation profile Format:
 45690  //     'projects/' or `projects//locations/`.
 45691  func (r *ProjectsLocationsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
 45692  	c := &ProjectsLocationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45693  	c.parent = parent
 45694  	c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
 45695  	return c
 45696  }
 45697  
 45698  // Fields allows partial responses to be retrieved. See
 45699  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45700  // details.
 45701  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
 45702  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45703  	return c
 45704  }
 45705  
 45706  // Context sets the context to be used in this call's Do method.
 45707  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
 45708  	c.ctx_ = ctx
 45709  	return c
 45710  }
 45711  
 45712  // Header returns a http.Header that can be modified by the caller to add
 45713  // headers to the request.
 45714  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Header() http.Header {
 45715  	if c.header_ == nil {
 45716  		c.header_ = make(http.Header)
 45717  	}
 45718  	return c.header_
 45719  }
 45720  
 45721  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 45722  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 45723  	var body io.Reader = nil
 45724  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
 45725  	if err != nil {
 45726  		return nil, err
 45727  	}
 45728  	c.urlParams_.Set("alt", alt)
 45729  	c.urlParams_.Set("prettyPrint", "false")
 45730  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:searchKnowledge")
 45731  	urls += "?" + c.urlParams_.Encode()
 45732  	req, err := http.NewRequest("POST", urls, body)
 45733  	if err != nil {
 45734  		return nil, err
 45735  	}
 45736  	req.Header = reqHeaders
 45737  	googleapi.Expand(req.URL, map[string]string{
 45738  		"parent": c.parent,
 45739  	})
 45740  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45741  }
 45742  
 45743  // Do executes the "dialogflow.projects.locations.suggestions.searchKnowledge" call.
 45744  // Any non-2xx status code is an error. Response headers are in either
 45745  // *GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Header
 45746  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 45747  // Use googleapi.IsNotModified to check whether the returned error was because
 45748  // http.StatusNotModified was returned.
 45749  func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
 45750  	gensupport.SetOptions(c.urlParams_, opts...)
 45751  	res, err := c.doRequest("json")
 45752  	if res != nil && res.StatusCode == http.StatusNotModified {
 45753  		if res.Body != nil {
 45754  			res.Body.Close()
 45755  		}
 45756  		return nil, gensupport.WrapError(&googleapi.Error{
 45757  			Code:   res.StatusCode,
 45758  			Header: res.Header,
 45759  		})
 45760  	}
 45761  	if err != nil {
 45762  		return nil, err
 45763  	}
 45764  	defer googleapi.CloseBody(res)
 45765  	if err := googleapi.CheckResponse(res); err != nil {
 45766  		return nil, gensupport.WrapError(err)
 45767  	}
 45768  	ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
 45769  		ServerResponse: googleapi.ServerResponse{
 45770  			Header:         res.Header,
 45771  			HTTPStatusCode: res.StatusCode,
 45772  		},
 45773  	}
 45774  	target := &ret
 45775  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45776  		return nil, err
 45777  	}
 45778  	return ret, nil
 45779  }
 45780  
 45781  type ProjectsOperationsCancelCall struct {
 45782  	s          *Service
 45783  	name       string
 45784  	urlParams_ gensupport.URLParams
 45785  	ctx_       context.Context
 45786  	header_    http.Header
 45787  }
 45788  
 45789  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 45790  // server makes a best effort to cancel the operation, but success is not
 45791  // guaranteed. If the server doesn't support this method, it returns
 45792  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 45793  // other methods to check whether the cancellation succeeded or whether the
 45794  // operation completed despite cancellation. On successful cancellation, the
 45795  // operation is not deleted; instead, it becomes an operation with an
 45796  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 45797  // `Code.CANCELLED`.
 45798  //
 45799  // - name: The name of the operation resource to be cancelled.
 45800  func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
 45801  	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45802  	c.name = name
 45803  	return c
 45804  }
 45805  
 45806  // Fields allows partial responses to be retrieved. See
 45807  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45808  // details.
 45809  func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
 45810  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45811  	return c
 45812  }
 45813  
 45814  // Context sets the context to be used in this call's Do method.
 45815  func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
 45816  	c.ctx_ = ctx
 45817  	return c
 45818  }
 45819  
 45820  // Header returns a http.Header that can be modified by the caller to add
 45821  // headers to the request.
 45822  func (c *ProjectsOperationsCancelCall) Header() http.Header {
 45823  	if c.header_ == nil {
 45824  		c.header_ = make(http.Header)
 45825  	}
 45826  	return c.header_
 45827  }
 45828  
 45829  func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 45830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45831  	var body io.Reader = nil
 45832  	c.urlParams_.Set("alt", alt)
 45833  	c.urlParams_.Set("prettyPrint", "false")
 45834  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
 45835  	urls += "?" + c.urlParams_.Encode()
 45836  	req, err := http.NewRequest("POST", urls, body)
 45837  	if err != nil {
 45838  		return nil, err
 45839  	}
 45840  	req.Header = reqHeaders
 45841  	googleapi.Expand(req.URL, map[string]string{
 45842  		"name": c.name,
 45843  	})
 45844  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45845  }
 45846  
 45847  // Do executes the "dialogflow.projects.operations.cancel" call.
 45848  // Any non-2xx status code is an error. Response headers are in either
 45849  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 45850  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 45851  // check whether the returned error was because http.StatusNotModified was
 45852  // returned.
 45853  func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 45854  	gensupport.SetOptions(c.urlParams_, opts...)
 45855  	res, err := c.doRequest("json")
 45856  	if res != nil && res.StatusCode == http.StatusNotModified {
 45857  		if res.Body != nil {
 45858  			res.Body.Close()
 45859  		}
 45860  		return nil, gensupport.WrapError(&googleapi.Error{
 45861  			Code:   res.StatusCode,
 45862  			Header: res.Header,
 45863  		})
 45864  	}
 45865  	if err != nil {
 45866  		return nil, err
 45867  	}
 45868  	defer googleapi.CloseBody(res)
 45869  	if err := googleapi.CheckResponse(res); err != nil {
 45870  		return nil, gensupport.WrapError(err)
 45871  	}
 45872  	ret := &GoogleProtobufEmpty{
 45873  		ServerResponse: googleapi.ServerResponse{
 45874  			Header:         res.Header,
 45875  			HTTPStatusCode: res.StatusCode,
 45876  		},
 45877  	}
 45878  	target := &ret
 45879  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45880  		return nil, err
 45881  	}
 45882  	return ret, nil
 45883  }
 45884  
 45885  type ProjectsOperationsGetCall struct {
 45886  	s            *Service
 45887  	name         string
 45888  	urlParams_   gensupport.URLParams
 45889  	ifNoneMatch_ string
 45890  	ctx_         context.Context
 45891  	header_      http.Header
 45892  }
 45893  
 45894  // Get: Gets the latest state of a long-running operation. Clients can use this
 45895  // method to poll the operation result at intervals as recommended by the API
 45896  // service.
 45897  //
 45898  // - name: The name of the operation resource.
 45899  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 45900  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 45901  	c.name = name
 45902  	return c
 45903  }
 45904  
 45905  // Fields allows partial responses to be retrieved. See
 45906  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 45907  // details.
 45908  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 45909  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 45910  	return c
 45911  }
 45912  
 45913  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 45914  // object's ETag matches the given value. This is useful for getting updates
 45915  // only after the object has changed since the last request.
 45916  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 45917  	c.ifNoneMatch_ = entityTag
 45918  	return c
 45919  }
 45920  
 45921  // Context sets the context to be used in this call's Do method.
 45922  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 45923  	c.ctx_ = ctx
 45924  	return c
 45925  }
 45926  
 45927  // Header returns a http.Header that can be modified by the caller to add
 45928  // headers to the request.
 45929  func (c *ProjectsOperationsGetCall) Header() http.Header {
 45930  	if c.header_ == nil {
 45931  		c.header_ = make(http.Header)
 45932  	}
 45933  	return c.header_
 45934  }
 45935  
 45936  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 45937  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 45938  	if c.ifNoneMatch_ != "" {
 45939  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 45940  	}
 45941  	var body io.Reader = nil
 45942  	c.urlParams_.Set("alt", alt)
 45943  	c.urlParams_.Set("prettyPrint", "false")
 45944  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
 45945  	urls += "?" + c.urlParams_.Encode()
 45946  	req, err := http.NewRequest("GET", urls, body)
 45947  	if err != nil {
 45948  		return nil, err
 45949  	}
 45950  	req.Header = reqHeaders
 45951  	googleapi.Expand(req.URL, map[string]string{
 45952  		"name": c.name,
 45953  	})
 45954  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 45955  }
 45956  
 45957  // Do executes the "dialogflow.projects.operations.get" call.
 45958  // Any non-2xx status code is an error. Response headers are in either
 45959  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 45960  // returned at all) in error.(*googleapi.Error).Header. Use
 45961  // googleapi.IsNotModified to check whether the returned error was because
 45962  // http.StatusNotModified was returned.
 45963  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 45964  	gensupport.SetOptions(c.urlParams_, opts...)
 45965  	res, err := c.doRequest("json")
 45966  	if res != nil && res.StatusCode == http.StatusNotModified {
 45967  		if res.Body != nil {
 45968  			res.Body.Close()
 45969  		}
 45970  		return nil, gensupport.WrapError(&googleapi.Error{
 45971  			Code:   res.StatusCode,
 45972  			Header: res.Header,
 45973  		})
 45974  	}
 45975  	if err != nil {
 45976  		return nil, err
 45977  	}
 45978  	defer googleapi.CloseBody(res)
 45979  	if err := googleapi.CheckResponse(res); err != nil {
 45980  		return nil, gensupport.WrapError(err)
 45981  	}
 45982  	ret := &GoogleLongrunningOperation{
 45983  		ServerResponse: googleapi.ServerResponse{
 45984  			Header:         res.Header,
 45985  			HTTPStatusCode: res.StatusCode,
 45986  		},
 45987  	}
 45988  	target := &ret
 45989  	if err := gensupport.DecodeResponse(target, res); err != nil {
 45990  		return nil, err
 45991  	}
 45992  	return ret, nil
 45993  }
 45994  
 45995  type ProjectsOperationsListCall struct {
 45996  	s            *Service
 45997  	name         string
 45998  	urlParams_   gensupport.URLParams
 45999  	ifNoneMatch_ string
 46000  	ctx_         context.Context
 46001  	header_      http.Header
 46002  }
 46003  
 46004  // List: Lists operations that match the specified filter in the request. If
 46005  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 46006  //
 46007  // - name: The name of the operation's parent resource.
 46008  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 46009  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46010  	c.name = name
 46011  	return c
 46012  }
 46013  
 46014  // Filter sets the optional parameter "filter": The standard list filter.
 46015  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 46016  	c.urlParams_.Set("filter", filter)
 46017  	return c
 46018  }
 46019  
 46020  // PageSize sets the optional parameter "pageSize": The standard list page
 46021  // size.
 46022  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 46023  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 46024  	return c
 46025  }
 46026  
 46027  // PageToken sets the optional parameter "pageToken": The standard list page
 46028  // token.
 46029  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 46030  	c.urlParams_.Set("pageToken", pageToken)
 46031  	return c
 46032  }
 46033  
 46034  // Fields allows partial responses to be retrieved. See
 46035  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46036  // details.
 46037  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 46038  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46039  	return c
 46040  }
 46041  
 46042  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 46043  // object's ETag matches the given value. This is useful for getting updates
 46044  // only after the object has changed since the last request.
 46045  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 46046  	c.ifNoneMatch_ = entityTag
 46047  	return c
 46048  }
 46049  
 46050  // Context sets the context to be used in this call's Do method.
 46051  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 46052  	c.ctx_ = ctx
 46053  	return c
 46054  }
 46055  
 46056  // Header returns a http.Header that can be modified by the caller to add
 46057  // headers to the request.
 46058  func (c *ProjectsOperationsListCall) Header() http.Header {
 46059  	if c.header_ == nil {
 46060  		c.header_ = make(http.Header)
 46061  	}
 46062  	return c.header_
 46063  }
 46064  
 46065  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 46066  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 46067  	if c.ifNoneMatch_ != "" {
 46068  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 46069  	}
 46070  	var body io.Reader = nil
 46071  	c.urlParams_.Set("alt", alt)
 46072  	c.urlParams_.Set("prettyPrint", "false")
 46073  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
 46074  	urls += "?" + c.urlParams_.Encode()
 46075  	req, err := http.NewRequest("GET", urls, body)
 46076  	if err != nil {
 46077  		return nil, err
 46078  	}
 46079  	req.Header = reqHeaders
 46080  	googleapi.Expand(req.URL, map[string]string{
 46081  		"name": c.name,
 46082  	})
 46083  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46084  }
 46085  
 46086  // Do executes the "dialogflow.projects.operations.list" call.
 46087  // Any non-2xx status code is an error. Response headers are in either
 46088  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 46089  // response was returned at all) in error.(*googleapi.Error).Header. Use
 46090  // googleapi.IsNotModified to check whether the returned error was because
 46091  // http.StatusNotModified was returned.
 46092  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 46093  	gensupport.SetOptions(c.urlParams_, opts...)
 46094  	res, err := c.doRequest("json")
 46095  	if res != nil && res.StatusCode == http.StatusNotModified {
 46096  		if res.Body != nil {
 46097  			res.Body.Close()
 46098  		}
 46099  		return nil, gensupport.WrapError(&googleapi.Error{
 46100  			Code:   res.StatusCode,
 46101  			Header: res.Header,
 46102  		})
 46103  	}
 46104  	if err != nil {
 46105  		return nil, err
 46106  	}
 46107  	defer googleapi.CloseBody(res)
 46108  	if err := googleapi.CheckResponse(res); err != nil {
 46109  		return nil, gensupport.WrapError(err)
 46110  	}
 46111  	ret := &GoogleLongrunningListOperationsResponse{
 46112  		ServerResponse: googleapi.ServerResponse{
 46113  			Header:         res.Header,
 46114  			HTTPStatusCode: res.StatusCode,
 46115  		},
 46116  	}
 46117  	target := &ret
 46118  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46119  		return nil, err
 46120  	}
 46121  	return ret, nil
 46122  }
 46123  
 46124  // Pages invokes f for each page of results.
 46125  // A non-nil error returned from f will halt the iteration.
 46126  // The provided context supersedes any context provided to the Context method.
 46127  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 46128  	c.ctx_ = ctx
 46129  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 46130  	for {
 46131  		x, err := c.Do()
 46132  		if err != nil {
 46133  			return err
 46134  		}
 46135  		if err := f(x); err != nil {
 46136  			return err
 46137  		}
 46138  		if x.NextPageToken == "" {
 46139  			return nil
 46140  		}
 46141  		c.PageToken(x.NextPageToken)
 46142  	}
 46143  }
 46144  
 46145  type ProjectsSuggestionsGenerateStatelessSummaryCall struct {
 46146  	s                                                           *Service
 46147  	parent                                                      string
 46148  	googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
 46149  	urlParams_                                                  gensupport.URLParams
 46150  	ctx_                                                        context.Context
 46151  	header_                                                     http.Header
 46152  }
 46153  
 46154  // GenerateStatelessSummary: Generates and returns a summary for a conversation
 46155  // that does not have a resource created for it.
 46156  //
 46157  //   - parent: The parent resource to charge for the Summary's generation.
 46158  //     Format: `projects//locations/`.
 46159  func (r *ProjectsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) *ProjectsSuggestionsGenerateStatelessSummaryCall {
 46160  	c := &ProjectsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46161  	c.parent = parent
 46162  	c.googleclouddialogflowv2beta1generatestatelesssummaryrequest = googleclouddialogflowv2beta1generatestatelesssummaryrequest
 46163  	return c
 46164  }
 46165  
 46166  // Fields allows partial responses to be retrieved. See
 46167  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46168  // details.
 46169  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsGenerateStatelessSummaryCall {
 46170  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46171  	return c
 46172  }
 46173  
 46174  // Context sets the context to be used in this call's Do method.
 46175  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsSuggestionsGenerateStatelessSummaryCall {
 46176  	c.ctx_ = ctx
 46177  	return c
 46178  }
 46179  
 46180  // Header returns a http.Header that can be modified by the caller to add
 46181  // headers to the request.
 46182  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
 46183  	if c.header_ == nil {
 46184  		c.header_ = make(http.Header)
 46185  	}
 46186  	return c.header_
 46187  }
 46188  
 46189  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
 46190  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46191  	var body io.Reader = nil
 46192  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1generatestatelesssummaryrequest)
 46193  	if err != nil {
 46194  		return nil, err
 46195  	}
 46196  	c.urlParams_.Set("alt", alt)
 46197  	c.urlParams_.Set("prettyPrint", "false")
 46198  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:generateStatelessSummary")
 46199  	urls += "?" + c.urlParams_.Encode()
 46200  	req, err := http.NewRequest("POST", urls, body)
 46201  	if err != nil {
 46202  		return nil, err
 46203  	}
 46204  	req.Header = reqHeaders
 46205  	googleapi.Expand(req.URL, map[string]string{
 46206  		"parent": c.parent,
 46207  	})
 46208  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46209  }
 46210  
 46211  // Do executes the "dialogflow.projects.suggestions.generateStatelessSummary" call.
 46212  // Any non-2xx status code is an error. Response headers are in either
 46213  // *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse.ServerResponse.
 46214  // Header or (if a response was returned at all) in
 46215  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 46216  // whether the returned error was because http.StatusNotModified was returned.
 46217  func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse, error) {
 46218  	gensupport.SetOptions(c.urlParams_, opts...)
 46219  	res, err := c.doRequest("json")
 46220  	if res != nil && res.StatusCode == http.StatusNotModified {
 46221  		if res.Body != nil {
 46222  			res.Body.Close()
 46223  		}
 46224  		return nil, gensupport.WrapError(&googleapi.Error{
 46225  			Code:   res.StatusCode,
 46226  			Header: res.Header,
 46227  		})
 46228  	}
 46229  	if err != nil {
 46230  		return nil, err
 46231  	}
 46232  	defer googleapi.CloseBody(res)
 46233  	if err := googleapi.CheckResponse(res); err != nil {
 46234  		return nil, gensupport.WrapError(err)
 46235  	}
 46236  	ret := &GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse{
 46237  		ServerResponse: googleapi.ServerResponse{
 46238  			Header:         res.Header,
 46239  			HTTPStatusCode: res.StatusCode,
 46240  		},
 46241  	}
 46242  	target := &ret
 46243  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46244  		return nil, err
 46245  	}
 46246  	return ret, nil
 46247  }
 46248  
 46249  type ProjectsSuggestionsSearchKnowledgeCall struct {
 46250  	s                                                  *Service
 46251  	parent                                             string
 46252  	googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
 46253  	urlParams_                                         gensupport.URLParams
 46254  	ctx_                                               context.Context
 46255  	header_                                            http.Header
 46256  }
 46257  
 46258  // SearchKnowledge: Get answers for the given query based on knowledge
 46259  // documents.
 46260  //
 46261  //   - parent: The parent resource contains the conversation profile Format:
 46262  //     'projects/' or `projects//locations/`.
 46263  func (r *ProjectsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsSuggestionsSearchKnowledgeCall {
 46264  	c := &ProjectsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 46265  	c.parent = parent
 46266  	c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
 46267  	return c
 46268  }
 46269  
 46270  // Fields allows partial responses to be retrieved. See
 46271  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 46272  // details.
 46273  func (c *ProjectsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsSearchKnowledgeCall {
 46274  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 46275  	return c
 46276  }
 46277  
 46278  // Context sets the context to be used in this call's Do method.
 46279  func (c *ProjectsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsSuggestionsSearchKnowledgeCall {
 46280  	c.ctx_ = ctx
 46281  	return c
 46282  }
 46283  
 46284  // Header returns a http.Header that can be modified by the caller to add
 46285  // headers to the request.
 46286  func (c *ProjectsSuggestionsSearchKnowledgeCall) Header() http.Header {
 46287  	if c.header_ == nil {
 46288  		c.header_ = make(http.Header)
 46289  	}
 46290  	return c.header_
 46291  }
 46292  
 46293  func (c *ProjectsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
 46294  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 46295  	var body io.Reader = nil
 46296  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
 46297  	if err != nil {
 46298  		return nil, err
 46299  	}
 46300  	c.urlParams_.Set("alt", alt)
 46301  	c.urlParams_.Set("prettyPrint", "false")
 46302  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:searchKnowledge")
 46303  	urls += "?" + c.urlParams_.Encode()
 46304  	req, err := http.NewRequest("POST", urls, body)
 46305  	if err != nil {
 46306  		return nil, err
 46307  	}
 46308  	req.Header = reqHeaders
 46309  	googleapi.Expand(req.URL, map[string]string{
 46310  		"parent": c.parent,
 46311  	})
 46312  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 46313  }
 46314  
 46315  // Do executes the "dialogflow.projects.suggestions.searchKnowledge" call.
 46316  // Any non-2xx status code is an error. Response headers are in either
 46317  // *GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Header
 46318  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 46319  // Use googleapi.IsNotModified to check whether the returned error was because
 46320  // http.StatusNotModified was returned.
 46321  func (c *ProjectsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
 46322  	gensupport.SetOptions(c.urlParams_, opts...)
 46323  	res, err := c.doRequest("json")
 46324  	if res != nil && res.StatusCode == http.StatusNotModified {
 46325  		if res.Body != nil {
 46326  			res.Body.Close()
 46327  		}
 46328  		return nil, gensupport.WrapError(&googleapi.Error{
 46329  			Code:   res.StatusCode,
 46330  			Header: res.Header,
 46331  		})
 46332  	}
 46333  	if err != nil {
 46334  		return nil, err
 46335  	}
 46336  	defer googleapi.CloseBody(res)
 46337  	if err := googleapi.CheckResponse(res); err != nil {
 46338  		return nil, gensupport.WrapError(err)
 46339  	}
 46340  	ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
 46341  		ServerResponse: googleapi.ServerResponse{
 46342  			Header:         res.Header,
 46343  			HTTPStatusCode: res.StatusCode,
 46344  		},
 46345  	}
 46346  	target := &ret
 46347  	if err := gensupport.DecodeResponse(target, res); err != nil {
 46348  		return nil, err
 46349  	}
 46350  	return ret, nil
 46351  }
 46352  

View as plain text