...

Source file src/google.golang.org/api/analyticsadmin/v1alpha/analyticsadmin-gen.go

Documentation: google.golang.org/api/analyticsadmin/v1alpha

     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 analyticsadmin provides access to the Google Analytics Admin API.
     8  //
     9  // For product documentation, see: http://code.google.com/apis/analytics/docs/mgmt/home.html
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/analyticsadmin/v1alpha"
    27  //	...
    28  //	ctx := context.Background()
    29  //	analyticsadminService, err := analyticsadmin.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // By default, all available scopes (see "Constants") are used to authenticate.
    38  // To restrict scopes, use [google.golang.org/api/option.WithScopes]:
    39  //
    40  //	analyticsadminService, err := analyticsadmin.NewService(ctx, option.WithScopes(analyticsadmin.AnalyticsReadonlyScope))
    41  //
    42  // To use an API key for authentication (note: some APIs do not support API
    43  // keys), use [google.golang.org/api/option.WithAPIKey]:
    44  //
    45  //	analyticsadminService, err := analyticsadmin.NewService(ctx, option.WithAPIKey("AIza..."))
    46  //
    47  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    48  // flow, use [google.golang.org/api/option.WithTokenSource]:
    49  //
    50  //	config := &oauth2.Config{...}
    51  //	// ...
    52  //	token, err := config.Exchange(ctx, ...)
    53  //	analyticsadminService, err := analyticsadmin.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    54  //
    55  // See [google.golang.org/api/option.ClientOption] for details on options.
    56  package analyticsadmin // import "google.golang.org/api/analyticsadmin/v1alpha"
    57  
    58  import (
    59  	"bytes"
    60  	"context"
    61  	"encoding/json"
    62  	"errors"
    63  	"fmt"
    64  	"io"
    65  	"net/http"
    66  	"net/url"
    67  	"strconv"
    68  	"strings"
    69  
    70  	googleapi "google.golang.org/api/googleapi"
    71  	internal "google.golang.org/api/internal"
    72  	gensupport "google.golang.org/api/internal/gensupport"
    73  	option "google.golang.org/api/option"
    74  	internaloption "google.golang.org/api/option/internaloption"
    75  	htransport "google.golang.org/api/transport/http"
    76  )
    77  
    78  // Always reference these packages, just in case the auto-generated code
    79  // below doesn't.
    80  var _ = bytes.NewBuffer
    81  var _ = strconv.Itoa
    82  var _ = fmt.Sprintf
    83  var _ = json.NewDecoder
    84  var _ = io.Copy
    85  var _ = url.Parse
    86  var _ = gensupport.MarshalJSON
    87  var _ = googleapi.Version
    88  var _ = errors.New
    89  var _ = strings.Replace
    90  var _ = context.Canceled
    91  var _ = internaloption.WithDefaultEndpoint
    92  var _ = internal.Version
    93  
    94  const apiId = "analyticsadmin:v1alpha"
    95  const apiName = "analyticsadmin"
    96  const apiVersion = "v1alpha"
    97  const basePath = "https://analyticsadmin.googleapis.com/"
    98  const basePathTemplate = "https://analyticsadmin.UNIVERSE_DOMAIN/"
    99  const mtlsBasePath = "https://analyticsadmin.mtls.googleapis.com/"
   100  
   101  // OAuth2 scopes used by this API.
   102  const (
   103  	// Edit Google Analytics management entities
   104  	AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.edit"
   105  
   106  	// Manage Google Analytics Account users by email address
   107  	AnalyticsManageUsersScope = "https://www.googleapis.com/auth/analytics.manage.users"
   108  
   109  	// View Google Analytics user permissions
   110  	AnalyticsManageUsersReadonlyScope = "https://www.googleapis.com/auth/analytics.manage.users.readonly"
   111  
   112  	// See and download your Google Analytics data
   113  	AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analytics.readonly"
   114  )
   115  
   116  // NewService creates a new Service.
   117  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   118  	scopesOption := internaloption.WithDefaultScopes(
   119  		"https://www.googleapis.com/auth/analytics.edit",
   120  		"https://www.googleapis.com/auth/analytics.manage.users",
   121  		"https://www.googleapis.com/auth/analytics.manage.users.readonly",
   122  		"https://www.googleapis.com/auth/analytics.readonly",
   123  	)
   124  	// NOTE: prepend, so we don't override user-specified scopes.
   125  	opts = append([]option.ClientOption{scopesOption}, opts...)
   126  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   127  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   128  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   129  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   130  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   131  	if err != nil {
   132  		return nil, err
   133  	}
   134  	s, err := New(client)
   135  	if err != nil {
   136  		return nil, err
   137  	}
   138  	if endpoint != "" {
   139  		s.BasePath = endpoint
   140  	}
   141  	return s, nil
   142  }
   143  
   144  // New creates a new Service. It uses the provided http.Client for requests.
   145  //
   146  // Deprecated: please use NewService instead.
   147  // To provide a custom HTTP client, use option.WithHTTPClient.
   148  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   149  func New(client *http.Client) (*Service, error) {
   150  	if client == nil {
   151  		return nil, errors.New("client is nil")
   152  	}
   153  	s := &Service{client: client, BasePath: basePath}
   154  	s.AccountSummaries = NewAccountSummariesService(s)
   155  	s.Accounts = NewAccountsService(s)
   156  	s.Properties = NewPropertiesService(s)
   157  	return s, nil
   158  }
   159  
   160  type Service struct {
   161  	client    *http.Client
   162  	BasePath  string // API endpoint base URL
   163  	UserAgent string // optional additional User-Agent fragment
   164  
   165  	AccountSummaries *AccountSummariesService
   166  
   167  	Accounts *AccountsService
   168  
   169  	Properties *PropertiesService
   170  }
   171  
   172  func (s *Service) userAgent() string {
   173  	if s.UserAgent == "" {
   174  		return googleapi.UserAgent
   175  	}
   176  	return googleapi.UserAgent + " " + s.UserAgent
   177  }
   178  
   179  func NewAccountSummariesService(s *Service) *AccountSummariesService {
   180  	rs := &AccountSummariesService{s: s}
   181  	return rs
   182  }
   183  
   184  type AccountSummariesService struct {
   185  	s *Service
   186  }
   187  
   188  func NewAccountsService(s *Service) *AccountsService {
   189  	rs := &AccountsService{s: s}
   190  	rs.AccessBindings = NewAccountsAccessBindingsService(s)
   191  	return rs
   192  }
   193  
   194  type AccountsService struct {
   195  	s *Service
   196  
   197  	AccessBindings *AccountsAccessBindingsService
   198  }
   199  
   200  func NewAccountsAccessBindingsService(s *Service) *AccountsAccessBindingsService {
   201  	rs := &AccountsAccessBindingsService{s: s}
   202  	return rs
   203  }
   204  
   205  type AccountsAccessBindingsService struct {
   206  	s *Service
   207  }
   208  
   209  func NewPropertiesService(s *Service) *PropertiesService {
   210  	rs := &PropertiesService{s: s}
   211  	rs.AccessBindings = NewPropertiesAccessBindingsService(s)
   212  	rs.AdSenseLinks = NewPropertiesAdSenseLinksService(s)
   213  	rs.Audiences = NewPropertiesAudiencesService(s)
   214  	rs.BigQueryLinks = NewPropertiesBigQueryLinksService(s)
   215  	rs.CalculatedMetrics = NewPropertiesCalculatedMetricsService(s)
   216  	rs.ChannelGroups = NewPropertiesChannelGroupsService(s)
   217  	rs.ConversionEvents = NewPropertiesConversionEventsService(s)
   218  	rs.CustomDimensions = NewPropertiesCustomDimensionsService(s)
   219  	rs.CustomMetrics = NewPropertiesCustomMetricsService(s)
   220  	rs.DataStreams = NewPropertiesDataStreamsService(s)
   221  	rs.DisplayVideo360AdvertiserLinkProposals = NewPropertiesDisplayVideo360AdvertiserLinkProposalsService(s)
   222  	rs.DisplayVideo360AdvertiserLinks = NewPropertiesDisplayVideo360AdvertiserLinksService(s)
   223  	rs.ExpandedDataSets = NewPropertiesExpandedDataSetsService(s)
   224  	rs.FirebaseLinks = NewPropertiesFirebaseLinksService(s)
   225  	rs.GoogleAdsLinks = NewPropertiesGoogleAdsLinksService(s)
   226  	rs.KeyEvents = NewPropertiesKeyEventsService(s)
   227  	rs.RollupPropertySourceLinks = NewPropertiesRollupPropertySourceLinksService(s)
   228  	rs.SearchAds360Links = NewPropertiesSearchAds360LinksService(s)
   229  	rs.SubpropertyEventFilters = NewPropertiesSubpropertyEventFiltersService(s)
   230  	return rs
   231  }
   232  
   233  type PropertiesService struct {
   234  	s *Service
   235  
   236  	AccessBindings *PropertiesAccessBindingsService
   237  
   238  	AdSenseLinks *PropertiesAdSenseLinksService
   239  
   240  	Audiences *PropertiesAudiencesService
   241  
   242  	BigQueryLinks *PropertiesBigQueryLinksService
   243  
   244  	CalculatedMetrics *PropertiesCalculatedMetricsService
   245  
   246  	ChannelGroups *PropertiesChannelGroupsService
   247  
   248  	ConversionEvents *PropertiesConversionEventsService
   249  
   250  	CustomDimensions *PropertiesCustomDimensionsService
   251  
   252  	CustomMetrics *PropertiesCustomMetricsService
   253  
   254  	DataStreams *PropertiesDataStreamsService
   255  
   256  	DisplayVideo360AdvertiserLinkProposals *PropertiesDisplayVideo360AdvertiserLinkProposalsService
   257  
   258  	DisplayVideo360AdvertiserLinks *PropertiesDisplayVideo360AdvertiserLinksService
   259  
   260  	ExpandedDataSets *PropertiesExpandedDataSetsService
   261  
   262  	FirebaseLinks *PropertiesFirebaseLinksService
   263  
   264  	GoogleAdsLinks *PropertiesGoogleAdsLinksService
   265  
   266  	KeyEvents *PropertiesKeyEventsService
   267  
   268  	RollupPropertySourceLinks *PropertiesRollupPropertySourceLinksService
   269  
   270  	SearchAds360Links *PropertiesSearchAds360LinksService
   271  
   272  	SubpropertyEventFilters *PropertiesSubpropertyEventFiltersService
   273  }
   274  
   275  func NewPropertiesAccessBindingsService(s *Service) *PropertiesAccessBindingsService {
   276  	rs := &PropertiesAccessBindingsService{s: s}
   277  	return rs
   278  }
   279  
   280  type PropertiesAccessBindingsService struct {
   281  	s *Service
   282  }
   283  
   284  func NewPropertiesAdSenseLinksService(s *Service) *PropertiesAdSenseLinksService {
   285  	rs := &PropertiesAdSenseLinksService{s: s}
   286  	return rs
   287  }
   288  
   289  type PropertiesAdSenseLinksService struct {
   290  	s *Service
   291  }
   292  
   293  func NewPropertiesAudiencesService(s *Service) *PropertiesAudiencesService {
   294  	rs := &PropertiesAudiencesService{s: s}
   295  	return rs
   296  }
   297  
   298  type PropertiesAudiencesService struct {
   299  	s *Service
   300  }
   301  
   302  func NewPropertiesBigQueryLinksService(s *Service) *PropertiesBigQueryLinksService {
   303  	rs := &PropertiesBigQueryLinksService{s: s}
   304  	return rs
   305  }
   306  
   307  type PropertiesBigQueryLinksService struct {
   308  	s *Service
   309  }
   310  
   311  func NewPropertiesCalculatedMetricsService(s *Service) *PropertiesCalculatedMetricsService {
   312  	rs := &PropertiesCalculatedMetricsService{s: s}
   313  	return rs
   314  }
   315  
   316  type PropertiesCalculatedMetricsService struct {
   317  	s *Service
   318  }
   319  
   320  func NewPropertiesChannelGroupsService(s *Service) *PropertiesChannelGroupsService {
   321  	rs := &PropertiesChannelGroupsService{s: s}
   322  	return rs
   323  }
   324  
   325  type PropertiesChannelGroupsService struct {
   326  	s *Service
   327  }
   328  
   329  func NewPropertiesConversionEventsService(s *Service) *PropertiesConversionEventsService {
   330  	rs := &PropertiesConversionEventsService{s: s}
   331  	return rs
   332  }
   333  
   334  type PropertiesConversionEventsService struct {
   335  	s *Service
   336  }
   337  
   338  func NewPropertiesCustomDimensionsService(s *Service) *PropertiesCustomDimensionsService {
   339  	rs := &PropertiesCustomDimensionsService{s: s}
   340  	return rs
   341  }
   342  
   343  type PropertiesCustomDimensionsService struct {
   344  	s *Service
   345  }
   346  
   347  func NewPropertiesCustomMetricsService(s *Service) *PropertiesCustomMetricsService {
   348  	rs := &PropertiesCustomMetricsService{s: s}
   349  	return rs
   350  }
   351  
   352  type PropertiesCustomMetricsService struct {
   353  	s *Service
   354  }
   355  
   356  func NewPropertiesDataStreamsService(s *Service) *PropertiesDataStreamsService {
   357  	rs := &PropertiesDataStreamsService{s: s}
   358  	rs.EventCreateRules = NewPropertiesDataStreamsEventCreateRulesService(s)
   359  	rs.MeasurementProtocolSecrets = NewPropertiesDataStreamsMeasurementProtocolSecretsService(s)
   360  	rs.SKAdNetworkConversionValueSchema = NewPropertiesDataStreamsSKAdNetworkConversionValueSchemaService(s)
   361  	return rs
   362  }
   363  
   364  type PropertiesDataStreamsService struct {
   365  	s *Service
   366  
   367  	EventCreateRules *PropertiesDataStreamsEventCreateRulesService
   368  
   369  	MeasurementProtocolSecrets *PropertiesDataStreamsMeasurementProtocolSecretsService
   370  
   371  	SKAdNetworkConversionValueSchema *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService
   372  }
   373  
   374  func NewPropertiesDataStreamsEventCreateRulesService(s *Service) *PropertiesDataStreamsEventCreateRulesService {
   375  	rs := &PropertiesDataStreamsEventCreateRulesService{s: s}
   376  	return rs
   377  }
   378  
   379  type PropertiesDataStreamsEventCreateRulesService struct {
   380  	s *Service
   381  }
   382  
   383  func NewPropertiesDataStreamsMeasurementProtocolSecretsService(s *Service) *PropertiesDataStreamsMeasurementProtocolSecretsService {
   384  	rs := &PropertiesDataStreamsMeasurementProtocolSecretsService{s: s}
   385  	return rs
   386  }
   387  
   388  type PropertiesDataStreamsMeasurementProtocolSecretsService struct {
   389  	s *Service
   390  }
   391  
   392  func NewPropertiesDataStreamsSKAdNetworkConversionValueSchemaService(s *Service) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService {
   393  	rs := &PropertiesDataStreamsSKAdNetworkConversionValueSchemaService{s: s}
   394  	return rs
   395  }
   396  
   397  type PropertiesDataStreamsSKAdNetworkConversionValueSchemaService struct {
   398  	s *Service
   399  }
   400  
   401  func NewPropertiesDisplayVideo360AdvertiserLinkProposalsService(s *Service) *PropertiesDisplayVideo360AdvertiserLinkProposalsService {
   402  	rs := &PropertiesDisplayVideo360AdvertiserLinkProposalsService{s: s}
   403  	return rs
   404  }
   405  
   406  type PropertiesDisplayVideo360AdvertiserLinkProposalsService struct {
   407  	s *Service
   408  }
   409  
   410  func NewPropertiesDisplayVideo360AdvertiserLinksService(s *Service) *PropertiesDisplayVideo360AdvertiserLinksService {
   411  	rs := &PropertiesDisplayVideo360AdvertiserLinksService{s: s}
   412  	return rs
   413  }
   414  
   415  type PropertiesDisplayVideo360AdvertiserLinksService struct {
   416  	s *Service
   417  }
   418  
   419  func NewPropertiesExpandedDataSetsService(s *Service) *PropertiesExpandedDataSetsService {
   420  	rs := &PropertiesExpandedDataSetsService{s: s}
   421  	return rs
   422  }
   423  
   424  type PropertiesExpandedDataSetsService struct {
   425  	s *Service
   426  }
   427  
   428  func NewPropertiesFirebaseLinksService(s *Service) *PropertiesFirebaseLinksService {
   429  	rs := &PropertiesFirebaseLinksService{s: s}
   430  	return rs
   431  }
   432  
   433  type PropertiesFirebaseLinksService struct {
   434  	s *Service
   435  }
   436  
   437  func NewPropertiesGoogleAdsLinksService(s *Service) *PropertiesGoogleAdsLinksService {
   438  	rs := &PropertiesGoogleAdsLinksService{s: s}
   439  	return rs
   440  }
   441  
   442  type PropertiesGoogleAdsLinksService struct {
   443  	s *Service
   444  }
   445  
   446  func NewPropertiesKeyEventsService(s *Service) *PropertiesKeyEventsService {
   447  	rs := &PropertiesKeyEventsService{s: s}
   448  	return rs
   449  }
   450  
   451  type PropertiesKeyEventsService struct {
   452  	s *Service
   453  }
   454  
   455  func NewPropertiesRollupPropertySourceLinksService(s *Service) *PropertiesRollupPropertySourceLinksService {
   456  	rs := &PropertiesRollupPropertySourceLinksService{s: s}
   457  	return rs
   458  }
   459  
   460  type PropertiesRollupPropertySourceLinksService struct {
   461  	s *Service
   462  }
   463  
   464  func NewPropertiesSearchAds360LinksService(s *Service) *PropertiesSearchAds360LinksService {
   465  	rs := &PropertiesSearchAds360LinksService{s: s}
   466  	return rs
   467  }
   468  
   469  type PropertiesSearchAds360LinksService struct {
   470  	s *Service
   471  }
   472  
   473  func NewPropertiesSubpropertyEventFiltersService(s *Service) *PropertiesSubpropertyEventFiltersService {
   474  	rs := &PropertiesSubpropertyEventFiltersService{s: s}
   475  	return rs
   476  }
   477  
   478  type PropertiesSubpropertyEventFiltersService struct {
   479  	s *Service
   480  }
   481  
   482  // GoogleAnalyticsAdminV1alphaAccessBetweenFilter: To express that the result
   483  // needs to be between two numbers (inclusive).
   484  type GoogleAnalyticsAdminV1alphaAccessBetweenFilter struct {
   485  	// FromValue: Begins with this number.
   486  	FromValue *GoogleAnalyticsAdminV1alphaNumericValue `json:"fromValue,omitempty"`
   487  	// ToValue: Ends with this number.
   488  	ToValue *GoogleAnalyticsAdminV1alphaNumericValue `json:"toValue,omitempty"`
   489  	// ForceSendFields is a list of field names (e.g. "FromValue") to
   490  	// unconditionally include in API requests. By default, fields with empty or
   491  	// default values are omitted from API requests. See
   492  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   493  	// details.
   494  	ForceSendFields []string `json:"-"`
   495  	// NullFields is a list of field names (e.g. "FromValue") to include in API
   496  	// requests with the JSON null value. By default, fields with empty values are
   497  	// omitted from API requests. See
   498  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   499  	NullFields []string `json:"-"`
   500  }
   501  
   502  func (s *GoogleAnalyticsAdminV1alphaAccessBetweenFilter) MarshalJSON() ([]byte, error) {
   503  	type NoMethod GoogleAnalyticsAdminV1alphaAccessBetweenFilter
   504  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   505  }
   506  
   507  // GoogleAnalyticsAdminV1alphaAccessBinding: A binding of a user to a set of
   508  // roles.
   509  type GoogleAnalyticsAdminV1alphaAccessBinding struct {
   510  	// Name: Output only. Resource name of this binding. Format:
   511  	// accounts/{account}/accessBindings/{access_binding} or
   512  	// properties/{property}/accessBindings/{access_binding} Example:
   513  	// "accounts/100/accessBindings/200"
   514  	Name string `json:"name,omitempty"`
   515  	// Roles: A list of roles for to grant to the parent resource. Valid values:
   516  	// predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor
   517  	// predefinedRoles/admin predefinedRoles/no-cost-data
   518  	// predefinedRoles/no-revenue-data For users, if an empty list of roles is set,
   519  	// this AccessBinding will be deleted.
   520  	Roles []string `json:"roles,omitempty"`
   521  	// User: If set, the email address of the user to set roles for. Format:
   522  	// "someuser@gmail.com"
   523  	User string `json:"user,omitempty"`
   524  
   525  	// ServerResponse contains the HTTP response code and headers from the server.
   526  	googleapi.ServerResponse `json:"-"`
   527  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   528  	// include in API requests. By default, fields with empty or default values are
   529  	// omitted from API requests. See
   530  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   531  	// details.
   532  	ForceSendFields []string `json:"-"`
   533  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   534  	// with the JSON null value. By default, fields with empty values are omitted
   535  	// from API requests. See
   536  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   537  	NullFields []string `json:"-"`
   538  }
   539  
   540  func (s *GoogleAnalyticsAdminV1alphaAccessBinding) MarshalJSON() ([]byte, error) {
   541  	type NoMethod GoogleAnalyticsAdminV1alphaAccessBinding
   542  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   543  }
   544  
   545  // GoogleAnalyticsAdminV1alphaAccessDateRange: A contiguous range of days:
   546  // startDate, startDate + 1, ..., endDate.
   547  type GoogleAnalyticsAdminV1alphaAccessDateRange struct {
   548  	// EndDate: The inclusive end date for the query in the format `YYYY-MM-DD`.
   549  	// Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today`
   550  	// is also accepted, and in that case, the date is inferred based on the
   551  	// current time in the request's time zone.
   552  	EndDate string `json:"endDate,omitempty"`
   553  	// StartDate: The inclusive start date for the query in the format
   554  	// `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, `yesterday`,
   555  	// or `today` is also accepted, and in that case, the date is inferred based on
   556  	// the current time in the request's time zone.
   557  	StartDate string `json:"startDate,omitempty"`
   558  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
   559  	// include in API requests. By default, fields with empty or default values are
   560  	// omitted from API requests. See
   561  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   562  	// details.
   563  	ForceSendFields []string `json:"-"`
   564  	// NullFields is a list of field names (e.g. "EndDate") to include in API
   565  	// requests with the JSON null value. By default, fields with empty values are
   566  	// omitted from API requests. See
   567  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   568  	NullFields []string `json:"-"`
   569  }
   570  
   571  func (s *GoogleAnalyticsAdminV1alphaAccessDateRange) MarshalJSON() ([]byte, error) {
   572  	type NoMethod GoogleAnalyticsAdminV1alphaAccessDateRange
   573  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   574  }
   575  
   576  // GoogleAnalyticsAdminV1alphaAccessDimension: Dimensions are attributes of
   577  // your data. For example, the dimension `userEmail` indicates the email of the
   578  // user that accessed reporting data. Dimension values in report responses are
   579  // strings.
   580  type GoogleAnalyticsAdminV1alphaAccessDimension struct {
   581  	// DimensionName: The API name of the dimension. See Data Access Schema
   582  	// (https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
   583  	// for the list of dimensions supported in this API. Dimensions are referenced
   584  	// by name in `dimensionFilter` and `orderBys`.
   585  	DimensionName string `json:"dimensionName,omitempty"`
   586  	// ForceSendFields is a list of field names (e.g. "DimensionName") to
   587  	// unconditionally include in API requests. By default, fields with empty or
   588  	// default values are omitted from API requests. See
   589  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   590  	// details.
   591  	ForceSendFields []string `json:"-"`
   592  	// NullFields is a list of field names (e.g. "DimensionName") to include in API
   593  	// requests with the JSON null value. By default, fields with empty values are
   594  	// omitted from API requests. See
   595  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   596  	NullFields []string `json:"-"`
   597  }
   598  
   599  func (s *GoogleAnalyticsAdminV1alphaAccessDimension) MarshalJSON() ([]byte, error) {
   600  	type NoMethod GoogleAnalyticsAdminV1alphaAccessDimension
   601  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   602  }
   603  
   604  // GoogleAnalyticsAdminV1alphaAccessDimensionHeader: Describes a dimension
   605  // column in the report. Dimensions requested in a report produce column
   606  // entries within rows and DimensionHeaders. However, dimensions used
   607  // exclusively within filters or expressions do not produce columns in a
   608  // report; correspondingly, those dimensions do not produce headers.
   609  type GoogleAnalyticsAdminV1alphaAccessDimensionHeader struct {
   610  	// DimensionName: The dimension's name; for example 'userEmail'.
   611  	DimensionName string `json:"dimensionName,omitempty"`
   612  	// ForceSendFields is a list of field names (e.g. "DimensionName") to
   613  	// unconditionally include in API requests. By default, fields with empty or
   614  	// default values are omitted from API requests. See
   615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   616  	// details.
   617  	ForceSendFields []string `json:"-"`
   618  	// NullFields is a list of field names (e.g. "DimensionName") to include in API
   619  	// requests with the JSON null value. By default, fields with empty values are
   620  	// omitted from API requests. See
   621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   622  	NullFields []string `json:"-"`
   623  }
   624  
   625  func (s *GoogleAnalyticsAdminV1alphaAccessDimensionHeader) MarshalJSON() ([]byte, error) {
   626  	type NoMethod GoogleAnalyticsAdminV1alphaAccessDimensionHeader
   627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   628  }
   629  
   630  // GoogleAnalyticsAdminV1alphaAccessDimensionValue: The value of a dimension.
   631  type GoogleAnalyticsAdminV1alphaAccessDimensionValue struct {
   632  	// Value: The dimension value. For example, this value may be 'France' for the
   633  	// 'country' dimension.
   634  	Value string `json:"value,omitempty"`
   635  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
   636  	// include in API requests. By default, fields with empty or default values are
   637  	// omitted from API requests. See
   638  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   639  	// details.
   640  	ForceSendFields []string `json:"-"`
   641  	// NullFields is a list of field names (e.g. "Value") to include in API
   642  	// requests with the JSON null value. By default, fields with empty values are
   643  	// omitted from API requests. See
   644  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   645  	NullFields []string `json:"-"`
   646  }
   647  
   648  func (s *GoogleAnalyticsAdminV1alphaAccessDimensionValue) MarshalJSON() ([]byte, error) {
   649  	type NoMethod GoogleAnalyticsAdminV1alphaAccessDimensionValue
   650  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   651  }
   652  
   653  // GoogleAnalyticsAdminV1alphaAccessFilter: An expression to filter dimension
   654  // or metric values.
   655  type GoogleAnalyticsAdminV1alphaAccessFilter struct {
   656  	// BetweenFilter: A filter for two values.
   657  	BetweenFilter *GoogleAnalyticsAdminV1alphaAccessBetweenFilter `json:"betweenFilter,omitempty"`
   658  	// FieldName: The dimension name or metric name.
   659  	FieldName string `json:"fieldName,omitempty"`
   660  	// InListFilter: A filter for in list values.
   661  	InListFilter *GoogleAnalyticsAdminV1alphaAccessInListFilter `json:"inListFilter,omitempty"`
   662  	// NumericFilter: A filter for numeric or date values.
   663  	NumericFilter *GoogleAnalyticsAdminV1alphaAccessNumericFilter `json:"numericFilter,omitempty"`
   664  	// StringFilter: Strings related filter.
   665  	StringFilter *GoogleAnalyticsAdminV1alphaAccessStringFilter `json:"stringFilter,omitempty"`
   666  	// ForceSendFields is a list of field names (e.g. "BetweenFilter") to
   667  	// unconditionally include in API requests. By default, fields with empty or
   668  	// default values are omitted from API requests. See
   669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   670  	// details.
   671  	ForceSendFields []string `json:"-"`
   672  	// NullFields is a list of field names (e.g. "BetweenFilter") to include in API
   673  	// requests with the JSON null value. By default, fields with empty values are
   674  	// omitted from API requests. See
   675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   676  	NullFields []string `json:"-"`
   677  }
   678  
   679  func (s *GoogleAnalyticsAdminV1alphaAccessFilter) MarshalJSON() ([]byte, error) {
   680  	type NoMethod GoogleAnalyticsAdminV1alphaAccessFilter
   681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   682  }
   683  
   684  // GoogleAnalyticsAdminV1alphaAccessFilterExpression: Expresses dimension or
   685  // metric filters. The fields in the same expression need to be either all
   686  // dimensions or all metrics.
   687  type GoogleAnalyticsAdminV1alphaAccessFilterExpression struct {
   688  	// AccessFilter: A primitive filter. In the same FilterExpression, all of the
   689  	// filter's field names need to be either all dimensions or all metrics.
   690  	AccessFilter *GoogleAnalyticsAdminV1alphaAccessFilter `json:"accessFilter,omitempty"`
   691  	// AndGroup: Each of the FilterExpressions in the and_group has an AND
   692  	// relationship.
   693  	AndGroup *GoogleAnalyticsAdminV1alphaAccessFilterExpressionList `json:"andGroup,omitempty"`
   694  	// NotExpression: The FilterExpression is NOT of not_expression.
   695  	NotExpression *GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"notExpression,omitempty"`
   696  	// OrGroup: Each of the FilterExpressions in the or_group has an OR
   697  	// relationship.
   698  	OrGroup *GoogleAnalyticsAdminV1alphaAccessFilterExpressionList `json:"orGroup,omitempty"`
   699  	// ForceSendFields is a list of field names (e.g. "AccessFilter") to
   700  	// unconditionally include in API requests. By default, fields with empty or
   701  	// default values are omitted from API requests. See
   702  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   703  	// details.
   704  	ForceSendFields []string `json:"-"`
   705  	// NullFields is a list of field names (e.g. "AccessFilter") to include in API
   706  	// requests with the JSON null value. By default, fields with empty values are
   707  	// omitted from API requests. See
   708  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   709  	NullFields []string `json:"-"`
   710  }
   711  
   712  func (s *GoogleAnalyticsAdminV1alphaAccessFilterExpression) MarshalJSON() ([]byte, error) {
   713  	type NoMethod GoogleAnalyticsAdminV1alphaAccessFilterExpression
   714  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   715  }
   716  
   717  // GoogleAnalyticsAdminV1alphaAccessFilterExpressionList: A list of filter
   718  // expressions.
   719  type GoogleAnalyticsAdminV1alphaAccessFilterExpressionList struct {
   720  	// Expressions: A list of filter expressions.
   721  	Expressions []*GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"expressions,omitempty"`
   722  	// ForceSendFields is a list of field names (e.g. "Expressions") to
   723  	// unconditionally include in API requests. By default, fields with empty or
   724  	// default values are omitted from API requests. See
   725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   726  	// details.
   727  	ForceSendFields []string `json:"-"`
   728  	// NullFields is a list of field names (e.g. "Expressions") to include in API
   729  	// requests with the JSON null value. By default, fields with empty values are
   730  	// omitted from API requests. See
   731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   732  	NullFields []string `json:"-"`
   733  }
   734  
   735  func (s *GoogleAnalyticsAdminV1alphaAccessFilterExpressionList) MarshalJSON() ([]byte, error) {
   736  	type NoMethod GoogleAnalyticsAdminV1alphaAccessFilterExpressionList
   737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   738  }
   739  
   740  // GoogleAnalyticsAdminV1alphaAccessInListFilter: The result needs to be in a
   741  // list of string values.
   742  type GoogleAnalyticsAdminV1alphaAccessInListFilter struct {
   743  	// CaseSensitive: If true, the string value is case sensitive.
   744  	CaseSensitive bool `json:"caseSensitive,omitempty"`
   745  	// Values: The list of string values. Must be non-empty.
   746  	Values []string `json:"values,omitempty"`
   747  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
   748  	// unconditionally include in API requests. By default, fields with empty or
   749  	// default values are omitted from API requests. See
   750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   751  	// details.
   752  	ForceSendFields []string `json:"-"`
   753  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
   754  	// requests with the JSON null value. By default, fields with empty values are
   755  	// omitted from API requests. See
   756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   757  	NullFields []string `json:"-"`
   758  }
   759  
   760  func (s *GoogleAnalyticsAdminV1alphaAccessInListFilter) MarshalJSON() ([]byte, error) {
   761  	type NoMethod GoogleAnalyticsAdminV1alphaAccessInListFilter
   762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   763  }
   764  
   765  // GoogleAnalyticsAdminV1alphaAccessMetric: The quantitative measurements of a
   766  // report. For example, the metric `accessCount` is the total number of data
   767  // access records.
   768  type GoogleAnalyticsAdminV1alphaAccessMetric struct {
   769  	// MetricName: The API name of the metric. See Data Access Schema
   770  	// (https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
   771  	// for the list of metrics supported in this API. Metrics are referenced by
   772  	// name in `metricFilter` & `orderBys`.
   773  	MetricName string `json:"metricName,omitempty"`
   774  	// ForceSendFields is a list of field names (e.g. "MetricName") to
   775  	// unconditionally include in API requests. By default, fields with empty or
   776  	// default values are omitted from API requests. See
   777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   778  	// details.
   779  	ForceSendFields []string `json:"-"`
   780  	// NullFields is a list of field names (e.g. "MetricName") to include in API
   781  	// requests with the JSON null value. By default, fields with empty values are
   782  	// omitted from API requests. See
   783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   784  	NullFields []string `json:"-"`
   785  }
   786  
   787  func (s *GoogleAnalyticsAdminV1alphaAccessMetric) MarshalJSON() ([]byte, error) {
   788  	type NoMethod GoogleAnalyticsAdminV1alphaAccessMetric
   789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   790  }
   791  
   792  // GoogleAnalyticsAdminV1alphaAccessMetricHeader: Describes a metric column in
   793  // the report. Visible metrics requested in a report produce column entries
   794  // within rows and MetricHeaders. However, metrics used exclusively within
   795  // filters or expressions do not produce columns in a report; correspondingly,
   796  // those metrics do not produce headers.
   797  type GoogleAnalyticsAdminV1alphaAccessMetricHeader struct {
   798  	// MetricName: The metric's name; for example 'accessCount'.
   799  	MetricName string `json:"metricName,omitempty"`
   800  	// ForceSendFields is a list of field names (e.g. "MetricName") to
   801  	// unconditionally include in API requests. By default, fields with empty or
   802  	// default values are omitted from API requests. See
   803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   804  	// details.
   805  	ForceSendFields []string `json:"-"`
   806  	// NullFields is a list of field names (e.g. "MetricName") to include in API
   807  	// requests with the JSON null value. By default, fields with empty values are
   808  	// omitted from API requests. See
   809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   810  	NullFields []string `json:"-"`
   811  }
   812  
   813  func (s *GoogleAnalyticsAdminV1alphaAccessMetricHeader) MarshalJSON() ([]byte, error) {
   814  	type NoMethod GoogleAnalyticsAdminV1alphaAccessMetricHeader
   815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   816  }
   817  
   818  // GoogleAnalyticsAdminV1alphaAccessMetricValue: The value of a metric.
   819  type GoogleAnalyticsAdminV1alphaAccessMetricValue struct {
   820  	// Value: The measurement value. For example, this value may be '13'.
   821  	Value string `json:"value,omitempty"`
   822  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
   823  	// include in API requests. By default, fields with empty or default values are
   824  	// omitted from API requests. See
   825  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   826  	// details.
   827  	ForceSendFields []string `json:"-"`
   828  	// NullFields is a list of field names (e.g. "Value") to include in API
   829  	// requests with the JSON null value. By default, fields with empty values are
   830  	// omitted from API requests. See
   831  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   832  	NullFields []string `json:"-"`
   833  }
   834  
   835  func (s *GoogleAnalyticsAdminV1alphaAccessMetricValue) MarshalJSON() ([]byte, error) {
   836  	type NoMethod GoogleAnalyticsAdminV1alphaAccessMetricValue
   837  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   838  }
   839  
   840  // GoogleAnalyticsAdminV1alphaAccessNumericFilter: Filters for numeric or date
   841  // values.
   842  type GoogleAnalyticsAdminV1alphaAccessNumericFilter struct {
   843  	// Operation: The operation type for this filter.
   844  	//
   845  	// Possible values:
   846  	//   "OPERATION_UNSPECIFIED" - Unspecified.
   847  	//   "EQUAL" - Equal
   848  	//   "LESS_THAN" - Less than
   849  	//   "LESS_THAN_OR_EQUAL" - Less than or equal
   850  	//   "GREATER_THAN" - Greater than
   851  	//   "GREATER_THAN_OR_EQUAL" - Greater than or equal
   852  	Operation string `json:"operation,omitempty"`
   853  	// Value: A numeric value or a date value.
   854  	Value *GoogleAnalyticsAdminV1alphaNumericValue `json:"value,omitempty"`
   855  	// ForceSendFields is a list of field names (e.g. "Operation") to
   856  	// unconditionally include in API requests. By default, fields with empty or
   857  	// default values are omitted from API requests. See
   858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   859  	// details.
   860  	ForceSendFields []string `json:"-"`
   861  	// NullFields is a list of field names (e.g. "Operation") to include in API
   862  	// requests with the JSON null value. By default, fields with empty values are
   863  	// omitted from API requests. See
   864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   865  	NullFields []string `json:"-"`
   866  }
   867  
   868  func (s *GoogleAnalyticsAdminV1alphaAccessNumericFilter) MarshalJSON() ([]byte, error) {
   869  	type NoMethod GoogleAnalyticsAdminV1alphaAccessNumericFilter
   870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   871  }
   872  
   873  // GoogleAnalyticsAdminV1alphaAccessOrderBy: Order bys define how rows will be
   874  // sorted in the response. For example, ordering rows by descending access
   875  // count is one ordering, and ordering rows by the country string is a
   876  // different ordering.
   877  type GoogleAnalyticsAdminV1alphaAccessOrderBy struct {
   878  	// Desc: If true, sorts by descending order. If false or unspecified, sorts in
   879  	// ascending order.
   880  	Desc bool `json:"desc,omitempty"`
   881  	// Dimension: Sorts results by a dimension's values.
   882  	Dimension *GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy `json:"dimension,omitempty"`
   883  	// Metric: Sorts results by a metric's values.
   884  	Metric *GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy `json:"metric,omitempty"`
   885  	// ForceSendFields is a list of field names (e.g. "Desc") to unconditionally
   886  	// include in API requests. By default, fields with empty or default values are
   887  	// omitted from API requests. See
   888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   889  	// details.
   890  	ForceSendFields []string `json:"-"`
   891  	// NullFields is a list of field names (e.g. "Desc") to include in API requests
   892  	// with the JSON null value. By default, fields with empty values are omitted
   893  	// from API requests. See
   894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   895  	NullFields []string `json:"-"`
   896  }
   897  
   898  func (s *GoogleAnalyticsAdminV1alphaAccessOrderBy) MarshalJSON() ([]byte, error) {
   899  	type NoMethod GoogleAnalyticsAdminV1alphaAccessOrderBy
   900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   901  }
   902  
   903  // GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy: Sorts by dimension
   904  // values.
   905  type GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy struct {
   906  	// DimensionName: A dimension name in the request to order by.
   907  	DimensionName string `json:"dimensionName,omitempty"`
   908  	// OrderType: Controls the rule for dimension value ordering.
   909  	//
   910  	// Possible values:
   911  	//   "ORDER_TYPE_UNSPECIFIED" - Unspecified.
   912  	//   "ALPHANUMERIC" - Alphanumeric sort by Unicode code point. For example, "2"
   913  	// < "A" < "X" < "b" < "z".
   914  	//   "CASE_INSENSITIVE_ALPHANUMERIC" - Case insensitive alphanumeric sort by
   915  	// lower case Unicode code point. For example, "2" < "A" < "b" < "X" < "z".
   916  	//   "NUMERIC" - Dimension values are converted to numbers before sorting. For
   917  	// example in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
   918  	// "25". Non-numeric dimension values all have equal ordering value below all
   919  	// numeric values.
   920  	OrderType string `json:"orderType,omitempty"`
   921  	// ForceSendFields is a list of field names (e.g. "DimensionName") to
   922  	// unconditionally include in API requests. By default, fields with empty or
   923  	// default values are omitted from API requests. See
   924  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   925  	// details.
   926  	ForceSendFields []string `json:"-"`
   927  	// NullFields is a list of field names (e.g. "DimensionName") to include in API
   928  	// requests with the JSON null value. By default, fields with empty values are
   929  	// omitted from API requests. See
   930  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   931  	NullFields []string `json:"-"`
   932  }
   933  
   934  func (s *GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy) MarshalJSON() ([]byte, error) {
   935  	type NoMethod GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy
   936  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   937  }
   938  
   939  // GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy: Sorts by metric
   940  // values.
   941  type GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy struct {
   942  	// MetricName: A metric name in the request to order by.
   943  	MetricName string `json:"metricName,omitempty"`
   944  	// ForceSendFields is a list of field names (e.g. "MetricName") to
   945  	// unconditionally include in API requests. By default, fields with empty or
   946  	// default values are omitted from API requests. See
   947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   948  	// details.
   949  	ForceSendFields []string `json:"-"`
   950  	// NullFields is a list of field names (e.g. "MetricName") to include in API
   951  	// requests with the JSON null value. By default, fields with empty values are
   952  	// omitted from API requests. See
   953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   954  	NullFields []string `json:"-"`
   955  }
   956  
   957  func (s *GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy) MarshalJSON() ([]byte, error) {
   958  	type NoMethod GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy
   959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   960  }
   961  
   962  // GoogleAnalyticsAdminV1alphaAccessQuota: Current state of all quotas for this
   963  // Analytics property. If any quota for a property is exhausted, all requests
   964  // to that property will return Resource Exhausted errors.
   965  type GoogleAnalyticsAdminV1alphaAccessQuota struct {
   966  	// ConcurrentRequests: Properties can use up to 50 concurrent requests.
   967  	ConcurrentRequests *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"concurrentRequests,omitempty"`
   968  	// ServerErrorsPerProjectPerHour: Properties and cloud project pairs can have
   969  	// up to 50 server errors per hour.
   970  	ServerErrorsPerProjectPerHour *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"serverErrorsPerProjectPerHour,omitempty"`
   971  	// TokensPerDay: Properties can use 250,000 tokens per day. Most requests
   972  	// consume fewer than 10 tokens.
   973  	TokensPerDay *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"tokensPerDay,omitempty"`
   974  	// TokensPerHour: Properties can use 50,000 tokens per hour. An API request
   975  	// consumes a single number of tokens, and that number is deducted from all of
   976  	// the hourly, daily, and per project hourly quotas.
   977  	TokensPerHour *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"tokensPerHour,omitempty"`
   978  	// TokensPerProjectPerHour: Properties can use up to 25% of their tokens per
   979  	// project per hour. This amounts to Analytics 360 Properties can use 12,500
   980  	// tokens per project per hour. An API request consumes a single number of
   981  	// tokens, and that number is deducted from all of the hourly, daily, and per
   982  	// project hourly quotas.
   983  	TokensPerProjectPerHour *GoogleAnalyticsAdminV1alphaAccessQuotaStatus `json:"tokensPerProjectPerHour,omitempty"`
   984  	// ForceSendFields is a list of field names (e.g. "ConcurrentRequests") to
   985  	// unconditionally include in API requests. By default, fields with empty or
   986  	// default values are omitted from API requests. See
   987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   988  	// details.
   989  	ForceSendFields []string `json:"-"`
   990  	// NullFields is a list of field names (e.g. "ConcurrentRequests") to include
   991  	// in API requests with the JSON null value. By default, fields with empty
   992  	// values are omitted from API requests. See
   993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   994  	NullFields []string `json:"-"`
   995  }
   996  
   997  func (s *GoogleAnalyticsAdminV1alphaAccessQuota) MarshalJSON() ([]byte, error) {
   998  	type NoMethod GoogleAnalyticsAdminV1alphaAccessQuota
   999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1000  }
  1001  
  1002  // GoogleAnalyticsAdminV1alphaAccessQuotaStatus: Current state for a particular
  1003  // quota group.
  1004  type GoogleAnalyticsAdminV1alphaAccessQuotaStatus struct {
  1005  	// Consumed: Quota consumed by this request.
  1006  	Consumed int64 `json:"consumed,omitempty"`
  1007  	// Remaining: Quota remaining after this request.
  1008  	Remaining int64 `json:"remaining,omitempty"`
  1009  	// ForceSendFields is a list of field names (e.g. "Consumed") to
  1010  	// unconditionally include in API requests. By default, fields with empty or
  1011  	// default values are omitted from API requests. See
  1012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1013  	// details.
  1014  	ForceSendFields []string `json:"-"`
  1015  	// NullFields is a list of field names (e.g. "Consumed") to include in API
  1016  	// requests with the JSON null value. By default, fields with empty values are
  1017  	// omitted from API requests. See
  1018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1019  	NullFields []string `json:"-"`
  1020  }
  1021  
  1022  func (s *GoogleAnalyticsAdminV1alphaAccessQuotaStatus) MarshalJSON() ([]byte, error) {
  1023  	type NoMethod GoogleAnalyticsAdminV1alphaAccessQuotaStatus
  1024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1025  }
  1026  
  1027  // GoogleAnalyticsAdminV1alphaAccessRow: Access report data for each row.
  1028  type GoogleAnalyticsAdminV1alphaAccessRow struct {
  1029  	// DimensionValues: List of dimension values. These values are in the same
  1030  	// order as specified in the request.
  1031  	DimensionValues []*GoogleAnalyticsAdminV1alphaAccessDimensionValue `json:"dimensionValues,omitempty"`
  1032  	// MetricValues: List of metric values. These values are in the same order as
  1033  	// specified in the request.
  1034  	MetricValues []*GoogleAnalyticsAdminV1alphaAccessMetricValue `json:"metricValues,omitempty"`
  1035  	// ForceSendFields is a list of field names (e.g. "DimensionValues") to
  1036  	// unconditionally include in API requests. By default, fields with empty or
  1037  	// default values are omitted from API requests. See
  1038  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1039  	// details.
  1040  	ForceSendFields []string `json:"-"`
  1041  	// NullFields is a list of field names (e.g. "DimensionValues") to include in
  1042  	// API requests with the JSON null value. By default, fields with empty values
  1043  	// are omitted from API requests. See
  1044  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1045  	NullFields []string `json:"-"`
  1046  }
  1047  
  1048  func (s *GoogleAnalyticsAdminV1alphaAccessRow) MarshalJSON() ([]byte, error) {
  1049  	type NoMethod GoogleAnalyticsAdminV1alphaAccessRow
  1050  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1051  }
  1052  
  1053  // GoogleAnalyticsAdminV1alphaAccessStringFilter: The filter for strings.
  1054  type GoogleAnalyticsAdminV1alphaAccessStringFilter struct {
  1055  	// CaseSensitive: If true, the string value is case sensitive.
  1056  	CaseSensitive bool `json:"caseSensitive,omitempty"`
  1057  	// MatchType: The match type for this filter.
  1058  	//
  1059  	// Possible values:
  1060  	//   "MATCH_TYPE_UNSPECIFIED" - Unspecified
  1061  	//   "EXACT" - Exact match of the string value.
  1062  	//   "BEGINS_WITH" - Begins with the string value.
  1063  	//   "ENDS_WITH" - Ends with the string value.
  1064  	//   "CONTAINS" - Contains the string value.
  1065  	//   "FULL_REGEXP" - Full match for the regular expression with the string
  1066  	// value.
  1067  	//   "PARTIAL_REGEXP" - Partial match for the regular expression with the
  1068  	// string value.
  1069  	MatchType string `json:"matchType,omitempty"`
  1070  	// Value: The string value used for the matching.
  1071  	Value string `json:"value,omitempty"`
  1072  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
  1073  	// unconditionally include in API requests. By default, fields with empty or
  1074  	// default values are omitted from API requests. See
  1075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1076  	// details.
  1077  	ForceSendFields []string `json:"-"`
  1078  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
  1079  	// requests with the JSON null value. By default, fields with empty values are
  1080  	// omitted from API requests. See
  1081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1082  	NullFields []string `json:"-"`
  1083  }
  1084  
  1085  func (s *GoogleAnalyticsAdminV1alphaAccessStringFilter) MarshalJSON() ([]byte, error) {
  1086  	type NoMethod GoogleAnalyticsAdminV1alphaAccessStringFilter
  1087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1088  }
  1089  
  1090  // GoogleAnalyticsAdminV1alphaAccount: A resource message representing a Google
  1091  // Analytics account.
  1092  type GoogleAnalyticsAdminV1alphaAccount struct {
  1093  	// CreateTime: Output only. Time when this account was originally created.
  1094  	CreateTime string `json:"createTime,omitempty"`
  1095  	// Deleted: Output only. Indicates whether this Account is soft-deleted or not.
  1096  	// Deleted accounts are excluded from List results unless specifically
  1097  	// requested.
  1098  	Deleted bool `json:"deleted,omitempty"`
  1099  	// DisplayName: Required. Human-readable display name for this account.
  1100  	DisplayName string `json:"displayName,omitempty"`
  1101  	// GmpOrganization: Output only. The URI for a Google Marketing Platform
  1102  	// organization resource. Only set when this account is connected to a GMP
  1103  	// organization. Format:
  1104  	// marketingplatformadmin.googleapis.com/organizations/{org_id}
  1105  	GmpOrganization string `json:"gmpOrganization,omitempty"`
  1106  	// Name: Output only. Resource name of this account. Format: accounts/{account}
  1107  	// Example: "accounts/100"
  1108  	Name string `json:"name,omitempty"`
  1109  	// RegionCode: Country of business. Must be a Unicode CLDR region code.
  1110  	RegionCode string `json:"regionCode,omitempty"`
  1111  	// UpdateTime: Output only. Time when account payload fields were last updated.
  1112  	UpdateTime string `json:"updateTime,omitempty"`
  1113  
  1114  	// ServerResponse contains the HTTP response code and headers from the server.
  1115  	googleapi.ServerResponse `json:"-"`
  1116  	// ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *GoogleAnalyticsAdminV1alphaAccount) MarshalJSON() ([]byte, error) {
  1130  	type NoMethod GoogleAnalyticsAdminV1alphaAccount
  1131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1132  }
  1133  
  1134  // GoogleAnalyticsAdminV1alphaAccountSummary: A virtual resource representing
  1135  // an overview of an account and all its child GA4 properties.
  1136  type GoogleAnalyticsAdminV1alphaAccountSummary struct {
  1137  	// Account: Resource name of account referred to by this account summary
  1138  	// Format: accounts/{account_id} Example: "accounts/1000"
  1139  	Account string `json:"account,omitempty"`
  1140  	// DisplayName: Display name for the account referred to in this account
  1141  	// summary.
  1142  	DisplayName string `json:"displayName,omitempty"`
  1143  	// Name: Resource name for this account summary. Format:
  1144  	// accountSummaries/{account_id} Example: "accountSummaries/1000"
  1145  	Name string `json:"name,omitempty"`
  1146  	// PropertySummaries: List of summaries for child accounts of this account.
  1147  	PropertySummaries []*GoogleAnalyticsAdminV1alphaPropertySummary `json:"propertySummaries,omitempty"`
  1148  	// ForceSendFields is a list of field names (e.g. "Account") to unconditionally
  1149  	// include in API requests. By default, fields with empty or default values are
  1150  	// omitted from API requests. See
  1151  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1152  	// details.
  1153  	ForceSendFields []string `json:"-"`
  1154  	// NullFields is a list of field names (e.g. "Account") to include in API
  1155  	// requests with the JSON null value. By default, fields with empty values are
  1156  	// omitted from API requests. See
  1157  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1158  	NullFields []string `json:"-"`
  1159  }
  1160  
  1161  func (s *GoogleAnalyticsAdminV1alphaAccountSummary) MarshalJSON() ([]byte, error) {
  1162  	type NoMethod GoogleAnalyticsAdminV1alphaAccountSummary
  1163  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1164  }
  1165  
  1166  // GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest: Request
  1167  // message for AcknowledgeUserDataCollection RPC.
  1168  type GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest struct {
  1169  	// Acknowledgement: Required. An acknowledgement that the caller of this method
  1170  	// understands the terms of user data collection. This field must contain the
  1171  	// exact value: "I acknowledge that I have the necessary privacy disclosures
  1172  	// and rights from my end users for the collection and processing of their
  1173  	// data, including the association of such data with the visitation information
  1174  	// Google Analytics collects from my site and/or app property."
  1175  	Acknowledgement string `json:"acknowledgement,omitempty"`
  1176  	// ForceSendFields is a list of field names (e.g. "Acknowledgement") to
  1177  	// unconditionally include in API requests. By default, fields with empty or
  1178  	// default values are omitted from API requests. See
  1179  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1180  	// details.
  1181  	ForceSendFields []string `json:"-"`
  1182  	// NullFields is a list of field names (e.g. "Acknowledgement") to include in
  1183  	// API requests with the JSON null value. By default, fields with empty values
  1184  	// are omitted from API requests. See
  1185  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1186  	NullFields []string `json:"-"`
  1187  }
  1188  
  1189  func (s *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest) MarshalJSON() ([]byte, error) {
  1190  	type NoMethod GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest
  1191  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1192  }
  1193  
  1194  // GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse: Response
  1195  // message for AcknowledgeUserDataCollection RPC.
  1196  type GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse struct {
  1197  	// ServerResponse contains the HTTP response code and headers from the server.
  1198  	googleapi.ServerResponse `json:"-"`
  1199  }
  1200  
  1201  // GoogleAnalyticsAdminV1alphaAdSenseLink: A link between a GA4 Property and an
  1202  // AdSense for Content ad client.
  1203  type GoogleAnalyticsAdminV1alphaAdSenseLink struct {
  1204  	// AdClientCode: Immutable. The AdSense ad client code that the GA4 property is
  1205  	// linked to. Example format: "ca-pub-1234567890"
  1206  	AdClientCode string `json:"adClientCode,omitempty"`
  1207  	// Name: Output only. The resource name for this AdSense Link resource. Format:
  1208  	// properties/{propertyId}/adSenseLinks/{linkId} Example:
  1209  	// properties/1234/adSenseLinks/6789
  1210  	Name string `json:"name,omitempty"`
  1211  
  1212  	// ServerResponse contains the HTTP response code and headers from the server.
  1213  	googleapi.ServerResponse `json:"-"`
  1214  	// ForceSendFields is a list of field names (e.g. "AdClientCode") to
  1215  	// unconditionally include in API requests. By default, fields with empty or
  1216  	// default values are omitted from API requests. See
  1217  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1218  	// details.
  1219  	ForceSendFields []string `json:"-"`
  1220  	// NullFields is a list of field names (e.g. "AdClientCode") to include in API
  1221  	// requests with the JSON null value. By default, fields with empty values are
  1222  	// omitted from API requests. See
  1223  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1224  	NullFields []string `json:"-"`
  1225  }
  1226  
  1227  func (s *GoogleAnalyticsAdminV1alphaAdSenseLink) MarshalJSON() ([]byte, error) {
  1228  	type NoMethod GoogleAnalyticsAdminV1alphaAdSenseLink
  1229  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1230  }
  1231  
  1232  // GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalReques
  1233  // t: Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
  1234  type GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest struct {
  1235  }
  1236  
  1237  // GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRespon
  1238  // se: Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
  1239  type GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse struct {
  1240  	// DisplayVideo360AdvertiserLink: The DisplayVideo360AdvertiserLink created as
  1241  	// a result of approving the proposal.
  1242  	DisplayVideo360AdvertiserLink *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink `json:"displayVideo360AdvertiserLink,omitempty"`
  1243  
  1244  	// ServerResponse contains the HTTP response code and headers from the server.
  1245  	googleapi.ServerResponse `json:"-"`
  1246  	// ForceSendFields is a list of field names (e.g.
  1247  	// "DisplayVideo360AdvertiserLink") to unconditionally include in API requests.
  1248  	// By default, fields with empty or default values are omitted from API
  1249  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  1250  	// for more details.
  1251  	ForceSendFields []string `json:"-"`
  1252  	// NullFields is a list of field names (e.g. "DisplayVideo360AdvertiserLink")
  1253  	// to include in API requests with the JSON null value. By default, fields with
  1254  	// empty values are omitted from API requests. See
  1255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1256  	NullFields []string `json:"-"`
  1257  }
  1258  
  1259  func (s *GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse) MarshalJSON() ([]byte, error) {
  1260  	type NoMethod GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse
  1261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1262  }
  1263  
  1264  // GoogleAnalyticsAdminV1alphaArchiveAudienceRequest: Request message for
  1265  // ArchiveAudience RPC.
  1266  type GoogleAnalyticsAdminV1alphaArchiveAudienceRequest struct {
  1267  }
  1268  
  1269  // GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest: Request message
  1270  // for ArchiveCustomDimension RPC.
  1271  type GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest struct {
  1272  }
  1273  
  1274  // GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest: Request message for
  1275  // ArchiveCustomMetric RPC.
  1276  type GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest struct {
  1277  }
  1278  
  1279  // GoogleAnalyticsAdminV1alphaAttributionSettings: The attribution settings
  1280  // used for a given property. This is a singleton resource.
  1281  type GoogleAnalyticsAdminV1alphaAttributionSettings struct {
  1282  	// AcquisitionConversionEventLookbackWindow: Required. The lookback window
  1283  	// configuration for acquisition conversion events. The default window size is
  1284  	// 30 days.
  1285  	//
  1286  	// Possible values:
  1287  	//   "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" - Lookback
  1288  	// window size unspecified.
  1289  	//   "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS" - 7-day lookback
  1290  	// window.
  1291  	//   "ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS" - 30-day lookback
  1292  	// window.
  1293  	AcquisitionConversionEventLookbackWindow string `json:"acquisitionConversionEventLookbackWindow,omitempty"`
  1294  	// AdsWebConversionDataExportScope: Required. The Conversion Export Scope for
  1295  	// data exported to linked Ads Accounts.
  1296  	//
  1297  	// Possible values:
  1298  	//   "ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED" - Default value. This
  1299  	// value is unused.
  1300  	//   "NOT_SELECTED_YET" - No data export scope selected yet. Export scope can
  1301  	// never be changed back to this value.
  1302  	//   "PAID_AND_ORGANIC_CHANNELS" - Paid and organic channels are eligible to
  1303  	// receive conversion credit, but only credit assigned to Google Ads channels
  1304  	// will appear in your Ads accounts. To learn more, see [Paid and Organic
  1305  	// channels](https://support.google.com/analytics/answer/10632359).
  1306  	//   "GOOGLE_PAID_CHANNELS" - Only Google Ads paid channels are eligible to
  1307  	// receive conversion credit. To learn more, see [Google Paid
  1308  	// channels](https://support.google.com/analytics/answer/10632359).
  1309  	AdsWebConversionDataExportScope string `json:"adsWebConversionDataExportScope,omitempty"`
  1310  	// Name: Output only. Resource name of this attribution settings resource.
  1311  	// Format: properties/{property_id}/attributionSettings Example:
  1312  	// "properties/1000/attributionSettings"
  1313  	Name string `json:"name,omitempty"`
  1314  	// OtherConversionEventLookbackWindow: Required. The lookback window for all
  1315  	// other, non-acquisition conversion events. The default window size is 90
  1316  	// days.
  1317  	//
  1318  	// Possible values:
  1319  	//   "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED" - Lookback window
  1320  	// size unspecified.
  1321  	//   "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS" - 30-day lookback window.
  1322  	//   "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS" - 60-day lookback window.
  1323  	//   "OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS" - 90-day lookback window.
  1324  	OtherConversionEventLookbackWindow string `json:"otherConversionEventLookbackWindow,omitempty"`
  1325  	// ReportingAttributionModel: Required. The reporting attribution model used to
  1326  	// calculate conversion credit in this property's reports. Changing the
  1327  	// attribution model will apply to both historical and future data. These
  1328  	// changes will be reflected in reports with conversion and revenue data. User
  1329  	// and session data will be unaffected.
  1330  	//
  1331  	// Possible values:
  1332  	//   "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED" - Reporting attribution model
  1333  	// unspecified.
  1334  	//   "PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN" - Data-driven attribution
  1335  	// distributes credit for the conversion based on data for each conversion
  1336  	// event. Each Data-driven model is specific to each advertiser and each
  1337  	// conversion event. Previously CROSS_CHANNEL_DATA_DRIVEN
  1338  	//   "PAID_AND_ORGANIC_CHANNELS_LAST_CLICK" - Ignores direct traffic and
  1339  	// attributes 100% of the conversion value to the last channel that the
  1340  	// customer clicked through (or engaged view through for YouTube) before
  1341  	// converting. Previously CROSS_CHANNEL_LAST_CLICK
  1342  	//   "GOOGLE_PAID_CHANNELS_LAST_CLICK" - Attributes 100% of the conversion
  1343  	// value to the last Google Paid channel that the customer clicked through
  1344  	// before converting. Previously ADS_PREFERRED_LAST_CLICK
  1345  	ReportingAttributionModel string `json:"reportingAttributionModel,omitempty"`
  1346  
  1347  	// ServerResponse contains the HTTP response code and headers from the server.
  1348  	googleapi.ServerResponse `json:"-"`
  1349  	// ForceSendFields is a list of field names (e.g.
  1350  	// "AcquisitionConversionEventLookbackWindow") to unconditionally include in
  1351  	// API requests. By default, fields with empty or default values are omitted
  1352  	// from API requests. See
  1353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1354  	// details.
  1355  	ForceSendFields []string `json:"-"`
  1356  	// NullFields is a list of field names (e.g.
  1357  	// "AcquisitionConversionEventLookbackWindow") to include in API requests with
  1358  	// the JSON null value. By default, fields with empty values are omitted from
  1359  	// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
  1360  	// for more details.
  1361  	NullFields []string `json:"-"`
  1362  }
  1363  
  1364  func (s *GoogleAnalyticsAdminV1alphaAttributionSettings) MarshalJSON() ([]byte, error) {
  1365  	type NoMethod GoogleAnalyticsAdminV1alphaAttributionSettings
  1366  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1367  }
  1368  
  1369  // GoogleAnalyticsAdminV1alphaAudience: A resource message representing a GA4
  1370  // Audience.
  1371  type GoogleAnalyticsAdminV1alphaAudience struct {
  1372  	// AdsPersonalizationEnabled: Output only. It is automatically set by GA to
  1373  	// false if this is an NPA Audience and is excluded from ads personalization.
  1374  	AdsPersonalizationEnabled bool `json:"adsPersonalizationEnabled,omitempty"`
  1375  	// Description: Required. The description of the Audience.
  1376  	Description string `json:"description,omitempty"`
  1377  	// DisplayName: Required. The display name of the Audience.
  1378  	DisplayName string `json:"displayName,omitempty"`
  1379  	// EventTrigger: Optional. Specifies an event to log when a user joins the
  1380  	// Audience. If not set, no event is logged when a user joins the Audience.
  1381  	EventTrigger *GoogleAnalyticsAdminV1alphaAudienceEventTrigger `json:"eventTrigger,omitempty"`
  1382  	// ExclusionDurationMode: Immutable. Specifies how long an exclusion lasts for
  1383  	// users that meet the exclusion filter. It is applied to all EXCLUDE filter
  1384  	// clauses and is ignored when there is no EXCLUDE filter clause in the
  1385  	// Audience.
  1386  	//
  1387  	// Possible values:
  1388  	//   "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" - Not specified.
  1389  	//   "EXCLUDE_TEMPORARILY" - Exclude users from the Audience during periods
  1390  	// when they meet the filter clause.
  1391  	//   "EXCLUDE_PERMANENTLY" - Exclude users from the Audience if they've ever
  1392  	// met the filter clause.
  1393  	ExclusionDurationMode string `json:"exclusionDurationMode,omitempty"`
  1394  	// FilterClauses: Required. Immutable. Unordered list. Filter clauses that
  1395  	// define the Audience. All clauses will be AND’ed together.
  1396  	FilterClauses []*GoogleAnalyticsAdminV1alphaAudienceFilterClause `json:"filterClauses,omitempty"`
  1397  	// MembershipDurationDays: Required. Immutable. The duration a user should stay
  1398  	// in an Audience. It cannot be set to more than 540 days.
  1399  	MembershipDurationDays int64 `json:"membershipDurationDays,omitempty"`
  1400  	// Name: Output only. The resource name for this Audience resource. Format:
  1401  	// properties/{propertyId}/audiences/{audienceId}
  1402  	Name string `json:"name,omitempty"`
  1403  
  1404  	// ServerResponse contains the HTTP response code and headers from the server.
  1405  	googleapi.ServerResponse `json:"-"`
  1406  	// ForceSendFields is a list of field names (e.g. "AdsPersonalizationEnabled")
  1407  	// to unconditionally include in API requests. By default, fields with empty or
  1408  	// default values are omitted from API requests. See
  1409  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1410  	// details.
  1411  	ForceSendFields []string `json:"-"`
  1412  	// NullFields is a list of field names (e.g. "AdsPersonalizationEnabled") to
  1413  	// include in API requests with the JSON null value. By default, fields with
  1414  	// empty values are omitted from API requests. See
  1415  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1416  	NullFields []string `json:"-"`
  1417  }
  1418  
  1419  func (s *GoogleAnalyticsAdminV1alphaAudience) MarshalJSON() ([]byte, error) {
  1420  	type NoMethod GoogleAnalyticsAdminV1alphaAudience
  1421  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1422  }
  1423  
  1424  // GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter: A specific
  1425  // filter for a single dimension or metric.
  1426  type GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter struct {
  1427  	// AtAnyPointInTime: Optional. Indicates whether this filter needs dynamic
  1428  	// evaluation or not. If set to true, users join the Audience if they ever met
  1429  	// the condition (static evaluation). If unset or set to false, user evaluation
  1430  	// for an Audience is dynamic; users are added to an Audience when they meet
  1431  	// the conditions and then removed when they no longer meet them. This can only
  1432  	// be set when Audience scope is ACROSS_ALL_SESSIONS.
  1433  	AtAnyPointInTime bool `json:"atAnyPointInTime,omitempty"`
  1434  	// BetweenFilter: A filter for numeric or date values between certain values on
  1435  	// a dimension or metric.
  1436  	BetweenFilter *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter `json:"betweenFilter,omitempty"`
  1437  	// FieldName: Required. Immutable. The dimension name or metric name to filter.
  1438  	// If the field name refers to a custom dimension or metric, a scope prefix
  1439  	// will be added to the front of the custom dimensions or metric name. For more
  1440  	// on scope prefixes or custom dimensions/metrics, reference the [Google
  1441  	// Analytics Data API documentation]
  1442  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
  1443  	FieldName string `json:"fieldName,omitempty"`
  1444  	// InAnyNDayPeriod: Optional. If set, specifies the time window for which to
  1445  	// evaluate data in number of days. If not set, then audience data is evaluated
  1446  	// against lifetime data (For example, infinite time window). For example, if
  1447  	// set to 1 day, only the current day's data is evaluated. The reference point
  1448  	// is the current day when at_any_point_in_time is unset or false. It can only
  1449  	// be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be greater than
  1450  	// 60 days.
  1451  	InAnyNDayPeriod int64 `json:"inAnyNDayPeriod,omitempty"`
  1452  	// InListFilter: A filter for a string dimension that matches a particular list
  1453  	// of options.
  1454  	InListFilter *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter `json:"inListFilter,omitempty"`
  1455  	// NumericFilter: A filter for numeric or date values on a dimension or metric.
  1456  	NumericFilter *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter `json:"numericFilter,omitempty"`
  1457  	// StringFilter: A filter for a string-type dimension that matches a particular
  1458  	// pattern.
  1459  	StringFilter *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter `json:"stringFilter,omitempty"`
  1460  	// ForceSendFields is a list of field names (e.g. "AtAnyPointInTime") to
  1461  	// unconditionally include in API requests. By default, fields with empty or
  1462  	// default values are omitted from API requests. See
  1463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1464  	// details.
  1465  	ForceSendFields []string `json:"-"`
  1466  	// NullFields is a list of field names (e.g. "AtAnyPointInTime") to include in
  1467  	// API requests with the JSON null value. By default, fields with empty values
  1468  	// are omitted from API requests. See
  1469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1470  	NullFields []string `json:"-"`
  1471  }
  1472  
  1473  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter) MarshalJSON() ([]byte, error) {
  1474  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter
  1475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1476  }
  1477  
  1478  // GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter: A
  1479  // filter for numeric or date values between certain values on a dimension or
  1480  // metric.
  1481  type GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter struct {
  1482  	// FromValue: Required. Begins with this number, inclusive.
  1483  	FromValue *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue `json:"fromValue,omitempty"`
  1484  	// ToValue: Required. Ends with this number, inclusive.
  1485  	ToValue *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue `json:"toValue,omitempty"`
  1486  	// ForceSendFields is a list of field names (e.g. "FromValue") to
  1487  	// unconditionally include in API requests. By default, fields with empty or
  1488  	// default values are omitted from API requests. See
  1489  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1490  	// details.
  1491  	ForceSendFields []string `json:"-"`
  1492  	// NullFields is a list of field names (e.g. "FromValue") to include in API
  1493  	// requests with the JSON null value. By default, fields with empty values are
  1494  	// omitted from API requests. See
  1495  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1496  	NullFields []string `json:"-"`
  1497  }
  1498  
  1499  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter) MarshalJSON() ([]byte, error) {
  1500  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter
  1501  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1502  }
  1503  
  1504  // GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter: A
  1505  // filter for a string dimension that matches a particular list of options.
  1506  type GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter struct {
  1507  	// CaseSensitive: Optional. If true, the match is case-sensitive. If false, the
  1508  	// match is case-insensitive.
  1509  	CaseSensitive bool `json:"caseSensitive,omitempty"`
  1510  	// Values: Required. The list of possible string values to match against. Must
  1511  	// be non-empty.
  1512  	Values []string `json:"values,omitempty"`
  1513  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
  1514  	// unconditionally include in API requests. By default, fields with empty or
  1515  	// default values are omitted from API requests. See
  1516  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1517  	// details.
  1518  	ForceSendFields []string `json:"-"`
  1519  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
  1520  	// requests with the JSON null value. By default, fields with empty values are
  1521  	// omitted from API requests. See
  1522  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1523  	NullFields []string `json:"-"`
  1524  }
  1525  
  1526  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter) MarshalJSON() ([]byte, error) {
  1527  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter
  1528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1529  }
  1530  
  1531  // GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter: A
  1532  // filter for numeric or date values on a dimension or metric.
  1533  type GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter struct {
  1534  	// Operation: Required. The operation applied to a numeric filter.
  1535  	//
  1536  	// Possible values:
  1537  	//   "OPERATION_UNSPECIFIED" - Unspecified.
  1538  	//   "EQUAL" - Equal.
  1539  	//   "LESS_THAN" - Less than.
  1540  	//   "GREATER_THAN" - Greater than.
  1541  	Operation string `json:"operation,omitempty"`
  1542  	// Value: Required. The numeric or date value to match against.
  1543  	Value *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue `json:"value,omitempty"`
  1544  	// ForceSendFields is a list of field names (e.g. "Operation") to
  1545  	// unconditionally include in API requests. By default, fields with empty or
  1546  	// default values are omitted from API requests. See
  1547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1548  	// details.
  1549  	ForceSendFields []string `json:"-"`
  1550  	// NullFields is a list of field names (e.g. "Operation") to include in API
  1551  	// requests with the JSON null value. By default, fields with empty values are
  1552  	// omitted from API requests. See
  1553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1554  	NullFields []string `json:"-"`
  1555  }
  1556  
  1557  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter) MarshalJSON() ([]byte, error) {
  1558  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter
  1559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1560  }
  1561  
  1562  // GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue: To
  1563  // represent a number.
  1564  type GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue struct {
  1565  	// DoubleValue: Double value.
  1566  	DoubleValue float64 `json:"doubleValue,omitempty"`
  1567  	// Int64Value: Integer value.
  1568  	Int64Value int64 `json:"int64Value,omitempty,string"`
  1569  	// ForceSendFields is a list of field names (e.g. "DoubleValue") to
  1570  	// unconditionally include in API requests. By default, fields with empty or
  1571  	// default values are omitted from API requests. See
  1572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1573  	// details.
  1574  	ForceSendFields []string `json:"-"`
  1575  	// NullFields is a list of field names (e.g. "DoubleValue") to include in API
  1576  	// requests with the JSON null value. By default, fields with empty values are
  1577  	// omitted from API requests. See
  1578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1579  	NullFields []string `json:"-"`
  1580  }
  1581  
  1582  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue) MarshalJSON() ([]byte, error) {
  1583  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue
  1584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1585  }
  1586  
  1587  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue) UnmarshalJSON(data []byte) error {
  1588  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue
  1589  	var s1 struct {
  1590  		DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
  1591  		*NoMethod
  1592  	}
  1593  	s1.NoMethod = (*NoMethod)(s)
  1594  	if err := json.Unmarshal(data, &s1); err != nil {
  1595  		return err
  1596  	}
  1597  	s.DoubleValue = float64(s1.DoubleValue)
  1598  	return nil
  1599  }
  1600  
  1601  // GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter: A
  1602  // filter for a string-type dimension that matches a particular pattern.
  1603  type GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter struct {
  1604  	// CaseSensitive: Optional. If true, the match is case-sensitive. If false, the
  1605  	// match is case-insensitive.
  1606  	CaseSensitive bool `json:"caseSensitive,omitempty"`
  1607  	// MatchType: Required. The match type for the string filter.
  1608  	//
  1609  	// Possible values:
  1610  	//   "MATCH_TYPE_UNSPECIFIED" - Unspecified
  1611  	//   "EXACT" - Exact match of the string value.
  1612  	//   "BEGINS_WITH" - Begins with the string value.
  1613  	//   "ENDS_WITH" - Ends with the string value.
  1614  	//   "CONTAINS" - Contains the string value.
  1615  	//   "FULL_REGEXP" - Full regular expression matches with the string value.
  1616  	MatchType string `json:"matchType,omitempty"`
  1617  	// Value: Required. The string value to be matched against.
  1618  	Value string `json:"value,omitempty"`
  1619  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
  1620  	// unconditionally include in API requests. By default, fields with empty or
  1621  	// default values are omitted from API requests. See
  1622  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1623  	// details.
  1624  	ForceSendFields []string `json:"-"`
  1625  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
  1626  	// requests with the JSON null value. By default, fields with empty values are
  1627  	// omitted from API requests. See
  1628  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1629  	NullFields []string `json:"-"`
  1630  }
  1631  
  1632  func (s *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter) MarshalJSON() ([]byte, error) {
  1633  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter
  1634  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1635  }
  1636  
  1637  // GoogleAnalyticsAdminV1alphaAudienceEventFilter: A filter that matches events
  1638  // of a single event name. If an event parameter is specified, only the subset
  1639  // of events that match both the single event name and the parameter filter
  1640  // expressions match this event filter.
  1641  type GoogleAnalyticsAdminV1alphaAudienceEventFilter struct {
  1642  	// EventName: Required. Immutable. The name of the event to match against.
  1643  	EventName string `json:"eventName,omitempty"`
  1644  	// EventParameterFilterExpression: Optional. If specified, this filter matches
  1645  	// events that match both the single event name and the parameter filter
  1646  	// expressions. AudienceEventFilter inside the parameter filter expression
  1647  	// cannot be set (For example, nested event filters are not supported). This
  1648  	// should be a single and_group of dimension_or_metric_filter or
  1649  	// not_expression; ANDs of ORs are not supported. Also, if it includes a filter
  1650  	// for "eventCount", only that one will be considered; all the other filters
  1651  	// will be ignored.
  1652  	EventParameterFilterExpression *GoogleAnalyticsAdminV1alphaAudienceFilterExpression `json:"eventParameterFilterExpression,omitempty"`
  1653  	// ForceSendFields is a list of field names (e.g. "EventName") to
  1654  	// unconditionally include in API requests. By default, fields with empty or
  1655  	// default values are omitted from API requests. See
  1656  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1657  	// details.
  1658  	ForceSendFields []string `json:"-"`
  1659  	// NullFields is a list of field names (e.g. "EventName") to include in API
  1660  	// requests with the JSON null value. By default, fields with empty values are
  1661  	// omitted from API requests. See
  1662  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1663  	NullFields []string `json:"-"`
  1664  }
  1665  
  1666  func (s *GoogleAnalyticsAdminV1alphaAudienceEventFilter) MarshalJSON() ([]byte, error) {
  1667  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceEventFilter
  1668  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1669  }
  1670  
  1671  // GoogleAnalyticsAdminV1alphaAudienceEventTrigger: Specifies an event to log
  1672  // when a user joins the Audience.
  1673  type GoogleAnalyticsAdminV1alphaAudienceEventTrigger struct {
  1674  	// EventName: Required. The event name that will be logged.
  1675  	EventName string `json:"eventName,omitempty"`
  1676  	// LogCondition: Required. When to log the event.
  1677  	//
  1678  	// Possible values:
  1679  	//   "LOG_CONDITION_UNSPECIFIED" - Log condition is not specified.
  1680  	//   "AUDIENCE_JOINED" - The event should be logged only when a user is joined.
  1681  	//   "AUDIENCE_MEMBERSHIP_RENEWED" - The event should be logged whenever the
  1682  	// Audience condition is met, even if the user is already a member of the
  1683  	// Audience.
  1684  	LogCondition string `json:"logCondition,omitempty"`
  1685  	// ForceSendFields is a list of field names (e.g. "EventName") to
  1686  	// unconditionally include in API requests. By default, fields with empty or
  1687  	// default values are omitted from API requests. See
  1688  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1689  	// details.
  1690  	ForceSendFields []string `json:"-"`
  1691  	// NullFields is a list of field names (e.g. "EventName") to include in API
  1692  	// requests with the JSON null value. By default, fields with empty values are
  1693  	// omitted from API requests. See
  1694  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1695  	NullFields []string `json:"-"`
  1696  }
  1697  
  1698  func (s *GoogleAnalyticsAdminV1alphaAudienceEventTrigger) MarshalJSON() ([]byte, error) {
  1699  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceEventTrigger
  1700  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1701  }
  1702  
  1703  // GoogleAnalyticsAdminV1alphaAudienceFilterClause: A clause for defining
  1704  // either a simple or sequence filter. A filter can be inclusive (For example,
  1705  // users satisfying the filter clause are included in the Audience) or
  1706  // exclusive (For example, users satisfying the filter clause are excluded from
  1707  // the Audience).
  1708  type GoogleAnalyticsAdminV1alphaAudienceFilterClause struct {
  1709  	// ClauseType: Required. Specifies whether this is an include or exclude filter
  1710  	// clause.
  1711  	//
  1712  	// Possible values:
  1713  	//   "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" - Unspecified clause type.
  1714  	//   "INCLUDE" - Users will be included in the Audience if the filter clause is
  1715  	// met.
  1716  	//   "EXCLUDE" - Users will be excluded from the Audience if the filter clause
  1717  	// is met.
  1718  	ClauseType string `json:"clauseType,omitempty"`
  1719  	// SequenceFilter: Filters that must occur in a specific order for the user to
  1720  	// be a member of the Audience.
  1721  	SequenceFilter *GoogleAnalyticsAdminV1alphaAudienceSequenceFilter `json:"sequenceFilter,omitempty"`
  1722  	// SimpleFilter: A simple filter that a user must satisfy to be a member of the
  1723  	// Audience.
  1724  	SimpleFilter *GoogleAnalyticsAdminV1alphaAudienceSimpleFilter `json:"simpleFilter,omitempty"`
  1725  	// ForceSendFields is a list of field names (e.g. "ClauseType") to
  1726  	// unconditionally include in API requests. By default, fields with empty or
  1727  	// default values are omitted from API requests. See
  1728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1729  	// details.
  1730  	ForceSendFields []string `json:"-"`
  1731  	// NullFields is a list of field names (e.g. "ClauseType") to include in API
  1732  	// requests with the JSON null value. By default, fields with empty values are
  1733  	// omitted from API requests. See
  1734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1735  	NullFields []string `json:"-"`
  1736  }
  1737  
  1738  func (s *GoogleAnalyticsAdminV1alphaAudienceFilterClause) MarshalJSON() ([]byte, error) {
  1739  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceFilterClause
  1740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1741  }
  1742  
  1743  // GoogleAnalyticsAdminV1alphaAudienceFilterExpression: A logical expression of
  1744  // Audience dimension, metric, or event filters.
  1745  type GoogleAnalyticsAdminV1alphaAudienceFilterExpression struct {
  1746  	// AndGroup: A list of expressions to be AND’ed together. It can only contain
  1747  	// AudienceFilterExpressions with or_group. This must be set for the top level
  1748  	// AudienceFilterExpression.
  1749  	AndGroup *GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList `json:"andGroup,omitempty"`
  1750  	// DimensionOrMetricFilter: A filter on a single dimension or metric. This
  1751  	// cannot be set on the top level AudienceFilterExpression.
  1752  	DimensionOrMetricFilter *GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter `json:"dimensionOrMetricFilter,omitempty"`
  1753  	// EventFilter: Creates a filter that matches a specific event. This cannot be
  1754  	// set on the top level AudienceFilterExpression.
  1755  	EventFilter *GoogleAnalyticsAdminV1alphaAudienceEventFilter `json:"eventFilter,omitempty"`
  1756  	// NotExpression: A filter expression to be NOT'ed (For example, inverted,
  1757  	// complemented). It can only include a dimension_or_metric_filter. This cannot
  1758  	// be set on the top level AudienceFilterExpression.
  1759  	NotExpression *GoogleAnalyticsAdminV1alphaAudienceFilterExpression `json:"notExpression,omitempty"`
  1760  	// OrGroup: A list of expressions to OR’ed together. It cannot contain
  1761  	// AudienceFilterExpressions with and_group or or_group.
  1762  	OrGroup *GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList `json:"orGroup,omitempty"`
  1763  	// ForceSendFields is a list of field names (e.g. "AndGroup") to
  1764  	// unconditionally include in API requests. By default, fields with empty or
  1765  	// default values are omitted from API requests. See
  1766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1767  	// details.
  1768  	ForceSendFields []string `json:"-"`
  1769  	// NullFields is a list of field names (e.g. "AndGroup") to include in API
  1770  	// requests with the JSON null value. By default, fields with empty values are
  1771  	// omitted from API requests. See
  1772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1773  	NullFields []string `json:"-"`
  1774  }
  1775  
  1776  func (s *GoogleAnalyticsAdminV1alphaAudienceFilterExpression) MarshalJSON() ([]byte, error) {
  1777  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceFilterExpression
  1778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1779  }
  1780  
  1781  // GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList: A list of Audience
  1782  // filter expressions.
  1783  type GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList struct {
  1784  	// FilterExpressions: A list of Audience filter expressions.
  1785  	FilterExpressions []*GoogleAnalyticsAdminV1alphaAudienceFilterExpression `json:"filterExpressions,omitempty"`
  1786  	// ForceSendFields is a list of field names (e.g. "FilterExpressions") to
  1787  	// unconditionally include in API requests. By default, fields with empty or
  1788  	// default values are omitted from API requests. See
  1789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1790  	// details.
  1791  	ForceSendFields []string `json:"-"`
  1792  	// NullFields is a list of field names (e.g. "FilterExpressions") to include in
  1793  	// API requests with the JSON null value. By default, fields with empty values
  1794  	// are omitted from API requests. See
  1795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1796  	NullFields []string `json:"-"`
  1797  }
  1798  
  1799  func (s *GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList) MarshalJSON() ([]byte, error) {
  1800  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList
  1801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1802  }
  1803  
  1804  // GoogleAnalyticsAdminV1alphaAudienceSequenceFilter: Defines filters that must
  1805  // occur in a specific order for the user to be a member of the Audience.
  1806  type GoogleAnalyticsAdminV1alphaAudienceSequenceFilter struct {
  1807  	// Scope: Required. Immutable. Specifies the scope for this filter.
  1808  	//
  1809  	// Possible values:
  1810  	//   "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" - Scope is not specified.
  1811  	//   "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT" - User joins the Audience if the
  1812  	// filter condition is met within one event.
  1813  	//   "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION" - User joins the Audience if
  1814  	// the filter condition is met within one session.
  1815  	//   "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS" - User joins the Audience if
  1816  	// the filter condition is met by any event across any session.
  1817  	Scope string `json:"scope,omitempty"`
  1818  	// SequenceMaximumDuration: Optional. Defines the time period in which the
  1819  	// whole sequence must occur.
  1820  	SequenceMaximumDuration string `json:"sequenceMaximumDuration,omitempty"`
  1821  	// SequenceSteps: Required. An ordered sequence of steps. A user must complete
  1822  	// each step in order to join the sequence filter.
  1823  	SequenceSteps []*GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep `json:"sequenceSteps,omitempty"`
  1824  	// ForceSendFields is a list of field names (e.g. "Scope") to unconditionally
  1825  	// include in API requests. By default, fields with empty or default values are
  1826  	// omitted from API requests. See
  1827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1828  	// details.
  1829  	ForceSendFields []string `json:"-"`
  1830  	// NullFields is a list of field names (e.g. "Scope") to include in API
  1831  	// requests with the JSON null value. By default, fields with empty values are
  1832  	// omitted from API requests. See
  1833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1834  	NullFields []string `json:"-"`
  1835  }
  1836  
  1837  func (s *GoogleAnalyticsAdminV1alphaAudienceSequenceFilter) MarshalJSON() ([]byte, error) {
  1838  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceSequenceFilter
  1839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1840  }
  1841  
  1842  // GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep: A
  1843  // condition that must occur in the specified step order for this user to match
  1844  // the sequence.
  1845  type GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep struct {
  1846  	// ConstraintDuration: Optional. When set, this step must be satisfied within
  1847  	// the constraint_duration of the previous step (For example, t[i] - t[i-1] <=
  1848  	// constraint_duration). If not set, there is no duration requirement (the
  1849  	// duration is effectively unlimited). It is ignored for the first step.
  1850  	ConstraintDuration string `json:"constraintDuration,omitempty"`
  1851  	// FilterExpression: Required. Immutable. A logical expression of Audience
  1852  	// dimension, metric, or event filters in each step.
  1853  	FilterExpression *GoogleAnalyticsAdminV1alphaAudienceFilterExpression `json:"filterExpression,omitempty"`
  1854  	// ImmediatelyFollows: Optional. If true, the event satisfying this step must
  1855  	// be the very next event after the event satisfying the last step. If unset or
  1856  	// false, this step indirectly follows the prior step; for example, there may
  1857  	// be events between the prior step and this step. It is ignored for the first
  1858  	// step.
  1859  	ImmediatelyFollows bool `json:"immediatelyFollows,omitempty"`
  1860  	// Scope: Required. Immutable. Specifies the scope for this step.
  1861  	//
  1862  	// Possible values:
  1863  	//   "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" - Scope is not specified.
  1864  	//   "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT" - User joins the Audience if the
  1865  	// filter condition is met within one event.
  1866  	//   "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION" - User joins the Audience if
  1867  	// the filter condition is met within one session.
  1868  	//   "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS" - User joins the Audience if
  1869  	// the filter condition is met by any event across any session.
  1870  	Scope string `json:"scope,omitempty"`
  1871  	// ForceSendFields is a list of field names (e.g. "ConstraintDuration") to
  1872  	// unconditionally include in API requests. By default, fields with empty or
  1873  	// default values are omitted from API requests. See
  1874  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1875  	// details.
  1876  	ForceSendFields []string `json:"-"`
  1877  	// NullFields is a list of field names (e.g. "ConstraintDuration") to include
  1878  	// in API requests with the JSON null value. By default, fields with empty
  1879  	// values are omitted from API requests. See
  1880  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1881  	NullFields []string `json:"-"`
  1882  }
  1883  
  1884  func (s *GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep) MarshalJSON() ([]byte, error) {
  1885  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep
  1886  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1887  }
  1888  
  1889  // GoogleAnalyticsAdminV1alphaAudienceSimpleFilter: Defines a simple filter
  1890  // that a user must satisfy to be a member of the Audience.
  1891  type GoogleAnalyticsAdminV1alphaAudienceSimpleFilter struct {
  1892  	// FilterExpression: Required. Immutable. A logical expression of Audience
  1893  	// dimension, metric, or event filters.
  1894  	FilterExpression *GoogleAnalyticsAdminV1alphaAudienceFilterExpression `json:"filterExpression,omitempty"`
  1895  	// Scope: Required. Immutable. Specifies the scope for this filter.
  1896  	//
  1897  	// Possible values:
  1898  	//   "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" - Scope is not specified.
  1899  	//   "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT" - User joins the Audience if the
  1900  	// filter condition is met within one event.
  1901  	//   "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION" - User joins the Audience if
  1902  	// the filter condition is met within one session.
  1903  	//   "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS" - User joins the Audience if
  1904  	// the filter condition is met by any event across any session.
  1905  	Scope string `json:"scope,omitempty"`
  1906  	// ForceSendFields is a list of field names (e.g. "FilterExpression") to
  1907  	// unconditionally include in API requests. By default, fields with empty or
  1908  	// default values are omitted from API requests. See
  1909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1910  	// details.
  1911  	ForceSendFields []string `json:"-"`
  1912  	// NullFields is a list of field names (e.g. "FilterExpression") to include in
  1913  	// API requests with the JSON null value. By default, fields with empty values
  1914  	// are omitted from API requests. See
  1915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1916  	NullFields []string `json:"-"`
  1917  }
  1918  
  1919  func (s *GoogleAnalyticsAdminV1alphaAudienceSimpleFilter) MarshalJSON() ([]byte, error) {
  1920  	type NoMethod GoogleAnalyticsAdminV1alphaAudienceSimpleFilter
  1921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1922  }
  1923  
  1924  // GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest: Request message
  1925  // for BatchCreateAccessBindings RPC.
  1926  type GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest struct {
  1927  	// Requests: Required. The requests specifying the access bindings to create. A
  1928  	// maximum of 1000 access bindings can be created in a batch.
  1929  	Requests []*GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest `json:"requests,omitempty"`
  1930  	// ForceSendFields is a list of field names (e.g. "Requests") to
  1931  	// unconditionally include in API requests. By default, fields with empty or
  1932  	// default values are omitted from API requests. See
  1933  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1934  	// details.
  1935  	ForceSendFields []string `json:"-"`
  1936  	// NullFields is a list of field names (e.g. "Requests") to include in API
  1937  	// requests with the JSON null value. By default, fields with empty values are
  1938  	// omitted from API requests. See
  1939  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1940  	NullFields []string `json:"-"`
  1941  }
  1942  
  1943  func (s *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest) MarshalJSON() ([]byte, error) {
  1944  	type NoMethod GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest
  1945  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1946  }
  1947  
  1948  // GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse: Response
  1949  // message for BatchCreateAccessBindings RPC.
  1950  type GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse struct {
  1951  	// AccessBindings: The access bindings created.
  1952  	AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"`
  1953  
  1954  	// ServerResponse contains the HTTP response code and headers from the server.
  1955  	googleapi.ServerResponse `json:"-"`
  1956  	// ForceSendFields is a list of field names (e.g. "AccessBindings") to
  1957  	// unconditionally include in API requests. By default, fields with empty or
  1958  	// default values are omitted from API requests. See
  1959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1960  	// details.
  1961  	ForceSendFields []string `json:"-"`
  1962  	// NullFields is a list of field names (e.g. "AccessBindings") to include in
  1963  	// API requests with the JSON null value. By default, fields with empty values
  1964  	// are omitted from API requests. See
  1965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1966  	NullFields []string `json:"-"`
  1967  }
  1968  
  1969  func (s *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse) MarshalJSON() ([]byte, error) {
  1970  	type NoMethod GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse
  1971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1972  }
  1973  
  1974  // GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest: Request message
  1975  // for BatchDeleteAccessBindings RPC.
  1976  type GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest struct {
  1977  	// Requests: Required. The requests specifying the access bindings to delete. A
  1978  	// maximum of 1000 access bindings can be deleted in a batch.
  1979  	Requests []*GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest `json:"requests,omitempty"`
  1980  	// ForceSendFields is a list of field names (e.g. "Requests") to
  1981  	// unconditionally include in API requests. By default, fields with empty or
  1982  	// default values are omitted from API requests. See
  1983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1984  	// details.
  1985  	ForceSendFields []string `json:"-"`
  1986  	// NullFields is a list of field names (e.g. "Requests") to include in API
  1987  	// requests with the JSON null value. By default, fields with empty values are
  1988  	// omitted from API requests. See
  1989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1990  	NullFields []string `json:"-"`
  1991  }
  1992  
  1993  func (s *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest) MarshalJSON() ([]byte, error) {
  1994  	type NoMethod GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest
  1995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1996  }
  1997  
  1998  // GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse: Response message
  1999  // for BatchGetAccessBindings RPC.
  2000  type GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse struct {
  2001  	// AccessBindings: The requested access bindings.
  2002  	AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"`
  2003  
  2004  	// ServerResponse contains the HTTP response code and headers from the server.
  2005  	googleapi.ServerResponse `json:"-"`
  2006  	// ForceSendFields is a list of field names (e.g. "AccessBindings") to
  2007  	// unconditionally include in API requests. By default, fields with empty or
  2008  	// default values are omitted from API requests. See
  2009  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2010  	// details.
  2011  	ForceSendFields []string `json:"-"`
  2012  	// NullFields is a list of field names (e.g. "AccessBindings") to include in
  2013  	// API requests with the JSON null value. By default, fields with empty values
  2014  	// are omitted from API requests. See
  2015  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2016  	NullFields []string `json:"-"`
  2017  }
  2018  
  2019  func (s *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse) MarshalJSON() ([]byte, error) {
  2020  	type NoMethod GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse
  2021  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2022  }
  2023  
  2024  // GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest: Request message
  2025  // for BatchUpdateAccessBindings RPC.
  2026  type GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest struct {
  2027  	// Requests: Required. The requests specifying the access bindings to update. A
  2028  	// maximum of 1000 access bindings can be updated in a batch.
  2029  	Requests []*GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest `json:"requests,omitempty"`
  2030  	// ForceSendFields is a list of field names (e.g. "Requests") to
  2031  	// unconditionally include in API requests. By default, fields with empty or
  2032  	// default values are omitted from API requests. See
  2033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2034  	// details.
  2035  	ForceSendFields []string `json:"-"`
  2036  	// NullFields is a list of field names (e.g. "Requests") to include in API
  2037  	// requests with the JSON null value. By default, fields with empty values are
  2038  	// omitted from API requests. See
  2039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2040  	NullFields []string `json:"-"`
  2041  }
  2042  
  2043  func (s *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest) MarshalJSON() ([]byte, error) {
  2044  	type NoMethod GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest
  2045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2046  }
  2047  
  2048  // GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse: Response
  2049  // message for BatchUpdateAccessBindings RPC.
  2050  type GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse struct {
  2051  	// AccessBindings: The access bindings updated.
  2052  	AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"`
  2053  
  2054  	// ServerResponse contains the HTTP response code and headers from the server.
  2055  	googleapi.ServerResponse `json:"-"`
  2056  	// ForceSendFields is a list of field names (e.g. "AccessBindings") to
  2057  	// unconditionally include in API requests. By default, fields with empty or
  2058  	// default values are omitted from API requests. See
  2059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2060  	// details.
  2061  	ForceSendFields []string `json:"-"`
  2062  	// NullFields is a list of field names (e.g. "AccessBindings") to include in
  2063  	// API requests with the JSON null value. By default, fields with empty values
  2064  	// are omitted from API requests. See
  2065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2066  	NullFields []string `json:"-"`
  2067  }
  2068  
  2069  func (s *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse) MarshalJSON() ([]byte, error) {
  2070  	type NoMethod GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse
  2071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2072  }
  2073  
  2074  // GoogleAnalyticsAdminV1alphaBigQueryLink: A link between a GA4 Property and
  2075  // BigQuery project.
  2076  type GoogleAnalyticsAdminV1alphaBigQueryLink struct {
  2077  	// CreateTime: Output only. Time when the link was created.
  2078  	CreateTime string `json:"createTime,omitempty"`
  2079  	// DailyExportEnabled: If set true, enables daily data export to the linked
  2080  	// Google Cloud project.
  2081  	DailyExportEnabled bool `json:"dailyExportEnabled,omitempty"`
  2082  	// ExcludedEvents: The list of event names that will be excluded from exports.
  2083  	ExcludedEvents []string `json:"excludedEvents,omitempty"`
  2084  	// ExportStreams: The list of streams under the parent property for which data
  2085  	// will be exported. Format: properties/{property_id}/dataStreams/{stream_id}
  2086  	// Example: ['properties/1000/dataStreams/2000']
  2087  	ExportStreams []string `json:"exportStreams,omitempty"`
  2088  	// FreshDailyExportEnabled: If set true, enables fresh daily export to the
  2089  	// linked Google Cloud project.
  2090  	FreshDailyExportEnabled bool `json:"freshDailyExportEnabled,omitempty"`
  2091  	// IncludeAdvertisingId: If set true, exported data will include advertising
  2092  	// identifiers for mobile app streams.
  2093  	IncludeAdvertisingId bool `json:"includeAdvertisingId,omitempty"`
  2094  	// Name: Output only. Resource name of this BigQuery link. Format:
  2095  	// 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' Format:
  2096  	// 'properties/1234/bigQueryLinks/abc567'
  2097  	Name string `json:"name,omitempty"`
  2098  	// Project: Immutable. The linked Google Cloud project. When creating a
  2099  	// BigQueryLink, you may provide this resource name using either a project
  2100  	// number or project ID. Once this resource has been created, the returned
  2101  	// project will always have a project that contains a project number. Format:
  2102  	// 'projects/{project number}' Example: 'projects/1234'
  2103  	Project string `json:"project,omitempty"`
  2104  	// StreamingExportEnabled: If set true, enables streaming export to the linked
  2105  	// Google Cloud project.
  2106  	StreamingExportEnabled bool `json:"streamingExportEnabled,omitempty"`
  2107  
  2108  	// ServerResponse contains the HTTP response code and headers from the server.
  2109  	googleapi.ServerResponse `json:"-"`
  2110  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2111  	// unconditionally include in API requests. By default, fields with empty or
  2112  	// default values are omitted from API requests. See
  2113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2114  	// details.
  2115  	ForceSendFields []string `json:"-"`
  2116  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2117  	// requests with the JSON null value. By default, fields with empty values are
  2118  	// omitted from API requests. See
  2119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2120  	NullFields []string `json:"-"`
  2121  }
  2122  
  2123  func (s *GoogleAnalyticsAdminV1alphaBigQueryLink) MarshalJSON() ([]byte, error) {
  2124  	type NoMethod GoogleAnalyticsAdminV1alphaBigQueryLink
  2125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2126  }
  2127  
  2128  // GoogleAnalyticsAdminV1alphaCalculatedMetric: A definition for a calculated
  2129  // metric.
  2130  type GoogleAnalyticsAdminV1alphaCalculatedMetric struct {
  2131  	// CalculatedMetricId: Output only. The ID to use for the calculated metric. In
  2132  	// the UI, this is referred to as the "API name." The calculated_metric_id is
  2133  	// used when referencing this calculated metric from external APIs. For
  2134  	// example, "calcMetric:{calculated_metric_id}".
  2135  	CalculatedMetricId string `json:"calculatedMetricId,omitempty"`
  2136  	// Description: Optional. Description for this calculated metric. Max length of
  2137  	// 4096 characters.
  2138  	Description string `json:"description,omitempty"`
  2139  	// DisplayName: Required. Display name for this calculated metric as shown in
  2140  	// the Google Analytics UI. Max length 82 characters.
  2141  	DisplayName string `json:"displayName,omitempty"`
  2142  	// Formula: Required. The calculated metric's definition. Maximum number of
  2143  	// unique referenced custom metrics is 5. Formulas supports the following
  2144  	// operations: + (addition), - (subtraction), - (negative), * (multiplication),
  2145  	// / (division), () (parenthesis). Any valid real numbers are acceptable that
  2146  	// fit in a Long (64bit integer) or a Double (64 bit floating point number).
  2147  	// Example formula: "( customEvent:parameter_name + cartPurchaseQuantity ) /
  2148  	// 2.0"
  2149  	Formula string `json:"formula,omitempty"`
  2150  	// InvalidMetricReference: Output only. If true, this calculated metric has a
  2151  	// invalid metric reference. Anything using a calculated metric with
  2152  	// invalid_metric_reference set to true may fail, produce warnings, or produce
  2153  	// unexpected results.
  2154  	InvalidMetricReference bool `json:"invalidMetricReference,omitempty"`
  2155  	// MetricUnit: Required. The type for the calculated metric's value.
  2156  	//
  2157  	// Possible values:
  2158  	//   "METRIC_UNIT_UNSPECIFIED" - MetricUnit unspecified or missing.
  2159  	//   "STANDARD" - This metric uses default units.
  2160  	//   "CURRENCY" - This metric measures a currency.
  2161  	//   "FEET" - This metric measures feet.
  2162  	//   "MILES" - This metric measures miles.
  2163  	//   "METERS" - This metric measures meters.
  2164  	//   "KILOMETERS" - This metric measures kilometers.
  2165  	//   "MILLISECONDS" - This metric measures milliseconds.
  2166  	//   "SECONDS" - This metric measures seconds.
  2167  	//   "MINUTES" - This metric measures minutes.
  2168  	//   "HOURS" - This metric measures hours.
  2169  	MetricUnit string `json:"metricUnit,omitempty"`
  2170  	// Name: Output only. Resource name for this CalculatedMetric. Format:
  2171  	// 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
  2172  	Name string `json:"name,omitempty"`
  2173  	// RestrictedMetricType: Output only. Types of restricted data that this metric
  2174  	// contains.
  2175  	//
  2176  	// Possible values:
  2177  	//   "RESTRICTED_METRIC_TYPE_UNSPECIFIED" - Type unknown or unspecified.
  2178  	//   "COST_DATA" - Metric reports cost data.
  2179  	//   "REVENUE_DATA" - Metric reports revenue data.
  2180  	RestrictedMetricType []string `json:"restrictedMetricType,omitempty"`
  2181  
  2182  	// ServerResponse contains the HTTP response code and headers from the server.
  2183  	googleapi.ServerResponse `json:"-"`
  2184  	// ForceSendFields is a list of field names (e.g. "CalculatedMetricId") to
  2185  	// unconditionally include in API requests. By default, fields with empty or
  2186  	// default values are omitted from API requests. See
  2187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2188  	// details.
  2189  	ForceSendFields []string `json:"-"`
  2190  	// NullFields is a list of field names (e.g. "CalculatedMetricId") to include
  2191  	// in API requests with the JSON null value. By default, fields with empty
  2192  	// values are omitted from API requests. See
  2193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2194  	NullFields []string `json:"-"`
  2195  }
  2196  
  2197  func (s *GoogleAnalyticsAdminV1alphaCalculatedMetric) MarshalJSON() ([]byte, error) {
  2198  	type NoMethod GoogleAnalyticsAdminV1alphaCalculatedMetric
  2199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2200  }
  2201  
  2202  // GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest
  2203  // : Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
  2204  type GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest struct {
  2205  }
  2206  
  2207  // GoogleAnalyticsAdminV1alphaChangeHistoryChange: A description of a change to
  2208  // a single Google Analytics resource.
  2209  type GoogleAnalyticsAdminV1alphaChangeHistoryChange struct {
  2210  	// Action: The type of action that changed this resource.
  2211  	//
  2212  	// Possible values:
  2213  	//   "ACTION_TYPE_UNSPECIFIED" - Action type unknown or not specified.
  2214  	//   "CREATED" - Resource was created in this change.
  2215  	//   "UPDATED" - Resource was updated in this change.
  2216  	//   "DELETED" - Resource was deleted in this change.
  2217  	Action string `json:"action,omitempty"`
  2218  	// Resource: Resource name of the resource whose changes are described by this
  2219  	// entry.
  2220  	Resource string `json:"resource,omitempty"`
  2221  	// ResourceAfterChange: Resource contents from after the change was made. If
  2222  	// this resource was deleted in this change, this field will be missing.
  2223  	ResourceAfterChange *GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource `json:"resourceAfterChange,omitempty"`
  2224  	// ResourceBeforeChange: Resource contents from before the change was made. If
  2225  	// this resource was created in this change, this field will be missing.
  2226  	ResourceBeforeChange *GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource `json:"resourceBeforeChange,omitempty"`
  2227  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  2228  	// include in API requests. By default, fields with empty or default values are
  2229  	// omitted from API requests. See
  2230  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2231  	// details.
  2232  	ForceSendFields []string `json:"-"`
  2233  	// NullFields is a list of field names (e.g. "Action") to include in API
  2234  	// requests with the JSON null value. By default, fields with empty values are
  2235  	// omitted from API requests. See
  2236  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2237  	NullFields []string `json:"-"`
  2238  }
  2239  
  2240  func (s *GoogleAnalyticsAdminV1alphaChangeHistoryChange) MarshalJSON() ([]byte, error) {
  2241  	type NoMethod GoogleAnalyticsAdminV1alphaChangeHistoryChange
  2242  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2243  }
  2244  
  2245  // GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource: A
  2246  // snapshot of a resource as before or after the result of a change in change
  2247  // history.
  2248  type GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource struct {
  2249  	// Account: A snapshot of an Account resource in change history.
  2250  	Account *GoogleAnalyticsAdminV1alphaAccount `json:"account,omitempty"`
  2251  	// AdsenseLink: A snapshot of an AdSenseLink resource in change history.
  2252  	AdsenseLink *GoogleAnalyticsAdminV1alphaAdSenseLink `json:"adsenseLink,omitempty"`
  2253  	// AttributionSettings: A snapshot of AttributionSettings resource in change
  2254  	// history.
  2255  	AttributionSettings *GoogleAnalyticsAdminV1alphaAttributionSettings `json:"attributionSettings,omitempty"`
  2256  	// Audience: A snapshot of an Audience resource in change history.
  2257  	Audience *GoogleAnalyticsAdminV1alphaAudience `json:"audience,omitempty"`
  2258  	// BigqueryLink: A snapshot of a BigQuery link resource in change history.
  2259  	BigqueryLink *GoogleAnalyticsAdminV1alphaBigQueryLink `json:"bigqueryLink,omitempty"`
  2260  	// CalculatedMetric: A snapshot of a CalculatedMetric resource in change
  2261  	// history.
  2262  	CalculatedMetric *GoogleAnalyticsAdminV1alphaCalculatedMetric `json:"calculatedMetric,omitempty"`
  2263  	// ChannelGroup: A snapshot of a ChannelGroup resource in change history.
  2264  	ChannelGroup *GoogleAnalyticsAdminV1alphaChannelGroup `json:"channelGroup,omitempty"`
  2265  	// ConversionEvent: A snapshot of a ConversionEvent resource in change history.
  2266  	ConversionEvent *GoogleAnalyticsAdminV1alphaConversionEvent `json:"conversionEvent,omitempty"`
  2267  	// CustomDimension: A snapshot of a CustomDimension resource in change history.
  2268  	CustomDimension *GoogleAnalyticsAdminV1alphaCustomDimension `json:"customDimension,omitempty"`
  2269  	// CustomMetric: A snapshot of a CustomMetric resource in change history.
  2270  	CustomMetric *GoogleAnalyticsAdminV1alphaCustomMetric `json:"customMetric,omitempty"`
  2271  	// DataRedactionSettings: A snapshot of DataRedactionSettings resource in
  2272  	// change history.
  2273  	DataRedactionSettings *GoogleAnalyticsAdminV1alphaDataRedactionSettings `json:"dataRedactionSettings,omitempty"`
  2274  	// DataRetentionSettings: A snapshot of a data retention settings resource in
  2275  	// change history.
  2276  	DataRetentionSettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings `json:"dataRetentionSettings,omitempty"`
  2277  	// DataStream: A snapshot of a DataStream resource in change history.
  2278  	DataStream *GoogleAnalyticsAdminV1alphaDataStream `json:"dataStream,omitempty"`
  2279  	// DisplayVideo360AdvertiserLink: A snapshot of a DisplayVideo360AdvertiserLink
  2280  	// resource in change history.
  2281  	DisplayVideo360AdvertiserLink *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink `json:"displayVideo360AdvertiserLink,omitempty"`
  2282  	// DisplayVideo360AdvertiserLinkProposal: A snapshot of a
  2283  	// DisplayVideo360AdvertiserLinkProposal resource in change history.
  2284  	DisplayVideo360AdvertiserLinkProposal *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal `json:"displayVideo360AdvertiserLinkProposal,omitempty"`
  2285  	// EnhancedMeasurementSettings: A snapshot of EnhancedMeasurementSettings
  2286  	// resource in change history.
  2287  	EnhancedMeasurementSettings *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings `json:"enhancedMeasurementSettings,omitempty"`
  2288  	// EventCreateRule: A snapshot of an EventCreateRule resource in change
  2289  	// history.
  2290  	EventCreateRule *GoogleAnalyticsAdminV1alphaEventCreateRule `json:"eventCreateRule,omitempty"`
  2291  	// ExpandedDataSet: A snapshot of an ExpandedDataSet resource in change
  2292  	// history.
  2293  	ExpandedDataSet *GoogleAnalyticsAdminV1alphaExpandedDataSet `json:"expandedDataSet,omitempty"`
  2294  	// FirebaseLink: A snapshot of a FirebaseLink resource in change history.
  2295  	FirebaseLink *GoogleAnalyticsAdminV1alphaFirebaseLink `json:"firebaseLink,omitempty"`
  2296  	// GoogleAdsLink: A snapshot of a GoogleAdsLink resource in change history.
  2297  	GoogleAdsLink *GoogleAnalyticsAdminV1alphaGoogleAdsLink `json:"googleAdsLink,omitempty"`
  2298  	// GoogleSignalsSettings: A snapshot of a GoogleSignalsSettings resource in
  2299  	// change history.
  2300  	GoogleSignalsSettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings `json:"googleSignalsSettings,omitempty"`
  2301  	// MeasurementProtocolSecret: A snapshot of a MeasurementProtocolSecret
  2302  	// resource in change history.
  2303  	MeasurementProtocolSecret *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret `json:"measurementProtocolSecret,omitempty"`
  2304  	// Property: A snapshot of a Property resource in change history.
  2305  	Property *GoogleAnalyticsAdminV1alphaProperty `json:"property,omitempty"`
  2306  	// SearchAds360Link: A snapshot of a SearchAds360Link resource in change
  2307  	// history.
  2308  	SearchAds360Link *GoogleAnalyticsAdminV1alphaSearchAds360Link `json:"searchAds360Link,omitempty"`
  2309  	// SkadnetworkConversionValueSchema: A snapshot of
  2310  	// SKAdNetworkConversionValueSchema resource in change history.
  2311  	SkadnetworkConversionValueSchema *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema `json:"skadnetworkConversionValueSchema,omitempty"`
  2312  	// ForceSendFields is a list of field names (e.g. "Account") to unconditionally
  2313  	// include in API requests. By default, fields with empty or default values are
  2314  	// omitted from API requests. See
  2315  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2316  	// details.
  2317  	ForceSendFields []string `json:"-"`
  2318  	// NullFields is a list of field names (e.g. "Account") to include in API
  2319  	// requests with the JSON null value. By default, fields with empty values are
  2320  	// omitted from API requests. See
  2321  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2322  	NullFields []string `json:"-"`
  2323  }
  2324  
  2325  func (s *GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource) MarshalJSON() ([]byte, error) {
  2326  	type NoMethod GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource
  2327  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2328  }
  2329  
  2330  // GoogleAnalyticsAdminV1alphaChangeHistoryEvent: A set of changes within a
  2331  // Google Analytics account or its child properties that resulted from the same
  2332  // cause. Common causes would be updates made in the Google Analytics UI,
  2333  // changes from customer support, or automatic Google Analytics system changes.
  2334  type GoogleAnalyticsAdminV1alphaChangeHistoryEvent struct {
  2335  	// ActorType: The type of actor that made this change.
  2336  	//
  2337  	// Possible values:
  2338  	//   "ACTOR_TYPE_UNSPECIFIED" - Unknown or unspecified actor type.
  2339  	//   "USER" - Changes made by the user specified in actor_email.
  2340  	//   "SYSTEM" - Changes made by the Google Analytics system.
  2341  	//   "SUPPORT" - Changes made by Google Analytics support team staff.
  2342  	ActorType string `json:"actorType,omitempty"`
  2343  	// ChangeTime: Time when change was made.
  2344  	ChangeTime string `json:"changeTime,omitempty"`
  2345  	// Changes: A list of changes made in this change history event that fit the
  2346  	// filters specified in SearchChangeHistoryEventsRequest.
  2347  	Changes []*GoogleAnalyticsAdminV1alphaChangeHistoryChange `json:"changes,omitempty"`
  2348  	// ChangesFiltered: If true, then the list of changes returned was filtered,
  2349  	// and does not represent all changes that occurred in this event.
  2350  	ChangesFiltered bool `json:"changesFiltered,omitempty"`
  2351  	// Id: ID of this change history event. This ID is unique across Google
  2352  	// Analytics.
  2353  	Id string `json:"id,omitempty"`
  2354  	// UserActorEmail: Email address of the Google account that made the change.
  2355  	// This will be a valid email address if the actor field is set to USER, and
  2356  	// empty otherwise. Google accounts that have been deleted will cause an error.
  2357  	UserActorEmail string `json:"userActorEmail,omitempty"`
  2358  	// ForceSendFields is a list of field names (e.g. "ActorType") to
  2359  	// unconditionally include in API requests. By default, fields with empty or
  2360  	// default values are omitted from API requests. See
  2361  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2362  	// details.
  2363  	ForceSendFields []string `json:"-"`
  2364  	// NullFields is a list of field names (e.g. "ActorType") to include in API
  2365  	// requests with the JSON null value. By default, fields with empty values are
  2366  	// omitted from API requests. See
  2367  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2368  	NullFields []string `json:"-"`
  2369  }
  2370  
  2371  func (s *GoogleAnalyticsAdminV1alphaChangeHistoryEvent) MarshalJSON() ([]byte, error) {
  2372  	type NoMethod GoogleAnalyticsAdminV1alphaChangeHistoryEvent
  2373  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2374  }
  2375  
  2376  // GoogleAnalyticsAdminV1alphaChannelGroup: A resource message representing a
  2377  // Channel Group.
  2378  type GoogleAnalyticsAdminV1alphaChannelGroup struct {
  2379  	// Description: The description of the Channel Group. Max length of 256
  2380  	// characters.
  2381  	Description string `json:"description,omitempty"`
  2382  	// DisplayName: Required. The display name of the Channel Group. Max length of
  2383  	// 80 characters.
  2384  	DisplayName string `json:"displayName,omitempty"`
  2385  	// GroupingRule: Required. The grouping rules of channels. Maximum number of
  2386  	// rules is 50.
  2387  	GroupingRule []*GoogleAnalyticsAdminV1alphaGroupingRule `json:"groupingRule,omitempty"`
  2388  	// Name: Output only. The resource name for this Channel Group resource.
  2389  	// Format: properties/{property}/channelGroups/{channel_group}
  2390  	Name string `json:"name,omitempty"`
  2391  	// Primary: Optional. If true, this channel group will be used as the default
  2392  	// channel group for reports. Only one channel group can be set as `primary` at
  2393  	// any time. If the `primary` field gets set on a channel group, it will get
  2394  	// unset on the previous primary channel group. The Google Analytics predefined
  2395  	// channel group is the primary by default.
  2396  	Primary bool `json:"primary,omitempty"`
  2397  	// SystemDefined: Output only. If true, then this channel group is the Default
  2398  	// Channel Group predefined by Google Analytics. Display name and grouping
  2399  	// rules cannot be updated for this channel group.
  2400  	SystemDefined bool `json:"systemDefined,omitempty"`
  2401  
  2402  	// ServerResponse contains the HTTP response code and headers from the server.
  2403  	googleapi.ServerResponse `json:"-"`
  2404  	// ForceSendFields is a list of field names (e.g. "Description") to
  2405  	// unconditionally include in API requests. By default, fields with empty or
  2406  	// default values are omitted from API requests. See
  2407  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2408  	// details.
  2409  	ForceSendFields []string `json:"-"`
  2410  	// NullFields is a list of field names (e.g. "Description") to include in API
  2411  	// requests with the JSON null value. By default, fields with empty values are
  2412  	// omitted from API requests. See
  2413  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2414  	NullFields []string `json:"-"`
  2415  }
  2416  
  2417  func (s *GoogleAnalyticsAdminV1alphaChannelGroup) MarshalJSON() ([]byte, error) {
  2418  	type NoMethod GoogleAnalyticsAdminV1alphaChannelGroup
  2419  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2420  }
  2421  
  2422  // GoogleAnalyticsAdminV1alphaChannelGroupFilter: A specific filter for a
  2423  // single dimension.
  2424  type GoogleAnalyticsAdminV1alphaChannelGroupFilter struct {
  2425  	// FieldName: Required. Immutable. The dimension name to filter.
  2426  	FieldName string `json:"fieldName,omitempty"`
  2427  	// InListFilter: A filter for a string dimension that matches a particular list
  2428  	// of options.
  2429  	InListFilter *GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter `json:"inListFilter,omitempty"`
  2430  	// StringFilter: A filter for a string-type dimension that matches a particular
  2431  	// pattern.
  2432  	StringFilter *GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter `json:"stringFilter,omitempty"`
  2433  	// ForceSendFields is a list of field names (e.g. "FieldName") to
  2434  	// unconditionally include in API requests. By default, fields with empty or
  2435  	// default values are omitted from API requests. See
  2436  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2437  	// details.
  2438  	ForceSendFields []string `json:"-"`
  2439  	// NullFields is a list of field names (e.g. "FieldName") to include in API
  2440  	// requests with the JSON null value. By default, fields with empty values are
  2441  	// omitted from API requests. See
  2442  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2443  	NullFields []string `json:"-"`
  2444  }
  2445  
  2446  func (s *GoogleAnalyticsAdminV1alphaChannelGroupFilter) MarshalJSON() ([]byte, error) {
  2447  	type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilter
  2448  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2449  }
  2450  
  2451  // GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression: A logical
  2452  // expression of Channel Group dimension filters.
  2453  type GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression struct {
  2454  	// AndGroup: A list of expressions to be AND’ed together. It can only contain
  2455  	// ChannelGroupFilterExpressions with or_group. This must be set for the top
  2456  	// level ChannelGroupFilterExpression.
  2457  	AndGroup *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList `json:"andGroup,omitempty"`
  2458  	// Filter: A filter on a single dimension. This cannot be set on the top level
  2459  	// ChannelGroupFilterExpression.
  2460  	Filter *GoogleAnalyticsAdminV1alphaChannelGroupFilter `json:"filter,omitempty"`
  2461  	// NotExpression: A filter expression to be NOT'ed (that is inverted,
  2462  	// complemented). It can only include a dimension_or_metric_filter. This cannot
  2463  	// be set on the top level ChannelGroupFilterExpression.
  2464  	NotExpression *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression `json:"notExpression,omitempty"`
  2465  	// OrGroup: A list of expressions to OR’ed together. It cannot contain
  2466  	// ChannelGroupFilterExpressions with and_group or or_group.
  2467  	OrGroup *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList `json:"orGroup,omitempty"`
  2468  	// ForceSendFields is a list of field names (e.g. "AndGroup") to
  2469  	// unconditionally include in API requests. By default, fields with empty or
  2470  	// default values are omitted from API requests. See
  2471  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2472  	// details.
  2473  	ForceSendFields []string `json:"-"`
  2474  	// NullFields is a list of field names (e.g. "AndGroup") to include in API
  2475  	// requests with the JSON null value. By default, fields with empty values are
  2476  	// omitted from API requests. See
  2477  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2478  	NullFields []string `json:"-"`
  2479  }
  2480  
  2481  func (s *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression) MarshalJSON() ([]byte, error) {
  2482  	type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression
  2483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2484  }
  2485  
  2486  // GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList: A list of
  2487  // Channel Group filter expressions.
  2488  type GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList struct {
  2489  	// FilterExpressions: A list of Channel Group filter expressions.
  2490  	FilterExpressions []*GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression `json:"filterExpressions,omitempty"`
  2491  	// ForceSendFields is a list of field names (e.g. "FilterExpressions") to
  2492  	// unconditionally include in API requests. By default, fields with empty or
  2493  	// default values are omitted from API requests. See
  2494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2495  	// details.
  2496  	ForceSendFields []string `json:"-"`
  2497  	// NullFields is a list of field names (e.g. "FilterExpressions") to include in
  2498  	// API requests with the JSON null value. By default, fields with empty values
  2499  	// are omitted from API requests. See
  2500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2501  	NullFields []string `json:"-"`
  2502  }
  2503  
  2504  func (s *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList) MarshalJSON() ([]byte, error) {
  2505  	type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterExpressionList
  2506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2507  }
  2508  
  2509  // GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter: A filter for a
  2510  // string dimension that matches a particular list of options. The match is
  2511  // case insensitive.
  2512  type GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter struct {
  2513  	// Values: Required. The list of possible string values to match against. Must
  2514  	// be non-empty.
  2515  	Values []string `json:"values,omitempty"`
  2516  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  2517  	// include in API requests. By default, fields with empty or default values are
  2518  	// omitted from API requests. See
  2519  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2520  	// details.
  2521  	ForceSendFields []string `json:"-"`
  2522  	// NullFields is a list of field names (e.g. "Values") to include in API
  2523  	// requests with the JSON null value. By default, fields with empty values are
  2524  	// omitted from API requests. See
  2525  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2526  	NullFields []string `json:"-"`
  2527  }
  2528  
  2529  func (s *GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter) MarshalJSON() ([]byte, error) {
  2530  	type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterInListFilter
  2531  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2532  }
  2533  
  2534  // GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter: Filter where the
  2535  // field value is a String. The match is case insensitive.
  2536  type GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter struct {
  2537  	// MatchType: Required. The match type for the string filter.
  2538  	//
  2539  	// Possible values:
  2540  	//   "MATCH_TYPE_UNSPECIFIED" - Default match type.
  2541  	//   "EXACT" - Exact match of the string value.
  2542  	//   "BEGINS_WITH" - Begins with the string value.
  2543  	//   "ENDS_WITH" - Ends with the string value.
  2544  	//   "CONTAINS" - Contains the string value.
  2545  	//   "FULL_REGEXP" - Full regular expression match with the string value.
  2546  	//   "PARTIAL_REGEXP" - Partial regular expression match with the string value.
  2547  	MatchType string `json:"matchType,omitempty"`
  2548  	// Value: Required. The string value to be matched against.
  2549  	Value string `json:"value,omitempty"`
  2550  	// ForceSendFields is a list of field names (e.g. "MatchType") to
  2551  	// unconditionally include in API requests. By default, fields with empty or
  2552  	// default values are omitted from API requests. See
  2553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2554  	// details.
  2555  	ForceSendFields []string `json:"-"`
  2556  	// NullFields is a list of field names (e.g. "MatchType") to include in API
  2557  	// requests with the JSON null value. By default, fields with empty values are
  2558  	// omitted from API requests. See
  2559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2560  	NullFields []string `json:"-"`
  2561  }
  2562  
  2563  func (s *GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter) MarshalJSON() ([]byte, error) {
  2564  	type NoMethod GoogleAnalyticsAdminV1alphaChannelGroupFilterStringFilter
  2565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2566  }
  2567  
  2568  // GoogleAnalyticsAdminV1alphaConnectedSiteTag: Configuration for a specific
  2569  // Connected Site Tag.
  2570  type GoogleAnalyticsAdminV1alphaConnectedSiteTag struct {
  2571  	// DisplayName: Required. User-provided display name for the connected site
  2572  	// tag. Must be less than 256 characters.
  2573  	DisplayName string `json:"displayName,omitempty"`
  2574  	// TagId: Required. "Tag ID to forward events to. Also known as the Measurement
  2575  	// ID, or the "G-ID" (For example: G-12345).
  2576  	TagId string `json:"tagId,omitempty"`
  2577  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2578  	// unconditionally include in API requests. By default, fields with empty or
  2579  	// default values are omitted from API requests. See
  2580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2581  	// details.
  2582  	ForceSendFields []string `json:"-"`
  2583  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2584  	// requests with the JSON null value. By default, fields with empty values are
  2585  	// omitted from API requests. See
  2586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2587  	NullFields []string `json:"-"`
  2588  }
  2589  
  2590  func (s *GoogleAnalyticsAdminV1alphaConnectedSiteTag) MarshalJSON() ([]byte, error) {
  2591  	type NoMethod GoogleAnalyticsAdminV1alphaConnectedSiteTag
  2592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2593  }
  2594  
  2595  // GoogleAnalyticsAdminV1alphaConversionEvent: A conversion event in a Google
  2596  // Analytics property.
  2597  type GoogleAnalyticsAdminV1alphaConversionEvent struct {
  2598  	// CountingMethod: Optional. The method by which conversions will be counted
  2599  	// across multiple events within a session. If this value is not provided, it
  2600  	// will be set to `ONCE_PER_EVENT`.
  2601  	//
  2602  	// Possible values:
  2603  	//   "CONVERSION_COUNTING_METHOD_UNSPECIFIED" - Counting method not specified.
  2604  	//   "ONCE_PER_EVENT" - Each Event instance is considered a Conversion.
  2605  	//   "ONCE_PER_SESSION" - An Event instance is considered a Conversion at most
  2606  	// once per session per user.
  2607  	CountingMethod string `json:"countingMethod,omitempty"`
  2608  	// CreateTime: Output only. Time when this conversion event was created in the
  2609  	// property.
  2610  	CreateTime string `json:"createTime,omitempty"`
  2611  	// Custom: Output only. If set to true, this conversion event refers to a
  2612  	// custom event. If set to false, this conversion event refers to a default
  2613  	// event in GA. Default events typically have special meaning in GA. Default
  2614  	// events are usually created for you by the GA system, but in some cases can
  2615  	// be created by property admins. Custom events count towards the maximum
  2616  	// number of custom conversion events that may be created per property.
  2617  	Custom bool `json:"custom,omitempty"`
  2618  	// DefaultConversionValue: Optional. Defines a default value/currency for a
  2619  	// conversion event.
  2620  	DefaultConversionValue *GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue `json:"defaultConversionValue,omitempty"`
  2621  	// Deletable: Output only. If set, this event can currently be deleted with
  2622  	// DeleteConversionEvent.
  2623  	Deletable bool `json:"deletable,omitempty"`
  2624  	// EventName: Immutable. The event name for this conversion event. Examples:
  2625  	// 'click', 'purchase'
  2626  	EventName string `json:"eventName,omitempty"`
  2627  	// Name: Output only. Resource name of this conversion event. Format:
  2628  	// properties/{property}/conversionEvents/{conversion_event}
  2629  	Name string `json:"name,omitempty"`
  2630  
  2631  	// ServerResponse contains the HTTP response code and headers from the server.
  2632  	googleapi.ServerResponse `json:"-"`
  2633  	// ForceSendFields is a list of field names (e.g. "CountingMethod") to
  2634  	// unconditionally include in API requests. By default, fields with empty or
  2635  	// default values are omitted from API requests. See
  2636  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2637  	// details.
  2638  	ForceSendFields []string `json:"-"`
  2639  	// NullFields is a list of field names (e.g. "CountingMethod") to include in
  2640  	// API requests with the JSON null value. By default, fields with empty values
  2641  	// are omitted from API requests. See
  2642  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2643  	NullFields []string `json:"-"`
  2644  }
  2645  
  2646  func (s *GoogleAnalyticsAdminV1alphaConversionEvent) MarshalJSON() ([]byte, error) {
  2647  	type NoMethod GoogleAnalyticsAdminV1alphaConversionEvent
  2648  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2649  }
  2650  
  2651  // GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue: Defines a
  2652  // default value/currency for a conversion event. Both value and currency must
  2653  // be provided.
  2654  type GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue struct {
  2655  	// CurrencyCode: When a conversion event for this event_name has no set
  2656  	// currency, this currency will be applied as the default. Must be in ISO 4217
  2657  	// currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more
  2658  	// information.
  2659  	CurrencyCode string `json:"currencyCode,omitempty"`
  2660  	// Value: This value will be used to populate the value for all conversions of
  2661  	// the specified event_name where the event "value" parameter is unset.
  2662  	Value float64 `json:"value,omitempty"`
  2663  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
  2664  	// unconditionally include in API requests. By default, fields with empty or
  2665  	// default values are omitted from API requests. See
  2666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2667  	// details.
  2668  	ForceSendFields []string `json:"-"`
  2669  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
  2670  	// requests with the JSON null value. By default, fields with empty values are
  2671  	// omitted from API requests. See
  2672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2673  	NullFields []string `json:"-"`
  2674  }
  2675  
  2676  func (s *GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue) MarshalJSON() ([]byte, error) {
  2677  	type NoMethod GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
  2678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2679  }
  2680  
  2681  func (s *GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue) UnmarshalJSON(data []byte) error {
  2682  	type NoMethod GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
  2683  	var s1 struct {
  2684  		Value gensupport.JSONFloat64 `json:"value"`
  2685  		*NoMethod
  2686  	}
  2687  	s1.NoMethod = (*NoMethod)(s)
  2688  	if err := json.Unmarshal(data, &s1); err != nil {
  2689  		return err
  2690  	}
  2691  	s.Value = float64(s1.Value)
  2692  	return nil
  2693  }
  2694  
  2695  // GoogleAnalyticsAdminV1alphaConversionValues: Conversion value settings for a
  2696  // postback window for SKAdNetwork conversion value schema.
  2697  type GoogleAnalyticsAdminV1alphaConversionValues struct {
  2698  	// CoarseValue: Required. A coarse grained conversion value. This value is not
  2699  	// guaranteed to be unique.
  2700  	//
  2701  	// Possible values:
  2702  	//   "COARSE_VALUE_UNSPECIFIED" - Coarse value not specified.
  2703  	//   "COARSE_VALUE_LOW" - Coarse value of low.
  2704  	//   "COARSE_VALUE_MEDIUM" - Coarse value of medium.
  2705  	//   "COARSE_VALUE_HIGH" - Coarse value of high.
  2706  	CoarseValue string `json:"coarseValue,omitempty"`
  2707  	// DisplayName: Display name of the SKAdNetwork conversion value. The max
  2708  	// allowed display name length is 50 UTF-16 code units.
  2709  	DisplayName string `json:"displayName,omitempty"`
  2710  	// EventMappings: Event conditions that must be met for this Conversion Value
  2711  	// to be achieved. The conditions in this list are ANDed together. It must have
  2712  	// minimum of 1 entry and maximum of 3 entries, if the postback window is
  2713  	// enabled.
  2714  	EventMappings []*GoogleAnalyticsAdminV1alphaEventMapping `json:"eventMappings,omitempty"`
  2715  	// FineValue: The fine-grained conversion value. This is applicable only to the
  2716  	// first postback window. Its valid values are [0,63], both inclusive. It must
  2717  	// be set for postback window 1, and must not be set for postback window 2 & 3.
  2718  	// This value is not guaranteed to be unique. If the configuration for the
  2719  	// first postback window is re-used for second or third postback windows this
  2720  	// field has no effect.
  2721  	FineValue int64 `json:"fineValue,omitempty"`
  2722  	// LockEnabled: If true, the SDK should lock to this conversion value for the
  2723  	// current postback window.
  2724  	LockEnabled bool `json:"lockEnabled,omitempty"`
  2725  	// ForceSendFields is a list of field names (e.g. "CoarseValue") to
  2726  	// unconditionally include in API requests. By default, fields with empty or
  2727  	// default values are omitted from API requests. See
  2728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2729  	// details.
  2730  	ForceSendFields []string `json:"-"`
  2731  	// NullFields is a list of field names (e.g. "CoarseValue") to include in API
  2732  	// requests with the JSON null value. By default, fields with empty values are
  2733  	// omitted from API requests. See
  2734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2735  	NullFields []string `json:"-"`
  2736  }
  2737  
  2738  func (s *GoogleAnalyticsAdminV1alphaConversionValues) MarshalJSON() ([]byte, error) {
  2739  	type NoMethod GoogleAnalyticsAdminV1alphaConversionValues
  2740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2741  }
  2742  
  2743  // GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest: Request message for
  2744  // CreateAccessBinding RPC.
  2745  type GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest struct {
  2746  	// AccessBinding: Required. The access binding to create.
  2747  	AccessBinding *GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBinding,omitempty"`
  2748  	// Parent: Required. Formats: - accounts/{account} - properties/{property}
  2749  	Parent string `json:"parent,omitempty"`
  2750  	// ForceSendFields is a list of field names (e.g. "AccessBinding") to
  2751  	// unconditionally include in API requests. By default, fields with empty or
  2752  	// default values are omitted from API requests. See
  2753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2754  	// details.
  2755  	ForceSendFields []string `json:"-"`
  2756  	// NullFields is a list of field names (e.g. "AccessBinding") to include in API
  2757  	// requests with the JSON null value. By default, fields with empty values are
  2758  	// omitted from API requests. See
  2759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2760  	NullFields []string `json:"-"`
  2761  }
  2762  
  2763  func (s *GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest) MarshalJSON() ([]byte, error) {
  2764  	type NoMethod GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest
  2765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2766  }
  2767  
  2768  // GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest: Request message
  2769  // for CreateConnectedSiteTag RPC.
  2770  type GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest struct {
  2771  	// ConnectedSiteTag: Required. The tag to add to the Universal Analytics
  2772  	// property
  2773  	ConnectedSiteTag *GoogleAnalyticsAdminV1alphaConnectedSiteTag `json:"connectedSiteTag,omitempty"`
  2774  	// Property: The Universal Analytics property to create connected site tags
  2775  	// for. This API does not support GA4 properties. Format:
  2776  	// properties/{universalAnalyticsPropertyId} Example: properties/1234
  2777  	Property string `json:"property,omitempty"`
  2778  	// ForceSendFields is a list of field names (e.g. "ConnectedSiteTag") to
  2779  	// unconditionally include in API requests. By default, fields with empty or
  2780  	// default values are omitted from API requests. See
  2781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2782  	// details.
  2783  	ForceSendFields []string `json:"-"`
  2784  	// NullFields is a list of field names (e.g. "ConnectedSiteTag") to include in
  2785  	// API requests with the JSON null value. By default, fields with empty values
  2786  	// are omitted from API requests. See
  2787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2788  	NullFields []string `json:"-"`
  2789  }
  2790  
  2791  func (s *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest) MarshalJSON() ([]byte, error) {
  2792  	type NoMethod GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest
  2793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2794  }
  2795  
  2796  // GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse: Response message
  2797  // for CreateConnectedSiteTag RPC.
  2798  type GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse struct {
  2799  	// ServerResponse contains the HTTP response code and headers from the server.
  2800  	googleapi.ServerResponse `json:"-"`
  2801  }
  2802  
  2803  // GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest: Request message for
  2804  // CreateRollupProperty RPC.
  2805  type GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest struct {
  2806  	// RollupProperty: Required. The roll-up property to create.
  2807  	RollupProperty *GoogleAnalyticsAdminV1alphaProperty `json:"rollupProperty,omitempty"`
  2808  	// SourceProperties: Optional. The resource names of properties that will be
  2809  	// sources to the created roll-up property.
  2810  	SourceProperties []string `json:"sourceProperties,omitempty"`
  2811  	// ForceSendFields is a list of field names (e.g. "RollupProperty") to
  2812  	// unconditionally include in API requests. By default, fields with empty or
  2813  	// default values are omitted from API requests. See
  2814  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2815  	// details.
  2816  	ForceSendFields []string `json:"-"`
  2817  	// NullFields is a list of field names (e.g. "RollupProperty") to include in
  2818  	// API requests with the JSON null value. By default, fields with empty values
  2819  	// are omitted from API requests. See
  2820  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2821  	NullFields []string `json:"-"`
  2822  }
  2823  
  2824  func (s *GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest) MarshalJSON() ([]byte, error) {
  2825  	type NoMethod GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest
  2826  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2827  }
  2828  
  2829  // GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse: Response message
  2830  // for CreateRollupProperty RPC.
  2831  type GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse struct {
  2832  	// RollupProperty: The created roll-up property.
  2833  	RollupProperty *GoogleAnalyticsAdminV1alphaProperty `json:"rollupProperty,omitempty"`
  2834  	// RollupPropertySourceLinks: The created roll-up property source links.
  2835  	RollupPropertySourceLinks []*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink `json:"rollupPropertySourceLinks,omitempty"`
  2836  
  2837  	// ServerResponse contains the HTTP response code and headers from the server.
  2838  	googleapi.ServerResponse `json:"-"`
  2839  	// ForceSendFields is a list of field names (e.g. "RollupProperty") to
  2840  	// unconditionally include in API requests. By default, fields with empty or
  2841  	// default values are omitted from API requests. See
  2842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2843  	// details.
  2844  	ForceSendFields []string `json:"-"`
  2845  	// NullFields is a list of field names (e.g. "RollupProperty") to include in
  2846  	// API requests with the JSON null value. By default, fields with empty values
  2847  	// are omitted from API requests. See
  2848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2849  	NullFields []string `json:"-"`
  2850  }
  2851  
  2852  func (s *GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse) MarshalJSON() ([]byte, error) {
  2853  	type NoMethod GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse
  2854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2855  }
  2856  
  2857  // GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest: Request message for
  2858  // CreateSubproperty RPC.
  2859  type GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest struct {
  2860  	// Parent: Required. The ordinary property for which to create a subproperty.
  2861  	// Format: properties/property_id Example: properties/123
  2862  	Parent string `json:"parent,omitempty"`
  2863  	// Subproperty: Required. The subproperty to create.
  2864  	Subproperty *GoogleAnalyticsAdminV1alphaProperty `json:"subproperty,omitempty"`
  2865  	// SubpropertyEventFilter: Optional. The subproperty event filter to create on
  2866  	// an ordinary property.
  2867  	SubpropertyEventFilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter `json:"subpropertyEventFilter,omitempty"`
  2868  	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
  2869  	// include in API requests. By default, fields with empty or default values are
  2870  	// omitted from API requests. See
  2871  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2872  	// details.
  2873  	ForceSendFields []string `json:"-"`
  2874  	// NullFields is a list of field names (e.g. "Parent") to include in API
  2875  	// requests with the JSON null value. By default, fields with empty values are
  2876  	// omitted from API requests. See
  2877  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2878  	NullFields []string `json:"-"`
  2879  }
  2880  
  2881  func (s *GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest) MarshalJSON() ([]byte, error) {
  2882  	type NoMethod GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest
  2883  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2884  }
  2885  
  2886  // GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse: Response message for
  2887  // CreateSubproperty RPC.
  2888  type GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse struct {
  2889  	// Subproperty: The created subproperty.
  2890  	Subproperty *GoogleAnalyticsAdminV1alphaProperty `json:"subproperty,omitempty"`
  2891  	// SubpropertyEventFilter: The created subproperty event filter.
  2892  	SubpropertyEventFilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter `json:"subpropertyEventFilter,omitempty"`
  2893  
  2894  	// ServerResponse contains the HTTP response code and headers from the server.
  2895  	googleapi.ServerResponse `json:"-"`
  2896  	// ForceSendFields is a list of field names (e.g. "Subproperty") to
  2897  	// unconditionally include in API requests. By default, fields with empty or
  2898  	// default values are omitted from API requests. See
  2899  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2900  	// details.
  2901  	ForceSendFields []string `json:"-"`
  2902  	// NullFields is a list of field names (e.g. "Subproperty") to include in API
  2903  	// requests with the JSON null value. By default, fields with empty values are
  2904  	// omitted from API requests. See
  2905  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2906  	NullFields []string `json:"-"`
  2907  }
  2908  
  2909  func (s *GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse) MarshalJSON() ([]byte, error) {
  2910  	type NoMethod GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse
  2911  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2912  }
  2913  
  2914  // GoogleAnalyticsAdminV1alphaCustomDimension: A definition for a
  2915  // CustomDimension.
  2916  type GoogleAnalyticsAdminV1alphaCustomDimension struct {
  2917  	// Description: Optional. Description for this custom dimension. Max length of
  2918  	// 150 characters.
  2919  	Description string `json:"description,omitempty"`
  2920  	// DisallowAdsPersonalization: Optional. If set to true, sets this dimension as
  2921  	// NPA and excludes it from ads personalization. This is currently only
  2922  	// supported by user-scoped custom dimensions.
  2923  	DisallowAdsPersonalization bool `json:"disallowAdsPersonalization,omitempty"`
  2924  	// DisplayName: Required. Display name for this custom dimension as shown in
  2925  	// the Analytics UI. Max length of 82 characters, alphanumeric plus space and
  2926  	// underscore starting with a letter. Legacy system-generated display names may
  2927  	// contain square brackets, but updates to this field will never permit square
  2928  	// brackets.
  2929  	DisplayName string `json:"displayName,omitempty"`
  2930  	// Name: Output only. Resource name for this CustomDimension resource. Format:
  2931  	// properties/{property}/customDimensions/{customDimension}
  2932  	Name string `json:"name,omitempty"`
  2933  	// ParameterName: Required. Immutable. Tagging parameter name for this custom
  2934  	// dimension. If this is a user-scoped dimension, then this is the user
  2935  	// property name. If this is an event-scoped dimension, then this is the event
  2936  	// parameter name. If this is an item-scoped dimension, then this is the
  2937  	// parameter name found in the eCommerce items array. May only contain
  2938  	// alphanumeric and underscore characters, starting with a letter. Max length
  2939  	// of 24 characters for user-scoped dimensions, 40 characters for event-scoped
  2940  	// dimensions.
  2941  	ParameterName string `json:"parameterName,omitempty"`
  2942  	// Scope: Required. Immutable. The scope of this dimension.
  2943  	//
  2944  	// Possible values:
  2945  	//   "DIMENSION_SCOPE_UNSPECIFIED" - Scope unknown or not specified.
  2946  	//   "EVENT" - Dimension scoped to an event.
  2947  	//   "USER" - Dimension scoped to a user.
  2948  	//   "ITEM" - Dimension scoped to eCommerce items
  2949  	Scope string `json:"scope,omitempty"`
  2950  
  2951  	// ServerResponse contains the HTTP response code and headers from the server.
  2952  	googleapi.ServerResponse `json:"-"`
  2953  	// ForceSendFields is a list of field names (e.g. "Description") to
  2954  	// unconditionally include in API requests. By default, fields with empty or
  2955  	// default values are omitted from API requests. See
  2956  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2957  	// details.
  2958  	ForceSendFields []string `json:"-"`
  2959  	// NullFields is a list of field names (e.g. "Description") to include in API
  2960  	// requests with the JSON null value. By default, fields with empty values are
  2961  	// omitted from API requests. See
  2962  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2963  	NullFields []string `json:"-"`
  2964  }
  2965  
  2966  func (s *GoogleAnalyticsAdminV1alphaCustomDimension) MarshalJSON() ([]byte, error) {
  2967  	type NoMethod GoogleAnalyticsAdminV1alphaCustomDimension
  2968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2969  }
  2970  
  2971  // GoogleAnalyticsAdminV1alphaCustomMetric: A definition for a custom metric.
  2972  type GoogleAnalyticsAdminV1alphaCustomMetric struct {
  2973  	// Description: Optional. Description for this custom dimension. Max length of
  2974  	// 150 characters.
  2975  	Description string `json:"description,omitempty"`
  2976  	// DisplayName: Required. Display name for this custom metric as shown in the
  2977  	// Analytics UI. Max length of 82 characters, alphanumeric plus space and
  2978  	// underscore starting with a letter. Legacy system-generated display names may
  2979  	// contain square brackets, but updates to this field will never permit square
  2980  	// brackets.
  2981  	DisplayName string `json:"displayName,omitempty"`
  2982  	// MeasurementUnit: Required. The type for the custom metric's value.
  2983  	//
  2984  	// Possible values:
  2985  	//   "MEASUREMENT_UNIT_UNSPECIFIED" - MeasurementUnit unspecified or missing.
  2986  	//   "STANDARD" - This metric uses default units.
  2987  	//   "CURRENCY" - This metric measures a currency.
  2988  	//   "FEET" - This metric measures feet.
  2989  	//   "METERS" - This metric measures meters.
  2990  	//   "KILOMETERS" - This metric measures kilometers.
  2991  	//   "MILES" - This metric measures miles.
  2992  	//   "MILLISECONDS" - This metric measures milliseconds.
  2993  	//   "SECONDS" - This metric measures seconds.
  2994  	//   "MINUTES" - This metric measures minutes.
  2995  	//   "HOURS" - This metric measures hours.
  2996  	MeasurementUnit string `json:"measurementUnit,omitempty"`
  2997  	// Name: Output only. Resource name for this CustomMetric resource. Format:
  2998  	// properties/{property}/customMetrics/{customMetric}
  2999  	Name string `json:"name,omitempty"`
  3000  	// ParameterName: Required. Immutable. Tagging name for this custom metric. If
  3001  	// this is an event-scoped metric, then this is the event parameter name. May
  3002  	// only contain alphanumeric and underscore charactes, starting with a letter.
  3003  	// Max length of 40 characters for event-scoped metrics.
  3004  	ParameterName string `json:"parameterName,omitempty"`
  3005  	// RestrictedMetricType: Optional. Types of restricted data that this metric
  3006  	// may contain. Required for metrics with CURRENCY measurement unit. Must be
  3007  	// empty for metrics with a non-CURRENCY measurement unit.
  3008  	//
  3009  	// Possible values:
  3010  	//   "RESTRICTED_METRIC_TYPE_UNSPECIFIED" - Type unknown or unspecified.
  3011  	//   "COST_DATA" - Metric reports cost data.
  3012  	//   "REVENUE_DATA" - Metric reports revenue data.
  3013  	RestrictedMetricType []string `json:"restrictedMetricType,omitempty"`
  3014  	// Scope: Required. Immutable. The scope of this custom metric.
  3015  	//
  3016  	// Possible values:
  3017  	//   "METRIC_SCOPE_UNSPECIFIED" - Scope unknown or not specified.
  3018  	//   "EVENT" - Metric scoped to an event.
  3019  	Scope string `json:"scope,omitempty"`
  3020  
  3021  	// ServerResponse contains the HTTP response code and headers from the server.
  3022  	googleapi.ServerResponse `json:"-"`
  3023  	// ForceSendFields is a list of field names (e.g. "Description") to
  3024  	// unconditionally include in API requests. By default, fields with empty or
  3025  	// default values are omitted from API requests. See
  3026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3027  	// details.
  3028  	ForceSendFields []string `json:"-"`
  3029  	// NullFields is a list of field names (e.g. "Description") to include in API
  3030  	// requests with the JSON null value. By default, fields with empty values are
  3031  	// omitted from API requests. See
  3032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3033  	NullFields []string `json:"-"`
  3034  }
  3035  
  3036  func (s *GoogleAnalyticsAdminV1alphaCustomMetric) MarshalJSON() ([]byte, error) {
  3037  	type NoMethod GoogleAnalyticsAdminV1alphaCustomMetric
  3038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3039  }
  3040  
  3041  // GoogleAnalyticsAdminV1alphaDataRedactionSettings: Settings for client-side
  3042  // data redaction. Singleton resource under a Web Stream.
  3043  type GoogleAnalyticsAdminV1alphaDataRedactionSettings struct {
  3044  	// EmailRedactionEnabled: If enabled, any event parameter or user property
  3045  	// values that look like an email will be redacted.
  3046  	EmailRedactionEnabled bool `json:"emailRedactionEnabled,omitempty"`
  3047  	// Name: Output only. Name of this Data Redaction Settings resource. Format:
  3048  	// properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
  3049  	// Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
  3050  	Name string `json:"name,omitempty"`
  3051  	// QueryParameterKeys: The query parameter keys to apply redaction logic to if
  3052  	// present in the URL. Query parameter matching is case-insensitive. Must
  3053  	// contain at least one element if query_parameter_replacement_enabled is true.
  3054  	// Keys cannot contain commas.
  3055  	QueryParameterKeys []string `json:"queryParameterKeys,omitempty"`
  3056  	// QueryParameterRedactionEnabled: Query Parameter redaction removes the key
  3057  	// and value portions of a query parameter if it is in the configured set of
  3058  	// query parameters. If enabled, URL query replacement logic will be run for
  3059  	// the Stream. Any query parameters defined in query_parameter_keys will be
  3060  	// redacted.
  3061  	QueryParameterRedactionEnabled bool `json:"queryParameterRedactionEnabled,omitempty"`
  3062  
  3063  	// ServerResponse contains the HTTP response code and headers from the server.
  3064  	googleapi.ServerResponse `json:"-"`
  3065  	// ForceSendFields is a list of field names (e.g. "EmailRedactionEnabled") to
  3066  	// unconditionally include in API requests. By default, fields with empty or
  3067  	// default values are omitted from API requests. See
  3068  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3069  	// details.
  3070  	ForceSendFields []string `json:"-"`
  3071  	// NullFields is a list of field names (e.g. "EmailRedactionEnabled") to
  3072  	// include in API requests with the JSON null value. By default, fields with
  3073  	// empty values are omitted from API requests. See
  3074  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3075  	NullFields []string `json:"-"`
  3076  }
  3077  
  3078  func (s *GoogleAnalyticsAdminV1alphaDataRedactionSettings) MarshalJSON() ([]byte, error) {
  3079  	type NoMethod GoogleAnalyticsAdminV1alphaDataRedactionSettings
  3080  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3081  }
  3082  
  3083  // GoogleAnalyticsAdminV1alphaDataRetentionSettings: Settings values for data
  3084  // retention. This is a singleton resource.
  3085  type GoogleAnalyticsAdminV1alphaDataRetentionSettings struct {
  3086  	// EventDataRetention: The length of time that event-level data is retained.
  3087  	//
  3088  	// Possible values:
  3089  	//   "RETENTION_DURATION_UNSPECIFIED" - Data retention time duration is not
  3090  	// specified.
  3091  	//   "TWO_MONTHS" - The data retention time duration is 2 months.
  3092  	//   "FOURTEEN_MONTHS" - The data retention time duration is 14 months.
  3093  	//   "TWENTY_SIX_MONTHS" - The data retention time duration is 26 months.
  3094  	// Available to 360 properties only.
  3095  	//   "THIRTY_EIGHT_MONTHS" - The data retention time duration is 38 months.
  3096  	// Available to 360 properties only.
  3097  	//   "FIFTY_MONTHS" - The data retention time duration is 50 months. Available
  3098  	// to 360 properties only.
  3099  	EventDataRetention string `json:"eventDataRetention,omitempty"`
  3100  	// Name: Output only. Resource name for this DataRetentionSetting resource.
  3101  	// Format: properties/{property}/dataRetentionSettings
  3102  	Name string `json:"name,omitempty"`
  3103  	// ResetUserDataOnNewActivity: If true, reset the retention period for the user
  3104  	// identifier with every event from that user.
  3105  	ResetUserDataOnNewActivity bool `json:"resetUserDataOnNewActivity,omitempty"`
  3106  
  3107  	// ServerResponse contains the HTTP response code and headers from the server.
  3108  	googleapi.ServerResponse `json:"-"`
  3109  	// ForceSendFields is a list of field names (e.g. "EventDataRetention") to
  3110  	// unconditionally include in API requests. By default, fields with empty or
  3111  	// default values are omitted from API requests. See
  3112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3113  	// details.
  3114  	ForceSendFields []string `json:"-"`
  3115  	// NullFields is a list of field names (e.g. "EventDataRetention") to include
  3116  	// in API requests with the JSON null value. By default, fields with empty
  3117  	// values are omitted from API requests. See
  3118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3119  	NullFields []string `json:"-"`
  3120  }
  3121  
  3122  func (s *GoogleAnalyticsAdminV1alphaDataRetentionSettings) MarshalJSON() ([]byte, error) {
  3123  	type NoMethod GoogleAnalyticsAdminV1alphaDataRetentionSettings
  3124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3125  }
  3126  
  3127  // GoogleAnalyticsAdminV1alphaDataSharingSettings: A resource message
  3128  // representing data sharing settings of a Google Analytics account.
  3129  type GoogleAnalyticsAdminV1alphaDataSharingSettings struct {
  3130  	// Name: Output only. Resource name. Format:
  3131  	// accounts/{account}/dataSharingSettings Example:
  3132  	// "accounts/1000/dataSharingSettings"
  3133  	Name string `json:"name,omitempty"`
  3134  	// SharingWithGoogleAnySalesEnabled: Allows any of Google sales to access the
  3135  	// data in order to suggest configuration changes to improve results.
  3136  	SharingWithGoogleAnySalesEnabled bool `json:"sharingWithGoogleAnySalesEnabled,omitempty"`
  3137  	// SharingWithGoogleAssignedSalesEnabled: Allows Google sales teams that are
  3138  	// assigned to the customer to access the data in order to suggest
  3139  	// configuration changes to improve results. Sales team restrictions still
  3140  	// apply when enabled.
  3141  	SharingWithGoogleAssignedSalesEnabled bool `json:"sharingWithGoogleAssignedSalesEnabled,omitempty"`
  3142  	// SharingWithGoogleProductsEnabled: Allows Google to use the data to improve
  3143  	// other Google products or services.
  3144  	SharingWithGoogleProductsEnabled bool `json:"sharingWithGoogleProductsEnabled,omitempty"`
  3145  	// SharingWithGoogleSupportEnabled: Allows Google support to access the data in
  3146  	// order to help troubleshoot issues.
  3147  	SharingWithGoogleSupportEnabled bool `json:"sharingWithGoogleSupportEnabled,omitempty"`
  3148  	// SharingWithOthersEnabled: Allows Google to share the data anonymously in
  3149  	// aggregate form with others.
  3150  	SharingWithOthersEnabled bool `json:"sharingWithOthersEnabled,omitempty"`
  3151  
  3152  	// ServerResponse contains the HTTP response code and headers from the server.
  3153  	googleapi.ServerResponse `json:"-"`
  3154  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3155  	// include in API requests. By default, fields with empty or default values are
  3156  	// omitted from API requests. See
  3157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3158  	// details.
  3159  	ForceSendFields []string `json:"-"`
  3160  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3161  	// with the JSON null value. By default, fields with empty values are omitted
  3162  	// from API requests. See
  3163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3164  	NullFields []string `json:"-"`
  3165  }
  3166  
  3167  func (s *GoogleAnalyticsAdminV1alphaDataSharingSettings) MarshalJSON() ([]byte, error) {
  3168  	type NoMethod GoogleAnalyticsAdminV1alphaDataSharingSettings
  3169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3170  }
  3171  
  3172  // GoogleAnalyticsAdminV1alphaDataStream: A resource message representing a
  3173  // data stream.
  3174  type GoogleAnalyticsAdminV1alphaDataStream struct {
  3175  	// AndroidAppStreamData: Data specific to Android app streams. Must be
  3176  	// populated if type is ANDROID_APP_DATA_STREAM.
  3177  	AndroidAppStreamData *GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData `json:"androidAppStreamData,omitempty"`
  3178  	// CreateTime: Output only. Time when this stream was originally created.
  3179  	CreateTime string `json:"createTime,omitempty"`
  3180  	// DisplayName: Human-readable display name for the Data Stream. Required for
  3181  	// web data streams. The max allowed display name length is 255 UTF-16 code
  3182  	// units.
  3183  	DisplayName string `json:"displayName,omitempty"`
  3184  	// IosAppStreamData: Data specific to iOS app streams. Must be populated if
  3185  	// type is IOS_APP_DATA_STREAM.
  3186  	IosAppStreamData *GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData `json:"iosAppStreamData,omitempty"`
  3187  	// Name: Output only. Resource name of this Data Stream. Format:
  3188  	// properties/{property_id}/dataStreams/{stream_id} Example:
  3189  	// "properties/1000/dataStreams/2000"
  3190  	Name string `json:"name,omitempty"`
  3191  	// Type: Required. Immutable. The type of this DataStream resource.
  3192  	//
  3193  	// Possible values:
  3194  	//   "DATA_STREAM_TYPE_UNSPECIFIED" - Type unknown or not specified.
  3195  	//   "WEB_DATA_STREAM" - Web data stream.
  3196  	//   "ANDROID_APP_DATA_STREAM" - Android app data stream.
  3197  	//   "IOS_APP_DATA_STREAM" - iOS app data stream.
  3198  	Type string `json:"type,omitempty"`
  3199  	// UpdateTime: Output only. Time when stream payload fields were last updated.
  3200  	UpdateTime string `json:"updateTime,omitempty"`
  3201  	// WebStreamData: Data specific to web streams. Must be populated if type is
  3202  	// WEB_DATA_STREAM.
  3203  	WebStreamData *GoogleAnalyticsAdminV1alphaDataStreamWebStreamData `json:"webStreamData,omitempty"`
  3204  
  3205  	// ServerResponse contains the HTTP response code and headers from the server.
  3206  	googleapi.ServerResponse `json:"-"`
  3207  	// ForceSendFields is a list of field names (e.g. "AndroidAppStreamData") to
  3208  	// unconditionally include in API requests. By default, fields with empty or
  3209  	// default values are omitted from API requests. See
  3210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3211  	// details.
  3212  	ForceSendFields []string `json:"-"`
  3213  	// NullFields is a list of field names (e.g. "AndroidAppStreamData") to include
  3214  	// in API requests with the JSON null value. By default, fields with empty
  3215  	// values are omitted from API requests. See
  3216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3217  	NullFields []string `json:"-"`
  3218  }
  3219  
  3220  func (s *GoogleAnalyticsAdminV1alphaDataStream) MarshalJSON() ([]byte, error) {
  3221  	type NoMethod GoogleAnalyticsAdminV1alphaDataStream
  3222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3223  }
  3224  
  3225  // GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData: Data specific to
  3226  // Android app streams.
  3227  type GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData struct {
  3228  	// FirebaseAppId: Output only. ID of the corresponding Android app in Firebase,
  3229  	// if any. This ID can change if the Android app is deleted and recreated.
  3230  	FirebaseAppId string `json:"firebaseAppId,omitempty"`
  3231  	// PackageName: Immutable. The package name for the app being measured.
  3232  	// Example: "com.example.myandroidapp"
  3233  	PackageName string `json:"packageName,omitempty"`
  3234  	// ForceSendFields is a list of field names (e.g. "FirebaseAppId") to
  3235  	// unconditionally include in API requests. By default, fields with empty or
  3236  	// default values are omitted from API requests. See
  3237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3238  	// details.
  3239  	ForceSendFields []string `json:"-"`
  3240  	// NullFields is a list of field names (e.g. "FirebaseAppId") to include in API
  3241  	// requests with the JSON null value. By default, fields with empty values are
  3242  	// omitted from API requests. See
  3243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3244  	NullFields []string `json:"-"`
  3245  }
  3246  
  3247  func (s *GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData) MarshalJSON() ([]byte, error) {
  3248  	type NoMethod GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData
  3249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3250  }
  3251  
  3252  // GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData: Data specific to iOS
  3253  // app streams.
  3254  type GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData struct {
  3255  	// BundleId: Required. Immutable. The Apple App Store Bundle ID for the app
  3256  	// Example: "com.example.myiosapp"
  3257  	BundleId string `json:"bundleId,omitempty"`
  3258  	// FirebaseAppId: Output only. ID of the corresponding iOS app in Firebase, if
  3259  	// any. This ID can change if the iOS app is deleted and recreated.
  3260  	FirebaseAppId string `json:"firebaseAppId,omitempty"`
  3261  	// ForceSendFields is a list of field names (e.g. "BundleId") to
  3262  	// unconditionally include in API requests. By default, fields with empty or
  3263  	// default values are omitted from API requests. See
  3264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3265  	// details.
  3266  	ForceSendFields []string `json:"-"`
  3267  	// NullFields is a list of field names (e.g. "BundleId") to include in API
  3268  	// requests with the JSON null value. By default, fields with empty values are
  3269  	// omitted from API requests. See
  3270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3271  	NullFields []string `json:"-"`
  3272  }
  3273  
  3274  func (s *GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData) MarshalJSON() ([]byte, error) {
  3275  	type NoMethod GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData
  3276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3277  }
  3278  
  3279  // GoogleAnalyticsAdminV1alphaDataStreamWebStreamData: Data specific to web
  3280  // streams.
  3281  type GoogleAnalyticsAdminV1alphaDataStreamWebStreamData struct {
  3282  	// DefaultUri: Domain name of the web app being measured, or empty. Example:
  3283  	// "http://www.google.com", "https://www.google.com"
  3284  	DefaultUri string `json:"defaultUri,omitempty"`
  3285  	// FirebaseAppId: Output only. ID of the corresponding web app in Firebase, if
  3286  	// any. This ID can change if the web app is deleted and recreated.
  3287  	FirebaseAppId string `json:"firebaseAppId,omitempty"`
  3288  	// MeasurementId: Output only. Analytics Measurement ID. Example:
  3289  	// "G-1A2BCD345E"
  3290  	MeasurementId string `json:"measurementId,omitempty"`
  3291  	// ForceSendFields is a list of field names (e.g. "DefaultUri") to
  3292  	// unconditionally include in API requests. By default, fields with empty or
  3293  	// default values are omitted from API requests. See
  3294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3295  	// details.
  3296  	ForceSendFields []string `json:"-"`
  3297  	// NullFields is a list of field names (e.g. "DefaultUri") to include in API
  3298  	// requests with the JSON null value. By default, fields with empty values are
  3299  	// omitted from API requests. See
  3300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3301  	NullFields []string `json:"-"`
  3302  }
  3303  
  3304  func (s *GoogleAnalyticsAdminV1alphaDataStreamWebStreamData) MarshalJSON() ([]byte, error) {
  3305  	type NoMethod GoogleAnalyticsAdminV1alphaDataStreamWebStreamData
  3306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3307  }
  3308  
  3309  // GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest: Request message for
  3310  // DeleteAccessBinding RPC.
  3311  type GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest struct {
  3312  	// Name: Required. Formats: - accounts/{account}/accessBindings/{accessBinding}
  3313  	// - properties/{property}/accessBindings/{accessBinding}
  3314  	Name string `json:"name,omitempty"`
  3315  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3316  	// include in API requests. By default, fields with empty or default values are
  3317  	// omitted from API requests. See
  3318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3319  	// details.
  3320  	ForceSendFields []string `json:"-"`
  3321  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3322  	// with the JSON null value. By default, fields with empty values are omitted
  3323  	// from API requests. See
  3324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3325  	NullFields []string `json:"-"`
  3326  }
  3327  
  3328  func (s *GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest) MarshalJSON() ([]byte, error) {
  3329  	type NoMethod GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest
  3330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3331  }
  3332  
  3333  // GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest: Request message
  3334  // for DeleteConnectedSiteTag RPC.
  3335  type GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest struct {
  3336  	// Property: The Universal Analytics property to delete connected site tags
  3337  	// for. This API does not support GA4 properties. Format:
  3338  	// properties/{universalAnalyticsPropertyId} Example: properties/1234
  3339  	Property string `json:"property,omitempty"`
  3340  	// TagId: Tag ID to forward events to. Also known as the Measurement ID, or the
  3341  	// "G-ID" (For example: G-12345).
  3342  	TagId string `json:"tagId,omitempty"`
  3343  	// ForceSendFields is a list of field names (e.g. "Property") to
  3344  	// unconditionally include in API requests. By default, fields with empty or
  3345  	// default values are omitted from API requests. See
  3346  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3347  	// details.
  3348  	ForceSendFields []string `json:"-"`
  3349  	// NullFields is a list of field names (e.g. "Property") to include in API
  3350  	// requests with the JSON null value. By default, fields with empty values are
  3351  	// omitted from API requests. See
  3352  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3353  	NullFields []string `json:"-"`
  3354  }
  3355  
  3356  func (s *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest) MarshalJSON() ([]byte, error) {
  3357  	type NoMethod GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest
  3358  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3359  }
  3360  
  3361  // GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink: A link between a
  3362  // GA4 property and a Display & Video 360 advertiser.
  3363  type GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink struct {
  3364  	// AdsPersonalizationEnabled: Enables personalized advertising features with
  3365  	// this integration. If this field is not set on create/update, it will be
  3366  	// defaulted to true.
  3367  	AdsPersonalizationEnabled bool `json:"adsPersonalizationEnabled,omitempty"`
  3368  	// AdvertiserDisplayName: Output only. The display name of the Display & Video
  3369  	// 360 Advertiser.
  3370  	AdvertiserDisplayName string `json:"advertiserDisplayName,omitempty"`
  3371  	// AdvertiserId: Immutable. The Display & Video 360 Advertiser's advertiser ID.
  3372  	AdvertiserId string `json:"advertiserId,omitempty"`
  3373  	// CampaignDataSharingEnabled: Immutable. Enables the import of campaign data
  3374  	// from Display & Video 360 into the GA4 property. After link creation, this
  3375  	// can only be updated from the Display & Video 360 product. If this field is
  3376  	// not set on create, it will be defaulted to true.
  3377  	CampaignDataSharingEnabled bool `json:"campaignDataSharingEnabled,omitempty"`
  3378  	// CostDataSharingEnabled: Immutable. Enables the import of cost data from
  3379  	// Display & Video 360 into the GA4 property. This can only be enabled if
  3380  	// campaign_data_sharing_enabled is enabled. After link creation, this can only
  3381  	// be updated from the Display & Video 360 product. If this field is not set on
  3382  	// create, it will be defaulted to true.
  3383  	CostDataSharingEnabled bool `json:"costDataSharingEnabled,omitempty"`
  3384  	// Name: Output only. The resource name for this DisplayVideo360AdvertiserLink
  3385  	// resource. Format:
  3386  	// properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} Note: linkId
  3387  	// is not the Display & Video 360 Advertiser ID
  3388  	Name string `json:"name,omitempty"`
  3389  
  3390  	// ServerResponse contains the HTTP response code and headers from the server.
  3391  	googleapi.ServerResponse `json:"-"`
  3392  	// ForceSendFields is a list of field names (e.g. "AdsPersonalizationEnabled")
  3393  	// to unconditionally include in API requests. By default, fields with empty or
  3394  	// default values are omitted from API requests. See
  3395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3396  	// details.
  3397  	ForceSendFields []string `json:"-"`
  3398  	// NullFields is a list of field names (e.g. "AdsPersonalizationEnabled") to
  3399  	// include in API requests with the JSON null value. By default, fields with
  3400  	// empty values are omitted from API requests. See
  3401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3402  	NullFields []string `json:"-"`
  3403  }
  3404  
  3405  func (s *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink) MarshalJSON() ([]byte, error) {
  3406  	type NoMethod GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink
  3407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3408  }
  3409  
  3410  // GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal: A proposal
  3411  // for a link between a GA4 property and a Display & Video 360 advertiser. A
  3412  // proposal is converted to a DisplayVideo360AdvertiserLink once approved.
  3413  // Google Analytics admins approve inbound proposals while Display & Video 360
  3414  // admins approve outbound proposals.
  3415  type GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal struct {
  3416  	// AdsPersonalizationEnabled: Immutable. Enables personalized advertising
  3417  	// features with this integration. If this field is not set on create, it will
  3418  	// be defaulted to true.
  3419  	AdsPersonalizationEnabled bool `json:"adsPersonalizationEnabled,omitempty"`
  3420  	// AdvertiserDisplayName: Output only. The display name of the Display & Video
  3421  	// Advertiser. Only populated for proposals that originated from Display &
  3422  	// Video 360.
  3423  	AdvertiserDisplayName string `json:"advertiserDisplayName,omitempty"`
  3424  	// AdvertiserId: Immutable. The Display & Video 360 Advertiser's advertiser ID.
  3425  	AdvertiserId string `json:"advertiserId,omitempty"`
  3426  	// CampaignDataSharingEnabled: Immutable. Enables the import of campaign data
  3427  	// from Display & Video 360. If this field is not set on create, it will be
  3428  	// defaulted to true.
  3429  	CampaignDataSharingEnabled bool `json:"campaignDataSharingEnabled,omitempty"`
  3430  	// CostDataSharingEnabled: Immutable. Enables the import of cost data from
  3431  	// Display & Video 360. This can only be enabled if
  3432  	// campaign_data_sharing_enabled is enabled. If this field is not set on
  3433  	// create, it will be defaulted to true.
  3434  	CostDataSharingEnabled bool `json:"costDataSharingEnabled,omitempty"`
  3435  	// LinkProposalStatusDetails: Output only. The status information for this link
  3436  	// proposal.
  3437  	LinkProposalStatusDetails *GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails `json:"linkProposalStatusDetails,omitempty"`
  3438  	// Name: Output only. The resource name for this
  3439  	// DisplayVideo360AdvertiserLinkProposal resource. Format:
  3440  	// properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
  3441  	// Note: proposalId is not the Display & Video 360 Advertiser ID
  3442  	Name string `json:"name,omitempty"`
  3443  	// ValidationEmail: Input only. On a proposal being sent to Display & Video
  3444  	// 360, this field must be set to the email address of an admin on the target
  3445  	// advertiser. This is used to verify that the Google Analytics admin is aware
  3446  	// of at least one admin on the Display & Video 360 Advertiser. This does not
  3447  	// restrict approval of the proposal to a single user. Any admin on the Display
  3448  	// & Video 360 Advertiser may approve the proposal.
  3449  	ValidationEmail string `json:"validationEmail,omitempty"`
  3450  
  3451  	// ServerResponse contains the HTTP response code and headers from the server.
  3452  	googleapi.ServerResponse `json:"-"`
  3453  	// ForceSendFields is a list of field names (e.g. "AdsPersonalizationEnabled")
  3454  	// to unconditionally include in API requests. By default, fields with empty or
  3455  	// default values are omitted from API requests. See
  3456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3457  	// details.
  3458  	ForceSendFields []string `json:"-"`
  3459  	// NullFields is a list of field names (e.g. "AdsPersonalizationEnabled") to
  3460  	// include in API requests with the JSON null value. By default, fields with
  3461  	// empty values are omitted from API requests. See
  3462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3463  	NullFields []string `json:"-"`
  3464  }
  3465  
  3466  func (s *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal) MarshalJSON() ([]byte, error) {
  3467  	type NoMethod GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal
  3468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3469  }
  3470  
  3471  // GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings: Singleton resource
  3472  // under a web DataStream, configuring measurement of additional site
  3473  // interactions and content.
  3474  type GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings struct {
  3475  	// FileDownloadsEnabled: If enabled, capture a file download event each time a
  3476  	// link is clicked with a common document, compressed file, application, video,
  3477  	// or audio extension.
  3478  	FileDownloadsEnabled bool `json:"fileDownloadsEnabled,omitempty"`
  3479  	// FormInteractionsEnabled: If enabled, capture a form interaction event each
  3480  	// time a visitor interacts with a form on your website. False by default.
  3481  	FormInteractionsEnabled bool `json:"formInteractionsEnabled,omitempty"`
  3482  	// Name: Output only. Resource name of the Enhanced Measurement Settings.
  3483  	// Format:
  3484  	// properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSetting
  3485  	// s Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
  3486  	Name string `json:"name,omitempty"`
  3487  	// OutboundClicksEnabled: If enabled, capture an outbound click event each time
  3488  	// a visitor clicks a link that leads them away from your domain.
  3489  	OutboundClicksEnabled bool `json:"outboundClicksEnabled,omitempty"`
  3490  	// PageChangesEnabled: If enabled, capture a page view event each time the
  3491  	// website changes the browser history state.
  3492  	PageChangesEnabled bool `json:"pageChangesEnabled,omitempty"`
  3493  	// ScrollsEnabled: If enabled, capture scroll events each time a visitor gets
  3494  	// to the bottom of a page.
  3495  	ScrollsEnabled bool `json:"scrollsEnabled,omitempty"`
  3496  	// SearchQueryParameter: Required. URL query parameters to interpret as site
  3497  	// search parameters. Max length is 1024 characters. Must not be empty.
  3498  	SearchQueryParameter string `json:"searchQueryParameter,omitempty"`
  3499  	// SiteSearchEnabled: If enabled, capture a view search results event each time
  3500  	// a visitor performs a search on your site (based on a query parameter).
  3501  	SiteSearchEnabled bool `json:"siteSearchEnabled,omitempty"`
  3502  	// StreamEnabled: Indicates whether Enhanced Measurement Settings will be used
  3503  	// to automatically measure interactions and content on this web stream.
  3504  	// Changing this value does not affect the settings themselves, but determines
  3505  	// whether they are respected.
  3506  	StreamEnabled bool `json:"streamEnabled,omitempty"`
  3507  	// UriQueryParameter: Additional URL query parameters. Max length is 1024
  3508  	// characters.
  3509  	UriQueryParameter string `json:"uriQueryParameter,omitempty"`
  3510  	// VideoEngagementEnabled: If enabled, capture video play, progress, and
  3511  	// complete events as visitors view embedded videos on your site.
  3512  	VideoEngagementEnabled bool `json:"videoEngagementEnabled,omitempty"`
  3513  
  3514  	// ServerResponse contains the HTTP response code and headers from the server.
  3515  	googleapi.ServerResponse `json:"-"`
  3516  	// ForceSendFields is a list of field names (e.g. "FileDownloadsEnabled") to
  3517  	// unconditionally include in API requests. By default, fields with empty or
  3518  	// default values are omitted from API requests. See
  3519  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3520  	// details.
  3521  	ForceSendFields []string `json:"-"`
  3522  	// NullFields is a list of field names (e.g. "FileDownloadsEnabled") to include
  3523  	// in API requests with the JSON null value. By default, fields with empty
  3524  	// values are omitted from API requests. See
  3525  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3526  	NullFields []string `json:"-"`
  3527  }
  3528  
  3529  func (s *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings) MarshalJSON() ([]byte, error) {
  3530  	type NoMethod GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings
  3531  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3532  }
  3533  
  3534  // GoogleAnalyticsAdminV1alphaEventCreateRule: An Event Create Rule defines
  3535  // conditions that will trigger the creation of an entirely new event based
  3536  // upon matched criteria of a source event. Additional mutations of the
  3537  // parameters from the source event can be defined. Unlike Event Edit rules,
  3538  // Event Creation Rules have no defined order. They will all be run
  3539  // independently. Event Edit and Event Create rules can't be used to modify an
  3540  // event created from an Event Create rule.
  3541  type GoogleAnalyticsAdminV1alphaEventCreateRule struct {
  3542  	// DestinationEvent: Required. The name of the new event to be created. This
  3543  	// value must: * be less than 40 characters * consist only of letters, digits
  3544  	// or _ (underscores) * start with a letter
  3545  	DestinationEvent string `json:"destinationEvent,omitempty"`
  3546  	// EventConditions: Required. Must have at least one condition, and can have up
  3547  	// to 10 max. Conditions on the source event must match for this rule to be
  3548  	// applied.
  3549  	EventConditions []*GoogleAnalyticsAdminV1alphaMatchingCondition `json:"eventConditions,omitempty"`
  3550  	// Name: Output only. Resource name for this EventCreateRule resource. Format:
  3551  	// properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_creat
  3552  	// e_rule}
  3553  	Name string `json:"name,omitempty"`
  3554  	// ParameterMutations: Parameter mutations define parameter behavior on the new
  3555  	// event, and are applied in order. A maximum of 20 mutations can be applied.
  3556  	ParameterMutations []*GoogleAnalyticsAdminV1alphaParameterMutation `json:"parameterMutations,omitempty"`
  3557  	// SourceCopyParameters: If true, the source parameters are copied to the new
  3558  	// event. If false, or unset, all non-internal parameters are not copied from
  3559  	// the source event. Parameter mutations are applied after the parameters have
  3560  	// been copied.
  3561  	SourceCopyParameters bool `json:"sourceCopyParameters,omitempty"`
  3562  
  3563  	// ServerResponse contains the HTTP response code and headers from the server.
  3564  	googleapi.ServerResponse `json:"-"`
  3565  	// ForceSendFields is a list of field names (e.g. "DestinationEvent") to
  3566  	// unconditionally include in API requests. By default, fields with empty or
  3567  	// default values are omitted from API requests. See
  3568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3569  	// details.
  3570  	ForceSendFields []string `json:"-"`
  3571  	// NullFields is a list of field names (e.g. "DestinationEvent") to include in
  3572  	// API requests with the JSON null value. By default, fields with empty values
  3573  	// are omitted from API requests. See
  3574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3575  	NullFields []string `json:"-"`
  3576  }
  3577  
  3578  func (s *GoogleAnalyticsAdminV1alphaEventCreateRule) MarshalJSON() ([]byte, error) {
  3579  	type NoMethod GoogleAnalyticsAdminV1alphaEventCreateRule
  3580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3581  }
  3582  
  3583  // GoogleAnalyticsAdminV1alphaEventMapping: Event setting conditions to match
  3584  // an event.
  3585  type GoogleAnalyticsAdminV1alphaEventMapping struct {
  3586  	// EventName: Required. Name of the GA4 event. It must always be set. The max
  3587  	// allowed display name length is 40 UTF-16 code units.
  3588  	EventName string `json:"eventName,omitempty"`
  3589  	// MaxEventCount: The maximum number of times the event occurred. If not set,
  3590  	// maximum event count won't be checked.
  3591  	MaxEventCount int64 `json:"maxEventCount,omitempty,string"`
  3592  	// MaxEventValue: The maximum revenue generated due to the event. Revenue
  3593  	// currency will be defined at the property level. If not set, maximum event
  3594  	// value won't be checked.
  3595  	MaxEventValue float64 `json:"maxEventValue,omitempty"`
  3596  	// MinEventCount: At least one of the following four min/max values must be
  3597  	// set. The values set will be ANDed together to qualify an event. The minimum
  3598  	// number of times the event occurred. If not set, minimum event count won't be
  3599  	// checked.
  3600  	MinEventCount int64 `json:"minEventCount,omitempty,string"`
  3601  	// MinEventValue: The minimum revenue generated due to the event. Revenue
  3602  	// currency will be defined at the property level. If not set, minimum event
  3603  	// value won't be checked.
  3604  	MinEventValue float64 `json:"minEventValue,omitempty"`
  3605  	// ForceSendFields is a list of field names (e.g. "EventName") to
  3606  	// unconditionally include in API requests. By default, fields with empty or
  3607  	// default values are omitted from API requests. See
  3608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3609  	// details.
  3610  	ForceSendFields []string `json:"-"`
  3611  	// NullFields is a list of field names (e.g. "EventName") to include in API
  3612  	// requests with the JSON null value. By default, fields with empty values are
  3613  	// omitted from API requests. See
  3614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3615  	NullFields []string `json:"-"`
  3616  }
  3617  
  3618  func (s *GoogleAnalyticsAdminV1alphaEventMapping) MarshalJSON() ([]byte, error) {
  3619  	type NoMethod GoogleAnalyticsAdminV1alphaEventMapping
  3620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3621  }
  3622  
  3623  func (s *GoogleAnalyticsAdminV1alphaEventMapping) UnmarshalJSON(data []byte) error {
  3624  	type NoMethod GoogleAnalyticsAdminV1alphaEventMapping
  3625  	var s1 struct {
  3626  		MaxEventValue gensupport.JSONFloat64 `json:"maxEventValue"`
  3627  		MinEventValue gensupport.JSONFloat64 `json:"minEventValue"`
  3628  		*NoMethod
  3629  	}
  3630  	s1.NoMethod = (*NoMethod)(s)
  3631  	if err := json.Unmarshal(data, &s1); err != nil {
  3632  		return err
  3633  	}
  3634  	s.MaxEventValue = float64(s1.MaxEventValue)
  3635  	s.MinEventValue = float64(s1.MinEventValue)
  3636  	return nil
  3637  }
  3638  
  3639  // GoogleAnalyticsAdminV1alphaExpandedDataSet: A resource message representing
  3640  // a GA4 ExpandedDataSet.
  3641  type GoogleAnalyticsAdminV1alphaExpandedDataSet struct {
  3642  	// DataCollectionStartTime: Output only. Time when expanded data set began (or
  3643  	// will begin) collecing data.
  3644  	DataCollectionStartTime string `json:"dataCollectionStartTime,omitempty"`
  3645  	// Description: Optional. The description of the ExpandedDataSet. Max 50 chars.
  3646  	Description string `json:"description,omitempty"`
  3647  	// DimensionFilterExpression: Immutable. A logical expression of
  3648  	// ExpandedDataSet filters applied to dimension included in the
  3649  	// ExpandedDataSet. This filter is used to reduce the number of rows and thus
  3650  	// the chance of encountering `other` row.
  3651  	DimensionFilterExpression *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression `json:"dimensionFilterExpression,omitempty"`
  3652  	// DimensionNames: Immutable. The list of dimensions included in the
  3653  	// ExpandedDataSet. See the API Dimensions
  3654  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
  3655  	// for the list of dimension names.
  3656  	DimensionNames []string `json:"dimensionNames,omitempty"`
  3657  	// DisplayName: Required. The display name of the ExpandedDataSet. Max 200
  3658  	// chars.
  3659  	DisplayName string `json:"displayName,omitempty"`
  3660  	// MetricNames: Immutable. The list of metrics included in the ExpandedDataSet.
  3661  	// See the API Metrics
  3662  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
  3663  	// for the list of dimension names.
  3664  	MetricNames []string `json:"metricNames,omitempty"`
  3665  	// Name: Output only. The resource name for this ExpandedDataSet resource.
  3666  	// Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
  3667  	Name string `json:"name,omitempty"`
  3668  
  3669  	// ServerResponse contains the HTTP response code and headers from the server.
  3670  	googleapi.ServerResponse `json:"-"`
  3671  	// ForceSendFields is a list of field names (e.g. "DataCollectionStartTime") to
  3672  	// unconditionally include in API requests. By default, fields with empty or
  3673  	// default values are omitted from API requests. See
  3674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3675  	// details.
  3676  	ForceSendFields []string `json:"-"`
  3677  	// NullFields is a list of field names (e.g. "DataCollectionStartTime") to
  3678  	// include in API requests with the JSON null value. By default, fields with
  3679  	// empty values are omitted from API requests. See
  3680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3681  	NullFields []string `json:"-"`
  3682  }
  3683  
  3684  func (s *GoogleAnalyticsAdminV1alphaExpandedDataSet) MarshalJSON() ([]byte, error) {
  3685  	type NoMethod GoogleAnalyticsAdminV1alphaExpandedDataSet
  3686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3687  }
  3688  
  3689  // GoogleAnalyticsAdminV1alphaExpandedDataSetFilter: A specific filter for a
  3690  // single dimension
  3691  type GoogleAnalyticsAdminV1alphaExpandedDataSetFilter struct {
  3692  	// FieldName: Required. The dimension name to filter.
  3693  	FieldName string `json:"fieldName,omitempty"`
  3694  	// InListFilter: A filter for a string dimension that matches a particular list
  3695  	// of options.
  3696  	InListFilter *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter `json:"inListFilter,omitempty"`
  3697  	// StringFilter: A filter for a string-type dimension that matches a particular
  3698  	// pattern.
  3699  	StringFilter *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter `json:"stringFilter,omitempty"`
  3700  	// ForceSendFields is a list of field names (e.g. "FieldName") to
  3701  	// unconditionally include in API requests. By default, fields with empty or
  3702  	// default values are omitted from API requests. See
  3703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3704  	// details.
  3705  	ForceSendFields []string `json:"-"`
  3706  	// NullFields is a list of field names (e.g. "FieldName") to include in API
  3707  	// requests with the JSON null value. By default, fields with empty values are
  3708  	// omitted from API requests. See
  3709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3710  	NullFields []string `json:"-"`
  3711  }
  3712  
  3713  func (s *GoogleAnalyticsAdminV1alphaExpandedDataSetFilter) MarshalJSON() ([]byte, error) {
  3714  	type NoMethod GoogleAnalyticsAdminV1alphaExpandedDataSetFilter
  3715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3716  }
  3717  
  3718  // GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression: A logical
  3719  // expression of EnhancedDataSet dimension filters.
  3720  type GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression struct {
  3721  	// AndGroup: A list of expressions to be AND’ed together. It must contain a
  3722  	// ExpandedDataSetFilterExpression with either not_expression or
  3723  	// dimension_filter. This must be set for the top level
  3724  	// ExpandedDataSetFilterExpression.
  3725  	AndGroup *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList `json:"andGroup,omitempty"`
  3726  	// Filter: A filter on a single dimension. This cannot be set on the top level
  3727  	// ExpandedDataSetFilterExpression.
  3728  	Filter *GoogleAnalyticsAdminV1alphaExpandedDataSetFilter `json:"filter,omitempty"`
  3729  	// NotExpression: A filter expression to be NOT'ed (that is, inverted,
  3730  	// complemented). It must include a dimension_filter. This cannot be set on the
  3731  	// top level ExpandedDataSetFilterExpression.
  3732  	NotExpression *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression `json:"notExpression,omitempty"`
  3733  	// ForceSendFields is a list of field names (e.g. "AndGroup") to
  3734  	// unconditionally include in API requests. By default, fields with empty or
  3735  	// default values are omitted from API requests. See
  3736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3737  	// details.
  3738  	ForceSendFields []string `json:"-"`
  3739  	// NullFields is a list of field names (e.g. "AndGroup") to include in API
  3740  	// requests with the JSON null value. By default, fields with empty values are
  3741  	// omitted from API requests. See
  3742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3743  	NullFields []string `json:"-"`
  3744  }
  3745  
  3746  func (s *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression) MarshalJSON() ([]byte, error) {
  3747  	type NoMethod GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression
  3748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3749  }
  3750  
  3751  // GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList: A list of
  3752  // ExpandedDataSet filter expressions.
  3753  type GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList struct {
  3754  	// FilterExpressions: A list of ExpandedDataSet filter expressions.
  3755  	FilterExpressions []*GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression `json:"filterExpressions,omitempty"`
  3756  	// ForceSendFields is a list of field names (e.g. "FilterExpressions") to
  3757  	// unconditionally include in API requests. By default, fields with empty or
  3758  	// default values are omitted from API requests. See
  3759  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3760  	// details.
  3761  	ForceSendFields []string `json:"-"`
  3762  	// NullFields is a list of field names (e.g. "FilterExpressions") to include in
  3763  	// API requests with the JSON null value. By default, fields with empty values
  3764  	// are omitted from API requests. See
  3765  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3766  	NullFields []string `json:"-"`
  3767  }
  3768  
  3769  func (s *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList) MarshalJSON() ([]byte, error) {
  3770  	type NoMethod GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList
  3771  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3772  }
  3773  
  3774  // GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter: A filter for a
  3775  // string dimension that matches a particular list of options.
  3776  type GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter struct {
  3777  	// CaseSensitive: Optional. If true, the match is case-sensitive. If false, the
  3778  	// match is case-insensitive. Must be true.
  3779  	CaseSensitive bool `json:"caseSensitive,omitempty"`
  3780  	// Values: Required. The list of possible string values to match against. Must
  3781  	// be non-empty.
  3782  	Values []string `json:"values,omitempty"`
  3783  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
  3784  	// unconditionally include in API requests. By default, fields with empty or
  3785  	// default values are omitted from API requests. See
  3786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3787  	// details.
  3788  	ForceSendFields []string `json:"-"`
  3789  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
  3790  	// requests with the JSON null value. By default, fields with empty values are
  3791  	// omitted from API requests. See
  3792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3793  	NullFields []string `json:"-"`
  3794  }
  3795  
  3796  func (s *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter) MarshalJSON() ([]byte, error) {
  3797  	type NoMethod GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter
  3798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3799  }
  3800  
  3801  // GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter: A filter for a
  3802  // string-type dimension that matches a particular pattern.
  3803  type GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter struct {
  3804  	// CaseSensitive: Optional. If true, the match is case-sensitive. If false, the
  3805  	// match is case-insensitive. Must be true when match_type is EXACT. Must be
  3806  	// false when match_type is CONTAINS.
  3807  	CaseSensitive bool `json:"caseSensitive,omitempty"`
  3808  	// MatchType: Required. The match type for the string filter.
  3809  	//
  3810  	// Possible values:
  3811  	//   "MATCH_TYPE_UNSPECIFIED" - Unspecified
  3812  	//   "EXACT" - Exact match of the string value.
  3813  	//   "CONTAINS" - Contains the string value.
  3814  	MatchType string `json:"matchType,omitempty"`
  3815  	// Value: Required. The string value to be matched against.
  3816  	Value string `json:"value,omitempty"`
  3817  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
  3818  	// unconditionally include in API requests. By default, fields with empty or
  3819  	// default values are omitted from API requests. See
  3820  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3821  	// details.
  3822  	ForceSendFields []string `json:"-"`
  3823  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
  3824  	// requests with the JSON null value. By default, fields with empty values are
  3825  	// omitted from API requests. See
  3826  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3827  	NullFields []string `json:"-"`
  3828  }
  3829  
  3830  func (s *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter) MarshalJSON() ([]byte, error) {
  3831  	type NoMethod GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter
  3832  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3833  }
  3834  
  3835  // GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest:
  3836  // Request for fetching the opt out status for the automated GA4 setup process.
  3837  type GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest struct {
  3838  	// Property: Required. The UA property to get the opt out status. Note this
  3839  	// request uses the internal property ID, not the tracking ID of the form
  3840  	// UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Example:
  3841  	// properties/1234
  3842  	Property string `json:"property,omitempty"`
  3843  	// ForceSendFields is a list of field names (e.g. "Property") to
  3844  	// unconditionally include in API requests. By default, fields with empty or
  3845  	// default values are omitted from API requests. See
  3846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3847  	// details.
  3848  	ForceSendFields []string `json:"-"`
  3849  	// NullFields is a list of field names (e.g. "Property") to include in API
  3850  	// requests with the JSON null value. By default, fields with empty values are
  3851  	// omitted from API requests. See
  3852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3853  	NullFields []string `json:"-"`
  3854  }
  3855  
  3856  func (s *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) MarshalJSON() ([]byte, error) {
  3857  	type NoMethod GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest
  3858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3859  }
  3860  
  3861  // GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse:
  3862  // Response message for fetching the opt out status for the automated GA4 setup
  3863  // process.
  3864  type GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse struct {
  3865  	// OptOut: The opt out status for the UA property.
  3866  	OptOut bool `json:"optOut,omitempty"`
  3867  
  3868  	// ServerResponse contains the HTTP response code and headers from the server.
  3869  	googleapi.ServerResponse `json:"-"`
  3870  	// ForceSendFields is a list of field names (e.g. "OptOut") to unconditionally
  3871  	// include in API requests. By default, fields with empty or default values are
  3872  	// omitted from API requests. See
  3873  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3874  	// details.
  3875  	ForceSendFields []string `json:"-"`
  3876  	// NullFields is a list of field names (e.g. "OptOut") to include in API
  3877  	// requests with the JSON null value. By default, fields with empty values are
  3878  	// omitted from API requests. See
  3879  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3880  	NullFields []string `json:"-"`
  3881  }
  3882  
  3883  func (s *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse) MarshalJSON() ([]byte, error) {
  3884  	type NoMethod GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse
  3885  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3886  }
  3887  
  3888  // GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse: Response for
  3889  // looking up GA4 property connected to a UA property.
  3890  type GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse struct {
  3891  	// Property: The GA4 property connected to the UA property. An empty string is
  3892  	// returned when there is no connected GA4 property. Format:
  3893  	// properties/{property_id} Example: properties/1234
  3894  	Property string `json:"property,omitempty"`
  3895  
  3896  	// ServerResponse contains the HTTP response code and headers from the server.
  3897  	googleapi.ServerResponse `json:"-"`
  3898  	// ForceSendFields is a list of field names (e.g. "Property") to
  3899  	// unconditionally include in API requests. By default, fields with empty or
  3900  	// default values are omitted from API requests. See
  3901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3902  	// details.
  3903  	ForceSendFields []string `json:"-"`
  3904  	// NullFields is a list of field names (e.g. "Property") to include in API
  3905  	// requests with the JSON null value. By default, fields with empty values are
  3906  	// omitted from API requests. See
  3907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3908  	NullFields []string `json:"-"`
  3909  }
  3910  
  3911  func (s *GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse) MarshalJSON() ([]byte, error) {
  3912  	type NoMethod GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse
  3913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3914  }
  3915  
  3916  // GoogleAnalyticsAdminV1alphaFirebaseLink: A link between a GA4 property and a
  3917  // Firebase project.
  3918  type GoogleAnalyticsAdminV1alphaFirebaseLink struct {
  3919  	// CreateTime: Output only. Time when this FirebaseLink was originally created.
  3920  	CreateTime string `json:"createTime,omitempty"`
  3921  	// Name: Output only. Example format: properties/1234/firebaseLinks/5678
  3922  	Name string `json:"name,omitempty"`
  3923  	// Project: Immutable. Firebase project resource name. When creating a
  3924  	// FirebaseLink, you may provide this resource name using either a project
  3925  	// number or project ID. Once this resource has been created, returned
  3926  	// FirebaseLinks will always have a project_name that contains a project
  3927  	// number. Format: 'projects/{project number}' Example: 'projects/1234'
  3928  	Project string `json:"project,omitempty"`
  3929  
  3930  	// ServerResponse contains the HTTP response code and headers from the server.
  3931  	googleapi.ServerResponse `json:"-"`
  3932  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3933  	// unconditionally include in API requests. By default, fields with empty or
  3934  	// default values are omitted from API requests. See
  3935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3936  	// details.
  3937  	ForceSendFields []string `json:"-"`
  3938  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3939  	// requests with the JSON null value. By default, fields with empty values are
  3940  	// omitted from API requests. See
  3941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3942  	NullFields []string `json:"-"`
  3943  }
  3944  
  3945  func (s *GoogleAnalyticsAdminV1alphaFirebaseLink) MarshalJSON() ([]byte, error) {
  3946  	type NoMethod GoogleAnalyticsAdminV1alphaFirebaseLink
  3947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3948  }
  3949  
  3950  // GoogleAnalyticsAdminV1alphaGlobalSiteTag: Read-only resource with the tag
  3951  // for sending data from a website to a DataStream. Only present for web
  3952  // DataStream resources.
  3953  type GoogleAnalyticsAdminV1alphaGlobalSiteTag struct {
  3954  	// Name: Output only. Resource name for this GlobalSiteTag resource. Format:
  3955  	// properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example:
  3956  	// "properties/123/dataStreams/456/globalSiteTag"
  3957  	Name string `json:"name,omitempty"`
  3958  	// Snippet: Immutable. JavaScript code snippet to be pasted as the first item
  3959  	// into the head tag of every webpage to measure.
  3960  	Snippet string `json:"snippet,omitempty"`
  3961  
  3962  	// ServerResponse contains the HTTP response code and headers from the server.
  3963  	googleapi.ServerResponse `json:"-"`
  3964  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3965  	// include in API requests. By default, fields with empty or default values are
  3966  	// omitted from API requests. See
  3967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3968  	// details.
  3969  	ForceSendFields []string `json:"-"`
  3970  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3971  	// with the JSON null value. By default, fields with empty values are omitted
  3972  	// from API requests. See
  3973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3974  	NullFields []string `json:"-"`
  3975  }
  3976  
  3977  func (s *GoogleAnalyticsAdminV1alphaGlobalSiteTag) MarshalJSON() ([]byte, error) {
  3978  	type NoMethod GoogleAnalyticsAdminV1alphaGlobalSiteTag
  3979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3980  }
  3981  
  3982  // GoogleAnalyticsAdminV1alphaGoogleAdsLink: A link between a GA4 property and
  3983  // a Google Ads account.
  3984  type GoogleAnalyticsAdminV1alphaGoogleAdsLink struct {
  3985  	// AdsPersonalizationEnabled: Enable personalized advertising features with
  3986  	// this integration. Automatically publish my Google Analytics audience lists
  3987  	// and Google Analytics remarketing events/parameters to the linked Google Ads
  3988  	// account. If this field is not set on create/update, it will be defaulted to
  3989  	// true.
  3990  	AdsPersonalizationEnabled bool `json:"adsPersonalizationEnabled,omitempty"`
  3991  	// CanManageClients: Output only. If true, this link is for a Google Ads
  3992  	// manager account.
  3993  	CanManageClients bool `json:"canManageClients,omitempty"`
  3994  	// CreateTime: Output only. Time when this link was originally created.
  3995  	CreateTime string `json:"createTime,omitempty"`
  3996  	// CreatorEmailAddress: Output only. Email address of the user that created the
  3997  	// link. An empty string will be returned if the email address can't be
  3998  	// retrieved.
  3999  	CreatorEmailAddress string `json:"creatorEmailAddress,omitempty"`
  4000  	// CustomerId: Immutable. Google Ads customer ID.
  4001  	CustomerId string `json:"customerId,omitempty"`
  4002  	// Name: Output only. Format:
  4003  	// properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note:
  4004  	// googleAdsLinkId is not the Google Ads customer ID.
  4005  	Name string `json:"name,omitempty"`
  4006  	// UpdateTime: Output only. Time when this link was last updated.
  4007  	UpdateTime string `json:"updateTime,omitempty"`
  4008  
  4009  	// ServerResponse contains the HTTP response code and headers from the server.
  4010  	googleapi.ServerResponse `json:"-"`
  4011  	// ForceSendFields is a list of field names (e.g. "AdsPersonalizationEnabled")
  4012  	// to unconditionally include in API requests. By default, fields with empty or
  4013  	// default values are omitted from API requests. See
  4014  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4015  	// details.
  4016  	ForceSendFields []string `json:"-"`
  4017  	// NullFields is a list of field names (e.g. "AdsPersonalizationEnabled") to
  4018  	// include in API requests with the JSON null value. By default, fields with
  4019  	// empty values are omitted from API requests. See
  4020  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4021  	NullFields []string `json:"-"`
  4022  }
  4023  
  4024  func (s *GoogleAnalyticsAdminV1alphaGoogleAdsLink) MarshalJSON() ([]byte, error) {
  4025  	type NoMethod GoogleAnalyticsAdminV1alphaGoogleAdsLink
  4026  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4027  }
  4028  
  4029  // GoogleAnalyticsAdminV1alphaGoogleSignalsSettings: Settings values for Google
  4030  // Signals. This is a singleton resource.
  4031  type GoogleAnalyticsAdminV1alphaGoogleSignalsSettings struct {
  4032  	// Consent: Output only. Terms of Service acceptance.
  4033  	//
  4034  	// Possible values:
  4035  	//   "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED" - Google Signals consent value
  4036  	// defaults to GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as
  4037  	// GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
  4038  	//   "GOOGLE_SIGNALS_CONSENT_CONSENTED" - Terms of service have been accepted
  4039  	//   "GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED" - Terms of service have not been
  4040  	// accepted
  4041  	Consent string `json:"consent,omitempty"`
  4042  	// Name: Output only. Resource name of this setting. Format:
  4043  	// properties/{property_id}/googleSignalsSettings Example:
  4044  	// "properties/1000/googleSignalsSettings"
  4045  	Name string `json:"name,omitempty"`
  4046  	// State: Status of this setting.
  4047  	//
  4048  	// Possible values:
  4049  	//   "GOOGLE_SIGNALS_STATE_UNSPECIFIED" - Google Signals status defaults to
  4050  	// GOOGLE_SIGNALS_STATE_UNSPECIFIED to represent that the user has not made an
  4051  	// explicit choice.
  4052  	//   "GOOGLE_SIGNALS_ENABLED" - Google Signals is enabled.
  4053  	//   "GOOGLE_SIGNALS_DISABLED" - Google Signals is disabled.
  4054  	State string `json:"state,omitempty"`
  4055  
  4056  	// ServerResponse contains the HTTP response code and headers from the server.
  4057  	googleapi.ServerResponse `json:"-"`
  4058  	// ForceSendFields is a list of field names (e.g. "Consent") to unconditionally
  4059  	// include in API requests. By default, fields with empty or default values are
  4060  	// omitted from API requests. See
  4061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4062  	// details.
  4063  	ForceSendFields []string `json:"-"`
  4064  	// NullFields is a list of field names (e.g. "Consent") to include in API
  4065  	// requests with the JSON null value. By default, fields with empty values are
  4066  	// omitted from API requests. See
  4067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4068  	NullFields []string `json:"-"`
  4069  }
  4070  
  4071  func (s *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings) MarshalJSON() ([]byte, error) {
  4072  	type NoMethod GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
  4073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4074  }
  4075  
  4076  // GoogleAnalyticsAdminV1alphaGroupingRule: The rules that govern how traffic
  4077  // is grouped into one channel.
  4078  type GoogleAnalyticsAdminV1alphaGroupingRule struct {
  4079  	// DisplayName: Required. Customer defined display name for the channel.
  4080  	DisplayName string `json:"displayName,omitempty"`
  4081  	// Expression: Required. The Filter Expression that defines the Grouping Rule.
  4082  	Expression *GoogleAnalyticsAdminV1alphaChannelGroupFilterExpression `json:"expression,omitempty"`
  4083  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  4084  	// unconditionally include in API requests. By default, fields with empty or
  4085  	// default values are omitted from API requests. See
  4086  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4087  	// details.
  4088  	ForceSendFields []string `json:"-"`
  4089  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  4090  	// requests with the JSON null value. By default, fields with empty values are
  4091  	// omitted from API requests. See
  4092  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4093  	NullFields []string `json:"-"`
  4094  }
  4095  
  4096  func (s *GoogleAnalyticsAdminV1alphaGroupingRule) MarshalJSON() ([]byte, error) {
  4097  	type NoMethod GoogleAnalyticsAdminV1alphaGroupingRule
  4098  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4099  }
  4100  
  4101  // GoogleAnalyticsAdminV1alphaKeyEvent: A key event in a Google Analytics
  4102  // property.
  4103  type GoogleAnalyticsAdminV1alphaKeyEvent struct {
  4104  	// CountingMethod: Required. The method by which Key Events will be counted
  4105  	// across multiple events within a session.
  4106  	//
  4107  	// Possible values:
  4108  	//   "COUNTING_METHOD_UNSPECIFIED" - Counting method not specified.
  4109  	//   "ONCE_PER_EVENT" - Each Event instance is considered a Key Event.
  4110  	//   "ONCE_PER_SESSION" - An Event instance is considered a Key Event at most
  4111  	// once per session per user.
  4112  	CountingMethod string `json:"countingMethod,omitempty"`
  4113  	// CreateTime: Output only. Time when this key event was created in the
  4114  	// property.
  4115  	CreateTime string `json:"createTime,omitempty"`
  4116  	// Custom: Output only. If set to true, this key event refers to a custom
  4117  	// event. If set to false, this key event refers to a default event in GA.
  4118  	// Default events typically have special meaning in GA. Default events are
  4119  	// usually created for you by the GA system, but in some cases can be created
  4120  	// by property admins. Custom events count towards the maximum number of custom
  4121  	// key events that may be created per property.
  4122  	Custom bool `json:"custom,omitempty"`
  4123  	// DefaultValue: Optional. Defines a default value/currency for a key event.
  4124  	DefaultValue *GoogleAnalyticsAdminV1alphaKeyEventDefaultValue `json:"defaultValue,omitempty"`
  4125  	// Deletable: Output only. If set to true, this event can be deleted.
  4126  	Deletable bool `json:"deletable,omitempty"`
  4127  	// EventName: Immutable. The event name for this key event. Examples: 'click',
  4128  	// 'purchase'
  4129  	EventName string `json:"eventName,omitempty"`
  4130  	// Name: Output only. Resource name of this key event. Format:
  4131  	// properties/{property}/keyEvents/{key_event}
  4132  	Name string `json:"name,omitempty"`
  4133  
  4134  	// ServerResponse contains the HTTP response code and headers from the server.
  4135  	googleapi.ServerResponse `json:"-"`
  4136  	// ForceSendFields is a list of field names (e.g. "CountingMethod") to
  4137  	// unconditionally include in API requests. By default, fields with empty or
  4138  	// default values are omitted from API requests. See
  4139  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4140  	// details.
  4141  	ForceSendFields []string `json:"-"`
  4142  	// NullFields is a list of field names (e.g. "CountingMethod") to include in
  4143  	// API requests with the JSON null value. By default, fields with empty values
  4144  	// are omitted from API requests. See
  4145  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4146  	NullFields []string `json:"-"`
  4147  }
  4148  
  4149  func (s *GoogleAnalyticsAdminV1alphaKeyEvent) MarshalJSON() ([]byte, error) {
  4150  	type NoMethod GoogleAnalyticsAdminV1alphaKeyEvent
  4151  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4152  }
  4153  
  4154  // GoogleAnalyticsAdminV1alphaKeyEventDefaultValue: Defines a default
  4155  // value/currency for a key event.
  4156  type GoogleAnalyticsAdminV1alphaKeyEventDefaultValue struct {
  4157  	// CurrencyCode: Required. When an occurrence of this Key Event (specified by
  4158  	// event_name) has no set currency this currency will be applied as the
  4159  	// default. Must be in ISO 4217 currency code format. See
  4160  	// https://en.wikipedia.org/wiki/ISO_4217 for more information.
  4161  	CurrencyCode string `json:"currencyCode,omitempty"`
  4162  	// NumericValue: Required. This will be used to populate the "value" parameter
  4163  	// for all occurrences of this Key Event (specified by event_name) where that
  4164  	// parameter is unset.
  4165  	NumericValue float64 `json:"numericValue,omitempty"`
  4166  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
  4167  	// unconditionally include in API requests. By default, fields with empty or
  4168  	// default values are omitted from API requests. See
  4169  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4170  	// details.
  4171  	ForceSendFields []string `json:"-"`
  4172  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
  4173  	// requests with the JSON null value. By default, fields with empty values are
  4174  	// omitted from API requests. See
  4175  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4176  	NullFields []string `json:"-"`
  4177  }
  4178  
  4179  func (s *GoogleAnalyticsAdminV1alphaKeyEventDefaultValue) MarshalJSON() ([]byte, error) {
  4180  	type NoMethod GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
  4181  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4182  }
  4183  
  4184  func (s *GoogleAnalyticsAdminV1alphaKeyEventDefaultValue) UnmarshalJSON(data []byte) error {
  4185  	type NoMethod GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
  4186  	var s1 struct {
  4187  		NumericValue gensupport.JSONFloat64 `json:"numericValue"`
  4188  		*NoMethod
  4189  	}
  4190  	s1.NoMethod = (*NoMethod)(s)
  4191  	if err := json.Unmarshal(data, &s1); err != nil {
  4192  		return err
  4193  	}
  4194  	s.NumericValue = float64(s1.NumericValue)
  4195  	return nil
  4196  }
  4197  
  4198  // GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails: Status information for
  4199  // a link proposal.
  4200  type GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails struct {
  4201  	// LinkProposalInitiatingProduct: Output only. The source of this proposal.
  4202  	//
  4203  	// Possible values:
  4204  	//   "LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED" - Unspecified product.
  4205  	//   "GOOGLE_ANALYTICS" - This proposal was created by a user from Google
  4206  	// Analytics.
  4207  	//   "LINKED_PRODUCT" - This proposal was created by a user from a linked
  4208  	// product (not Google Analytics).
  4209  	LinkProposalInitiatingProduct string `json:"linkProposalInitiatingProduct,omitempty"`
  4210  	// LinkProposalState: Output only. The state of this proposal.
  4211  	//
  4212  	// Possible values:
  4213  	//   "LINK_PROPOSAL_STATE_UNSPECIFIED" - Unspecified state
  4214  	//   "AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS" - This proposal is awaiting review
  4215  	// from a Google Analytics user. This proposal will automatically expire after
  4216  	// some time.
  4217  	//   "AWAITING_REVIEW_FROM_LINKED_PRODUCT" - This proposal is awaiting review
  4218  	// from a user of a linked product. This proposal will automatically expire
  4219  	// after some time.
  4220  	//   "WITHDRAWN" - This proposal has been withdrawn by an admin on the
  4221  	// initiating product. This proposal will be automatically deleted after some
  4222  	// time.
  4223  	//   "DECLINED" - This proposal has been declined by an admin on the receiving
  4224  	// product. This proposal will be automatically deleted after some time.
  4225  	//   "EXPIRED" - This proposal expired due to lack of response from an admin on
  4226  	// the receiving product. This proposal will be automatically deleted after
  4227  	// some time.
  4228  	//   "OBSOLETE" - This proposal has become obsolete because a link was directly
  4229  	// created to the same external product resource that this proposal specifies.
  4230  	// This proposal will be automatically deleted after some time.
  4231  	LinkProposalState string `json:"linkProposalState,omitempty"`
  4232  	// RequestorEmail: Output only. The email address of the user that proposed
  4233  	// this linkage.
  4234  	RequestorEmail string `json:"requestorEmail,omitempty"`
  4235  	// ForceSendFields is a list of field names (e.g.
  4236  	// "LinkProposalInitiatingProduct") to unconditionally include in API requests.
  4237  	// By default, fields with empty or default values are omitted from API
  4238  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  4239  	// for more details.
  4240  	ForceSendFields []string `json:"-"`
  4241  	// NullFields is a list of field names (e.g. "LinkProposalInitiatingProduct")
  4242  	// to include in API requests with the JSON null value. By default, fields with
  4243  	// empty values are omitted from API requests. See
  4244  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4245  	NullFields []string `json:"-"`
  4246  }
  4247  
  4248  func (s *GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails) MarshalJSON() ([]byte, error) {
  4249  	type NoMethod GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails
  4250  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4251  }
  4252  
  4253  // GoogleAnalyticsAdminV1alphaListAccessBindingsResponse: Response message for
  4254  // ListAccessBindings RPC.
  4255  type GoogleAnalyticsAdminV1alphaListAccessBindingsResponse struct {
  4256  	// AccessBindings: List of AccessBindings. These will be ordered stably, but in
  4257  	// an arbitrary order.
  4258  	AccessBindings []*GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBindings,omitempty"`
  4259  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4260  	// next page. If this field is omitted, there are no subsequent pages.
  4261  	NextPageToken string `json:"nextPageToken,omitempty"`
  4262  
  4263  	// ServerResponse contains the HTTP response code and headers from the server.
  4264  	googleapi.ServerResponse `json:"-"`
  4265  	// ForceSendFields is a list of field names (e.g. "AccessBindings") to
  4266  	// unconditionally include in API requests. By default, fields with empty or
  4267  	// default values are omitted from API requests. See
  4268  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4269  	// details.
  4270  	ForceSendFields []string `json:"-"`
  4271  	// NullFields is a list of field names (e.g. "AccessBindings") to include in
  4272  	// API requests with the JSON null value. By default, fields with empty values
  4273  	// are omitted from API requests. See
  4274  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4275  	NullFields []string `json:"-"`
  4276  }
  4277  
  4278  func (s *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse) MarshalJSON() ([]byte, error) {
  4279  	type NoMethod GoogleAnalyticsAdminV1alphaListAccessBindingsResponse
  4280  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4281  }
  4282  
  4283  // GoogleAnalyticsAdminV1alphaListAccountSummariesResponse: Response message
  4284  // for ListAccountSummaries RPC.
  4285  type GoogleAnalyticsAdminV1alphaListAccountSummariesResponse struct {
  4286  	// AccountSummaries: Account summaries of all accounts the caller has access
  4287  	// to.
  4288  	AccountSummaries []*GoogleAnalyticsAdminV1alphaAccountSummary `json:"accountSummaries,omitempty"`
  4289  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4290  	// next page. If this field is omitted, there are no subsequent pages.
  4291  	NextPageToken string `json:"nextPageToken,omitempty"`
  4292  
  4293  	// ServerResponse contains the HTTP response code and headers from the server.
  4294  	googleapi.ServerResponse `json:"-"`
  4295  	// ForceSendFields is a list of field names (e.g. "AccountSummaries") to
  4296  	// unconditionally include in API requests. By default, fields with empty or
  4297  	// default values are omitted from API requests. See
  4298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4299  	// details.
  4300  	ForceSendFields []string `json:"-"`
  4301  	// NullFields is a list of field names (e.g. "AccountSummaries") to include in
  4302  	// API requests with the JSON null value. By default, fields with empty values
  4303  	// are omitted from API requests. See
  4304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4305  	NullFields []string `json:"-"`
  4306  }
  4307  
  4308  func (s *GoogleAnalyticsAdminV1alphaListAccountSummariesResponse) MarshalJSON() ([]byte, error) {
  4309  	type NoMethod GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
  4310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4311  }
  4312  
  4313  // GoogleAnalyticsAdminV1alphaListAccountsResponse: Request message for
  4314  // ListAccounts RPC.
  4315  type GoogleAnalyticsAdminV1alphaListAccountsResponse struct {
  4316  	// Accounts: Results that were accessible to the caller.
  4317  	Accounts []*GoogleAnalyticsAdminV1alphaAccount `json:"accounts,omitempty"`
  4318  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4319  	// next page. If this field is omitted, there are no subsequent pages.
  4320  	NextPageToken string `json:"nextPageToken,omitempty"`
  4321  
  4322  	// ServerResponse contains the HTTP response code and headers from the server.
  4323  	googleapi.ServerResponse `json:"-"`
  4324  	// ForceSendFields is a list of field names (e.g. "Accounts") to
  4325  	// unconditionally include in API requests. By default, fields with empty or
  4326  	// default values are omitted from API requests. See
  4327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4328  	// details.
  4329  	ForceSendFields []string `json:"-"`
  4330  	// NullFields is a list of field names (e.g. "Accounts") to include in API
  4331  	// requests with the JSON null value. By default, fields with empty values are
  4332  	// omitted from API requests. See
  4333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4334  	NullFields []string `json:"-"`
  4335  }
  4336  
  4337  func (s *GoogleAnalyticsAdminV1alphaListAccountsResponse) MarshalJSON() ([]byte, error) {
  4338  	type NoMethod GoogleAnalyticsAdminV1alphaListAccountsResponse
  4339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4340  }
  4341  
  4342  // GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse: Response message for
  4343  // ListAdSenseLinks method.
  4344  type GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse struct {
  4345  	// AdsenseLinks: List of AdSenseLinks.
  4346  	AdsenseLinks []*GoogleAnalyticsAdminV1alphaAdSenseLink `json:"adsenseLinks,omitempty"`
  4347  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4348  	// next page. If this field is omitted, there are no subsequent pages.
  4349  	NextPageToken string `json:"nextPageToken,omitempty"`
  4350  
  4351  	// ServerResponse contains the HTTP response code and headers from the server.
  4352  	googleapi.ServerResponse `json:"-"`
  4353  	// ForceSendFields is a list of field names (e.g. "AdsenseLinks") to
  4354  	// unconditionally include in API requests. By default, fields with empty or
  4355  	// default values are omitted from API requests. See
  4356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4357  	// details.
  4358  	ForceSendFields []string `json:"-"`
  4359  	// NullFields is a list of field names (e.g. "AdsenseLinks") to include in API
  4360  	// requests with the JSON null value. By default, fields with empty values are
  4361  	// omitted from API requests. See
  4362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4363  	NullFields []string `json:"-"`
  4364  }
  4365  
  4366  func (s *GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse) MarshalJSON() ([]byte, error) {
  4367  	type NoMethod GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse
  4368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4369  }
  4370  
  4371  // GoogleAnalyticsAdminV1alphaListAudiencesResponse: Response message for
  4372  // ListAudiences RPC.
  4373  type GoogleAnalyticsAdminV1alphaListAudiencesResponse struct {
  4374  	// Audiences: List of Audiences.
  4375  	Audiences []*GoogleAnalyticsAdminV1alphaAudience `json:"audiences,omitempty"`
  4376  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4377  	// next page. If this field is omitted, there are no subsequent pages.
  4378  	NextPageToken string `json:"nextPageToken,omitempty"`
  4379  
  4380  	// ServerResponse contains the HTTP response code and headers from the server.
  4381  	googleapi.ServerResponse `json:"-"`
  4382  	// ForceSendFields is a list of field names (e.g. "Audiences") to
  4383  	// unconditionally include in API requests. By default, fields with empty or
  4384  	// default values are omitted from API requests. See
  4385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4386  	// details.
  4387  	ForceSendFields []string `json:"-"`
  4388  	// NullFields is a list of field names (e.g. "Audiences") to include in API
  4389  	// requests with the JSON null value. By default, fields with empty values are
  4390  	// omitted from API requests. See
  4391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4392  	NullFields []string `json:"-"`
  4393  }
  4394  
  4395  func (s *GoogleAnalyticsAdminV1alphaListAudiencesResponse) MarshalJSON() ([]byte, error) {
  4396  	type NoMethod GoogleAnalyticsAdminV1alphaListAudiencesResponse
  4397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4398  }
  4399  
  4400  // GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse: Response message for
  4401  // ListBigQueryLinks RPC
  4402  type GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse struct {
  4403  	// BigqueryLinks: List of BigQueryLinks.
  4404  	BigqueryLinks []*GoogleAnalyticsAdminV1alphaBigQueryLink `json:"bigqueryLinks,omitempty"`
  4405  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4406  	// next page. If this field is omitted, there are no subsequent pages.
  4407  	NextPageToken string `json:"nextPageToken,omitempty"`
  4408  
  4409  	// ServerResponse contains the HTTP response code and headers from the server.
  4410  	googleapi.ServerResponse `json:"-"`
  4411  	// ForceSendFields is a list of field names (e.g. "BigqueryLinks") to
  4412  	// unconditionally include in API requests. By default, fields with empty or
  4413  	// default values are omitted from API requests. See
  4414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4415  	// details.
  4416  	ForceSendFields []string `json:"-"`
  4417  	// NullFields is a list of field names (e.g. "BigqueryLinks") to include in API
  4418  	// requests with the JSON null value. By default, fields with empty values are
  4419  	// omitted from API requests. See
  4420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4421  	NullFields []string `json:"-"`
  4422  }
  4423  
  4424  func (s *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse) MarshalJSON() ([]byte, error) {
  4425  	type NoMethod GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse
  4426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4427  }
  4428  
  4429  // GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse: Response message
  4430  // for ListCalculatedMetrics RPC.
  4431  type GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse struct {
  4432  	// CalculatedMetrics: List of CalculatedMetrics.
  4433  	CalculatedMetrics []*GoogleAnalyticsAdminV1alphaCalculatedMetric `json:"calculatedMetrics,omitempty"`
  4434  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4435  	// next page. If this field is omitted, there are no subsequent pages.
  4436  	NextPageToken string `json:"nextPageToken,omitempty"`
  4437  
  4438  	// ServerResponse contains the HTTP response code and headers from the server.
  4439  	googleapi.ServerResponse `json:"-"`
  4440  	// ForceSendFields is a list of field names (e.g. "CalculatedMetrics") to
  4441  	// unconditionally include in API requests. By default, fields with empty or
  4442  	// default values are omitted from API requests. See
  4443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4444  	// details.
  4445  	ForceSendFields []string `json:"-"`
  4446  	// NullFields is a list of field names (e.g. "CalculatedMetrics") to include in
  4447  	// API requests with the JSON null value. By default, fields with empty values
  4448  	// are omitted from API requests. See
  4449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4450  	NullFields []string `json:"-"`
  4451  }
  4452  
  4453  func (s *GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse) MarshalJSON() ([]byte, error) {
  4454  	type NoMethod GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse
  4455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4456  }
  4457  
  4458  // GoogleAnalyticsAdminV1alphaListChannelGroupsResponse: Response message for
  4459  // ListChannelGroups RPC.
  4460  type GoogleAnalyticsAdminV1alphaListChannelGroupsResponse struct {
  4461  	// ChannelGroups: List of ChannelGroup. These will be ordered stably, but in an
  4462  	// arbitrary order.
  4463  	ChannelGroups []*GoogleAnalyticsAdminV1alphaChannelGroup `json:"channelGroups,omitempty"`
  4464  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4465  	// next page. If this field is omitted, there are no subsequent pages.
  4466  	NextPageToken string `json:"nextPageToken,omitempty"`
  4467  
  4468  	// ServerResponse contains the HTTP response code and headers from the server.
  4469  	googleapi.ServerResponse `json:"-"`
  4470  	// ForceSendFields is a list of field names (e.g. "ChannelGroups") to
  4471  	// unconditionally include in API requests. By default, fields with empty or
  4472  	// default values are omitted from API requests. See
  4473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4474  	// details.
  4475  	ForceSendFields []string `json:"-"`
  4476  	// NullFields is a list of field names (e.g. "ChannelGroups") to include in API
  4477  	// requests with the JSON null value. By default, fields with empty values are
  4478  	// omitted from API requests. See
  4479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4480  	NullFields []string `json:"-"`
  4481  }
  4482  
  4483  func (s *GoogleAnalyticsAdminV1alphaListChannelGroupsResponse) MarshalJSON() ([]byte, error) {
  4484  	type NoMethod GoogleAnalyticsAdminV1alphaListChannelGroupsResponse
  4485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4486  }
  4487  
  4488  // GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest: Request message for
  4489  // ListConnectedSiteTags RPC.
  4490  type GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest struct {
  4491  	// Property: The Universal Analytics property to fetch connected site tags for.
  4492  	// This does not work on GA4 properties. A maximum of 20 connected site tags
  4493  	// will be returned. Example Format: `properties/1234`
  4494  	Property string `json:"property,omitempty"`
  4495  	// ForceSendFields is a list of field names (e.g. "Property") to
  4496  	// unconditionally include in API requests. By default, fields with empty or
  4497  	// default values are omitted from API requests. See
  4498  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4499  	// details.
  4500  	ForceSendFields []string `json:"-"`
  4501  	// NullFields is a list of field names (e.g. "Property") to include in API
  4502  	// requests with the JSON null value. By default, fields with empty values are
  4503  	// omitted from API requests. See
  4504  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4505  	NullFields []string `json:"-"`
  4506  }
  4507  
  4508  func (s *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest) MarshalJSON() ([]byte, error) {
  4509  	type NoMethod GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest
  4510  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4511  }
  4512  
  4513  // GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse: Response message
  4514  // for ListConnectedSiteTags RPC.
  4515  type GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse struct {
  4516  	// ConnectedSiteTags: The site tags for the Universal Analytics property. A
  4517  	// maximum of 20 connected site tags will be returned.
  4518  	ConnectedSiteTags []*GoogleAnalyticsAdminV1alphaConnectedSiteTag `json:"connectedSiteTags,omitempty"`
  4519  
  4520  	// ServerResponse contains the HTTP response code and headers from the server.
  4521  	googleapi.ServerResponse `json:"-"`
  4522  	// ForceSendFields is a list of field names (e.g. "ConnectedSiteTags") to
  4523  	// unconditionally include in API requests. By default, fields with empty or
  4524  	// default values are omitted from API requests. See
  4525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4526  	// details.
  4527  	ForceSendFields []string `json:"-"`
  4528  	// NullFields is a list of field names (e.g. "ConnectedSiteTags") to include in
  4529  	// API requests with the JSON null value. By default, fields with empty values
  4530  	// are omitted from API requests. See
  4531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4532  	NullFields []string `json:"-"`
  4533  }
  4534  
  4535  func (s *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse) MarshalJSON() ([]byte, error) {
  4536  	type NoMethod GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse
  4537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4538  }
  4539  
  4540  // GoogleAnalyticsAdminV1alphaListConversionEventsResponse: Response message
  4541  // for ListConversionEvents RPC.
  4542  type GoogleAnalyticsAdminV1alphaListConversionEventsResponse struct {
  4543  	// ConversionEvents: The requested conversion events
  4544  	ConversionEvents []*GoogleAnalyticsAdminV1alphaConversionEvent `json:"conversionEvents,omitempty"`
  4545  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4546  	// next page. If this field is omitted, there are no subsequent pages.
  4547  	NextPageToken string `json:"nextPageToken,omitempty"`
  4548  
  4549  	// ServerResponse contains the HTTP response code and headers from the server.
  4550  	googleapi.ServerResponse `json:"-"`
  4551  	// ForceSendFields is a list of field names (e.g. "ConversionEvents") to
  4552  	// unconditionally include in API requests. By default, fields with empty or
  4553  	// default values are omitted from API requests. See
  4554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4555  	// details.
  4556  	ForceSendFields []string `json:"-"`
  4557  	// NullFields is a list of field names (e.g. "ConversionEvents") to include in
  4558  	// API requests with the JSON null value. By default, fields with empty values
  4559  	// are omitted from API requests. See
  4560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4561  	NullFields []string `json:"-"`
  4562  }
  4563  
  4564  func (s *GoogleAnalyticsAdminV1alphaListConversionEventsResponse) MarshalJSON() ([]byte, error) {
  4565  	type NoMethod GoogleAnalyticsAdminV1alphaListConversionEventsResponse
  4566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4567  }
  4568  
  4569  // GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse: Response message
  4570  // for ListCustomDimensions RPC.
  4571  type GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse struct {
  4572  	// CustomDimensions: List of CustomDimensions.
  4573  	CustomDimensions []*GoogleAnalyticsAdminV1alphaCustomDimension `json:"customDimensions,omitempty"`
  4574  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4575  	// next page. If this field is omitted, there are no subsequent pages.
  4576  	NextPageToken string `json:"nextPageToken,omitempty"`
  4577  
  4578  	// ServerResponse contains the HTTP response code and headers from the server.
  4579  	googleapi.ServerResponse `json:"-"`
  4580  	// ForceSendFields is a list of field names (e.g. "CustomDimensions") 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. "CustomDimensions") to include in
  4587  	// API requests with the JSON null value. By default, fields with empty values
  4588  	// are 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 *GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse) MarshalJSON() ([]byte, error) {
  4594  	type NoMethod GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse
  4595  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4596  }
  4597  
  4598  // GoogleAnalyticsAdminV1alphaListCustomMetricsResponse: Response message for
  4599  // ListCustomMetrics RPC.
  4600  type GoogleAnalyticsAdminV1alphaListCustomMetricsResponse struct {
  4601  	// CustomMetrics: List of CustomMetrics.
  4602  	CustomMetrics []*GoogleAnalyticsAdminV1alphaCustomMetric `json:"customMetrics,omitempty"`
  4603  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4604  	// next page. If this field is omitted, there are no subsequent pages.
  4605  	NextPageToken string `json:"nextPageToken,omitempty"`
  4606  
  4607  	// ServerResponse contains the HTTP response code and headers from the server.
  4608  	googleapi.ServerResponse `json:"-"`
  4609  	// ForceSendFields is a list of field names (e.g. "CustomMetrics") to
  4610  	// unconditionally include in API requests. By default, fields with empty or
  4611  	// default values are omitted from API requests. See
  4612  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4613  	// details.
  4614  	ForceSendFields []string `json:"-"`
  4615  	// NullFields is a list of field names (e.g. "CustomMetrics") to include in API
  4616  	// requests with the JSON null value. By default, fields with empty values are
  4617  	// omitted from API requests. See
  4618  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4619  	NullFields []string `json:"-"`
  4620  }
  4621  
  4622  func (s *GoogleAnalyticsAdminV1alphaListCustomMetricsResponse) MarshalJSON() ([]byte, error) {
  4623  	type NoMethod GoogleAnalyticsAdminV1alphaListCustomMetricsResponse
  4624  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4625  }
  4626  
  4627  // GoogleAnalyticsAdminV1alphaListDataStreamsResponse: Response message for
  4628  // ListDataStreams RPC.
  4629  type GoogleAnalyticsAdminV1alphaListDataStreamsResponse struct {
  4630  	// DataStreams: List of DataStreams.
  4631  	DataStreams []*GoogleAnalyticsAdminV1alphaDataStream `json:"dataStreams,omitempty"`
  4632  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4633  	// next page. If this field is omitted, there are no subsequent pages.
  4634  	NextPageToken string `json:"nextPageToken,omitempty"`
  4635  
  4636  	// ServerResponse contains the HTTP response code and headers from the server.
  4637  	googleapi.ServerResponse `json:"-"`
  4638  	// ForceSendFields is a list of field names (e.g. "DataStreams") to
  4639  	// unconditionally include in API requests. By default, fields with empty or
  4640  	// default values are omitted from API requests. See
  4641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4642  	// details.
  4643  	ForceSendFields []string `json:"-"`
  4644  	// NullFields is a list of field names (e.g. "DataStreams") to include in API
  4645  	// requests with the JSON null value. By default, fields with empty values are
  4646  	// omitted from API requests. See
  4647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4648  	NullFields []string `json:"-"`
  4649  }
  4650  
  4651  func (s *GoogleAnalyticsAdminV1alphaListDataStreamsResponse) MarshalJSON() ([]byte, error) {
  4652  	type NoMethod GoogleAnalyticsAdminV1alphaListDataStreamsResponse
  4653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4654  }
  4655  
  4656  // GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse
  4657  // : Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
  4658  type GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse struct {
  4659  	// DisplayVideo360AdvertiserLinkProposals: List of
  4660  	// DisplayVideo360AdvertiserLinkProposals.
  4661  	DisplayVideo360AdvertiserLinkProposals []*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal `json:"displayVideo360AdvertiserLinkProposals,omitempty"`
  4662  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4663  	// next page. If this field is omitted, there are no subsequent pages.
  4664  	NextPageToken string `json:"nextPageToken,omitempty"`
  4665  
  4666  	// ServerResponse contains the HTTP response code and headers from the server.
  4667  	googleapi.ServerResponse `json:"-"`
  4668  	// ForceSendFields is a list of field names (e.g.
  4669  	// "DisplayVideo360AdvertiserLinkProposals") to unconditionally include in API
  4670  	// requests. By default, fields with empty or default values are omitted from
  4671  	// API requests. See
  4672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4673  	// details.
  4674  	ForceSendFields []string `json:"-"`
  4675  	// NullFields is a list of field names (e.g.
  4676  	// "DisplayVideo360AdvertiserLinkProposals") to include in API requests with
  4677  	// the JSON null value. By default, fields with empty values are omitted from
  4678  	// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
  4679  	// for more details.
  4680  	NullFields []string `json:"-"`
  4681  }
  4682  
  4683  func (s *GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse) MarshalJSON() ([]byte, error) {
  4684  	type NoMethod GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse
  4685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4686  }
  4687  
  4688  // GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse:
  4689  // Response message for ListDisplayVideo360AdvertiserLinks RPC.
  4690  type GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse struct {
  4691  	// DisplayVideo360AdvertiserLinks: List of DisplayVideo360AdvertiserLinks.
  4692  	DisplayVideo360AdvertiserLinks []*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink `json:"displayVideo360AdvertiserLinks,omitempty"`
  4693  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4694  	// next page. If this field is omitted, there are no subsequent pages.
  4695  	NextPageToken string `json:"nextPageToken,omitempty"`
  4696  
  4697  	// ServerResponse contains the HTTP response code and headers from the server.
  4698  	googleapi.ServerResponse `json:"-"`
  4699  	// ForceSendFields is a list of field names (e.g.
  4700  	// "DisplayVideo360AdvertiserLinks") to unconditionally include in API
  4701  	// requests. By default, fields with empty or default values are omitted from
  4702  	// API requests. See
  4703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4704  	// details.
  4705  	ForceSendFields []string `json:"-"`
  4706  	// NullFields is a list of field names (e.g. "DisplayVideo360AdvertiserLinks")
  4707  	// to include in API requests with the JSON null value. By default, fields with
  4708  	// empty values are omitted from API requests. See
  4709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4710  	NullFields []string `json:"-"`
  4711  }
  4712  
  4713  func (s *GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse) MarshalJSON() ([]byte, error) {
  4714  	type NoMethod GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse
  4715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4716  }
  4717  
  4718  // GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse: Response message
  4719  // for ListEventCreateRules RPC.
  4720  type GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse struct {
  4721  	// EventCreateRules: List of EventCreateRules. These will be ordered stably,
  4722  	// but in an arbitrary order.
  4723  	EventCreateRules []*GoogleAnalyticsAdminV1alphaEventCreateRule `json:"eventCreateRules,omitempty"`
  4724  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4725  	// next page. If this field is omitted, there are no subsequent pages.
  4726  	NextPageToken string `json:"nextPageToken,omitempty"`
  4727  
  4728  	// ServerResponse contains the HTTP response code and headers from the server.
  4729  	googleapi.ServerResponse `json:"-"`
  4730  	// ForceSendFields is a list of field names (e.g. "EventCreateRules") to
  4731  	// unconditionally include in API requests. By default, fields with empty or
  4732  	// default values are omitted from API requests. See
  4733  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4734  	// details.
  4735  	ForceSendFields []string `json:"-"`
  4736  	// NullFields is a list of field names (e.g. "EventCreateRules") to include in
  4737  	// API requests with the JSON null value. By default, fields with empty values
  4738  	// are omitted from API requests. See
  4739  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4740  	NullFields []string `json:"-"`
  4741  }
  4742  
  4743  func (s *GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse) MarshalJSON() ([]byte, error) {
  4744  	type NoMethod GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse
  4745  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4746  }
  4747  
  4748  // GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse: Response message
  4749  // for ListExpandedDataSets RPC.
  4750  type GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse struct {
  4751  	// ExpandedDataSets: List of ExpandedDataSet. These will be ordered stably, but
  4752  	// in an arbitrary order.
  4753  	ExpandedDataSets []*GoogleAnalyticsAdminV1alphaExpandedDataSet `json:"expandedDataSets,omitempty"`
  4754  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4755  	// next page. If this field is omitted, there are no subsequent pages.
  4756  	NextPageToken string `json:"nextPageToken,omitempty"`
  4757  
  4758  	// ServerResponse contains the HTTP response code and headers from the server.
  4759  	googleapi.ServerResponse `json:"-"`
  4760  	// ForceSendFields is a list of field names (e.g. "ExpandedDataSets") to
  4761  	// unconditionally include in API requests. By default, fields with empty or
  4762  	// default values are omitted from API requests. See
  4763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4764  	// details.
  4765  	ForceSendFields []string `json:"-"`
  4766  	// NullFields is a list of field names (e.g. "ExpandedDataSets") to include in
  4767  	// API requests with the JSON null value. By default, fields with empty values
  4768  	// are omitted from API requests. See
  4769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4770  	NullFields []string `json:"-"`
  4771  }
  4772  
  4773  func (s *GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse) MarshalJSON() ([]byte, error) {
  4774  	type NoMethod GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse
  4775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4776  }
  4777  
  4778  // GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse: Response message for
  4779  // ListFirebaseLinks RPC
  4780  type GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse struct {
  4781  	// FirebaseLinks: List of FirebaseLinks. This will have at most one value.
  4782  	FirebaseLinks []*GoogleAnalyticsAdminV1alphaFirebaseLink `json:"firebaseLinks,omitempty"`
  4783  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4784  	// next page. If this field is omitted, there are no subsequent pages.
  4785  	// Currently, Google Analytics supports only one FirebaseLink per property, so
  4786  	// this will never be populated.
  4787  	NextPageToken string `json:"nextPageToken,omitempty"`
  4788  
  4789  	// ServerResponse contains the HTTP response code and headers from the server.
  4790  	googleapi.ServerResponse `json:"-"`
  4791  	// ForceSendFields is a list of field names (e.g. "FirebaseLinks") to
  4792  	// unconditionally include in API requests. By default, fields with empty or
  4793  	// default values are omitted from API requests. See
  4794  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4795  	// details.
  4796  	ForceSendFields []string `json:"-"`
  4797  	// NullFields is a list of field names (e.g. "FirebaseLinks") to include in API
  4798  	// requests with the JSON null value. By default, fields with empty values are
  4799  	// omitted from API requests. See
  4800  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4801  	NullFields []string `json:"-"`
  4802  }
  4803  
  4804  func (s *GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse) MarshalJSON() ([]byte, error) {
  4805  	type NoMethod GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
  4806  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4807  }
  4808  
  4809  // GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse: Response message for
  4810  // ListGoogleAdsLinks RPC.
  4811  type GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse struct {
  4812  	// GoogleAdsLinks: List of GoogleAdsLinks.
  4813  	GoogleAdsLinks []*GoogleAnalyticsAdminV1alphaGoogleAdsLink `json:"googleAdsLinks,omitempty"`
  4814  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4815  	// next page. If this field is omitted, there are no subsequent pages.
  4816  	NextPageToken string `json:"nextPageToken,omitempty"`
  4817  
  4818  	// ServerResponse contains the HTTP response code and headers from the server.
  4819  	googleapi.ServerResponse `json:"-"`
  4820  	// ForceSendFields is a list of field names (e.g. "GoogleAdsLinks") to
  4821  	// unconditionally include in API requests. By default, fields with empty or
  4822  	// default values are omitted from API requests. See
  4823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4824  	// details.
  4825  	ForceSendFields []string `json:"-"`
  4826  	// NullFields is a list of field names (e.g. "GoogleAdsLinks") to include in
  4827  	// API requests with the JSON null value. By default, fields with empty values
  4828  	// are omitted from API requests. See
  4829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4830  	NullFields []string `json:"-"`
  4831  }
  4832  
  4833  func (s *GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse) MarshalJSON() ([]byte, error) {
  4834  	type NoMethod GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
  4835  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4836  }
  4837  
  4838  // GoogleAnalyticsAdminV1alphaListKeyEventsResponse: Response message for
  4839  // ListKeyEvents RPC.
  4840  type GoogleAnalyticsAdminV1alphaListKeyEventsResponse struct {
  4841  	// KeyEvents: The requested Key Events
  4842  	KeyEvents []*GoogleAnalyticsAdminV1alphaKeyEvent `json:"keyEvents,omitempty"`
  4843  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4844  	// next page. If this field is omitted, there are no subsequent pages.
  4845  	NextPageToken string `json:"nextPageToken,omitempty"`
  4846  
  4847  	// ServerResponse contains the HTTP response code and headers from the server.
  4848  	googleapi.ServerResponse `json:"-"`
  4849  	// ForceSendFields is a list of field names (e.g. "KeyEvents") to
  4850  	// unconditionally include in API requests. By default, fields with empty or
  4851  	// default values are omitted from API requests. See
  4852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4853  	// details.
  4854  	ForceSendFields []string `json:"-"`
  4855  	// NullFields is a list of field names (e.g. "KeyEvents") to include in API
  4856  	// requests with the JSON null value. By default, fields with empty values are
  4857  	// omitted from API requests. See
  4858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4859  	NullFields []string `json:"-"`
  4860  }
  4861  
  4862  func (s *GoogleAnalyticsAdminV1alphaListKeyEventsResponse) MarshalJSON() ([]byte, error) {
  4863  	type NoMethod GoogleAnalyticsAdminV1alphaListKeyEventsResponse
  4864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4865  }
  4866  
  4867  // GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse: Response
  4868  // message for ListMeasurementProtocolSecret RPC
  4869  type GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse struct {
  4870  	// MeasurementProtocolSecrets: A list of secrets for the parent stream
  4871  	// specified in the request.
  4872  	MeasurementProtocolSecrets []*GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret `json:"measurementProtocolSecrets,omitempty"`
  4873  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4874  	// next page. If this field is omitted, there are no subsequent pages.
  4875  	NextPageToken string `json:"nextPageToken,omitempty"`
  4876  
  4877  	// ServerResponse contains the HTTP response code and headers from the server.
  4878  	googleapi.ServerResponse `json:"-"`
  4879  	// ForceSendFields is a list of field names (e.g. "MeasurementProtocolSecrets")
  4880  	// to unconditionally include in API requests. By default, fields with empty or
  4881  	// default values are omitted from API requests. See
  4882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4883  	// details.
  4884  	ForceSendFields []string `json:"-"`
  4885  	// NullFields is a list of field names (e.g. "MeasurementProtocolSecrets") to
  4886  	// include in API requests with the JSON null value. By default, fields with
  4887  	// empty values are omitted from API requests. See
  4888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4889  	NullFields []string `json:"-"`
  4890  }
  4891  
  4892  func (s *GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse) MarshalJSON() ([]byte, error) {
  4893  	type NoMethod GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
  4894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4895  }
  4896  
  4897  // GoogleAnalyticsAdminV1alphaListPropertiesResponse: Response message for
  4898  // ListProperties RPC.
  4899  type GoogleAnalyticsAdminV1alphaListPropertiesResponse struct {
  4900  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4901  	// next page. If this field is omitted, there are no subsequent pages.
  4902  	NextPageToken string `json:"nextPageToken,omitempty"`
  4903  	// Properties: Results that matched the filter criteria and were accessible to
  4904  	// the caller.
  4905  	Properties []*GoogleAnalyticsAdminV1alphaProperty `json:"properties,omitempty"`
  4906  
  4907  	// ServerResponse contains the HTTP response code and headers from the server.
  4908  	googleapi.ServerResponse `json:"-"`
  4909  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4910  	// unconditionally include in API requests. By default, fields with empty or
  4911  	// default values are omitted from API requests. See
  4912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4913  	// details.
  4914  	ForceSendFields []string `json:"-"`
  4915  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4916  	// requests with the JSON null value. By default, fields with empty values are
  4917  	// omitted from API requests. See
  4918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4919  	NullFields []string `json:"-"`
  4920  }
  4921  
  4922  func (s *GoogleAnalyticsAdminV1alphaListPropertiesResponse) MarshalJSON() ([]byte, error) {
  4923  	type NoMethod GoogleAnalyticsAdminV1alphaListPropertiesResponse
  4924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4925  }
  4926  
  4927  // GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse: Response
  4928  // message for ListRollupPropertySourceLinks RPC.
  4929  type GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse struct {
  4930  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4931  	// next page. If this field is omitted, there are no subsequent pages.
  4932  	NextPageToken string `json:"nextPageToken,omitempty"`
  4933  	// RollupPropertySourceLinks: List of RollupPropertySourceLinks.
  4934  	RollupPropertySourceLinks []*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink `json:"rollupPropertySourceLinks,omitempty"`
  4935  
  4936  	// ServerResponse contains the HTTP response code and headers from the server.
  4937  	googleapi.ServerResponse `json:"-"`
  4938  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4939  	// unconditionally include in API requests. By default, fields with empty or
  4940  	// default values are omitted from API requests. See
  4941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4942  	// details.
  4943  	ForceSendFields []string `json:"-"`
  4944  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4945  	// requests with the JSON null value. By default, fields with empty values are
  4946  	// omitted from API requests. See
  4947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4948  	NullFields []string `json:"-"`
  4949  }
  4950  
  4951  func (s *GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse) MarshalJSON() ([]byte, error) {
  4952  	type NoMethod GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse
  4953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4954  }
  4955  
  4956  // GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse:
  4957  // Response message for ListSKAdNetworkConversionValueSchemas RPC
  4958  type GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse struct {
  4959  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4960  	// next page. If this field is omitted, there are no subsequent pages.
  4961  	// Currently, Google Analytics supports only one
  4962  	// SKAdNetworkConversionValueSchema per dataStream, so this will never be
  4963  	// populated.
  4964  	NextPageToken string `json:"nextPageToken,omitempty"`
  4965  	// SkadnetworkConversionValueSchemas: List of
  4966  	// SKAdNetworkConversionValueSchemas. This will have at most one value.
  4967  	SkadnetworkConversionValueSchemas []*GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema `json:"skadnetworkConversionValueSchemas,omitempty"`
  4968  
  4969  	// ServerResponse contains the HTTP response code and headers from the server.
  4970  	googleapi.ServerResponse `json:"-"`
  4971  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4972  	// unconditionally include in API requests. By default, fields with empty or
  4973  	// default values are omitted from API requests. See
  4974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4975  	// details.
  4976  	ForceSendFields []string `json:"-"`
  4977  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4978  	// requests with the JSON null value. By default, fields with empty values are
  4979  	// omitted from API requests. See
  4980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4981  	NullFields []string `json:"-"`
  4982  }
  4983  
  4984  func (s *GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse) MarshalJSON() ([]byte, error) {
  4985  	type NoMethod GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse
  4986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4987  }
  4988  
  4989  // GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse: Response message
  4990  // for ListSearchAds360Links RPC.
  4991  type GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse struct {
  4992  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  4993  	// next page. If this field is omitted, there are no subsequent pages.
  4994  	NextPageToken string `json:"nextPageToken,omitempty"`
  4995  	// SearchAds360Links: List of SearchAds360Links.
  4996  	SearchAds360Links []*GoogleAnalyticsAdminV1alphaSearchAds360Link `json:"searchAds360Links,omitempty"`
  4997  
  4998  	// ServerResponse contains the HTTP response code and headers from the server.
  4999  	googleapi.ServerResponse `json:"-"`
  5000  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5001  	// unconditionally include in API requests. By default, fields with empty or
  5002  	// default values are omitted from API requests. See
  5003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5004  	// details.
  5005  	ForceSendFields []string `json:"-"`
  5006  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5007  	// requests with the JSON null value. By default, fields with empty values are
  5008  	// omitted from API requests. See
  5009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5010  	NullFields []string `json:"-"`
  5011  }
  5012  
  5013  func (s *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse) MarshalJSON() ([]byte, error) {
  5014  	type NoMethod GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse
  5015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5016  }
  5017  
  5018  // GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse: Response
  5019  // message for ListSubpropertyEventFilter RPC.
  5020  type GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse struct {
  5021  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  5022  	// next page. If this field is omitted, there are no subsequent pages.
  5023  	NextPageToken string `json:"nextPageToken,omitempty"`
  5024  	// SubpropertyEventFilters: List of subproperty event filters.
  5025  	SubpropertyEventFilters []*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter `json:"subpropertyEventFilters,omitempty"`
  5026  
  5027  	// ServerResponse contains the HTTP response code and headers from the server.
  5028  	googleapi.ServerResponse `json:"-"`
  5029  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5030  	// unconditionally include in API requests. By default, fields with empty or
  5031  	// default values are omitted from API requests. See
  5032  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5033  	// details.
  5034  	ForceSendFields []string `json:"-"`
  5035  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5036  	// requests with the JSON null value. By default, fields with empty values are
  5037  	// omitted from API requests. See
  5038  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5039  	NullFields []string `json:"-"`
  5040  }
  5041  
  5042  func (s *GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse) MarshalJSON() ([]byte, error) {
  5043  	type NoMethod GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse
  5044  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5045  }
  5046  
  5047  // GoogleAnalyticsAdminV1alphaMatchingCondition: Defines a condition for when
  5048  // an Event Edit or Event Creation rule applies to an event.
  5049  type GoogleAnalyticsAdminV1alphaMatchingCondition struct {
  5050  	// ComparisonType: Required. The type of comparison to be applied to the value.
  5051  	//
  5052  	// Possible values:
  5053  	//   "COMPARISON_TYPE_UNSPECIFIED" - Unknown
  5054  	//   "EQUALS" - Equals, case sensitive
  5055  	//   "EQUALS_CASE_INSENSITIVE" - Equals, case insensitive
  5056  	//   "CONTAINS" - Contains, case sensitive
  5057  	//   "CONTAINS_CASE_INSENSITIVE" - Contains, case insensitive
  5058  	//   "STARTS_WITH" - Starts with, case sensitive
  5059  	//   "STARTS_WITH_CASE_INSENSITIVE" - Starts with, case insensitive
  5060  	//   "ENDS_WITH" - Ends with, case sensitive
  5061  	//   "ENDS_WITH_CASE_INSENSITIVE" - Ends with, case insensitive
  5062  	//   "GREATER_THAN" - Greater than
  5063  	//   "GREATER_THAN_OR_EQUAL" - Greater than or equal
  5064  	//   "LESS_THAN" - Less than
  5065  	//   "LESS_THAN_OR_EQUAL" - Less than or equal
  5066  	//   "REGULAR_EXPRESSION" - regular expression. Only supported for web streams.
  5067  	//   "REGULAR_EXPRESSION_CASE_INSENSITIVE" - regular expression, case
  5068  	// insensitive. Only supported for web streams.
  5069  	ComparisonType string `json:"comparisonType,omitempty"`
  5070  	// Field: Required. The name of the field that is compared against for the
  5071  	// condition. If 'event_name' is specified this condition will apply to the
  5072  	// name of the event. Otherwise the condition will apply to a parameter with
  5073  	// the specified name. This value cannot contain spaces.
  5074  	Field string `json:"field,omitempty"`
  5075  	// Negated: Whether or not the result of the comparison should be negated. For
  5076  	// example, if `negated` is true, then 'equals' comparisons would function as
  5077  	// 'not equals'.
  5078  	Negated bool `json:"negated,omitempty"`
  5079  	// Value: Required. The value being compared against for this condition. The
  5080  	// runtime implementation may perform type coercion of this value to evaluate
  5081  	// this condition based on the type of the parameter value.
  5082  	Value string `json:"value,omitempty"`
  5083  	// ForceSendFields is a list of field names (e.g. "ComparisonType") to
  5084  	// unconditionally include in API requests. By default, fields with empty or
  5085  	// default values are omitted from API requests. See
  5086  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5087  	// details.
  5088  	ForceSendFields []string `json:"-"`
  5089  	// NullFields is a list of field names (e.g. "ComparisonType") to include in
  5090  	// API requests with the JSON null value. By default, fields with empty values
  5091  	// are omitted from API requests. See
  5092  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5093  	NullFields []string `json:"-"`
  5094  }
  5095  
  5096  func (s *GoogleAnalyticsAdminV1alphaMatchingCondition) MarshalJSON() ([]byte, error) {
  5097  	type NoMethod GoogleAnalyticsAdminV1alphaMatchingCondition
  5098  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5099  }
  5100  
  5101  // GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret: A secret value used
  5102  // for sending hits to Measurement Protocol.
  5103  type GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret struct {
  5104  	// DisplayName: Required. Human-readable display name for this secret.
  5105  	DisplayName string `json:"displayName,omitempty"`
  5106  	// Name: Output only. Resource name of this secret. This secret may be a child
  5107  	// of any type of stream. Format:
  5108  	// properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{me
  5109  	// asurementProtocolSecret}
  5110  	Name string `json:"name,omitempty"`
  5111  	// SecretValue: Output only. The measurement protocol secret value. Pass this
  5112  	// value to the api_secret field of the Measurement Protocol API when sending
  5113  	// hits to this secret's parent property.
  5114  	SecretValue string `json:"secretValue,omitempty"`
  5115  
  5116  	// ServerResponse contains the HTTP response code and headers from the server.
  5117  	googleapi.ServerResponse `json:"-"`
  5118  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  5119  	// unconditionally include in API requests. By default, fields with empty or
  5120  	// default values are omitted from API requests. See
  5121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5122  	// details.
  5123  	ForceSendFields []string `json:"-"`
  5124  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  5125  	// requests with the JSON null value. By default, fields with empty values are
  5126  	// omitted from API requests. See
  5127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5128  	NullFields []string `json:"-"`
  5129  }
  5130  
  5131  func (s *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret) MarshalJSON() ([]byte, error) {
  5132  	type NoMethod GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
  5133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5134  }
  5135  
  5136  // GoogleAnalyticsAdminV1alphaNumericValue: To represent a number.
  5137  type GoogleAnalyticsAdminV1alphaNumericValue struct {
  5138  	// DoubleValue: Double value
  5139  	DoubleValue float64 `json:"doubleValue,omitempty"`
  5140  	// Int64Value: Integer value
  5141  	Int64Value int64 `json:"int64Value,omitempty,string"`
  5142  	// ForceSendFields is a list of field names (e.g. "DoubleValue") to
  5143  	// unconditionally include in API requests. By default, fields with empty or
  5144  	// default values are omitted from API requests. See
  5145  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5146  	// details.
  5147  	ForceSendFields []string `json:"-"`
  5148  	// NullFields is a list of field names (e.g. "DoubleValue") to include in API
  5149  	// requests with the JSON null value. By default, fields with empty values are
  5150  	// omitted from API requests. See
  5151  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5152  	NullFields []string `json:"-"`
  5153  }
  5154  
  5155  func (s *GoogleAnalyticsAdminV1alphaNumericValue) MarshalJSON() ([]byte, error) {
  5156  	type NoMethod GoogleAnalyticsAdminV1alphaNumericValue
  5157  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5158  }
  5159  
  5160  func (s *GoogleAnalyticsAdminV1alphaNumericValue) UnmarshalJSON(data []byte) error {
  5161  	type NoMethod GoogleAnalyticsAdminV1alphaNumericValue
  5162  	var s1 struct {
  5163  		DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
  5164  		*NoMethod
  5165  	}
  5166  	s1.NoMethod = (*NoMethod)(s)
  5167  	if err := json.Unmarshal(data, &s1); err != nil {
  5168  		return err
  5169  	}
  5170  	s.DoubleValue = float64(s1.DoubleValue)
  5171  	return nil
  5172  }
  5173  
  5174  // GoogleAnalyticsAdminV1alphaParameterMutation: Defines an event parameter to
  5175  // mutate.
  5176  type GoogleAnalyticsAdminV1alphaParameterMutation struct {
  5177  	// Parameter: Required. The name of the parameter to mutate. This value must: *
  5178  	// be less than 40 characters. * be unique across across all mutations within
  5179  	// the rule * consist only of letters, digits or _ (underscores) For event edit
  5180  	// rules, the name may also be set to 'event_name' to modify the event_name in
  5181  	// place.
  5182  	Parameter string `json:"parameter,omitempty"`
  5183  	// ParameterValue: Required. The value mutation to perform. * Must be less than
  5184  	// 100 characters. * To specify a constant value for the param, use the value's
  5185  	// string. * To copy value from another parameter, use syntax like
  5186  	// "[[other_parameter]]" For more details, see this help center article
  5187  	// (https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
  5188  	ParameterValue string `json:"parameterValue,omitempty"`
  5189  	// ForceSendFields is a list of field names (e.g. "Parameter") to
  5190  	// unconditionally include in API requests. By default, fields with empty or
  5191  	// default values are omitted from API requests. See
  5192  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5193  	// details.
  5194  	ForceSendFields []string `json:"-"`
  5195  	// NullFields is a list of field names (e.g. "Parameter") to include in API
  5196  	// requests with the JSON null value. By default, fields with empty values are
  5197  	// omitted from API requests. See
  5198  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5199  	NullFields []string `json:"-"`
  5200  }
  5201  
  5202  func (s *GoogleAnalyticsAdminV1alphaParameterMutation) MarshalJSON() ([]byte, error) {
  5203  	type NoMethod GoogleAnalyticsAdminV1alphaParameterMutation
  5204  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5205  }
  5206  
  5207  // GoogleAnalyticsAdminV1alphaPostbackWindow: Settings for a SKAdNetwork
  5208  // conversion postback window.
  5209  type GoogleAnalyticsAdminV1alphaPostbackWindow struct {
  5210  	// ConversionValues: Ordering of the repeated field will be used to prioritize
  5211  	// the conversion value settings. Lower indexed entries are prioritized higher.
  5212  	// The first conversion value setting that evaluates to true will be selected.
  5213  	// It must have at least one entry if enable_postback_window_settings is set to
  5214  	// true. It can have maximum of 128 entries.
  5215  	ConversionValues []*GoogleAnalyticsAdminV1alphaConversionValues `json:"conversionValues,omitempty"`
  5216  	// PostbackWindowSettingsEnabled: If enable_postback_window_settings is true,
  5217  	// conversion_values must be populated and will be used for determining when
  5218  	// and how to set the Conversion Value on a client device and exporting schema
  5219  	// to linked Ads accounts. If false, the settings are not used, but are
  5220  	// retained in case they may be used in the future. This must always be true
  5221  	// for postback_window_one.
  5222  	PostbackWindowSettingsEnabled bool `json:"postbackWindowSettingsEnabled,omitempty"`
  5223  	// ForceSendFields is a list of field names (e.g. "ConversionValues") to
  5224  	// unconditionally include in API requests. By default, fields with empty or
  5225  	// default values are omitted from API requests. See
  5226  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5227  	// details.
  5228  	ForceSendFields []string `json:"-"`
  5229  	// NullFields is a list of field names (e.g. "ConversionValues") to include in
  5230  	// API requests with the JSON null value. By default, fields with empty values
  5231  	// are omitted from API requests. See
  5232  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5233  	NullFields []string `json:"-"`
  5234  }
  5235  
  5236  func (s *GoogleAnalyticsAdminV1alphaPostbackWindow) MarshalJSON() ([]byte, error) {
  5237  	type NoMethod GoogleAnalyticsAdminV1alphaPostbackWindow
  5238  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5239  }
  5240  
  5241  // GoogleAnalyticsAdminV1alphaProperty: A resource message representing a
  5242  // Google Analytics GA4 property.
  5243  type GoogleAnalyticsAdminV1alphaProperty struct {
  5244  	// Account: Immutable. The resource name of the parent account Format:
  5245  	// accounts/{account_id} Example: "accounts/123"
  5246  	Account string `json:"account,omitempty"`
  5247  	// CreateTime: Output only. Time when the entity was originally created.
  5248  	CreateTime string `json:"createTime,omitempty"`
  5249  	// CurrencyCode: The currency type used in reports involving monetary values.
  5250  	// Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"
  5251  	CurrencyCode string `json:"currencyCode,omitempty"`
  5252  	// DeleteTime: Output only. If set, the time at which this property was
  5253  	// trashed. If not set, then this property is not currently in the trash can.
  5254  	DeleteTime string `json:"deleteTime,omitempty"`
  5255  	// DisplayName: Required. Human-readable display name for this property. The
  5256  	// max allowed display name length is 100 UTF-16 code units.
  5257  	DisplayName string `json:"displayName,omitempty"`
  5258  	// ExpireTime: Output only. If set, the time at which this trashed property
  5259  	// will be permanently deleted. If not set, then this property is not currently
  5260  	// in the trash can and is not slated to be deleted.
  5261  	ExpireTime string `json:"expireTime,omitempty"`
  5262  	// IndustryCategory: Industry associated with this property Example:
  5263  	// AUTOMOTIVE, FOOD_AND_DRINK
  5264  	//
  5265  	// Possible values:
  5266  	//   "INDUSTRY_CATEGORY_UNSPECIFIED" - Industry category unspecified
  5267  	//   "AUTOMOTIVE" - Automotive
  5268  	//   "BUSINESS_AND_INDUSTRIAL_MARKETS" - Business and industrial markets
  5269  	//   "FINANCE" - Finance
  5270  	//   "HEALTHCARE" - Healthcare
  5271  	//   "TECHNOLOGY" - Technology
  5272  	//   "TRAVEL" - Travel
  5273  	//   "OTHER" - Other
  5274  	//   "ARTS_AND_ENTERTAINMENT" - Arts and entertainment
  5275  	//   "BEAUTY_AND_FITNESS" - Beauty and fitness
  5276  	//   "BOOKS_AND_LITERATURE" - Books and literature
  5277  	//   "FOOD_AND_DRINK" - Food and drink
  5278  	//   "GAMES" - Games
  5279  	//   "HOBBIES_AND_LEISURE" - Hobbies and leisure
  5280  	//   "HOME_AND_GARDEN" - Home and garden
  5281  	//   "INTERNET_AND_TELECOM" - Internet and telecom
  5282  	//   "LAW_AND_GOVERNMENT" - Law and government
  5283  	//   "NEWS" - News
  5284  	//   "ONLINE_COMMUNITIES" - Online communities
  5285  	//   "PEOPLE_AND_SOCIETY" - People and society
  5286  	//   "PETS_AND_ANIMALS" - Pets and animals
  5287  	//   "REAL_ESTATE" - Real estate
  5288  	//   "REFERENCE" - Reference
  5289  	//   "SCIENCE" - Science
  5290  	//   "SPORTS" - Sports
  5291  	//   "JOBS_AND_EDUCATION" - Jobs and education
  5292  	//   "SHOPPING" - Shopping
  5293  	IndustryCategory string `json:"industryCategory,omitempty"`
  5294  	// Name: Output only. Resource name of this property. Format:
  5295  	// properties/{property_id} Example: "properties/1000"
  5296  	Name string `json:"name,omitempty"`
  5297  	// Parent: Immutable. Resource name of this property's logical parent. Note:
  5298  	// The Property-Moving UI can be used to change the parent. Format:
  5299  	// accounts/{account}, properties/{property} Example: "accounts/100",
  5300  	// "properties/101"
  5301  	Parent string `json:"parent,omitempty"`
  5302  	// PropertyType: Immutable. The property type for this Property resource. When
  5303  	// creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
  5304  	// "ORDINARY_PROPERTY" will be implied.
  5305  	//
  5306  	// Possible values:
  5307  	//   "PROPERTY_TYPE_UNSPECIFIED" - Unknown or unspecified property type
  5308  	//   "PROPERTY_TYPE_ORDINARY" - Ordinary GA4 property
  5309  	//   "PROPERTY_TYPE_SUBPROPERTY" - GA4 subproperty
  5310  	//   "PROPERTY_TYPE_ROLLUP" - GA4 rollup property
  5311  	PropertyType string `json:"propertyType,omitempty"`
  5312  	// ServiceLevel: Output only. The Google Analytics service level that applies
  5313  	// to this property.
  5314  	//
  5315  	// Possible values:
  5316  	//   "SERVICE_LEVEL_UNSPECIFIED" - Service level not specified or invalid.
  5317  	//   "GOOGLE_ANALYTICS_STANDARD" - The standard version of Google Analytics.
  5318  	//   "GOOGLE_ANALYTICS_360" - The paid, premium version of Google Analytics.
  5319  	ServiceLevel string `json:"serviceLevel,omitempty"`
  5320  	// TimeZone: Required. Reporting Time Zone, used as the day boundary for
  5321  	// reports, regardless of where the data originates. If the time zone honors
  5322  	// DST, Analytics will automatically adjust for the changes. NOTE: Changing the
  5323  	// time zone only affects data going forward, and is not applied retroactively.
  5324  	// Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"
  5325  	TimeZone string `json:"timeZone,omitempty"`
  5326  	// UpdateTime: Output only. Time when entity payload fields were last updated.
  5327  	UpdateTime string `json:"updateTime,omitempty"`
  5328  
  5329  	// ServerResponse contains the HTTP response code and headers from the server.
  5330  	googleapi.ServerResponse `json:"-"`
  5331  	// ForceSendFields is a list of field names (e.g. "Account") to unconditionally
  5332  	// include in API requests. By default, fields with empty or default values are
  5333  	// omitted from API requests. See
  5334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5335  	// details.
  5336  	ForceSendFields []string `json:"-"`
  5337  	// NullFields is a list of field names (e.g. "Account") to include in API
  5338  	// requests with the JSON null value. By default, fields with empty values are
  5339  	// omitted from API requests. See
  5340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5341  	NullFields []string `json:"-"`
  5342  }
  5343  
  5344  func (s *GoogleAnalyticsAdminV1alphaProperty) MarshalJSON() ([]byte, error) {
  5345  	type NoMethod GoogleAnalyticsAdminV1alphaProperty
  5346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5347  }
  5348  
  5349  // GoogleAnalyticsAdminV1alphaPropertySummary: A virtual resource representing
  5350  // metadata for a GA4 property.
  5351  type GoogleAnalyticsAdminV1alphaPropertySummary struct {
  5352  	// DisplayName: Display name for the property referred to in this property
  5353  	// summary.
  5354  	DisplayName string `json:"displayName,omitempty"`
  5355  	// Parent: Resource name of this property's logical parent. Note: The
  5356  	// Property-Moving UI can be used to change the parent. Format:
  5357  	// accounts/{account}, properties/{property} Example: "accounts/100",
  5358  	// "properties/200"
  5359  	Parent string `json:"parent,omitempty"`
  5360  	// Property: Resource name of property referred to by this property summary
  5361  	// Format: properties/{property_id} Example: "properties/1000"
  5362  	Property string `json:"property,omitempty"`
  5363  	// PropertyType: The property's property type.
  5364  	//
  5365  	// Possible values:
  5366  	//   "PROPERTY_TYPE_UNSPECIFIED" - Unknown or unspecified property type
  5367  	//   "PROPERTY_TYPE_ORDINARY" - Ordinary GA4 property
  5368  	//   "PROPERTY_TYPE_SUBPROPERTY" - GA4 subproperty
  5369  	//   "PROPERTY_TYPE_ROLLUP" - GA4 rollup property
  5370  	PropertyType string `json:"propertyType,omitempty"`
  5371  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  5372  	// unconditionally include in API requests. By default, fields with empty or
  5373  	// default values are omitted from API requests. See
  5374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5375  	// details.
  5376  	ForceSendFields []string `json:"-"`
  5377  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  5378  	// requests with the JSON null value. By default, fields with empty values are
  5379  	// omitted from API requests. See
  5380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5381  	NullFields []string `json:"-"`
  5382  }
  5383  
  5384  func (s *GoogleAnalyticsAdminV1alphaPropertySummary) MarshalJSON() ([]byte, error) {
  5385  	type NoMethod GoogleAnalyticsAdminV1alphaPropertySummary
  5386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5387  }
  5388  
  5389  // GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest: Request message
  5390  // for ProvisionAccountTicket RPC.
  5391  type GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest struct {
  5392  	// Account: The account to create.
  5393  	Account *GoogleAnalyticsAdminV1alphaAccount `json:"account,omitempty"`
  5394  	// RedirectUri: Redirect URI where the user will be sent after accepting Terms
  5395  	// of Service. Must be configured in Cloud Console as a Redirect URI.
  5396  	RedirectUri string `json:"redirectUri,omitempty"`
  5397  	// ForceSendFields is a list of field names (e.g. "Account") to unconditionally
  5398  	// include in API requests. By default, fields with empty or default values are
  5399  	// omitted from API requests. See
  5400  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5401  	// details.
  5402  	ForceSendFields []string `json:"-"`
  5403  	// NullFields is a list of field names (e.g. "Account") to include in API
  5404  	// requests with the JSON null value. By default, fields with empty values are
  5405  	// omitted from API requests. See
  5406  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5407  	NullFields []string `json:"-"`
  5408  }
  5409  
  5410  func (s *GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest) MarshalJSON() ([]byte, error) {
  5411  	type NoMethod GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest
  5412  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5413  }
  5414  
  5415  // GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse: Response message
  5416  // for ProvisionAccountTicket RPC.
  5417  type GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse struct {
  5418  	// AccountTicketId: The param to be passed in the ToS link.
  5419  	AccountTicketId string `json:"accountTicketId,omitempty"`
  5420  
  5421  	// ServerResponse contains the HTTP response code and headers from the server.
  5422  	googleapi.ServerResponse `json:"-"`
  5423  	// ForceSendFields is a list of field names (e.g. "AccountTicketId") to
  5424  	// unconditionally include in API requests. By default, fields with empty or
  5425  	// default values are omitted from API requests. See
  5426  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5427  	// details.
  5428  	ForceSendFields []string `json:"-"`
  5429  	// NullFields is a list of field names (e.g. "AccountTicketId") to include in
  5430  	// API requests with the JSON null value. By default, fields with empty values
  5431  	// are omitted from API requests. See
  5432  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5433  	NullFields []string `json:"-"`
  5434  }
  5435  
  5436  func (s *GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse) MarshalJSON() ([]byte, error) {
  5437  	type NoMethod GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse
  5438  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5439  }
  5440  
  5441  // GoogleAnalyticsAdminV1alphaRollupPropertySourceLink: A link that references
  5442  // a source property under the parent rollup property.
  5443  type GoogleAnalyticsAdminV1alphaRollupPropertySourceLink struct {
  5444  	// Name: Output only. Resource name of this RollupPropertySourceLink. Format:
  5445  	// 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_l
  5446  	// ink}' Format: 'properties/123/rollupPropertySourceLinks/456'
  5447  	Name string `json:"name,omitempty"`
  5448  	// SourceProperty: Immutable. Resource name of the source property. Format:
  5449  	// properties/{property_id} Example: "properties/789"
  5450  	SourceProperty string `json:"sourceProperty,omitempty"`
  5451  
  5452  	// ServerResponse contains the HTTP response code and headers from the server.
  5453  	googleapi.ServerResponse `json:"-"`
  5454  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  5455  	// include in API requests. By default, fields with empty or default values are
  5456  	// omitted from API requests. See
  5457  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5458  	// details.
  5459  	ForceSendFields []string `json:"-"`
  5460  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  5461  	// with the JSON null value. By default, fields with empty values are omitted
  5462  	// from API requests. See
  5463  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5464  	NullFields []string `json:"-"`
  5465  }
  5466  
  5467  func (s *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink) MarshalJSON() ([]byte, error) {
  5468  	type NoMethod GoogleAnalyticsAdminV1alphaRollupPropertySourceLink
  5469  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5470  }
  5471  
  5472  // GoogleAnalyticsAdminV1alphaRunAccessReportRequest: The request for a Data
  5473  // Access Record Report.
  5474  type GoogleAnalyticsAdminV1alphaRunAccessReportRequest struct {
  5475  	// DateRanges: Date ranges of access records to read. If multiple date ranges
  5476  	// are requested, each response row will contain a zero based date range index.
  5477  	// If two date ranges overlap, the access records for the overlapping days is
  5478  	// included in the response rows for both date ranges. Requests are allowed up
  5479  	// to 2 date ranges.
  5480  	DateRanges []*GoogleAnalyticsAdminV1alphaAccessDateRange `json:"dateRanges,omitempty"`
  5481  	// DimensionFilter: Dimension filters let you restrict report response to
  5482  	// specific dimension values which match the filter. For example, filtering on
  5483  	// access records of a single user. To learn more, see Fundamentals of
  5484  	// Dimension Filters
  5485  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
  5486  	// for examples. Metrics cannot be used in this filter.
  5487  	DimensionFilter *GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"dimensionFilter,omitempty"`
  5488  	// Dimensions: The dimensions requested and displayed in the response. Requests
  5489  	// are allowed up to 9 dimensions.
  5490  	Dimensions []*GoogleAnalyticsAdminV1alphaAccessDimension `json:"dimensions,omitempty"`
  5491  	// ExpandGroups: Optional. Decides whether to return the users within user
  5492  	// groups. This field works only when include_all_users is set to true. If
  5493  	// true, it will return all users with access to the specified property or
  5494  	// account. If false, only the users with direct access will be returned.
  5495  	ExpandGroups bool `json:"expandGroups,omitempty"`
  5496  	// IncludeAllUsers: Optional. Determines whether to include users who have
  5497  	// never made an API call in the response. If true, all users with access to
  5498  	// the specified property or account are included in the response, regardless
  5499  	// of whether they have made an API call or not. If false, only the users who
  5500  	// have made an API call will be included.
  5501  	IncludeAllUsers bool `json:"includeAllUsers,omitempty"`
  5502  	// Limit: The number of rows to return. If unspecified, 10,000 rows are
  5503  	// returned. The API returns a maximum of 100,000 rows per request, no matter
  5504  	// how many you ask for. `limit` must be positive. The API may return fewer
  5505  	// rows than the requested `limit`, if there aren't as many remaining rows as
  5506  	// the `limit`. For instance, there are fewer than 300 possible values for the
  5507  	// dimension `country`, so when reporting on only `country`, you can't get more
  5508  	// than 300 rows, even if you set `limit` to a higher value. To learn more
  5509  	// about this pagination parameter, see Pagination
  5510  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
  5511  	Limit int64 `json:"limit,omitempty,string"`
  5512  	// MetricFilter: Metric filters allow you to restrict report response to
  5513  	// specific metric values which match the filter. Metric filters are applied
  5514  	// after aggregating the report's rows, similar to SQL having-clause.
  5515  	// Dimensions cannot be used in this filter.
  5516  	MetricFilter *GoogleAnalyticsAdminV1alphaAccessFilterExpression `json:"metricFilter,omitempty"`
  5517  	// Metrics: The metrics requested and displayed in the response. Requests are
  5518  	// allowed up to 10 metrics.
  5519  	Metrics []*GoogleAnalyticsAdminV1alphaAccessMetric `json:"metrics,omitempty"`
  5520  	// Offset: The row count of the start row. The first row is counted as row 0.
  5521  	// If offset is unspecified, it is treated as 0. If offset is zero, then this
  5522  	// method will return the first page of results with `limit` entries. To learn
  5523  	// more about this pagination parameter, see Pagination
  5524  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
  5525  	Offset int64 `json:"offset,omitempty,string"`
  5526  	// OrderBys: Specifies how rows are ordered in the response.
  5527  	OrderBys []*GoogleAnalyticsAdminV1alphaAccessOrderBy `json:"orderBys,omitempty"`
  5528  	// ReturnEntityQuota: Toggles whether to return the current state of this
  5529  	// Analytics Property's quota. Quota is returned in AccessQuota (#AccessQuota).
  5530  	// For account-level requests, this field must be false.
  5531  	ReturnEntityQuota bool `json:"returnEntityQuota,omitempty"`
  5532  	// TimeZone: This request's time zone if specified. If unspecified, the
  5533  	// property's time zone is used. The request's time zone is used to interpret
  5534  	// the start & end dates of the report. Formatted as strings from the IANA Time
  5535  	// Zone database (https://www.iana.org/time-zones); for example
  5536  	// "America/New_York" or "Asia/Tokyo".
  5537  	TimeZone string `json:"timeZone,omitempty"`
  5538  	// ForceSendFields is a list of field names (e.g. "DateRanges") to
  5539  	// unconditionally include in API requests. By default, fields with empty or
  5540  	// default values are omitted from API requests. See
  5541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5542  	// details.
  5543  	ForceSendFields []string `json:"-"`
  5544  	// NullFields is a list of field names (e.g. "DateRanges") to include in API
  5545  	// requests with the JSON null value. By default, fields with empty values are
  5546  	// omitted from API requests. See
  5547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5548  	NullFields []string `json:"-"`
  5549  }
  5550  
  5551  func (s *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) MarshalJSON() ([]byte, error) {
  5552  	type NoMethod GoogleAnalyticsAdminV1alphaRunAccessReportRequest
  5553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5554  }
  5555  
  5556  // GoogleAnalyticsAdminV1alphaRunAccessReportResponse: The customized Data
  5557  // Access Record Report response.
  5558  type GoogleAnalyticsAdminV1alphaRunAccessReportResponse struct {
  5559  	// DimensionHeaders: The header for a column in the report that corresponds to
  5560  	// a specific dimension. The number of DimensionHeaders and ordering of
  5561  	// DimensionHeaders matches the dimensions present in rows.
  5562  	DimensionHeaders []*GoogleAnalyticsAdminV1alphaAccessDimensionHeader `json:"dimensionHeaders,omitempty"`
  5563  	// MetricHeaders: The header for a column in the report that corresponds to a
  5564  	// specific metric. The number of MetricHeaders and ordering of MetricHeaders
  5565  	// matches the metrics present in rows.
  5566  	MetricHeaders []*GoogleAnalyticsAdminV1alphaAccessMetricHeader `json:"metricHeaders,omitempty"`
  5567  	// Quota: The quota state for this Analytics property including this request.
  5568  	// This field doesn't work with account-level requests.
  5569  	Quota *GoogleAnalyticsAdminV1alphaAccessQuota `json:"quota,omitempty"`
  5570  	// RowCount: The total number of rows in the query result. `rowCount` is
  5571  	// independent of the number of rows returned in the response, the `limit`
  5572  	// request parameter, and the `offset` request parameter. For example if a
  5573  	// query returns 175 rows and includes `limit` of 50 in the API request, the
  5574  	// response will contain `rowCount` of 175 but only 50 rows. To learn more
  5575  	// about this pagination parameter, see Pagination
  5576  	// (https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
  5577  	RowCount int64 `json:"rowCount,omitempty"`
  5578  	// Rows: Rows of dimension value combinations and metric values in the report.
  5579  	Rows []*GoogleAnalyticsAdminV1alphaAccessRow `json:"rows,omitempty"`
  5580  
  5581  	// ServerResponse contains the HTTP response code and headers from the server.
  5582  	googleapi.ServerResponse `json:"-"`
  5583  	// ForceSendFields is a list of field names (e.g. "DimensionHeaders") to
  5584  	// unconditionally include in API requests. By default, fields with empty or
  5585  	// default values are omitted from API requests. See
  5586  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5587  	// details.
  5588  	ForceSendFields []string `json:"-"`
  5589  	// NullFields is a list of field names (e.g. "DimensionHeaders") to include in
  5590  	// API requests with the JSON null value. By default, fields with empty values
  5591  	// are omitted from API requests. See
  5592  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5593  	NullFields []string `json:"-"`
  5594  }
  5595  
  5596  func (s *GoogleAnalyticsAdminV1alphaRunAccessReportResponse) MarshalJSON() ([]byte, error) {
  5597  	type NoMethod GoogleAnalyticsAdminV1alphaRunAccessReportResponse
  5598  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5599  }
  5600  
  5601  // GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema: SKAdNetwork
  5602  // conversion value schema of an iOS stream.
  5603  type GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema struct {
  5604  	// ApplyConversionValues: If enabled, the GA SDK will set conversion values
  5605  	// using this schema definition, and schema will be exported to any Google Ads
  5606  	// accounts linked to this property. If disabled, the GA SDK will not
  5607  	// automatically set conversion values, and also the schema will not be
  5608  	// exported to Ads.
  5609  	ApplyConversionValues bool `json:"applyConversionValues,omitempty"`
  5610  	// Name: Output only. Resource name of the schema. This will be child of ONLY
  5611  	// an iOS stream, and there can be at most one such child under an iOS stream.
  5612  	// Format:
  5613  	// properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSche
  5614  	// ma
  5615  	Name string `json:"name,omitempty"`
  5616  	// PostbackWindowOne: Required. The conversion value settings for the first
  5617  	// postback window. These differ from values for postback window two and three
  5618  	// in that they contain a "Fine" grained conversion value (a numeric value).
  5619  	// Conversion values for this postback window must be set. The other windows
  5620  	// are optional and may inherit this window's settings if unset or disabled.
  5621  	PostbackWindowOne *GoogleAnalyticsAdminV1alphaPostbackWindow `json:"postbackWindowOne,omitempty"`
  5622  	// PostbackWindowThree: The conversion value settings for the third postback
  5623  	// window. This field should only be set if the user chose to define different
  5624  	// conversion values for this postback window. It is allowed to configure
  5625  	// window 3 without setting window 2. In case window 1 & 2 settings are set and
  5626  	// enable_postback_window_settings for this postback window is set to false,
  5627  	// the schema will inherit settings from postback_window_two.
  5628  	PostbackWindowThree *GoogleAnalyticsAdminV1alphaPostbackWindow `json:"postbackWindowThree,omitempty"`
  5629  	// PostbackWindowTwo: The conversion value settings for the second postback
  5630  	// window. This field should only be configured if there is a need to define
  5631  	// different conversion values for this postback window. If
  5632  	// enable_postback_window_settings is set to false for this postback window,
  5633  	// the values from postback_window_one will be used.
  5634  	PostbackWindowTwo *GoogleAnalyticsAdminV1alphaPostbackWindow `json:"postbackWindowTwo,omitempty"`
  5635  
  5636  	// ServerResponse contains the HTTP response code and headers from the server.
  5637  	googleapi.ServerResponse `json:"-"`
  5638  	// ForceSendFields is a list of field names (e.g. "ApplyConversionValues") to
  5639  	// unconditionally include in API requests. By default, fields with empty or
  5640  	// default values are omitted from API requests. See
  5641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5642  	// details.
  5643  	ForceSendFields []string `json:"-"`
  5644  	// NullFields is a list of field names (e.g. "ApplyConversionValues") to
  5645  	// include in API requests with the JSON null value. By default, fields with
  5646  	// empty values are omitted from API requests. See
  5647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5648  	NullFields []string `json:"-"`
  5649  }
  5650  
  5651  func (s *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema) MarshalJSON() ([]byte, error) {
  5652  	type NoMethod GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema
  5653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5654  }
  5655  
  5656  // GoogleAnalyticsAdminV1alphaSearchAds360Link: A link between a GA4 property
  5657  // and a Search Ads 360 entity.
  5658  type GoogleAnalyticsAdminV1alphaSearchAds360Link struct {
  5659  	// AdsPersonalizationEnabled: Enables personalized advertising features with
  5660  	// this integration. If this field is not set on create, it will be defaulted
  5661  	// to true.
  5662  	AdsPersonalizationEnabled bool `json:"adsPersonalizationEnabled,omitempty"`
  5663  	// AdvertiserDisplayName: Output only. The display name of the Search Ads 360
  5664  	// Advertiser. Allows users to easily identify the linked resource.
  5665  	AdvertiserDisplayName string `json:"advertiserDisplayName,omitempty"`
  5666  	// AdvertiserId: Immutable. This field represents the Advertiser ID of the
  5667  	// Search Ads 360 Advertiser. that has been linked.
  5668  	AdvertiserId string `json:"advertiserId,omitempty"`
  5669  	// CampaignDataSharingEnabled: Immutable. Enables the import of campaign data
  5670  	// from Search Ads 360 into the GA4 property. After link creation, this can
  5671  	// only be updated from the Search Ads 360 product. If this field is not set on
  5672  	// create, it will be defaulted to true.
  5673  	CampaignDataSharingEnabled bool `json:"campaignDataSharingEnabled,omitempty"`
  5674  	// CostDataSharingEnabled: Immutable. Enables the import of cost data from
  5675  	// Search Ads 360 to the GA4 property. This can only be enabled if
  5676  	// campaign_data_sharing_enabled is enabled. After link creation, this can only
  5677  	// be updated from the Search Ads 360 product. If this field is not set on
  5678  	// create, it will be defaulted to true.
  5679  	CostDataSharingEnabled bool `json:"costDataSharingEnabled,omitempty"`
  5680  	// Name: Output only. The resource name for this SearchAds360Link resource.
  5681  	// Format: properties/{propertyId}/searchAds360Links/{linkId} Note: linkId is
  5682  	// not the Search Ads 360 advertiser ID
  5683  	Name string `json:"name,omitempty"`
  5684  	// SiteStatsSharingEnabled: Enables export of site stats with this integration.
  5685  	// If this field is not set on create, it will be defaulted to true.
  5686  	SiteStatsSharingEnabled bool `json:"siteStatsSharingEnabled,omitempty"`
  5687  
  5688  	// ServerResponse contains the HTTP response code and headers from the server.
  5689  	googleapi.ServerResponse `json:"-"`
  5690  	// ForceSendFields is a list of field names (e.g. "AdsPersonalizationEnabled")
  5691  	// to unconditionally include in API requests. By default, fields with empty or
  5692  	// default values are omitted from API requests. See
  5693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5694  	// details.
  5695  	ForceSendFields []string `json:"-"`
  5696  	// NullFields is a list of field names (e.g. "AdsPersonalizationEnabled") to
  5697  	// include in API requests with the JSON null value. By default, fields with
  5698  	// empty values are omitted from API requests. See
  5699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5700  	NullFields []string `json:"-"`
  5701  }
  5702  
  5703  func (s *GoogleAnalyticsAdminV1alphaSearchAds360Link) MarshalJSON() ([]byte, error) {
  5704  	type NoMethod GoogleAnalyticsAdminV1alphaSearchAds360Link
  5705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5706  }
  5707  
  5708  // GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest: Request message
  5709  // for SearchChangeHistoryEvents RPC.
  5710  type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct {
  5711  	// Action: Optional. If set, only return changes that match one or more of
  5712  	// these types of actions.
  5713  	//
  5714  	// Possible values:
  5715  	//   "ACTION_TYPE_UNSPECIFIED" - Action type unknown or not specified.
  5716  	//   "CREATED" - Resource was created in this change.
  5717  	//   "UPDATED" - Resource was updated in this change.
  5718  	//   "DELETED" - Resource was deleted in this change.
  5719  	Action []string `json:"action,omitempty"`
  5720  	// ActorEmail: Optional. If set, only return changes if they are made by a user
  5721  	// in this list.
  5722  	ActorEmail []string `json:"actorEmail,omitempty"`
  5723  	// EarliestChangeTime: Optional. If set, only return changes made after this
  5724  	// time (inclusive).
  5725  	EarliestChangeTime string `json:"earliestChangeTime,omitempty"`
  5726  	// LatestChangeTime: Optional. If set, only return changes made before this
  5727  	// time (inclusive).
  5728  	LatestChangeTime string `json:"latestChangeTime,omitempty"`
  5729  	// PageSize: Optional. The maximum number of ChangeHistoryEvent items to
  5730  	// return. The service may return fewer than this value, even if there are
  5731  	// additional pages. If unspecified, at most 50 items will be returned. The
  5732  	// maximum value is 200 (higher values will be coerced to the maximum).
  5733  	PageSize int64 `json:"pageSize,omitempty"`
  5734  	// PageToken: Optional. A page token, received from a previous
  5735  	// `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
  5736  	// page. When paginating, all other parameters provided to
  5737  	// `SearchChangeHistoryEvents` must match the call that provided the page
  5738  	// token.
  5739  	PageToken string `json:"pageToken,omitempty"`
  5740  	// Property: Optional. Resource name for a child property. If set, only return
  5741  	// changes made to this property or its child resources. Format:
  5742  	// properties/{propertyId} Example: "properties/100"
  5743  	Property string `json:"property,omitempty"`
  5744  	// ResourceType: Optional. If set, only return changes if they are for a
  5745  	// resource that matches at least one of these types.
  5746  	//
  5747  	// Possible values:
  5748  	//   "CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED" - Resource type unknown or not
  5749  	// specified.
  5750  	//   "ACCOUNT" - Account resource
  5751  	//   "PROPERTY" - Property resource
  5752  	//   "FIREBASE_LINK" - FirebaseLink resource
  5753  	//   "GOOGLE_ADS_LINK" - GoogleAdsLink resource
  5754  	//   "GOOGLE_SIGNALS_SETTINGS" - GoogleSignalsSettings resource
  5755  	//   "CONVERSION_EVENT" - ConversionEvent resource
  5756  	//   "MEASUREMENT_PROTOCOL_SECRET" - MeasurementProtocolSecret resource
  5757  	//   "CUSTOM_DIMENSION" - CustomDimension resource
  5758  	//   "CUSTOM_METRIC" - CustomMetric resource
  5759  	//   "DATA_RETENTION_SETTINGS" - DataRetentionSettings resource
  5760  	//   "DISPLAY_VIDEO_360_ADVERTISER_LINK" - DisplayVideo360AdvertiserLink
  5761  	// resource
  5762  	//   "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL" -
  5763  	// DisplayVideo360AdvertiserLinkProposal resource
  5764  	//   "SEARCH_ADS_360_LINK" - SearchAds360Link resource
  5765  	//   "DATA_STREAM" - DataStream resource
  5766  	//   "ATTRIBUTION_SETTINGS" - AttributionSettings resource
  5767  	//   "EXPANDED_DATA_SET" - ExpandedDataSet resource
  5768  	//   "CHANNEL_GROUP" - ChannelGroup resource
  5769  	//   "ENHANCED_MEASUREMENT_SETTINGS" - EnhancedMeasurementSettings resource
  5770  	//   "DATA_REDACTION_SETTINGS" - DataRedactionSettings resource
  5771  	//   "SKADNETWORK_CONVERSION_VALUE_SCHEMA" - SKAdNetworkConversionValueSchema
  5772  	// resource
  5773  	//   "ADSENSE_LINK" - AdSenseLink resource
  5774  	//   "AUDIENCE" - Audience resource
  5775  	//   "EVENT_CREATE_RULE" - EventCreateRule resource
  5776  	//   "CALCULATED_METRIC" - CalculatedMetric resource
  5777  	ResourceType []string `json:"resourceType,omitempty"`
  5778  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  5779  	// include in API requests. By default, fields with empty or default values are
  5780  	// omitted from API requests. See
  5781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5782  	// details.
  5783  	ForceSendFields []string `json:"-"`
  5784  	// NullFields is a list of field names (e.g. "Action") to include in API
  5785  	// requests with the JSON null value. By default, fields with empty values are
  5786  	// omitted from API requests. See
  5787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5788  	NullFields []string `json:"-"`
  5789  }
  5790  
  5791  func (s *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest) MarshalJSON() ([]byte, error) {
  5792  	type NoMethod GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest
  5793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5794  }
  5795  
  5796  // GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse: Response
  5797  // message for SearchAccounts RPC.
  5798  type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse struct {
  5799  	// ChangeHistoryEvents: Results that were accessible to the caller.
  5800  	ChangeHistoryEvents []*GoogleAnalyticsAdminV1alphaChangeHistoryEvent `json:"changeHistoryEvents,omitempty"`
  5801  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  5802  	// next page. If this field is omitted, there are no subsequent pages.
  5803  	NextPageToken string `json:"nextPageToken,omitempty"`
  5804  
  5805  	// ServerResponse contains the HTTP response code and headers from the server.
  5806  	googleapi.ServerResponse `json:"-"`
  5807  	// ForceSendFields is a list of field names (e.g. "ChangeHistoryEvents") to
  5808  	// unconditionally include in API requests. By default, fields with empty or
  5809  	// default values are omitted from API requests. See
  5810  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5811  	// details.
  5812  	ForceSendFields []string `json:"-"`
  5813  	// NullFields is a list of field names (e.g. "ChangeHistoryEvents") to include
  5814  	// in API requests with the JSON null value. By default, fields with empty
  5815  	// values are omitted from API requests. See
  5816  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5817  	NullFields []string `json:"-"`
  5818  }
  5819  
  5820  func (s *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse) MarshalJSON() ([]byte, error) {
  5821  	type NoMethod GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse
  5822  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5823  }
  5824  
  5825  // GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest:
  5826  // Request for setting the opt out status for the automated GA4 setup process.
  5827  type GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest struct {
  5828  	// OptOut: The status to set.
  5829  	OptOut bool `json:"optOut,omitempty"`
  5830  	// Property: Required. The UA property to set the opt out status. Note this
  5831  	// request uses the internal property ID, not the tracking ID of the form
  5832  	// UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Example:
  5833  	// properties/1234
  5834  	Property string `json:"property,omitempty"`
  5835  	// ForceSendFields is a list of field names (e.g. "OptOut") to unconditionally
  5836  	// include in API requests. By default, fields with empty or default values are
  5837  	// omitted from API requests. See
  5838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5839  	// details.
  5840  	ForceSendFields []string `json:"-"`
  5841  	// NullFields is a list of field names (e.g. "OptOut") to include in API
  5842  	// requests with the JSON null value. By default, fields with empty values are
  5843  	// omitted from API requests. See
  5844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5845  	NullFields []string `json:"-"`
  5846  }
  5847  
  5848  func (s *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest) MarshalJSON() ([]byte, error) {
  5849  	type NoMethod GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest
  5850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5851  }
  5852  
  5853  // GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse:
  5854  // Response message for setting the opt out status for the automated GA4 setup
  5855  // process.
  5856  type GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse struct {
  5857  	// ServerResponse contains the HTTP response code and headers from the server.
  5858  	googleapi.ServerResponse `json:"-"`
  5859  }
  5860  
  5861  // GoogleAnalyticsAdminV1alphaSubpropertyEventFilter: A resource message
  5862  // representing a GA4 Subproperty event filter.
  5863  type GoogleAnalyticsAdminV1alphaSubpropertyEventFilter struct {
  5864  	// ApplyToProperty: Immutable. Resource name of the Subproperty that uses this
  5865  	// filter.
  5866  	ApplyToProperty string `json:"applyToProperty,omitempty"`
  5867  	// FilterClauses: Required. Unordered list. Filter clauses that define the
  5868  	// SubpropertyEventFilter. All clauses are AND'ed together to determine what
  5869  	// data is sent to the subproperty.
  5870  	FilterClauses []*GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause `json:"filterClauses,omitempty"`
  5871  	// Name: Output only. Format:
  5872  	// properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event
  5873  	// _filter} Example: properties/1234/subpropertyEventFilters/5678
  5874  	Name string `json:"name,omitempty"`
  5875  
  5876  	// ServerResponse contains the HTTP response code and headers from the server.
  5877  	googleapi.ServerResponse `json:"-"`
  5878  	// ForceSendFields is a list of field names (e.g. "ApplyToProperty") to
  5879  	// unconditionally include in API requests. By default, fields with empty or
  5880  	// default values are omitted from API requests. See
  5881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5882  	// details.
  5883  	ForceSendFields []string `json:"-"`
  5884  	// NullFields is a list of field names (e.g. "ApplyToProperty") to include in
  5885  	// API requests with the JSON null value. By default, fields with empty values
  5886  	// are omitted from API requests. See
  5887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5888  	NullFields []string `json:"-"`
  5889  }
  5890  
  5891  func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter) MarshalJSON() ([]byte, error) {
  5892  	type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilter
  5893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5894  }
  5895  
  5896  // GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause: A clause for
  5897  // defining a filter. A filter may be inclusive (events satisfying the filter
  5898  // clause are included in the subproperty's data) or exclusive (events
  5899  // satisfying the filter clause are excluded from the subproperty's data).
  5900  type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause struct {
  5901  	// FilterClauseType: Required. The type for the filter clause.
  5902  	//
  5903  	// Possible values:
  5904  	//   "FILTER_CLAUSE_TYPE_UNSPECIFIED" - Filter clause type unknown or not
  5905  	// specified.
  5906  	//   "INCLUDE" - Events will be included in the Sub property if the filter
  5907  	// clause is met.
  5908  	//   "EXCLUDE" - Events will be excluded from the Sub property if the filter
  5909  	// clause is met.
  5910  	FilterClauseType string `json:"filterClauseType,omitempty"`
  5911  	// FilterExpression: Required. The logical expression for what events are sent
  5912  	// to the subproperty.
  5913  	FilterExpression *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression `json:"filterExpression,omitempty"`
  5914  	// ForceSendFields is a list of field names (e.g. "FilterClauseType") to
  5915  	// unconditionally include in API requests. By default, fields with empty or
  5916  	// default values are omitted from API requests. See
  5917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5918  	// details.
  5919  	ForceSendFields []string `json:"-"`
  5920  	// NullFields is a list of field names (e.g. "FilterClauseType") to include in
  5921  	// API requests with the JSON null value. By default, fields with empty values
  5922  	// are omitted from API requests. See
  5923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5924  	NullFields []string `json:"-"`
  5925  }
  5926  
  5927  func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause) MarshalJSON() ([]byte, error) {
  5928  	type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterClause
  5929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5930  }
  5931  
  5932  // GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition: A specific
  5933  // filter expression
  5934  type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition struct {
  5935  	// FieldName: Required. The field that is being filtered.
  5936  	FieldName string `json:"fieldName,omitempty"`
  5937  	// NullFilter: A filter for null values.
  5938  	NullFilter bool `json:"nullFilter,omitempty"`
  5939  	// StringFilter: A filter for a string-type dimension that matches a particular
  5940  	// pattern.
  5941  	StringFilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter `json:"stringFilter,omitempty"`
  5942  	// ForceSendFields is a list of field names (e.g. "FieldName") to
  5943  	// unconditionally include in API requests. By default, fields with empty or
  5944  	// default values are omitted from API requests. See
  5945  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5946  	// details.
  5947  	ForceSendFields []string `json:"-"`
  5948  	// NullFields is a list of field names (e.g. "FieldName") to include in API
  5949  	// requests with the JSON null value. By default, fields with empty values are
  5950  	// omitted from API requests. See
  5951  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5952  	NullFields []string `json:"-"`
  5953  }
  5954  
  5955  func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition) MarshalJSON() ([]byte, error) {
  5956  	type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition
  5957  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5958  }
  5959  
  5960  // GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter: A
  5961  // filter for a string-type dimension that matches a particular pattern.
  5962  type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter struct {
  5963  	// CaseSensitive: Optional. If true, the string value is case sensitive. If
  5964  	// false, the match is case-insensitive.
  5965  	CaseSensitive bool `json:"caseSensitive,omitempty"`
  5966  	// MatchType: Required. The match type for the string filter.
  5967  	//
  5968  	// Possible values:
  5969  	//   "MATCH_TYPE_UNSPECIFIED" - Match type unknown or not specified.
  5970  	//   "EXACT" - Exact match of the string value.
  5971  	//   "BEGINS_WITH" - Begins with the string value.
  5972  	//   "ENDS_WITH" - Ends with the string value.
  5973  	//   "CONTAINS" - Contains the string value.
  5974  	//   "FULL_REGEXP" - Full regular expression matches with the string value.
  5975  	//   "PARTIAL_REGEXP" - Partial regular expression matches with the string
  5976  	// value.
  5977  	MatchType string `json:"matchType,omitempty"`
  5978  	// Value: Required. The string value used for the matching.
  5979  	Value string `json:"value,omitempty"`
  5980  	// ForceSendFields is a list of field names (e.g. "CaseSensitive") to
  5981  	// unconditionally include in API requests. By default, fields with empty or
  5982  	// default values are omitted from API requests. See
  5983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5984  	// details.
  5985  	ForceSendFields []string `json:"-"`
  5986  	// NullFields is a list of field names (e.g. "CaseSensitive") to include in API
  5987  	// requests with the JSON null value. By default, fields with empty values are
  5988  	// omitted from API requests. See
  5989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5990  	NullFields []string `json:"-"`
  5991  }
  5992  
  5993  func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter) MarshalJSON() ([]byte, error) {
  5994  	type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterConditionStringFilter
  5995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5996  }
  5997  
  5998  // GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression: A logical
  5999  // expression of Subproperty event filters.
  6000  type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression struct {
  6001  	// FilterCondition: Creates a filter that matches a specific event. This cannot
  6002  	// be set on the top level SubpropertyEventFilterExpression.
  6003  	FilterCondition *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterCondition `json:"filterCondition,omitempty"`
  6004  	// NotExpression: A filter expression to be NOT'ed (inverted, complemented). It
  6005  	// can only include a filter. This cannot be set on the top level
  6006  	// SubpropertyEventFilterExpression.
  6007  	NotExpression *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression `json:"notExpression,omitempty"`
  6008  	// OrGroup: A list of expressions to OR’ed together. Must only contain
  6009  	// not_expression or filter_condition expressions.
  6010  	OrGroup *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList `json:"orGroup,omitempty"`
  6011  	// ForceSendFields is a list of field names (e.g. "FilterCondition") to
  6012  	// unconditionally include in API requests. By default, fields with empty or
  6013  	// default values are omitted from API requests. See
  6014  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6015  	// details.
  6016  	ForceSendFields []string `json:"-"`
  6017  	// NullFields is a list of field names (e.g. "FilterCondition") to include in
  6018  	// API requests with the JSON null value. By default, fields with empty values
  6019  	// are omitted from API requests. See
  6020  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6021  	NullFields []string `json:"-"`
  6022  }
  6023  
  6024  func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression) MarshalJSON() ([]byte, error) {
  6025  	type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression
  6026  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6027  }
  6028  
  6029  // GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList: A list of
  6030  // Subproperty event filter expressions.
  6031  type GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList struct {
  6032  	// FilterExpressions: Required. Unordered list. A list of Subproperty event
  6033  	// filter expressions
  6034  	FilterExpressions []*GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpression `json:"filterExpressions,omitempty"`
  6035  	// ForceSendFields is a list of field names (e.g. "FilterExpressions") to
  6036  	// unconditionally include in API requests. By default, fields with empty or
  6037  	// default values are omitted from API requests. See
  6038  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6039  	// details.
  6040  	ForceSendFields []string `json:"-"`
  6041  	// NullFields is a list of field names (e.g. "FilterExpressions") to include in
  6042  	// API requests with the JSON null value. By default, fields with empty values
  6043  	// are omitted from API requests. See
  6044  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6045  	NullFields []string `json:"-"`
  6046  }
  6047  
  6048  func (s *GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList) MarshalJSON() ([]byte, error) {
  6049  	type NoMethod GoogleAnalyticsAdminV1alphaSubpropertyEventFilterExpressionList
  6050  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6051  }
  6052  
  6053  // GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest: Request message for
  6054  // UpdateAccessBinding RPC.
  6055  type GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest struct {
  6056  	// AccessBinding: Required. The access binding to update.
  6057  	AccessBinding *GoogleAnalyticsAdminV1alphaAccessBinding `json:"accessBinding,omitempty"`
  6058  	// ForceSendFields is a list of field names (e.g. "AccessBinding") to
  6059  	// unconditionally include in API requests. By default, fields with empty or
  6060  	// default values are omitted from API requests. See
  6061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6062  	// details.
  6063  	ForceSendFields []string `json:"-"`
  6064  	// NullFields is a list of field names (e.g. "AccessBinding") to include in API
  6065  	// requests with the JSON null value. By default, fields with empty values are
  6066  	// omitted from API requests. See
  6067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6068  	NullFields []string `json:"-"`
  6069  }
  6070  
  6071  func (s *GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest) MarshalJSON() ([]byte, error) {
  6072  	type NoMethod GoogleAnalyticsAdminV1alphaUpdateAccessBindingRequest
  6073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6074  }
  6075  
  6076  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
  6077  // defining duplicated empty messages in your APIs. A typical example is to use
  6078  // it as the request or the response type of an API method. For instance:
  6079  // service Foo { rpc Bar(google.protobuf.Empty) returns
  6080  // (google.protobuf.Empty); }
  6081  type GoogleProtobufEmpty struct {
  6082  	// ServerResponse contains the HTTP response code and headers from the server.
  6083  	googleapi.ServerResponse `json:"-"`
  6084  }
  6085  
  6086  type AccountSummariesListCall struct {
  6087  	s            *Service
  6088  	urlParams_   gensupport.URLParams
  6089  	ifNoneMatch_ string
  6090  	ctx_         context.Context
  6091  	header_      http.Header
  6092  }
  6093  
  6094  // List: Returns summaries of all accounts accessible by the caller.
  6095  func (r *AccountSummariesService) List() *AccountSummariesListCall {
  6096  	c := &AccountSummariesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6097  	return c
  6098  }
  6099  
  6100  // PageSize sets the optional parameter "pageSize": The maximum number of
  6101  // AccountSummary resources to return. The service may return fewer than this
  6102  // value, even if there are additional pages. If unspecified, at most 50
  6103  // resources will be returned. The maximum value is 200; (higher values will be
  6104  // coerced to the maximum)
  6105  func (c *AccountSummariesListCall) PageSize(pageSize int64) *AccountSummariesListCall {
  6106  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6107  	return c
  6108  }
  6109  
  6110  // PageToken sets the optional parameter "pageToken": A page token, received
  6111  // from a previous `ListAccountSummaries` call. Provide this to retrieve the
  6112  // subsequent page. When paginating, all other parameters provided to
  6113  // `ListAccountSummaries` must match the call that provided the page token.
  6114  func (c *AccountSummariesListCall) PageToken(pageToken string) *AccountSummariesListCall {
  6115  	c.urlParams_.Set("pageToken", pageToken)
  6116  	return c
  6117  }
  6118  
  6119  // Fields allows partial responses to be retrieved. See
  6120  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6121  // details.
  6122  func (c *AccountSummariesListCall) Fields(s ...googleapi.Field) *AccountSummariesListCall {
  6123  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6124  	return c
  6125  }
  6126  
  6127  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6128  // object's ETag matches the given value. This is useful for getting updates
  6129  // only after the object has changed since the last request.
  6130  func (c *AccountSummariesListCall) IfNoneMatch(entityTag string) *AccountSummariesListCall {
  6131  	c.ifNoneMatch_ = entityTag
  6132  	return c
  6133  }
  6134  
  6135  // Context sets the context to be used in this call's Do method.
  6136  func (c *AccountSummariesListCall) Context(ctx context.Context) *AccountSummariesListCall {
  6137  	c.ctx_ = ctx
  6138  	return c
  6139  }
  6140  
  6141  // Header returns a http.Header that can be modified by the caller to add
  6142  // headers to the request.
  6143  func (c *AccountSummariesListCall) Header() http.Header {
  6144  	if c.header_ == nil {
  6145  		c.header_ = make(http.Header)
  6146  	}
  6147  	return c.header_
  6148  }
  6149  
  6150  func (c *AccountSummariesListCall) doRequest(alt string) (*http.Response, error) {
  6151  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6152  	if c.ifNoneMatch_ != "" {
  6153  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6154  	}
  6155  	var body io.Reader = nil
  6156  	c.urlParams_.Set("alt", alt)
  6157  	c.urlParams_.Set("prettyPrint", "false")
  6158  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/accountSummaries")
  6159  	urls += "?" + c.urlParams_.Encode()
  6160  	req, err := http.NewRequest("GET", urls, body)
  6161  	if err != nil {
  6162  		return nil, err
  6163  	}
  6164  	req.Header = reqHeaders
  6165  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6166  }
  6167  
  6168  // Do executes the "analyticsadmin.accountSummaries.list" call.
  6169  // Any non-2xx status code is an error. Response headers are in either
  6170  // *GoogleAnalyticsAdminV1alphaListAccountSummariesResponse.ServerResponse.Heade
  6171  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
  6172  // Use googleapi.IsNotModified to check whether the returned error was because
  6173  // http.StatusNotModified was returned.
  6174  func (c *AccountSummariesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAccountSummariesResponse, error) {
  6175  	gensupport.SetOptions(c.urlParams_, opts...)
  6176  	res, err := c.doRequest("json")
  6177  	if res != nil && res.StatusCode == http.StatusNotModified {
  6178  		if res.Body != nil {
  6179  			res.Body.Close()
  6180  		}
  6181  		return nil, gensupport.WrapError(&googleapi.Error{
  6182  			Code:   res.StatusCode,
  6183  			Header: res.Header,
  6184  		})
  6185  	}
  6186  	if err != nil {
  6187  		return nil, err
  6188  	}
  6189  	defer googleapi.CloseBody(res)
  6190  	if err := googleapi.CheckResponse(res); err != nil {
  6191  		return nil, gensupport.WrapError(err)
  6192  	}
  6193  	ret := &GoogleAnalyticsAdminV1alphaListAccountSummariesResponse{
  6194  		ServerResponse: googleapi.ServerResponse{
  6195  			Header:         res.Header,
  6196  			HTTPStatusCode: res.StatusCode,
  6197  		},
  6198  	}
  6199  	target := &ret
  6200  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6201  		return nil, err
  6202  	}
  6203  	return ret, nil
  6204  }
  6205  
  6206  // Pages invokes f for each page of results.
  6207  // A non-nil error returned from f will halt the iteration.
  6208  // The provided context supersedes any context provided to the Context method.
  6209  func (c *AccountSummariesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAccountSummariesResponse) error) error {
  6210  	c.ctx_ = ctx
  6211  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6212  	for {
  6213  		x, err := c.Do()
  6214  		if err != nil {
  6215  			return err
  6216  		}
  6217  		if err := f(x); err != nil {
  6218  			return err
  6219  		}
  6220  		if x.NextPageToken == "" {
  6221  			return nil
  6222  		}
  6223  		c.PageToken(x.NextPageToken)
  6224  	}
  6225  }
  6226  
  6227  type AccountsDeleteCall struct {
  6228  	s          *Service
  6229  	name       string
  6230  	urlParams_ gensupport.URLParams
  6231  	ctx_       context.Context
  6232  	header_    http.Header
  6233  }
  6234  
  6235  // Delete: Marks target Account as soft-deleted (ie: "trashed") and returns it.
  6236  // This API does not have a method to restore soft-deleted accounts. However,
  6237  // they can be restored using the Trash Can UI. If the accounts are not
  6238  // restored before the expiration time, the account and all child resources
  6239  // (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be
  6240  // permanently purged. https://support.google.com/analytics/answer/6154772
  6241  // Returns an error if the target is not found.
  6242  //
  6243  //   - name: The name of the Account to soft-delete. Format: accounts/{account}
  6244  //     Example: "accounts/100".
  6245  func (r *AccountsService) Delete(name string) *AccountsDeleteCall {
  6246  	c := &AccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6247  	c.name = name
  6248  	return c
  6249  }
  6250  
  6251  // Fields allows partial responses to be retrieved. See
  6252  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6253  // details.
  6254  func (c *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall {
  6255  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6256  	return c
  6257  }
  6258  
  6259  // Context sets the context to be used in this call's Do method.
  6260  func (c *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall {
  6261  	c.ctx_ = ctx
  6262  	return c
  6263  }
  6264  
  6265  // Header returns a http.Header that can be modified by the caller to add
  6266  // headers to the request.
  6267  func (c *AccountsDeleteCall) Header() http.Header {
  6268  	if c.header_ == nil {
  6269  		c.header_ = make(http.Header)
  6270  	}
  6271  	return c.header_
  6272  }
  6273  
  6274  func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6275  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6276  	var body io.Reader = nil
  6277  	c.urlParams_.Set("alt", alt)
  6278  	c.urlParams_.Set("prettyPrint", "false")
  6279  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  6280  	urls += "?" + c.urlParams_.Encode()
  6281  	req, err := http.NewRequest("DELETE", urls, body)
  6282  	if err != nil {
  6283  		return nil, err
  6284  	}
  6285  	req.Header = reqHeaders
  6286  	googleapi.Expand(req.URL, map[string]string{
  6287  		"name": c.name,
  6288  	})
  6289  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6290  }
  6291  
  6292  // Do executes the "analyticsadmin.accounts.delete" call.
  6293  // Any non-2xx status code is an error. Response headers are in either
  6294  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  6295  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6296  // check whether the returned error was because http.StatusNotModified was
  6297  // returned.
  6298  func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  6299  	gensupport.SetOptions(c.urlParams_, opts...)
  6300  	res, err := c.doRequest("json")
  6301  	if res != nil && res.StatusCode == http.StatusNotModified {
  6302  		if res.Body != nil {
  6303  			res.Body.Close()
  6304  		}
  6305  		return nil, gensupport.WrapError(&googleapi.Error{
  6306  			Code:   res.StatusCode,
  6307  			Header: res.Header,
  6308  		})
  6309  	}
  6310  	if err != nil {
  6311  		return nil, err
  6312  	}
  6313  	defer googleapi.CloseBody(res)
  6314  	if err := googleapi.CheckResponse(res); err != nil {
  6315  		return nil, gensupport.WrapError(err)
  6316  	}
  6317  	ret := &GoogleProtobufEmpty{
  6318  		ServerResponse: googleapi.ServerResponse{
  6319  			Header:         res.Header,
  6320  			HTTPStatusCode: res.StatusCode,
  6321  		},
  6322  	}
  6323  	target := &ret
  6324  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6325  		return nil, err
  6326  	}
  6327  	return ret, nil
  6328  }
  6329  
  6330  type AccountsGetCall struct {
  6331  	s            *Service
  6332  	name         string
  6333  	urlParams_   gensupport.URLParams
  6334  	ifNoneMatch_ string
  6335  	ctx_         context.Context
  6336  	header_      http.Header
  6337  }
  6338  
  6339  // Get: Lookup for a single Account.
  6340  //
  6341  //   - name: The name of the account to lookup. Format: accounts/{account}
  6342  //     Example: "accounts/100".
  6343  func (r *AccountsService) Get(name string) *AccountsGetCall {
  6344  	c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6345  	c.name = name
  6346  	return c
  6347  }
  6348  
  6349  // Fields allows partial responses to be retrieved. See
  6350  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6351  // details.
  6352  func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall {
  6353  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6354  	return c
  6355  }
  6356  
  6357  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6358  // object's ETag matches the given value. This is useful for getting updates
  6359  // only after the object has changed since the last request.
  6360  func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall {
  6361  	c.ifNoneMatch_ = entityTag
  6362  	return c
  6363  }
  6364  
  6365  // Context sets the context to be used in this call's Do method.
  6366  func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall {
  6367  	c.ctx_ = ctx
  6368  	return c
  6369  }
  6370  
  6371  // Header returns a http.Header that can be modified by the caller to add
  6372  // headers to the request.
  6373  func (c *AccountsGetCall) Header() http.Header {
  6374  	if c.header_ == nil {
  6375  		c.header_ = make(http.Header)
  6376  	}
  6377  	return c.header_
  6378  }
  6379  
  6380  func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) {
  6381  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6382  	if c.ifNoneMatch_ != "" {
  6383  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6384  	}
  6385  	var body io.Reader = nil
  6386  	c.urlParams_.Set("alt", alt)
  6387  	c.urlParams_.Set("prettyPrint", "false")
  6388  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  6389  	urls += "?" + c.urlParams_.Encode()
  6390  	req, err := http.NewRequest("GET", urls, body)
  6391  	if err != nil {
  6392  		return nil, err
  6393  	}
  6394  	req.Header = reqHeaders
  6395  	googleapi.Expand(req.URL, map[string]string{
  6396  		"name": c.name,
  6397  	})
  6398  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6399  }
  6400  
  6401  // Do executes the "analyticsadmin.accounts.get" call.
  6402  // Any non-2xx status code is an error. Response headers are in either
  6403  // *GoogleAnalyticsAdminV1alphaAccount.ServerResponse.Header or (if a response
  6404  // was returned at all) in error.(*googleapi.Error).Header. Use
  6405  // googleapi.IsNotModified to check whether the returned error was because
  6406  // http.StatusNotModified was returned.
  6407  func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccount, error) {
  6408  	gensupport.SetOptions(c.urlParams_, opts...)
  6409  	res, err := c.doRequest("json")
  6410  	if res != nil && res.StatusCode == http.StatusNotModified {
  6411  		if res.Body != nil {
  6412  			res.Body.Close()
  6413  		}
  6414  		return nil, gensupport.WrapError(&googleapi.Error{
  6415  			Code:   res.StatusCode,
  6416  			Header: res.Header,
  6417  		})
  6418  	}
  6419  	if err != nil {
  6420  		return nil, err
  6421  	}
  6422  	defer googleapi.CloseBody(res)
  6423  	if err := googleapi.CheckResponse(res); err != nil {
  6424  		return nil, gensupport.WrapError(err)
  6425  	}
  6426  	ret := &GoogleAnalyticsAdminV1alphaAccount{
  6427  		ServerResponse: googleapi.ServerResponse{
  6428  			Header:         res.Header,
  6429  			HTTPStatusCode: res.StatusCode,
  6430  		},
  6431  	}
  6432  	target := &ret
  6433  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6434  		return nil, err
  6435  	}
  6436  	return ret, nil
  6437  }
  6438  
  6439  type AccountsGetDataSharingSettingsCall struct {
  6440  	s            *Service
  6441  	name         string
  6442  	urlParams_   gensupport.URLParams
  6443  	ifNoneMatch_ string
  6444  	ctx_         context.Context
  6445  	header_      http.Header
  6446  }
  6447  
  6448  // GetDataSharingSettings: Get data sharing settings on an account. Data
  6449  // sharing settings are singletons.
  6450  //
  6451  //   - name: The name of the settings to lookup. Format:
  6452  //     accounts/{account}/dataSharingSettings Example:
  6453  //     "accounts/1000/dataSharingSettings".
  6454  func (r *AccountsService) GetDataSharingSettings(name string) *AccountsGetDataSharingSettingsCall {
  6455  	c := &AccountsGetDataSharingSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6456  	c.name = name
  6457  	return c
  6458  }
  6459  
  6460  // Fields allows partial responses to be retrieved. See
  6461  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6462  // details.
  6463  func (c *AccountsGetDataSharingSettingsCall) Fields(s ...googleapi.Field) *AccountsGetDataSharingSettingsCall {
  6464  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6465  	return c
  6466  }
  6467  
  6468  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6469  // object's ETag matches the given value. This is useful for getting updates
  6470  // only after the object has changed since the last request.
  6471  func (c *AccountsGetDataSharingSettingsCall) IfNoneMatch(entityTag string) *AccountsGetDataSharingSettingsCall {
  6472  	c.ifNoneMatch_ = entityTag
  6473  	return c
  6474  }
  6475  
  6476  // Context sets the context to be used in this call's Do method.
  6477  func (c *AccountsGetDataSharingSettingsCall) Context(ctx context.Context) *AccountsGetDataSharingSettingsCall {
  6478  	c.ctx_ = ctx
  6479  	return c
  6480  }
  6481  
  6482  // Header returns a http.Header that can be modified by the caller to add
  6483  // headers to the request.
  6484  func (c *AccountsGetDataSharingSettingsCall) Header() http.Header {
  6485  	if c.header_ == nil {
  6486  		c.header_ = make(http.Header)
  6487  	}
  6488  	return c.header_
  6489  }
  6490  
  6491  func (c *AccountsGetDataSharingSettingsCall) doRequest(alt string) (*http.Response, error) {
  6492  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6493  	if c.ifNoneMatch_ != "" {
  6494  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6495  	}
  6496  	var body io.Reader = nil
  6497  	c.urlParams_.Set("alt", alt)
  6498  	c.urlParams_.Set("prettyPrint", "false")
  6499  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  6500  	urls += "?" + c.urlParams_.Encode()
  6501  	req, err := http.NewRequest("GET", urls, body)
  6502  	if err != nil {
  6503  		return nil, err
  6504  	}
  6505  	req.Header = reqHeaders
  6506  	googleapi.Expand(req.URL, map[string]string{
  6507  		"name": c.name,
  6508  	})
  6509  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6510  }
  6511  
  6512  // Do executes the "analyticsadmin.accounts.getDataSharingSettings" call.
  6513  // Any non-2xx status code is an error. Response headers are in either
  6514  // *GoogleAnalyticsAdminV1alphaDataSharingSettings.ServerResponse.Header or (if
  6515  // a response was returned at all) in error.(*googleapi.Error).Header. Use
  6516  // googleapi.IsNotModified to check whether the returned error was because
  6517  // http.StatusNotModified was returned.
  6518  func (c *AccountsGetDataSharingSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataSharingSettings, error) {
  6519  	gensupport.SetOptions(c.urlParams_, opts...)
  6520  	res, err := c.doRequest("json")
  6521  	if res != nil && res.StatusCode == http.StatusNotModified {
  6522  		if res.Body != nil {
  6523  			res.Body.Close()
  6524  		}
  6525  		return nil, gensupport.WrapError(&googleapi.Error{
  6526  			Code:   res.StatusCode,
  6527  			Header: res.Header,
  6528  		})
  6529  	}
  6530  	if err != nil {
  6531  		return nil, err
  6532  	}
  6533  	defer googleapi.CloseBody(res)
  6534  	if err := googleapi.CheckResponse(res); err != nil {
  6535  		return nil, gensupport.WrapError(err)
  6536  	}
  6537  	ret := &GoogleAnalyticsAdminV1alphaDataSharingSettings{
  6538  		ServerResponse: googleapi.ServerResponse{
  6539  			Header:         res.Header,
  6540  			HTTPStatusCode: res.StatusCode,
  6541  		},
  6542  	}
  6543  	target := &ret
  6544  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6545  		return nil, err
  6546  	}
  6547  	return ret, nil
  6548  }
  6549  
  6550  type AccountsListCall struct {
  6551  	s            *Service
  6552  	urlParams_   gensupport.URLParams
  6553  	ifNoneMatch_ string
  6554  	ctx_         context.Context
  6555  	header_      http.Header
  6556  }
  6557  
  6558  // List: Returns all accounts accessible by the caller. Note that these
  6559  // accounts might not currently have GA4 properties. Soft-deleted (ie:
  6560  // "trashed") accounts are excluded by default. Returns an empty list if no
  6561  // relevant accounts are found.
  6562  func (r *AccountsService) List() *AccountsListCall {
  6563  	c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6564  	return c
  6565  }
  6566  
  6567  // PageSize sets the optional parameter "pageSize": The maximum number of
  6568  // resources to return. The service may return fewer than this value, even if
  6569  // there are additional pages. If unspecified, at most 50 resources will be
  6570  // returned. The maximum value is 200; (higher values will be coerced to the
  6571  // maximum)
  6572  func (c *AccountsListCall) PageSize(pageSize int64) *AccountsListCall {
  6573  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6574  	return c
  6575  }
  6576  
  6577  // PageToken sets the optional parameter "pageToken": A page token, received
  6578  // from a previous `ListAccounts` call. Provide this to retrieve the subsequent
  6579  // page. When paginating, all other parameters provided to `ListAccounts` must
  6580  // match the call that provided the page token.
  6581  func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall {
  6582  	c.urlParams_.Set("pageToken", pageToken)
  6583  	return c
  6584  }
  6585  
  6586  // ShowDeleted sets the optional parameter "showDeleted": Whether to include
  6587  // soft-deleted (ie: "trashed") Accounts in the results. Accounts can be
  6588  // inspected to determine whether they are deleted or not.
  6589  func (c *AccountsListCall) ShowDeleted(showDeleted bool) *AccountsListCall {
  6590  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  6591  	return c
  6592  }
  6593  
  6594  // Fields allows partial responses to be retrieved. See
  6595  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6596  // details.
  6597  func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall {
  6598  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6599  	return c
  6600  }
  6601  
  6602  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6603  // object's ETag matches the given value. This is useful for getting updates
  6604  // only after the object has changed since the last request.
  6605  func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall {
  6606  	c.ifNoneMatch_ = entityTag
  6607  	return c
  6608  }
  6609  
  6610  // Context sets the context to be used in this call's Do method.
  6611  func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall {
  6612  	c.ctx_ = ctx
  6613  	return c
  6614  }
  6615  
  6616  // Header returns a http.Header that can be modified by the caller to add
  6617  // headers to the request.
  6618  func (c *AccountsListCall) Header() http.Header {
  6619  	if c.header_ == nil {
  6620  		c.header_ = make(http.Header)
  6621  	}
  6622  	return c.header_
  6623  }
  6624  
  6625  func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) {
  6626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6627  	if c.ifNoneMatch_ != "" {
  6628  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6629  	}
  6630  	var body io.Reader = nil
  6631  	c.urlParams_.Set("alt", alt)
  6632  	c.urlParams_.Set("prettyPrint", "false")
  6633  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/accounts")
  6634  	urls += "?" + c.urlParams_.Encode()
  6635  	req, err := http.NewRequest("GET", urls, body)
  6636  	if err != nil {
  6637  		return nil, err
  6638  	}
  6639  	req.Header = reqHeaders
  6640  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6641  }
  6642  
  6643  // Do executes the "analyticsadmin.accounts.list" call.
  6644  // Any non-2xx status code is an error. Response headers are in either
  6645  // *GoogleAnalyticsAdminV1alphaListAccountsResponse.ServerResponse.Header or
  6646  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  6647  // googleapi.IsNotModified to check whether the returned error was because
  6648  // http.StatusNotModified was returned.
  6649  func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAccountsResponse, error) {
  6650  	gensupport.SetOptions(c.urlParams_, opts...)
  6651  	res, err := c.doRequest("json")
  6652  	if res != nil && res.StatusCode == http.StatusNotModified {
  6653  		if res.Body != nil {
  6654  			res.Body.Close()
  6655  		}
  6656  		return nil, gensupport.WrapError(&googleapi.Error{
  6657  			Code:   res.StatusCode,
  6658  			Header: res.Header,
  6659  		})
  6660  	}
  6661  	if err != nil {
  6662  		return nil, err
  6663  	}
  6664  	defer googleapi.CloseBody(res)
  6665  	if err := googleapi.CheckResponse(res); err != nil {
  6666  		return nil, gensupport.WrapError(err)
  6667  	}
  6668  	ret := &GoogleAnalyticsAdminV1alphaListAccountsResponse{
  6669  		ServerResponse: googleapi.ServerResponse{
  6670  			Header:         res.Header,
  6671  			HTTPStatusCode: res.StatusCode,
  6672  		},
  6673  	}
  6674  	target := &ret
  6675  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6676  		return nil, err
  6677  	}
  6678  	return ret, nil
  6679  }
  6680  
  6681  // Pages invokes f for each page of results.
  6682  // A non-nil error returned from f will halt the iteration.
  6683  // The provided context supersedes any context provided to the Context method.
  6684  func (c *AccountsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAccountsResponse) error) error {
  6685  	c.ctx_ = ctx
  6686  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6687  	for {
  6688  		x, err := c.Do()
  6689  		if err != nil {
  6690  			return err
  6691  		}
  6692  		if err := f(x); err != nil {
  6693  			return err
  6694  		}
  6695  		if x.NextPageToken == "" {
  6696  			return nil
  6697  		}
  6698  		c.PageToken(x.NextPageToken)
  6699  	}
  6700  }
  6701  
  6702  type AccountsPatchCall struct {
  6703  	s                                  *Service
  6704  	name                               string
  6705  	googleanalyticsadminv1alphaaccount *GoogleAnalyticsAdminV1alphaAccount
  6706  	urlParams_                         gensupport.URLParams
  6707  	ctx_                               context.Context
  6708  	header_                            http.Header
  6709  }
  6710  
  6711  // Patch: Updates an account.
  6712  //
  6713  //   - name: Output only. Resource name of this account. Format:
  6714  //     accounts/{account} Example: "accounts/100".
  6715  func (r *AccountsService) Patch(name string, googleanalyticsadminv1alphaaccount *GoogleAnalyticsAdminV1alphaAccount) *AccountsPatchCall {
  6716  	c := &AccountsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6717  	c.name = name
  6718  	c.googleanalyticsadminv1alphaaccount = googleanalyticsadminv1alphaaccount
  6719  	return c
  6720  }
  6721  
  6722  // UpdateMask sets the optional parameter "updateMask": Required. The list of
  6723  // fields to be updated. Field names must be in snake case (for example,
  6724  // "field_to_update"). Omitted fields will not be updated. To replace the
  6725  // entire entity, use one path with the string "*" to match all fields.
  6726  func (c *AccountsPatchCall) UpdateMask(updateMask string) *AccountsPatchCall {
  6727  	c.urlParams_.Set("updateMask", updateMask)
  6728  	return c
  6729  }
  6730  
  6731  // Fields allows partial responses to be retrieved. See
  6732  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6733  // details.
  6734  func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall {
  6735  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6736  	return c
  6737  }
  6738  
  6739  // Context sets the context to be used in this call's Do method.
  6740  func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall {
  6741  	c.ctx_ = ctx
  6742  	return c
  6743  }
  6744  
  6745  // Header returns a http.Header that can be modified by the caller to add
  6746  // headers to the request.
  6747  func (c *AccountsPatchCall) Header() http.Header {
  6748  	if c.header_ == nil {
  6749  		c.header_ = make(http.Header)
  6750  	}
  6751  	return c.header_
  6752  }
  6753  
  6754  func (c *AccountsPatchCall) doRequest(alt string) (*http.Response, error) {
  6755  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6756  	var body io.Reader = nil
  6757  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccount)
  6758  	if err != nil {
  6759  		return nil, err
  6760  	}
  6761  	c.urlParams_.Set("alt", alt)
  6762  	c.urlParams_.Set("prettyPrint", "false")
  6763  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  6764  	urls += "?" + c.urlParams_.Encode()
  6765  	req, err := http.NewRequest("PATCH", urls, body)
  6766  	if err != nil {
  6767  		return nil, err
  6768  	}
  6769  	req.Header = reqHeaders
  6770  	googleapi.Expand(req.URL, map[string]string{
  6771  		"name": c.name,
  6772  	})
  6773  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6774  }
  6775  
  6776  // Do executes the "analyticsadmin.accounts.patch" call.
  6777  // Any non-2xx status code is an error. Response headers are in either
  6778  // *GoogleAnalyticsAdminV1alphaAccount.ServerResponse.Header or (if a response
  6779  // was returned at all) in error.(*googleapi.Error).Header. Use
  6780  // googleapi.IsNotModified to check whether the returned error was because
  6781  // http.StatusNotModified was returned.
  6782  func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccount, error) {
  6783  	gensupport.SetOptions(c.urlParams_, opts...)
  6784  	res, err := c.doRequest("json")
  6785  	if res != nil && res.StatusCode == http.StatusNotModified {
  6786  		if res.Body != nil {
  6787  			res.Body.Close()
  6788  		}
  6789  		return nil, gensupport.WrapError(&googleapi.Error{
  6790  			Code:   res.StatusCode,
  6791  			Header: res.Header,
  6792  		})
  6793  	}
  6794  	if err != nil {
  6795  		return nil, err
  6796  	}
  6797  	defer googleapi.CloseBody(res)
  6798  	if err := googleapi.CheckResponse(res); err != nil {
  6799  		return nil, gensupport.WrapError(err)
  6800  	}
  6801  	ret := &GoogleAnalyticsAdminV1alphaAccount{
  6802  		ServerResponse: googleapi.ServerResponse{
  6803  			Header:         res.Header,
  6804  			HTTPStatusCode: res.StatusCode,
  6805  		},
  6806  	}
  6807  	target := &ret
  6808  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6809  		return nil, err
  6810  	}
  6811  	return ret, nil
  6812  }
  6813  
  6814  type AccountsProvisionAccountTicketCall struct {
  6815  	s                                                        *Service
  6816  	googleanalyticsadminv1alphaprovisionaccountticketrequest *GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest
  6817  	urlParams_                                               gensupport.URLParams
  6818  	ctx_                                                     context.Context
  6819  	header_                                                  http.Header
  6820  }
  6821  
  6822  // ProvisionAccountTicket: Requests a ticket for creating an account.
  6823  func (r *AccountsService) ProvisionAccountTicket(googleanalyticsadminv1alphaprovisionaccountticketrequest *GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest) *AccountsProvisionAccountTicketCall {
  6824  	c := &AccountsProvisionAccountTicketCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6825  	c.googleanalyticsadminv1alphaprovisionaccountticketrequest = googleanalyticsadminv1alphaprovisionaccountticketrequest
  6826  	return c
  6827  }
  6828  
  6829  // Fields allows partial responses to be retrieved. See
  6830  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6831  // details.
  6832  func (c *AccountsProvisionAccountTicketCall) Fields(s ...googleapi.Field) *AccountsProvisionAccountTicketCall {
  6833  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6834  	return c
  6835  }
  6836  
  6837  // Context sets the context to be used in this call's Do method.
  6838  func (c *AccountsProvisionAccountTicketCall) Context(ctx context.Context) *AccountsProvisionAccountTicketCall {
  6839  	c.ctx_ = ctx
  6840  	return c
  6841  }
  6842  
  6843  // Header returns a http.Header that can be modified by the caller to add
  6844  // headers to the request.
  6845  func (c *AccountsProvisionAccountTicketCall) Header() http.Header {
  6846  	if c.header_ == nil {
  6847  		c.header_ = make(http.Header)
  6848  	}
  6849  	return c.header_
  6850  }
  6851  
  6852  func (c *AccountsProvisionAccountTicketCall) doRequest(alt string) (*http.Response, error) {
  6853  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6854  	var body io.Reader = nil
  6855  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaprovisionaccountticketrequest)
  6856  	if err != nil {
  6857  		return nil, err
  6858  	}
  6859  	c.urlParams_.Set("alt", alt)
  6860  	c.urlParams_.Set("prettyPrint", "false")
  6861  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/accounts:provisionAccountTicket")
  6862  	urls += "?" + c.urlParams_.Encode()
  6863  	req, err := http.NewRequest("POST", urls, body)
  6864  	if err != nil {
  6865  		return nil, err
  6866  	}
  6867  	req.Header = reqHeaders
  6868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6869  }
  6870  
  6871  // Do executes the "analyticsadmin.accounts.provisionAccountTicket" call.
  6872  // Any non-2xx status code is an error. Response headers are in either
  6873  // *GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse.ServerResponse.Hea
  6874  // der or (if a response was returned at all) in
  6875  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6876  // whether the returned error was because http.StatusNotModified was returned.
  6877  func (c *AccountsProvisionAccountTicketCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse, error) {
  6878  	gensupport.SetOptions(c.urlParams_, opts...)
  6879  	res, err := c.doRequest("json")
  6880  	if res != nil && res.StatusCode == http.StatusNotModified {
  6881  		if res.Body != nil {
  6882  			res.Body.Close()
  6883  		}
  6884  		return nil, gensupport.WrapError(&googleapi.Error{
  6885  			Code:   res.StatusCode,
  6886  			Header: res.Header,
  6887  		})
  6888  	}
  6889  	if err != nil {
  6890  		return nil, err
  6891  	}
  6892  	defer googleapi.CloseBody(res)
  6893  	if err := googleapi.CheckResponse(res); err != nil {
  6894  		return nil, gensupport.WrapError(err)
  6895  	}
  6896  	ret := &GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse{
  6897  		ServerResponse: googleapi.ServerResponse{
  6898  			Header:         res.Header,
  6899  			HTTPStatusCode: res.StatusCode,
  6900  		},
  6901  	}
  6902  	target := &ret
  6903  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6904  		return nil, err
  6905  	}
  6906  	return ret, nil
  6907  }
  6908  
  6909  type AccountsRunAccessReportCall struct {
  6910  	s                                                 *Service
  6911  	entity                                            string
  6912  	googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest
  6913  	urlParams_                                        gensupport.URLParams
  6914  	ctx_                                              context.Context
  6915  	header_                                           http.Header
  6916  }
  6917  
  6918  // RunAccessReport: Returns a customized report of data access records. The
  6919  // report provides records of each time a user reads Google Analytics reporting
  6920  // data. Access records are retained for up to 2 years. Data Access Reports can
  6921  // be requested for a property. Reports may be requested for any property, but
  6922  // dimensions that aren't related to quota can only be requested on Google
  6923  // Analytics 360 properties. This method is only available to Administrators.
  6924  // These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4
  6925  // Data API, and other products like Firebase & Admob that can retrieve data
  6926  // from Google Analytics through a linkage. These records don't include
  6927  // property configuration changes like adding a stream or changing a property's
  6928  // time zone. For configuration change history, see searchChangeHistoryEvents
  6929  // (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
  6930  //
  6931  //   - entity: The Data Access Report supports requesting at the property level
  6932  //     or account level. If requested at the account level, Data Access Reports
  6933  //     include all access for all properties under that account. To request at
  6934  //     the property level, entity should be for example 'properties/123' if "123"
  6935  //     is your GA4 property ID. To request at the account level, entity should be
  6936  //     for example 'accounts/1234' if "1234" is your GA4 Account ID.
  6937  func (r *AccountsService) RunAccessReport(entity string, googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) *AccountsRunAccessReportCall {
  6938  	c := &AccountsRunAccessReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6939  	c.entity = entity
  6940  	c.googleanalyticsadminv1alpharunaccessreportrequest = googleanalyticsadminv1alpharunaccessreportrequest
  6941  	return c
  6942  }
  6943  
  6944  // Fields allows partial responses to be retrieved. See
  6945  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6946  // details.
  6947  func (c *AccountsRunAccessReportCall) Fields(s ...googleapi.Field) *AccountsRunAccessReportCall {
  6948  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6949  	return c
  6950  }
  6951  
  6952  // Context sets the context to be used in this call's Do method.
  6953  func (c *AccountsRunAccessReportCall) Context(ctx context.Context) *AccountsRunAccessReportCall {
  6954  	c.ctx_ = ctx
  6955  	return c
  6956  }
  6957  
  6958  // Header returns a http.Header that can be modified by the caller to add
  6959  // headers to the request.
  6960  func (c *AccountsRunAccessReportCall) Header() http.Header {
  6961  	if c.header_ == nil {
  6962  		c.header_ = make(http.Header)
  6963  	}
  6964  	return c.header_
  6965  }
  6966  
  6967  func (c *AccountsRunAccessReportCall) doRequest(alt string) (*http.Response, error) {
  6968  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6969  	var body io.Reader = nil
  6970  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alpharunaccessreportrequest)
  6971  	if err != nil {
  6972  		return nil, err
  6973  	}
  6974  	c.urlParams_.Set("alt", alt)
  6975  	c.urlParams_.Set("prettyPrint", "false")
  6976  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+entity}:runAccessReport")
  6977  	urls += "?" + c.urlParams_.Encode()
  6978  	req, err := http.NewRequest("POST", urls, body)
  6979  	if err != nil {
  6980  		return nil, err
  6981  	}
  6982  	req.Header = reqHeaders
  6983  	googleapi.Expand(req.URL, map[string]string{
  6984  		"entity": c.entity,
  6985  	})
  6986  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6987  }
  6988  
  6989  // Do executes the "analyticsadmin.accounts.runAccessReport" call.
  6990  // Any non-2xx status code is an error. Response headers are in either
  6991  // *GoogleAnalyticsAdminV1alphaRunAccessReportResponse.ServerResponse.Header or
  6992  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  6993  // googleapi.IsNotModified to check whether the returned error was because
  6994  // http.StatusNotModified was returned.
  6995  func (c *AccountsRunAccessReportCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRunAccessReportResponse, error) {
  6996  	gensupport.SetOptions(c.urlParams_, opts...)
  6997  	res, err := c.doRequest("json")
  6998  	if res != nil && res.StatusCode == http.StatusNotModified {
  6999  		if res.Body != nil {
  7000  			res.Body.Close()
  7001  		}
  7002  		return nil, gensupport.WrapError(&googleapi.Error{
  7003  			Code:   res.StatusCode,
  7004  			Header: res.Header,
  7005  		})
  7006  	}
  7007  	if err != nil {
  7008  		return nil, err
  7009  	}
  7010  	defer googleapi.CloseBody(res)
  7011  	if err := googleapi.CheckResponse(res); err != nil {
  7012  		return nil, gensupport.WrapError(err)
  7013  	}
  7014  	ret := &GoogleAnalyticsAdminV1alphaRunAccessReportResponse{
  7015  		ServerResponse: googleapi.ServerResponse{
  7016  			Header:         res.Header,
  7017  			HTTPStatusCode: res.StatusCode,
  7018  		},
  7019  	}
  7020  	target := &ret
  7021  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7022  		return nil, err
  7023  	}
  7024  	return ret, nil
  7025  }
  7026  
  7027  type AccountsSearchChangeHistoryEventsCall struct {
  7028  	s                                                           *Service
  7029  	account                                                     string
  7030  	googleanalyticsadminv1alphasearchchangehistoryeventsrequest *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest
  7031  	urlParams_                                                  gensupport.URLParams
  7032  	ctx_                                                        context.Context
  7033  	header_                                                     http.Header
  7034  }
  7035  
  7036  // SearchChangeHistoryEvents: Searches through all changes to an account or its
  7037  // children given the specified set of filters.
  7038  //
  7039  //   - account: The account resource for which to return change history
  7040  //     resources. Format: accounts/{account} Example: "accounts/100".
  7041  func (r *AccountsService) SearchChangeHistoryEvents(account string, googleanalyticsadminv1alphasearchchangehistoryeventsrequest *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest) *AccountsSearchChangeHistoryEventsCall {
  7042  	c := &AccountsSearchChangeHistoryEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7043  	c.account = account
  7044  	c.googleanalyticsadminv1alphasearchchangehistoryeventsrequest = googleanalyticsadminv1alphasearchchangehistoryeventsrequest
  7045  	return c
  7046  }
  7047  
  7048  // Fields allows partial responses to be retrieved. See
  7049  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7050  // details.
  7051  func (c *AccountsSearchChangeHistoryEventsCall) Fields(s ...googleapi.Field) *AccountsSearchChangeHistoryEventsCall {
  7052  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7053  	return c
  7054  }
  7055  
  7056  // Context sets the context to be used in this call's Do method.
  7057  func (c *AccountsSearchChangeHistoryEventsCall) Context(ctx context.Context) *AccountsSearchChangeHistoryEventsCall {
  7058  	c.ctx_ = ctx
  7059  	return c
  7060  }
  7061  
  7062  // Header returns a http.Header that can be modified by the caller to add
  7063  // headers to the request.
  7064  func (c *AccountsSearchChangeHistoryEventsCall) Header() http.Header {
  7065  	if c.header_ == nil {
  7066  		c.header_ = make(http.Header)
  7067  	}
  7068  	return c.header_
  7069  }
  7070  
  7071  func (c *AccountsSearchChangeHistoryEventsCall) doRequest(alt string) (*http.Response, error) {
  7072  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7073  	var body io.Reader = nil
  7074  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasearchchangehistoryeventsrequest)
  7075  	if err != nil {
  7076  		return nil, err
  7077  	}
  7078  	c.urlParams_.Set("alt", alt)
  7079  	c.urlParams_.Set("prettyPrint", "false")
  7080  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+account}:searchChangeHistoryEvents")
  7081  	urls += "?" + c.urlParams_.Encode()
  7082  	req, err := http.NewRequest("POST", urls, body)
  7083  	if err != nil {
  7084  		return nil, err
  7085  	}
  7086  	req.Header = reqHeaders
  7087  	googleapi.Expand(req.URL, map[string]string{
  7088  		"account": c.account,
  7089  	})
  7090  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7091  }
  7092  
  7093  // Do executes the "analyticsadmin.accounts.searchChangeHistoryEvents" call.
  7094  // Any non-2xx status code is an error. Response headers are in either
  7095  // *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse.ServerResponse.
  7096  // Header or (if a response was returned at all) in
  7097  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7098  // whether the returned error was because http.StatusNotModified was returned.
  7099  func (c *AccountsSearchChangeHistoryEventsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse, error) {
  7100  	gensupport.SetOptions(c.urlParams_, opts...)
  7101  	res, err := c.doRequest("json")
  7102  	if res != nil && res.StatusCode == http.StatusNotModified {
  7103  		if res.Body != nil {
  7104  			res.Body.Close()
  7105  		}
  7106  		return nil, gensupport.WrapError(&googleapi.Error{
  7107  			Code:   res.StatusCode,
  7108  			Header: res.Header,
  7109  		})
  7110  	}
  7111  	if err != nil {
  7112  		return nil, err
  7113  	}
  7114  	defer googleapi.CloseBody(res)
  7115  	if err := googleapi.CheckResponse(res); err != nil {
  7116  		return nil, gensupport.WrapError(err)
  7117  	}
  7118  	ret := &GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse{
  7119  		ServerResponse: googleapi.ServerResponse{
  7120  			Header:         res.Header,
  7121  			HTTPStatusCode: res.StatusCode,
  7122  		},
  7123  	}
  7124  	target := &ret
  7125  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7126  		return nil, err
  7127  	}
  7128  	return ret, nil
  7129  }
  7130  
  7131  // Pages invokes f for each page of results.
  7132  // A non-nil error returned from f will halt the iteration.
  7133  // The provided context supersedes any context provided to the Context method.
  7134  func (c *AccountsSearchChangeHistoryEventsCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse) error) error {
  7135  	c.ctx_ = ctx
  7136  	defer func(pt string) { c.googleanalyticsadminv1alphasearchchangehistoryeventsrequest.PageToken = pt }(c.googleanalyticsadminv1alphasearchchangehistoryeventsrequest.PageToken)
  7137  	for {
  7138  		x, err := c.Do()
  7139  		if err != nil {
  7140  			return err
  7141  		}
  7142  		if err := f(x); err != nil {
  7143  			return err
  7144  		}
  7145  		if x.NextPageToken == "" {
  7146  			return nil
  7147  		}
  7148  		c.googleanalyticsadminv1alphasearchchangehistoryeventsrequest.PageToken = x.NextPageToken
  7149  	}
  7150  }
  7151  
  7152  type AccountsAccessBindingsBatchCreateCall struct {
  7153  	s                                                           *Service
  7154  	parent                                                      string
  7155  	googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest
  7156  	urlParams_                                                  gensupport.URLParams
  7157  	ctx_                                                        context.Context
  7158  	header_                                                     http.Header
  7159  }
  7160  
  7161  // BatchCreate: Creates information about multiple access bindings to an
  7162  // account or property. This method is transactional. If any AccessBinding
  7163  // cannot be created, none of the AccessBindings will be created.
  7164  //
  7165  //   - parent: The account or property that owns the access bindings. The parent
  7166  //     field in the CreateAccessBindingRequest messages must either be empty or
  7167  //     match this field. Formats: - accounts/{account} - properties/{property}.
  7168  func (r *AccountsAccessBindingsService) BatchCreate(parent string, googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest) *AccountsAccessBindingsBatchCreateCall {
  7169  	c := &AccountsAccessBindingsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7170  	c.parent = parent
  7171  	c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest = googleanalyticsadminv1alphabatchcreateaccessbindingsrequest
  7172  	return c
  7173  }
  7174  
  7175  // Fields allows partial responses to be retrieved. See
  7176  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7177  // details.
  7178  func (c *AccountsAccessBindingsBatchCreateCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchCreateCall {
  7179  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7180  	return c
  7181  }
  7182  
  7183  // Context sets the context to be used in this call's Do method.
  7184  func (c *AccountsAccessBindingsBatchCreateCall) Context(ctx context.Context) *AccountsAccessBindingsBatchCreateCall {
  7185  	c.ctx_ = ctx
  7186  	return c
  7187  }
  7188  
  7189  // Header returns a http.Header that can be modified by the caller to add
  7190  // headers to the request.
  7191  func (c *AccountsAccessBindingsBatchCreateCall) Header() http.Header {
  7192  	if c.header_ == nil {
  7193  		c.header_ = make(http.Header)
  7194  	}
  7195  	return c.header_
  7196  }
  7197  
  7198  func (c *AccountsAccessBindingsBatchCreateCall) doRequest(alt string) (*http.Response, error) {
  7199  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7200  	var body io.Reader = nil
  7201  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest)
  7202  	if err != nil {
  7203  		return nil, err
  7204  	}
  7205  	c.urlParams_.Set("alt", alt)
  7206  	c.urlParams_.Set("prettyPrint", "false")
  7207  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchCreate")
  7208  	urls += "?" + c.urlParams_.Encode()
  7209  	req, err := http.NewRequest("POST", urls, body)
  7210  	if err != nil {
  7211  		return nil, err
  7212  	}
  7213  	req.Header = reqHeaders
  7214  	googleapi.Expand(req.URL, map[string]string{
  7215  		"parent": c.parent,
  7216  	})
  7217  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7218  }
  7219  
  7220  // Do executes the "analyticsadmin.accounts.accessBindings.batchCreate" call.
  7221  // Any non-2xx status code is an error. Response headers are in either
  7222  // *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse.ServerResponse.
  7223  // Header or (if a response was returned at all) in
  7224  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7225  // whether the returned error was because http.StatusNotModified was returned.
  7226  func (c *AccountsAccessBindingsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse, error) {
  7227  	gensupport.SetOptions(c.urlParams_, opts...)
  7228  	res, err := c.doRequest("json")
  7229  	if res != nil && res.StatusCode == http.StatusNotModified {
  7230  		if res.Body != nil {
  7231  			res.Body.Close()
  7232  		}
  7233  		return nil, gensupport.WrapError(&googleapi.Error{
  7234  			Code:   res.StatusCode,
  7235  			Header: res.Header,
  7236  		})
  7237  	}
  7238  	if err != nil {
  7239  		return nil, err
  7240  	}
  7241  	defer googleapi.CloseBody(res)
  7242  	if err := googleapi.CheckResponse(res); err != nil {
  7243  		return nil, gensupport.WrapError(err)
  7244  	}
  7245  	ret := &GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse{
  7246  		ServerResponse: googleapi.ServerResponse{
  7247  			Header:         res.Header,
  7248  			HTTPStatusCode: res.StatusCode,
  7249  		},
  7250  	}
  7251  	target := &ret
  7252  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7253  		return nil, err
  7254  	}
  7255  	return ret, nil
  7256  }
  7257  
  7258  type AccountsAccessBindingsBatchDeleteCall struct {
  7259  	s                                                           *Service
  7260  	parent                                                      string
  7261  	googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest
  7262  	urlParams_                                                  gensupport.URLParams
  7263  	ctx_                                                        context.Context
  7264  	header_                                                     http.Header
  7265  }
  7266  
  7267  // BatchDelete: Deletes information about multiple users' links to an account
  7268  // or property.
  7269  //
  7270  //   - parent: The account or property that owns the access bindings. The parent
  7271  //     of all provided values for the 'names' field in DeleteAccessBindingRequest
  7272  //     messages must match this field. Formats: - accounts/{account} -
  7273  //     properties/{property}.
  7274  func (r *AccountsAccessBindingsService) BatchDelete(parent string, googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest) *AccountsAccessBindingsBatchDeleteCall {
  7275  	c := &AccountsAccessBindingsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7276  	c.parent = parent
  7277  	c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest = googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest
  7278  	return c
  7279  }
  7280  
  7281  // Fields allows partial responses to be retrieved. See
  7282  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7283  // details.
  7284  func (c *AccountsAccessBindingsBatchDeleteCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchDeleteCall {
  7285  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7286  	return c
  7287  }
  7288  
  7289  // Context sets the context to be used in this call's Do method.
  7290  func (c *AccountsAccessBindingsBatchDeleteCall) Context(ctx context.Context) *AccountsAccessBindingsBatchDeleteCall {
  7291  	c.ctx_ = ctx
  7292  	return c
  7293  }
  7294  
  7295  // Header returns a http.Header that can be modified by the caller to add
  7296  // headers to the request.
  7297  func (c *AccountsAccessBindingsBatchDeleteCall) Header() http.Header {
  7298  	if c.header_ == nil {
  7299  		c.header_ = make(http.Header)
  7300  	}
  7301  	return c.header_
  7302  }
  7303  
  7304  func (c *AccountsAccessBindingsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
  7305  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7306  	var body io.Reader = nil
  7307  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest)
  7308  	if err != nil {
  7309  		return nil, err
  7310  	}
  7311  	c.urlParams_.Set("alt", alt)
  7312  	c.urlParams_.Set("prettyPrint", "false")
  7313  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchDelete")
  7314  	urls += "?" + c.urlParams_.Encode()
  7315  	req, err := http.NewRequest("POST", urls, body)
  7316  	if err != nil {
  7317  		return nil, err
  7318  	}
  7319  	req.Header = reqHeaders
  7320  	googleapi.Expand(req.URL, map[string]string{
  7321  		"parent": c.parent,
  7322  	})
  7323  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7324  }
  7325  
  7326  // Do executes the "analyticsadmin.accounts.accessBindings.batchDelete" call.
  7327  // Any non-2xx status code is an error. Response headers are in either
  7328  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  7329  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7330  // check whether the returned error was because http.StatusNotModified was
  7331  // returned.
  7332  func (c *AccountsAccessBindingsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  7333  	gensupport.SetOptions(c.urlParams_, opts...)
  7334  	res, err := c.doRequest("json")
  7335  	if res != nil && res.StatusCode == http.StatusNotModified {
  7336  		if res.Body != nil {
  7337  			res.Body.Close()
  7338  		}
  7339  		return nil, gensupport.WrapError(&googleapi.Error{
  7340  			Code:   res.StatusCode,
  7341  			Header: res.Header,
  7342  		})
  7343  	}
  7344  	if err != nil {
  7345  		return nil, err
  7346  	}
  7347  	defer googleapi.CloseBody(res)
  7348  	if err := googleapi.CheckResponse(res); err != nil {
  7349  		return nil, gensupport.WrapError(err)
  7350  	}
  7351  	ret := &GoogleProtobufEmpty{
  7352  		ServerResponse: googleapi.ServerResponse{
  7353  			Header:         res.Header,
  7354  			HTTPStatusCode: res.StatusCode,
  7355  		},
  7356  	}
  7357  	target := &ret
  7358  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7359  		return nil, err
  7360  	}
  7361  	return ret, nil
  7362  }
  7363  
  7364  type AccountsAccessBindingsBatchGetCall struct {
  7365  	s            *Service
  7366  	parent       string
  7367  	urlParams_   gensupport.URLParams
  7368  	ifNoneMatch_ string
  7369  	ctx_         context.Context
  7370  	header_      http.Header
  7371  }
  7372  
  7373  // BatchGet: Gets information about multiple access bindings to an account or
  7374  // property.
  7375  //
  7376  //   - parent: The account or property that owns the access bindings. The parent
  7377  //     of all provided values for the 'names' field must match this field.
  7378  //     Formats: - accounts/{account} - properties/{property}.
  7379  func (r *AccountsAccessBindingsService) BatchGet(parent string) *AccountsAccessBindingsBatchGetCall {
  7380  	c := &AccountsAccessBindingsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7381  	c.parent = parent
  7382  	return c
  7383  }
  7384  
  7385  // Names sets the optional parameter "names": Required. The names of the access
  7386  // bindings to retrieve. A maximum of 1000 access bindings can be retrieved in
  7387  // a batch. Formats: - accounts/{account}/accessBindings/{accessBinding} -
  7388  // properties/{property}/accessBindings/{accessBinding}
  7389  func (c *AccountsAccessBindingsBatchGetCall) Names(names ...string) *AccountsAccessBindingsBatchGetCall {
  7390  	c.urlParams_.SetMulti("names", append([]string{}, names...))
  7391  	return c
  7392  }
  7393  
  7394  // Fields allows partial responses to be retrieved. See
  7395  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7396  // details.
  7397  func (c *AccountsAccessBindingsBatchGetCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchGetCall {
  7398  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7399  	return c
  7400  }
  7401  
  7402  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7403  // object's ETag matches the given value. This is useful for getting updates
  7404  // only after the object has changed since the last request.
  7405  func (c *AccountsAccessBindingsBatchGetCall) IfNoneMatch(entityTag string) *AccountsAccessBindingsBatchGetCall {
  7406  	c.ifNoneMatch_ = entityTag
  7407  	return c
  7408  }
  7409  
  7410  // Context sets the context to be used in this call's Do method.
  7411  func (c *AccountsAccessBindingsBatchGetCall) Context(ctx context.Context) *AccountsAccessBindingsBatchGetCall {
  7412  	c.ctx_ = ctx
  7413  	return c
  7414  }
  7415  
  7416  // Header returns a http.Header that can be modified by the caller to add
  7417  // headers to the request.
  7418  func (c *AccountsAccessBindingsBatchGetCall) Header() http.Header {
  7419  	if c.header_ == nil {
  7420  		c.header_ = make(http.Header)
  7421  	}
  7422  	return c.header_
  7423  }
  7424  
  7425  func (c *AccountsAccessBindingsBatchGetCall) doRequest(alt string) (*http.Response, error) {
  7426  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7427  	if c.ifNoneMatch_ != "" {
  7428  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7429  	}
  7430  	var body io.Reader = nil
  7431  	c.urlParams_.Set("alt", alt)
  7432  	c.urlParams_.Set("prettyPrint", "false")
  7433  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchGet")
  7434  	urls += "?" + c.urlParams_.Encode()
  7435  	req, err := http.NewRequest("GET", urls, body)
  7436  	if err != nil {
  7437  		return nil, err
  7438  	}
  7439  	req.Header = reqHeaders
  7440  	googleapi.Expand(req.URL, map[string]string{
  7441  		"parent": c.parent,
  7442  	})
  7443  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7444  }
  7445  
  7446  // Do executes the "analyticsadmin.accounts.accessBindings.batchGet" call.
  7447  // Any non-2xx status code is an error. Response headers are in either
  7448  // *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse.ServerResponse.Hea
  7449  // der or (if a response was returned at all) in
  7450  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7451  // whether the returned error was because http.StatusNotModified was returned.
  7452  func (c *AccountsAccessBindingsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse, error) {
  7453  	gensupport.SetOptions(c.urlParams_, opts...)
  7454  	res, err := c.doRequest("json")
  7455  	if res != nil && res.StatusCode == http.StatusNotModified {
  7456  		if res.Body != nil {
  7457  			res.Body.Close()
  7458  		}
  7459  		return nil, gensupport.WrapError(&googleapi.Error{
  7460  			Code:   res.StatusCode,
  7461  			Header: res.Header,
  7462  		})
  7463  	}
  7464  	if err != nil {
  7465  		return nil, err
  7466  	}
  7467  	defer googleapi.CloseBody(res)
  7468  	if err := googleapi.CheckResponse(res); err != nil {
  7469  		return nil, gensupport.WrapError(err)
  7470  	}
  7471  	ret := &GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse{
  7472  		ServerResponse: googleapi.ServerResponse{
  7473  			Header:         res.Header,
  7474  			HTTPStatusCode: res.StatusCode,
  7475  		},
  7476  	}
  7477  	target := &ret
  7478  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7479  		return nil, err
  7480  	}
  7481  	return ret, nil
  7482  }
  7483  
  7484  type AccountsAccessBindingsBatchUpdateCall struct {
  7485  	s                                                           *Service
  7486  	parent                                                      string
  7487  	googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest
  7488  	urlParams_                                                  gensupport.URLParams
  7489  	ctx_                                                        context.Context
  7490  	header_                                                     http.Header
  7491  }
  7492  
  7493  // BatchUpdate: Updates information about multiple access bindings to an
  7494  // account or property.
  7495  //
  7496  //   - parent: The account or property that owns the access bindings. The parent
  7497  //     of all provided AccessBinding in UpdateAccessBindingRequest messages must
  7498  //     match this field. Formats: - accounts/{account} - properties/{property}.
  7499  func (r *AccountsAccessBindingsService) BatchUpdate(parent string, googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest) *AccountsAccessBindingsBatchUpdateCall {
  7500  	c := &AccountsAccessBindingsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7501  	c.parent = parent
  7502  	c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest = googleanalyticsadminv1alphabatchupdateaccessbindingsrequest
  7503  	return c
  7504  }
  7505  
  7506  // Fields allows partial responses to be retrieved. See
  7507  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7508  // details.
  7509  func (c *AccountsAccessBindingsBatchUpdateCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsBatchUpdateCall {
  7510  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7511  	return c
  7512  }
  7513  
  7514  // Context sets the context to be used in this call's Do method.
  7515  func (c *AccountsAccessBindingsBatchUpdateCall) Context(ctx context.Context) *AccountsAccessBindingsBatchUpdateCall {
  7516  	c.ctx_ = ctx
  7517  	return c
  7518  }
  7519  
  7520  // Header returns a http.Header that can be modified by the caller to add
  7521  // headers to the request.
  7522  func (c *AccountsAccessBindingsBatchUpdateCall) Header() http.Header {
  7523  	if c.header_ == nil {
  7524  		c.header_ = make(http.Header)
  7525  	}
  7526  	return c.header_
  7527  }
  7528  
  7529  func (c *AccountsAccessBindingsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
  7530  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7531  	var body io.Reader = nil
  7532  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest)
  7533  	if err != nil {
  7534  		return nil, err
  7535  	}
  7536  	c.urlParams_.Set("alt", alt)
  7537  	c.urlParams_.Set("prettyPrint", "false")
  7538  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchUpdate")
  7539  	urls += "?" + c.urlParams_.Encode()
  7540  	req, err := http.NewRequest("POST", urls, body)
  7541  	if err != nil {
  7542  		return nil, err
  7543  	}
  7544  	req.Header = reqHeaders
  7545  	googleapi.Expand(req.URL, map[string]string{
  7546  		"parent": c.parent,
  7547  	})
  7548  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7549  }
  7550  
  7551  // Do executes the "analyticsadmin.accounts.accessBindings.batchUpdate" call.
  7552  // Any non-2xx status code is an error. Response headers are in either
  7553  // *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse.ServerResponse.
  7554  // Header or (if a response was returned at all) in
  7555  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7556  // whether the returned error was because http.StatusNotModified was returned.
  7557  func (c *AccountsAccessBindingsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse, error) {
  7558  	gensupport.SetOptions(c.urlParams_, opts...)
  7559  	res, err := c.doRequest("json")
  7560  	if res != nil && res.StatusCode == http.StatusNotModified {
  7561  		if res.Body != nil {
  7562  			res.Body.Close()
  7563  		}
  7564  		return nil, gensupport.WrapError(&googleapi.Error{
  7565  			Code:   res.StatusCode,
  7566  			Header: res.Header,
  7567  		})
  7568  	}
  7569  	if err != nil {
  7570  		return nil, err
  7571  	}
  7572  	defer googleapi.CloseBody(res)
  7573  	if err := googleapi.CheckResponse(res); err != nil {
  7574  		return nil, gensupport.WrapError(err)
  7575  	}
  7576  	ret := &GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse{
  7577  		ServerResponse: googleapi.ServerResponse{
  7578  			Header:         res.Header,
  7579  			HTTPStatusCode: res.StatusCode,
  7580  		},
  7581  	}
  7582  	target := &ret
  7583  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7584  		return nil, err
  7585  	}
  7586  	return ret, nil
  7587  }
  7588  
  7589  type AccountsAccessBindingsCreateCall struct {
  7590  	s                                        *Service
  7591  	parent                                   string
  7592  	googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding
  7593  	urlParams_                               gensupport.URLParams
  7594  	ctx_                                     context.Context
  7595  	header_                                  http.Header
  7596  }
  7597  
  7598  // Create: Creates an access binding on an account or property.
  7599  //
  7600  // - parent: Formats: - accounts/{account} - properties/{property}.
  7601  func (r *AccountsAccessBindingsService) Create(parent string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *AccountsAccessBindingsCreateCall {
  7602  	c := &AccountsAccessBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7603  	c.parent = parent
  7604  	c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding
  7605  	return c
  7606  }
  7607  
  7608  // Fields allows partial responses to be retrieved. See
  7609  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7610  // details.
  7611  func (c *AccountsAccessBindingsCreateCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsCreateCall {
  7612  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7613  	return c
  7614  }
  7615  
  7616  // Context sets the context to be used in this call's Do method.
  7617  func (c *AccountsAccessBindingsCreateCall) Context(ctx context.Context) *AccountsAccessBindingsCreateCall {
  7618  	c.ctx_ = ctx
  7619  	return c
  7620  }
  7621  
  7622  // Header returns a http.Header that can be modified by the caller to add
  7623  // headers to the request.
  7624  func (c *AccountsAccessBindingsCreateCall) Header() http.Header {
  7625  	if c.header_ == nil {
  7626  		c.header_ = make(http.Header)
  7627  	}
  7628  	return c.header_
  7629  }
  7630  
  7631  func (c *AccountsAccessBindingsCreateCall) doRequest(alt string) (*http.Response, error) {
  7632  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7633  	var body io.Reader = nil
  7634  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding)
  7635  	if err != nil {
  7636  		return nil, err
  7637  	}
  7638  	c.urlParams_.Set("alt", alt)
  7639  	c.urlParams_.Set("prettyPrint", "false")
  7640  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings")
  7641  	urls += "?" + c.urlParams_.Encode()
  7642  	req, err := http.NewRequest("POST", urls, body)
  7643  	if err != nil {
  7644  		return nil, err
  7645  	}
  7646  	req.Header = reqHeaders
  7647  	googleapi.Expand(req.URL, map[string]string{
  7648  		"parent": c.parent,
  7649  	})
  7650  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7651  }
  7652  
  7653  // Do executes the "analyticsadmin.accounts.accessBindings.create" call.
  7654  // Any non-2xx status code is an error. Response headers are in either
  7655  // *GoogleAnalyticsAdminV1alphaAccessBinding.ServerResponse.Header or (if a
  7656  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7657  // googleapi.IsNotModified to check whether the returned error was because
  7658  // http.StatusNotModified was returned.
  7659  func (c *AccountsAccessBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) {
  7660  	gensupport.SetOptions(c.urlParams_, opts...)
  7661  	res, err := c.doRequest("json")
  7662  	if res != nil && res.StatusCode == http.StatusNotModified {
  7663  		if res.Body != nil {
  7664  			res.Body.Close()
  7665  		}
  7666  		return nil, gensupport.WrapError(&googleapi.Error{
  7667  			Code:   res.StatusCode,
  7668  			Header: res.Header,
  7669  		})
  7670  	}
  7671  	if err != nil {
  7672  		return nil, err
  7673  	}
  7674  	defer googleapi.CloseBody(res)
  7675  	if err := googleapi.CheckResponse(res); err != nil {
  7676  		return nil, gensupport.WrapError(err)
  7677  	}
  7678  	ret := &GoogleAnalyticsAdminV1alphaAccessBinding{
  7679  		ServerResponse: googleapi.ServerResponse{
  7680  			Header:         res.Header,
  7681  			HTTPStatusCode: res.StatusCode,
  7682  		},
  7683  	}
  7684  	target := &ret
  7685  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7686  		return nil, err
  7687  	}
  7688  	return ret, nil
  7689  }
  7690  
  7691  type AccountsAccessBindingsDeleteCall struct {
  7692  	s          *Service
  7693  	name       string
  7694  	urlParams_ gensupport.URLParams
  7695  	ctx_       context.Context
  7696  	header_    http.Header
  7697  }
  7698  
  7699  // Delete: Deletes an access binding on an account or property.
  7700  //
  7701  //   - name: Formats: - accounts/{account}/accessBindings/{accessBinding} -
  7702  //     properties/{property}/accessBindings/{accessBinding}.
  7703  func (r *AccountsAccessBindingsService) Delete(name string) *AccountsAccessBindingsDeleteCall {
  7704  	c := &AccountsAccessBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7705  	c.name = name
  7706  	return c
  7707  }
  7708  
  7709  // Fields allows partial responses to be retrieved. See
  7710  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7711  // details.
  7712  func (c *AccountsAccessBindingsDeleteCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsDeleteCall {
  7713  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7714  	return c
  7715  }
  7716  
  7717  // Context sets the context to be used in this call's Do method.
  7718  func (c *AccountsAccessBindingsDeleteCall) Context(ctx context.Context) *AccountsAccessBindingsDeleteCall {
  7719  	c.ctx_ = ctx
  7720  	return c
  7721  }
  7722  
  7723  // Header returns a http.Header that can be modified by the caller to add
  7724  // headers to the request.
  7725  func (c *AccountsAccessBindingsDeleteCall) Header() http.Header {
  7726  	if c.header_ == nil {
  7727  		c.header_ = make(http.Header)
  7728  	}
  7729  	return c.header_
  7730  }
  7731  
  7732  func (c *AccountsAccessBindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7733  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7734  	var body io.Reader = nil
  7735  	c.urlParams_.Set("alt", alt)
  7736  	c.urlParams_.Set("prettyPrint", "false")
  7737  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  7738  	urls += "?" + c.urlParams_.Encode()
  7739  	req, err := http.NewRequest("DELETE", urls, body)
  7740  	if err != nil {
  7741  		return nil, err
  7742  	}
  7743  	req.Header = reqHeaders
  7744  	googleapi.Expand(req.URL, map[string]string{
  7745  		"name": c.name,
  7746  	})
  7747  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7748  }
  7749  
  7750  // Do executes the "analyticsadmin.accounts.accessBindings.delete" call.
  7751  // Any non-2xx status code is an error. Response headers are in either
  7752  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  7753  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7754  // check whether the returned error was because http.StatusNotModified was
  7755  // returned.
  7756  func (c *AccountsAccessBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  7757  	gensupport.SetOptions(c.urlParams_, opts...)
  7758  	res, err := c.doRequest("json")
  7759  	if res != nil && res.StatusCode == http.StatusNotModified {
  7760  		if res.Body != nil {
  7761  			res.Body.Close()
  7762  		}
  7763  		return nil, gensupport.WrapError(&googleapi.Error{
  7764  			Code:   res.StatusCode,
  7765  			Header: res.Header,
  7766  		})
  7767  	}
  7768  	if err != nil {
  7769  		return nil, err
  7770  	}
  7771  	defer googleapi.CloseBody(res)
  7772  	if err := googleapi.CheckResponse(res); err != nil {
  7773  		return nil, gensupport.WrapError(err)
  7774  	}
  7775  	ret := &GoogleProtobufEmpty{
  7776  		ServerResponse: googleapi.ServerResponse{
  7777  			Header:         res.Header,
  7778  			HTTPStatusCode: res.StatusCode,
  7779  		},
  7780  	}
  7781  	target := &ret
  7782  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7783  		return nil, err
  7784  	}
  7785  	return ret, nil
  7786  }
  7787  
  7788  type AccountsAccessBindingsGetCall struct {
  7789  	s            *Service
  7790  	name         string
  7791  	urlParams_   gensupport.URLParams
  7792  	ifNoneMatch_ string
  7793  	ctx_         context.Context
  7794  	header_      http.Header
  7795  }
  7796  
  7797  // Get: Gets information about an access binding.
  7798  //
  7799  //   - name: The name of the access binding to retrieve. Formats: -
  7800  //     accounts/{account}/accessBindings/{accessBinding} -
  7801  //     properties/{property}/accessBindings/{accessBinding}.
  7802  func (r *AccountsAccessBindingsService) Get(name string) *AccountsAccessBindingsGetCall {
  7803  	c := &AccountsAccessBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7804  	c.name = name
  7805  	return c
  7806  }
  7807  
  7808  // Fields allows partial responses to be retrieved. See
  7809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7810  // details.
  7811  func (c *AccountsAccessBindingsGetCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsGetCall {
  7812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7813  	return c
  7814  }
  7815  
  7816  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7817  // object's ETag matches the given value. This is useful for getting updates
  7818  // only after the object has changed since the last request.
  7819  func (c *AccountsAccessBindingsGetCall) IfNoneMatch(entityTag string) *AccountsAccessBindingsGetCall {
  7820  	c.ifNoneMatch_ = entityTag
  7821  	return c
  7822  }
  7823  
  7824  // Context sets the context to be used in this call's Do method.
  7825  func (c *AccountsAccessBindingsGetCall) Context(ctx context.Context) *AccountsAccessBindingsGetCall {
  7826  	c.ctx_ = ctx
  7827  	return c
  7828  }
  7829  
  7830  // Header returns a http.Header that can be modified by the caller to add
  7831  // headers to the request.
  7832  func (c *AccountsAccessBindingsGetCall) Header() http.Header {
  7833  	if c.header_ == nil {
  7834  		c.header_ = make(http.Header)
  7835  	}
  7836  	return c.header_
  7837  }
  7838  
  7839  func (c *AccountsAccessBindingsGetCall) doRequest(alt string) (*http.Response, error) {
  7840  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7841  	if c.ifNoneMatch_ != "" {
  7842  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7843  	}
  7844  	var body io.Reader = nil
  7845  	c.urlParams_.Set("alt", alt)
  7846  	c.urlParams_.Set("prettyPrint", "false")
  7847  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  7848  	urls += "?" + c.urlParams_.Encode()
  7849  	req, err := http.NewRequest("GET", urls, body)
  7850  	if err != nil {
  7851  		return nil, err
  7852  	}
  7853  	req.Header = reqHeaders
  7854  	googleapi.Expand(req.URL, map[string]string{
  7855  		"name": c.name,
  7856  	})
  7857  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7858  }
  7859  
  7860  // Do executes the "analyticsadmin.accounts.accessBindings.get" call.
  7861  // Any non-2xx status code is an error. Response headers are in either
  7862  // *GoogleAnalyticsAdminV1alphaAccessBinding.ServerResponse.Header or (if a
  7863  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7864  // googleapi.IsNotModified to check whether the returned error was because
  7865  // http.StatusNotModified was returned.
  7866  func (c *AccountsAccessBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) {
  7867  	gensupport.SetOptions(c.urlParams_, opts...)
  7868  	res, err := c.doRequest("json")
  7869  	if res != nil && res.StatusCode == http.StatusNotModified {
  7870  		if res.Body != nil {
  7871  			res.Body.Close()
  7872  		}
  7873  		return nil, gensupport.WrapError(&googleapi.Error{
  7874  			Code:   res.StatusCode,
  7875  			Header: res.Header,
  7876  		})
  7877  	}
  7878  	if err != nil {
  7879  		return nil, err
  7880  	}
  7881  	defer googleapi.CloseBody(res)
  7882  	if err := googleapi.CheckResponse(res); err != nil {
  7883  		return nil, gensupport.WrapError(err)
  7884  	}
  7885  	ret := &GoogleAnalyticsAdminV1alphaAccessBinding{
  7886  		ServerResponse: googleapi.ServerResponse{
  7887  			Header:         res.Header,
  7888  			HTTPStatusCode: res.StatusCode,
  7889  		},
  7890  	}
  7891  	target := &ret
  7892  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7893  		return nil, err
  7894  	}
  7895  	return ret, nil
  7896  }
  7897  
  7898  type AccountsAccessBindingsListCall struct {
  7899  	s            *Service
  7900  	parent       string
  7901  	urlParams_   gensupport.URLParams
  7902  	ifNoneMatch_ string
  7903  	ctx_         context.Context
  7904  	header_      http.Header
  7905  }
  7906  
  7907  // List: Lists all access bindings on an account or property.
  7908  //
  7909  // - parent: Formats: - accounts/{account} - properties/{property}.
  7910  func (r *AccountsAccessBindingsService) List(parent string) *AccountsAccessBindingsListCall {
  7911  	c := &AccountsAccessBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7912  	c.parent = parent
  7913  	return c
  7914  }
  7915  
  7916  // PageSize sets the optional parameter "pageSize": The maximum number of
  7917  // access bindings to return. The service may return fewer than this value. If
  7918  // unspecified, at most 200 access bindings will be returned. The maximum value
  7919  // is 500; values above 500 will be coerced to 500.
  7920  func (c *AccountsAccessBindingsListCall) PageSize(pageSize int64) *AccountsAccessBindingsListCall {
  7921  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7922  	return c
  7923  }
  7924  
  7925  // PageToken sets the optional parameter "pageToken": A page token, received
  7926  // from a previous `ListAccessBindings` call. Provide this to retrieve the
  7927  // subsequent page. When paginating, all other parameters provided to
  7928  // `ListAccessBindings` must match the call that provided the page token.
  7929  func (c *AccountsAccessBindingsListCall) PageToken(pageToken string) *AccountsAccessBindingsListCall {
  7930  	c.urlParams_.Set("pageToken", pageToken)
  7931  	return c
  7932  }
  7933  
  7934  // Fields allows partial responses to be retrieved. See
  7935  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7936  // details.
  7937  func (c *AccountsAccessBindingsListCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsListCall {
  7938  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7939  	return c
  7940  }
  7941  
  7942  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7943  // object's ETag matches the given value. This is useful for getting updates
  7944  // only after the object has changed since the last request.
  7945  func (c *AccountsAccessBindingsListCall) IfNoneMatch(entityTag string) *AccountsAccessBindingsListCall {
  7946  	c.ifNoneMatch_ = entityTag
  7947  	return c
  7948  }
  7949  
  7950  // Context sets the context to be used in this call's Do method.
  7951  func (c *AccountsAccessBindingsListCall) Context(ctx context.Context) *AccountsAccessBindingsListCall {
  7952  	c.ctx_ = ctx
  7953  	return c
  7954  }
  7955  
  7956  // Header returns a http.Header that can be modified by the caller to add
  7957  // headers to the request.
  7958  func (c *AccountsAccessBindingsListCall) Header() http.Header {
  7959  	if c.header_ == nil {
  7960  		c.header_ = make(http.Header)
  7961  	}
  7962  	return c.header_
  7963  }
  7964  
  7965  func (c *AccountsAccessBindingsListCall) doRequest(alt string) (*http.Response, error) {
  7966  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7967  	if c.ifNoneMatch_ != "" {
  7968  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7969  	}
  7970  	var body io.Reader = nil
  7971  	c.urlParams_.Set("alt", alt)
  7972  	c.urlParams_.Set("prettyPrint", "false")
  7973  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings")
  7974  	urls += "?" + c.urlParams_.Encode()
  7975  	req, err := http.NewRequest("GET", urls, body)
  7976  	if err != nil {
  7977  		return nil, err
  7978  	}
  7979  	req.Header = reqHeaders
  7980  	googleapi.Expand(req.URL, map[string]string{
  7981  		"parent": c.parent,
  7982  	})
  7983  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7984  }
  7985  
  7986  // Do executes the "analyticsadmin.accounts.accessBindings.list" call.
  7987  // Any non-2xx status code is an error. Response headers are in either
  7988  // *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse.ServerResponse.Header
  7989  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  7990  // Use googleapi.IsNotModified to check whether the returned error was because
  7991  // http.StatusNotModified was returned.
  7992  func (c *AccountsAccessBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse, error) {
  7993  	gensupport.SetOptions(c.urlParams_, opts...)
  7994  	res, err := c.doRequest("json")
  7995  	if res != nil && res.StatusCode == http.StatusNotModified {
  7996  		if res.Body != nil {
  7997  			res.Body.Close()
  7998  		}
  7999  		return nil, gensupport.WrapError(&googleapi.Error{
  8000  			Code:   res.StatusCode,
  8001  			Header: res.Header,
  8002  		})
  8003  	}
  8004  	if err != nil {
  8005  		return nil, err
  8006  	}
  8007  	defer googleapi.CloseBody(res)
  8008  	if err := googleapi.CheckResponse(res); err != nil {
  8009  		return nil, gensupport.WrapError(err)
  8010  	}
  8011  	ret := &GoogleAnalyticsAdminV1alphaListAccessBindingsResponse{
  8012  		ServerResponse: googleapi.ServerResponse{
  8013  			Header:         res.Header,
  8014  			HTTPStatusCode: res.StatusCode,
  8015  		},
  8016  	}
  8017  	target := &ret
  8018  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8019  		return nil, err
  8020  	}
  8021  	return ret, nil
  8022  }
  8023  
  8024  // Pages invokes f for each page of results.
  8025  // A non-nil error returned from f will halt the iteration.
  8026  // The provided context supersedes any context provided to the Context method.
  8027  func (c *AccountsAccessBindingsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse) error) error {
  8028  	c.ctx_ = ctx
  8029  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8030  	for {
  8031  		x, err := c.Do()
  8032  		if err != nil {
  8033  			return err
  8034  		}
  8035  		if err := f(x); err != nil {
  8036  			return err
  8037  		}
  8038  		if x.NextPageToken == "" {
  8039  			return nil
  8040  		}
  8041  		c.PageToken(x.NextPageToken)
  8042  	}
  8043  }
  8044  
  8045  type AccountsAccessBindingsPatchCall struct {
  8046  	s                                        *Service
  8047  	name                                     string
  8048  	googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding
  8049  	urlParams_                               gensupport.URLParams
  8050  	ctx_                                     context.Context
  8051  	header_                                  http.Header
  8052  }
  8053  
  8054  // Patch: Updates an access binding on an account or property.
  8055  //
  8056  //   - name: Output only. Resource name of this binding. Format:
  8057  //     accounts/{account}/accessBindings/{access_binding} or
  8058  //     properties/{property}/accessBindings/{access_binding} Example:
  8059  //     "accounts/100/accessBindings/200".
  8060  func (r *AccountsAccessBindingsService) Patch(name string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *AccountsAccessBindingsPatchCall {
  8061  	c := &AccountsAccessBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8062  	c.name = name
  8063  	c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding
  8064  	return c
  8065  }
  8066  
  8067  // Fields allows partial responses to be retrieved. See
  8068  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8069  // details.
  8070  func (c *AccountsAccessBindingsPatchCall) Fields(s ...googleapi.Field) *AccountsAccessBindingsPatchCall {
  8071  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8072  	return c
  8073  }
  8074  
  8075  // Context sets the context to be used in this call's Do method.
  8076  func (c *AccountsAccessBindingsPatchCall) Context(ctx context.Context) *AccountsAccessBindingsPatchCall {
  8077  	c.ctx_ = ctx
  8078  	return c
  8079  }
  8080  
  8081  // Header returns a http.Header that can be modified by the caller to add
  8082  // headers to the request.
  8083  func (c *AccountsAccessBindingsPatchCall) Header() http.Header {
  8084  	if c.header_ == nil {
  8085  		c.header_ = make(http.Header)
  8086  	}
  8087  	return c.header_
  8088  }
  8089  
  8090  func (c *AccountsAccessBindingsPatchCall) doRequest(alt string) (*http.Response, error) {
  8091  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8092  	var body io.Reader = nil
  8093  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding)
  8094  	if err != nil {
  8095  		return nil, err
  8096  	}
  8097  	c.urlParams_.Set("alt", alt)
  8098  	c.urlParams_.Set("prettyPrint", "false")
  8099  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  8100  	urls += "?" + c.urlParams_.Encode()
  8101  	req, err := http.NewRequest("PATCH", urls, body)
  8102  	if err != nil {
  8103  		return nil, err
  8104  	}
  8105  	req.Header = reqHeaders
  8106  	googleapi.Expand(req.URL, map[string]string{
  8107  		"name": c.name,
  8108  	})
  8109  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8110  }
  8111  
  8112  // Do executes the "analyticsadmin.accounts.accessBindings.patch" call.
  8113  // Any non-2xx status code is an error. Response headers are in either
  8114  // *GoogleAnalyticsAdminV1alphaAccessBinding.ServerResponse.Header or (if a
  8115  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8116  // googleapi.IsNotModified to check whether the returned error was because
  8117  // http.StatusNotModified was returned.
  8118  func (c *AccountsAccessBindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) {
  8119  	gensupport.SetOptions(c.urlParams_, opts...)
  8120  	res, err := c.doRequest("json")
  8121  	if res != nil && res.StatusCode == http.StatusNotModified {
  8122  		if res.Body != nil {
  8123  			res.Body.Close()
  8124  		}
  8125  		return nil, gensupport.WrapError(&googleapi.Error{
  8126  			Code:   res.StatusCode,
  8127  			Header: res.Header,
  8128  		})
  8129  	}
  8130  	if err != nil {
  8131  		return nil, err
  8132  	}
  8133  	defer googleapi.CloseBody(res)
  8134  	if err := googleapi.CheckResponse(res); err != nil {
  8135  		return nil, gensupport.WrapError(err)
  8136  	}
  8137  	ret := &GoogleAnalyticsAdminV1alphaAccessBinding{
  8138  		ServerResponse: googleapi.ServerResponse{
  8139  			Header:         res.Header,
  8140  			HTTPStatusCode: res.StatusCode,
  8141  		},
  8142  	}
  8143  	target := &ret
  8144  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8145  		return nil, err
  8146  	}
  8147  	return ret, nil
  8148  }
  8149  
  8150  type PropertiesAcknowledgeUserDataCollectionCall struct {
  8151  	s                                                               *Service
  8152  	property                                                        string
  8153  	googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest
  8154  	urlParams_                                                      gensupport.URLParams
  8155  	ctx_                                                            context.Context
  8156  	header_                                                         http.Header
  8157  }
  8158  
  8159  // AcknowledgeUserDataCollection: Acknowledges the terms of user data
  8160  // collection for the specified property. This acknowledgement must be
  8161  // completed (either in the Google Analytics UI or through this API) before
  8162  // MeasurementProtocolSecret resources may be created.
  8163  //
  8164  // - property: The property for which to acknowledge user data collection.
  8165  func (r *PropertiesService) AcknowledgeUserDataCollection(property string, googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest) *PropertiesAcknowledgeUserDataCollectionCall {
  8166  	c := &PropertiesAcknowledgeUserDataCollectionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8167  	c.property = property
  8168  	c.googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest = googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest
  8169  	return c
  8170  }
  8171  
  8172  // Fields allows partial responses to be retrieved. See
  8173  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8174  // details.
  8175  func (c *PropertiesAcknowledgeUserDataCollectionCall) Fields(s ...googleapi.Field) *PropertiesAcknowledgeUserDataCollectionCall {
  8176  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8177  	return c
  8178  }
  8179  
  8180  // Context sets the context to be used in this call's Do method.
  8181  func (c *PropertiesAcknowledgeUserDataCollectionCall) Context(ctx context.Context) *PropertiesAcknowledgeUserDataCollectionCall {
  8182  	c.ctx_ = ctx
  8183  	return c
  8184  }
  8185  
  8186  // Header returns a http.Header that can be modified by the caller to add
  8187  // headers to the request.
  8188  func (c *PropertiesAcknowledgeUserDataCollectionCall) Header() http.Header {
  8189  	if c.header_ == nil {
  8190  		c.header_ = make(http.Header)
  8191  	}
  8192  	return c.header_
  8193  }
  8194  
  8195  func (c *PropertiesAcknowledgeUserDataCollectionCall) doRequest(alt string) (*http.Response, error) {
  8196  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8197  	var body io.Reader = nil
  8198  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaacknowledgeuserdatacollectionrequest)
  8199  	if err != nil {
  8200  		return nil, err
  8201  	}
  8202  	c.urlParams_.Set("alt", alt)
  8203  	c.urlParams_.Set("prettyPrint", "false")
  8204  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+property}:acknowledgeUserDataCollection")
  8205  	urls += "?" + c.urlParams_.Encode()
  8206  	req, err := http.NewRequest("POST", urls, body)
  8207  	if err != nil {
  8208  		return nil, err
  8209  	}
  8210  	req.Header = reqHeaders
  8211  	googleapi.Expand(req.URL, map[string]string{
  8212  		"property": c.property,
  8213  	})
  8214  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8215  }
  8216  
  8217  // Do executes the "analyticsadmin.properties.acknowledgeUserDataCollection" call.
  8218  // Any non-2xx status code is an error. Response headers are in either
  8219  // *GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse.ServerRespo
  8220  // nse.Header or (if a response was returned at all) in
  8221  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8222  // whether the returned error was because http.StatusNotModified was returned.
  8223  func (c *PropertiesAcknowledgeUserDataCollectionCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse, error) {
  8224  	gensupport.SetOptions(c.urlParams_, opts...)
  8225  	res, err := c.doRequest("json")
  8226  	if res != nil && res.StatusCode == http.StatusNotModified {
  8227  		if res.Body != nil {
  8228  			res.Body.Close()
  8229  		}
  8230  		return nil, gensupport.WrapError(&googleapi.Error{
  8231  			Code:   res.StatusCode,
  8232  			Header: res.Header,
  8233  		})
  8234  	}
  8235  	if err != nil {
  8236  		return nil, err
  8237  	}
  8238  	defer googleapi.CloseBody(res)
  8239  	if err := googleapi.CheckResponse(res); err != nil {
  8240  		return nil, gensupport.WrapError(err)
  8241  	}
  8242  	ret := &GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse{
  8243  		ServerResponse: googleapi.ServerResponse{
  8244  			Header:         res.Header,
  8245  			HTTPStatusCode: res.StatusCode,
  8246  		},
  8247  	}
  8248  	target := &ret
  8249  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8250  		return nil, err
  8251  	}
  8252  	return ret, nil
  8253  }
  8254  
  8255  type PropertiesCreateCall struct {
  8256  	s                                   *Service
  8257  	googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty
  8258  	urlParams_                          gensupport.URLParams
  8259  	ctx_                                context.Context
  8260  	header_                             http.Header
  8261  }
  8262  
  8263  // Create: Creates an "GA4" property with the specified location and
  8264  // attributes.
  8265  func (r *PropertiesService) Create(googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty) *PropertiesCreateCall {
  8266  	c := &PropertiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8267  	c.googleanalyticsadminv1alphaproperty = googleanalyticsadminv1alphaproperty
  8268  	return c
  8269  }
  8270  
  8271  // Fields allows partial responses to be retrieved. See
  8272  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8273  // details.
  8274  func (c *PropertiesCreateCall) Fields(s ...googleapi.Field) *PropertiesCreateCall {
  8275  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8276  	return c
  8277  }
  8278  
  8279  // Context sets the context to be used in this call's Do method.
  8280  func (c *PropertiesCreateCall) Context(ctx context.Context) *PropertiesCreateCall {
  8281  	c.ctx_ = ctx
  8282  	return c
  8283  }
  8284  
  8285  // Header returns a http.Header that can be modified by the caller to add
  8286  // headers to the request.
  8287  func (c *PropertiesCreateCall) Header() http.Header {
  8288  	if c.header_ == nil {
  8289  		c.header_ = make(http.Header)
  8290  	}
  8291  	return c.header_
  8292  }
  8293  
  8294  func (c *PropertiesCreateCall) doRequest(alt string) (*http.Response, error) {
  8295  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8296  	var body io.Reader = nil
  8297  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaproperty)
  8298  	if err != nil {
  8299  		return nil, err
  8300  	}
  8301  	c.urlParams_.Set("alt", alt)
  8302  	c.urlParams_.Set("prettyPrint", "false")
  8303  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties")
  8304  	urls += "?" + c.urlParams_.Encode()
  8305  	req, err := http.NewRequest("POST", urls, body)
  8306  	if err != nil {
  8307  		return nil, err
  8308  	}
  8309  	req.Header = reqHeaders
  8310  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8311  }
  8312  
  8313  // Do executes the "analyticsadmin.properties.create" call.
  8314  // Any non-2xx status code is an error. Response headers are in either
  8315  // *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or (if a response
  8316  // was returned at all) in error.(*googleapi.Error).Header. Use
  8317  // googleapi.IsNotModified to check whether the returned error was because
  8318  // http.StatusNotModified was returned.
  8319  func (c *PropertiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) {
  8320  	gensupport.SetOptions(c.urlParams_, opts...)
  8321  	res, err := c.doRequest("json")
  8322  	if res != nil && res.StatusCode == http.StatusNotModified {
  8323  		if res.Body != nil {
  8324  			res.Body.Close()
  8325  		}
  8326  		return nil, gensupport.WrapError(&googleapi.Error{
  8327  			Code:   res.StatusCode,
  8328  			Header: res.Header,
  8329  		})
  8330  	}
  8331  	if err != nil {
  8332  		return nil, err
  8333  	}
  8334  	defer googleapi.CloseBody(res)
  8335  	if err := googleapi.CheckResponse(res); err != nil {
  8336  		return nil, gensupport.WrapError(err)
  8337  	}
  8338  	ret := &GoogleAnalyticsAdminV1alphaProperty{
  8339  		ServerResponse: googleapi.ServerResponse{
  8340  			Header:         res.Header,
  8341  			HTTPStatusCode: res.StatusCode,
  8342  		},
  8343  	}
  8344  	target := &ret
  8345  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8346  		return nil, err
  8347  	}
  8348  	return ret, nil
  8349  }
  8350  
  8351  type PropertiesCreateConnectedSiteTagCall struct {
  8352  	s                                                        *Service
  8353  	googleanalyticsadminv1alphacreateconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest
  8354  	urlParams_                                               gensupport.URLParams
  8355  	ctx_                                                     context.Context
  8356  	header_                                                  http.Header
  8357  }
  8358  
  8359  // CreateConnectedSiteTag: Creates a connected site tag for a Universal
  8360  // Analytics property. You can create a maximum of 20 connected site tags per
  8361  // property. Note: This API cannot be used on GA4 properties.
  8362  func (r *PropertiesService) CreateConnectedSiteTag(googleanalyticsadminv1alphacreateconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest) *PropertiesCreateConnectedSiteTagCall {
  8363  	c := &PropertiesCreateConnectedSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8364  	c.googleanalyticsadminv1alphacreateconnectedsitetagrequest = googleanalyticsadminv1alphacreateconnectedsitetagrequest
  8365  	return c
  8366  }
  8367  
  8368  // Fields allows partial responses to be retrieved. See
  8369  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8370  // details.
  8371  func (c *PropertiesCreateConnectedSiteTagCall) Fields(s ...googleapi.Field) *PropertiesCreateConnectedSiteTagCall {
  8372  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8373  	return c
  8374  }
  8375  
  8376  // Context sets the context to be used in this call's Do method.
  8377  func (c *PropertiesCreateConnectedSiteTagCall) Context(ctx context.Context) *PropertiesCreateConnectedSiteTagCall {
  8378  	c.ctx_ = ctx
  8379  	return c
  8380  }
  8381  
  8382  // Header returns a http.Header that can be modified by the caller to add
  8383  // headers to the request.
  8384  func (c *PropertiesCreateConnectedSiteTagCall) Header() http.Header {
  8385  	if c.header_ == nil {
  8386  		c.header_ = make(http.Header)
  8387  	}
  8388  	return c.header_
  8389  }
  8390  
  8391  func (c *PropertiesCreateConnectedSiteTagCall) doRequest(alt string) (*http.Response, error) {
  8392  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8393  	var body io.Reader = nil
  8394  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacreateconnectedsitetagrequest)
  8395  	if err != nil {
  8396  		return nil, err
  8397  	}
  8398  	c.urlParams_.Set("alt", alt)
  8399  	c.urlParams_.Set("prettyPrint", "false")
  8400  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:createConnectedSiteTag")
  8401  	urls += "?" + c.urlParams_.Encode()
  8402  	req, err := http.NewRequest("POST", urls, body)
  8403  	if err != nil {
  8404  		return nil, err
  8405  	}
  8406  	req.Header = reqHeaders
  8407  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8408  }
  8409  
  8410  // Do executes the "analyticsadmin.properties.createConnectedSiteTag" call.
  8411  // Any non-2xx status code is an error. Response headers are in either
  8412  // *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse.ServerResponse.Hea
  8413  // der or (if a response was returned at all) in
  8414  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8415  // whether the returned error was because http.StatusNotModified was returned.
  8416  func (c *PropertiesCreateConnectedSiteTagCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse, error) {
  8417  	gensupport.SetOptions(c.urlParams_, opts...)
  8418  	res, err := c.doRequest("json")
  8419  	if res != nil && res.StatusCode == http.StatusNotModified {
  8420  		if res.Body != nil {
  8421  			res.Body.Close()
  8422  		}
  8423  		return nil, gensupport.WrapError(&googleapi.Error{
  8424  			Code:   res.StatusCode,
  8425  			Header: res.Header,
  8426  		})
  8427  	}
  8428  	if err != nil {
  8429  		return nil, err
  8430  	}
  8431  	defer googleapi.CloseBody(res)
  8432  	if err := googleapi.CheckResponse(res); err != nil {
  8433  		return nil, gensupport.WrapError(err)
  8434  	}
  8435  	ret := &GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse{
  8436  		ServerResponse: googleapi.ServerResponse{
  8437  			Header:         res.Header,
  8438  			HTTPStatusCode: res.StatusCode,
  8439  		},
  8440  	}
  8441  	target := &ret
  8442  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8443  		return nil, err
  8444  	}
  8445  	return ret, nil
  8446  }
  8447  
  8448  type PropertiesCreateRollupPropertyCall struct {
  8449  	s                                                      *Service
  8450  	googleanalyticsadminv1alphacreaterolluppropertyrequest *GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest
  8451  	urlParams_                                             gensupport.URLParams
  8452  	ctx_                                                   context.Context
  8453  	header_                                                http.Header
  8454  }
  8455  
  8456  // CreateRollupProperty: Create a roll-up property and all roll-up property
  8457  // source links.
  8458  func (r *PropertiesService) CreateRollupProperty(googleanalyticsadminv1alphacreaterolluppropertyrequest *GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest) *PropertiesCreateRollupPropertyCall {
  8459  	c := &PropertiesCreateRollupPropertyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8460  	c.googleanalyticsadminv1alphacreaterolluppropertyrequest = googleanalyticsadminv1alphacreaterolluppropertyrequest
  8461  	return c
  8462  }
  8463  
  8464  // Fields allows partial responses to be retrieved. See
  8465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8466  // details.
  8467  func (c *PropertiesCreateRollupPropertyCall) Fields(s ...googleapi.Field) *PropertiesCreateRollupPropertyCall {
  8468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8469  	return c
  8470  }
  8471  
  8472  // Context sets the context to be used in this call's Do method.
  8473  func (c *PropertiesCreateRollupPropertyCall) Context(ctx context.Context) *PropertiesCreateRollupPropertyCall {
  8474  	c.ctx_ = ctx
  8475  	return c
  8476  }
  8477  
  8478  // Header returns a http.Header that can be modified by the caller to add
  8479  // headers to the request.
  8480  func (c *PropertiesCreateRollupPropertyCall) Header() http.Header {
  8481  	if c.header_ == nil {
  8482  		c.header_ = make(http.Header)
  8483  	}
  8484  	return c.header_
  8485  }
  8486  
  8487  func (c *PropertiesCreateRollupPropertyCall) doRequest(alt string) (*http.Response, error) {
  8488  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8489  	var body io.Reader = nil
  8490  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacreaterolluppropertyrequest)
  8491  	if err != nil {
  8492  		return nil, err
  8493  	}
  8494  	c.urlParams_.Set("alt", alt)
  8495  	c.urlParams_.Set("prettyPrint", "false")
  8496  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:createRollupProperty")
  8497  	urls += "?" + c.urlParams_.Encode()
  8498  	req, err := http.NewRequest("POST", urls, body)
  8499  	if err != nil {
  8500  		return nil, err
  8501  	}
  8502  	req.Header = reqHeaders
  8503  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8504  }
  8505  
  8506  // Do executes the "analyticsadmin.properties.createRollupProperty" call.
  8507  // Any non-2xx status code is an error. Response headers are in either
  8508  // *GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse.ServerResponse.Heade
  8509  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
  8510  // Use googleapi.IsNotModified to check whether the returned error was because
  8511  // http.StatusNotModified was returned.
  8512  func (c *PropertiesCreateRollupPropertyCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse, error) {
  8513  	gensupport.SetOptions(c.urlParams_, opts...)
  8514  	res, err := c.doRequest("json")
  8515  	if res != nil && res.StatusCode == http.StatusNotModified {
  8516  		if res.Body != nil {
  8517  			res.Body.Close()
  8518  		}
  8519  		return nil, gensupport.WrapError(&googleapi.Error{
  8520  			Code:   res.StatusCode,
  8521  			Header: res.Header,
  8522  		})
  8523  	}
  8524  	if err != nil {
  8525  		return nil, err
  8526  	}
  8527  	defer googleapi.CloseBody(res)
  8528  	if err := googleapi.CheckResponse(res); err != nil {
  8529  		return nil, gensupport.WrapError(err)
  8530  	}
  8531  	ret := &GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse{
  8532  		ServerResponse: googleapi.ServerResponse{
  8533  			Header:         res.Header,
  8534  			HTTPStatusCode: res.StatusCode,
  8535  		},
  8536  	}
  8537  	target := &ret
  8538  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8539  		return nil, err
  8540  	}
  8541  	return ret, nil
  8542  }
  8543  
  8544  type PropertiesCreateSubpropertyCall struct {
  8545  	s                                                   *Service
  8546  	googleanalyticsadminv1alphacreatesubpropertyrequest *GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest
  8547  	urlParams_                                          gensupport.URLParams
  8548  	ctx_                                                context.Context
  8549  	header_                                             http.Header
  8550  }
  8551  
  8552  // CreateSubproperty: Create a subproperty and a subproperty event filter that
  8553  // applies to the created subproperty.
  8554  func (r *PropertiesService) CreateSubproperty(googleanalyticsadminv1alphacreatesubpropertyrequest *GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest) *PropertiesCreateSubpropertyCall {
  8555  	c := &PropertiesCreateSubpropertyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8556  	c.googleanalyticsadminv1alphacreatesubpropertyrequest = googleanalyticsadminv1alphacreatesubpropertyrequest
  8557  	return c
  8558  }
  8559  
  8560  // Fields allows partial responses to be retrieved. See
  8561  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8562  // details.
  8563  func (c *PropertiesCreateSubpropertyCall) Fields(s ...googleapi.Field) *PropertiesCreateSubpropertyCall {
  8564  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8565  	return c
  8566  }
  8567  
  8568  // Context sets the context to be used in this call's Do method.
  8569  func (c *PropertiesCreateSubpropertyCall) Context(ctx context.Context) *PropertiesCreateSubpropertyCall {
  8570  	c.ctx_ = ctx
  8571  	return c
  8572  }
  8573  
  8574  // Header returns a http.Header that can be modified by the caller to add
  8575  // headers to the request.
  8576  func (c *PropertiesCreateSubpropertyCall) Header() http.Header {
  8577  	if c.header_ == nil {
  8578  		c.header_ = make(http.Header)
  8579  	}
  8580  	return c.header_
  8581  }
  8582  
  8583  func (c *PropertiesCreateSubpropertyCall) doRequest(alt string) (*http.Response, error) {
  8584  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8585  	var body io.Reader = nil
  8586  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacreatesubpropertyrequest)
  8587  	if err != nil {
  8588  		return nil, err
  8589  	}
  8590  	c.urlParams_.Set("alt", alt)
  8591  	c.urlParams_.Set("prettyPrint", "false")
  8592  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:createSubproperty")
  8593  	urls += "?" + c.urlParams_.Encode()
  8594  	req, err := http.NewRequest("POST", urls, body)
  8595  	if err != nil {
  8596  		return nil, err
  8597  	}
  8598  	req.Header = reqHeaders
  8599  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8600  }
  8601  
  8602  // Do executes the "analyticsadmin.properties.createSubproperty" call.
  8603  // Any non-2xx status code is an error. Response headers are in either
  8604  // *GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse.ServerResponse.Header
  8605  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  8606  // Use googleapi.IsNotModified to check whether the returned error was because
  8607  // http.StatusNotModified was returned.
  8608  func (c *PropertiesCreateSubpropertyCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse, error) {
  8609  	gensupport.SetOptions(c.urlParams_, opts...)
  8610  	res, err := c.doRequest("json")
  8611  	if res != nil && res.StatusCode == http.StatusNotModified {
  8612  		if res.Body != nil {
  8613  			res.Body.Close()
  8614  		}
  8615  		return nil, gensupport.WrapError(&googleapi.Error{
  8616  			Code:   res.StatusCode,
  8617  			Header: res.Header,
  8618  		})
  8619  	}
  8620  	if err != nil {
  8621  		return nil, err
  8622  	}
  8623  	defer googleapi.CloseBody(res)
  8624  	if err := googleapi.CheckResponse(res); err != nil {
  8625  		return nil, gensupport.WrapError(err)
  8626  	}
  8627  	ret := &GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse{
  8628  		ServerResponse: googleapi.ServerResponse{
  8629  			Header:         res.Header,
  8630  			HTTPStatusCode: res.StatusCode,
  8631  		},
  8632  	}
  8633  	target := &ret
  8634  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8635  		return nil, err
  8636  	}
  8637  	return ret, nil
  8638  }
  8639  
  8640  type PropertiesDeleteCall struct {
  8641  	s          *Service
  8642  	name       string
  8643  	urlParams_ gensupport.URLParams
  8644  	ctx_       context.Context
  8645  	header_    http.Header
  8646  }
  8647  
  8648  // Delete: Marks target Property as soft-deleted (ie: "trashed") and returns
  8649  // it. This API does not have a method to restore soft-deleted properties.
  8650  // However, they can be restored using the Trash Can UI. If the properties are
  8651  // not restored before the expiration time, the Property and all child
  8652  // resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently
  8653  // purged. https://support.google.com/analytics/answer/6154772 Returns an error
  8654  // if the target is not found, or is not a GA4 Property.
  8655  //
  8656  //   - name: The name of the Property to soft-delete. Format:
  8657  //     properties/{property_id} Example: "properties/1000".
  8658  func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall {
  8659  	c := &PropertiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8660  	c.name = name
  8661  	return c
  8662  }
  8663  
  8664  // Fields allows partial responses to be retrieved. See
  8665  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8666  // details.
  8667  func (c *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall {
  8668  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8669  	return c
  8670  }
  8671  
  8672  // Context sets the context to be used in this call's Do method.
  8673  func (c *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall {
  8674  	c.ctx_ = ctx
  8675  	return c
  8676  }
  8677  
  8678  // Header returns a http.Header that can be modified by the caller to add
  8679  // headers to the request.
  8680  func (c *PropertiesDeleteCall) Header() http.Header {
  8681  	if c.header_ == nil {
  8682  		c.header_ = make(http.Header)
  8683  	}
  8684  	return c.header_
  8685  }
  8686  
  8687  func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) {
  8688  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8689  	var body io.Reader = nil
  8690  	c.urlParams_.Set("alt", alt)
  8691  	c.urlParams_.Set("prettyPrint", "false")
  8692  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  8693  	urls += "?" + c.urlParams_.Encode()
  8694  	req, err := http.NewRequest("DELETE", urls, body)
  8695  	if err != nil {
  8696  		return nil, err
  8697  	}
  8698  	req.Header = reqHeaders
  8699  	googleapi.Expand(req.URL, map[string]string{
  8700  		"name": c.name,
  8701  	})
  8702  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8703  }
  8704  
  8705  // Do executes the "analyticsadmin.properties.delete" call.
  8706  // Any non-2xx status code is an error. Response headers are in either
  8707  // *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or (if a response
  8708  // was returned at all) in error.(*googleapi.Error).Header. Use
  8709  // googleapi.IsNotModified to check whether the returned error was because
  8710  // http.StatusNotModified was returned.
  8711  func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) {
  8712  	gensupport.SetOptions(c.urlParams_, opts...)
  8713  	res, err := c.doRequest("json")
  8714  	if res != nil && res.StatusCode == http.StatusNotModified {
  8715  		if res.Body != nil {
  8716  			res.Body.Close()
  8717  		}
  8718  		return nil, gensupport.WrapError(&googleapi.Error{
  8719  			Code:   res.StatusCode,
  8720  			Header: res.Header,
  8721  		})
  8722  	}
  8723  	if err != nil {
  8724  		return nil, err
  8725  	}
  8726  	defer googleapi.CloseBody(res)
  8727  	if err := googleapi.CheckResponse(res); err != nil {
  8728  		return nil, gensupport.WrapError(err)
  8729  	}
  8730  	ret := &GoogleAnalyticsAdminV1alphaProperty{
  8731  		ServerResponse: googleapi.ServerResponse{
  8732  			Header:         res.Header,
  8733  			HTTPStatusCode: res.StatusCode,
  8734  		},
  8735  	}
  8736  	target := &ret
  8737  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8738  		return nil, err
  8739  	}
  8740  	return ret, nil
  8741  }
  8742  
  8743  type PropertiesDeleteConnectedSiteTagCall struct {
  8744  	s                                                        *Service
  8745  	googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest
  8746  	urlParams_                                               gensupport.URLParams
  8747  	ctx_                                                     context.Context
  8748  	header_                                                  http.Header
  8749  }
  8750  
  8751  // DeleteConnectedSiteTag: Deletes a connected site tag for a Universal
  8752  // Analytics property. Note: this has no effect on GA4 properties.
  8753  func (r *PropertiesService) DeleteConnectedSiteTag(googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest) *PropertiesDeleteConnectedSiteTagCall {
  8754  	c := &PropertiesDeleteConnectedSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8755  	c.googleanalyticsadminv1alphadeleteconnectedsitetagrequest = googleanalyticsadminv1alphadeleteconnectedsitetagrequest
  8756  	return c
  8757  }
  8758  
  8759  // Fields allows partial responses to be retrieved. See
  8760  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8761  // details.
  8762  func (c *PropertiesDeleteConnectedSiteTagCall) Fields(s ...googleapi.Field) *PropertiesDeleteConnectedSiteTagCall {
  8763  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8764  	return c
  8765  }
  8766  
  8767  // Context sets the context to be used in this call's Do method.
  8768  func (c *PropertiesDeleteConnectedSiteTagCall) Context(ctx context.Context) *PropertiesDeleteConnectedSiteTagCall {
  8769  	c.ctx_ = ctx
  8770  	return c
  8771  }
  8772  
  8773  // Header returns a http.Header that can be modified by the caller to add
  8774  // headers to the request.
  8775  func (c *PropertiesDeleteConnectedSiteTagCall) Header() http.Header {
  8776  	if c.header_ == nil {
  8777  		c.header_ = make(http.Header)
  8778  	}
  8779  	return c.header_
  8780  }
  8781  
  8782  func (c *PropertiesDeleteConnectedSiteTagCall) doRequest(alt string) (*http.Response, error) {
  8783  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8784  	var body io.Reader = nil
  8785  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadeleteconnectedsitetagrequest)
  8786  	if err != nil {
  8787  		return nil, err
  8788  	}
  8789  	c.urlParams_.Set("alt", alt)
  8790  	c.urlParams_.Set("prettyPrint", "false")
  8791  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:deleteConnectedSiteTag")
  8792  	urls += "?" + c.urlParams_.Encode()
  8793  	req, err := http.NewRequest("POST", urls, body)
  8794  	if err != nil {
  8795  		return nil, err
  8796  	}
  8797  	req.Header = reqHeaders
  8798  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8799  }
  8800  
  8801  // Do executes the "analyticsadmin.properties.deleteConnectedSiteTag" call.
  8802  // Any non-2xx status code is an error. Response headers are in either
  8803  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  8804  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8805  // check whether the returned error was because http.StatusNotModified was
  8806  // returned.
  8807  func (c *PropertiesDeleteConnectedSiteTagCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  8808  	gensupport.SetOptions(c.urlParams_, opts...)
  8809  	res, err := c.doRequest("json")
  8810  	if res != nil && res.StatusCode == http.StatusNotModified {
  8811  		if res.Body != nil {
  8812  			res.Body.Close()
  8813  		}
  8814  		return nil, gensupport.WrapError(&googleapi.Error{
  8815  			Code:   res.StatusCode,
  8816  			Header: res.Header,
  8817  		})
  8818  	}
  8819  	if err != nil {
  8820  		return nil, err
  8821  	}
  8822  	defer googleapi.CloseBody(res)
  8823  	if err := googleapi.CheckResponse(res); err != nil {
  8824  		return nil, gensupport.WrapError(err)
  8825  	}
  8826  	ret := &GoogleProtobufEmpty{
  8827  		ServerResponse: googleapi.ServerResponse{
  8828  			Header:         res.Header,
  8829  			HTTPStatusCode: res.StatusCode,
  8830  		},
  8831  	}
  8832  	target := &ret
  8833  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8834  		return nil, err
  8835  	}
  8836  	return ret, nil
  8837  }
  8838  
  8839  type PropertiesFetchAutomatedGa4ConfigurationOptOutCall struct {
  8840  	s                                                                      *Service
  8841  	googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest
  8842  	urlParams_                                                             gensupport.URLParams
  8843  	ctx_                                                                   context.Context
  8844  	header_                                                                http.Header
  8845  }
  8846  
  8847  // FetchAutomatedGa4ConfigurationOptOut: Fetches the opt out status for the
  8848  // automated GA4 setup process for a UA property. Note: this has no effect on
  8849  // GA4 property.
  8850  func (r *PropertiesService) FetchAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall {
  8851  	c := &PropertiesFetchAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8852  	c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest
  8853  	return c
  8854  }
  8855  
  8856  // Fields allows partial responses to be retrieved. See
  8857  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8858  // details.
  8859  func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall {
  8860  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8861  	return c
  8862  }
  8863  
  8864  // Context sets the context to be used in this call's Do method.
  8865  func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall {
  8866  	c.ctx_ = ctx
  8867  	return c
  8868  }
  8869  
  8870  // Header returns a http.Header that can be modified by the caller to add
  8871  // headers to the request.
  8872  func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Header() http.Header {
  8873  	if c.header_ == nil {
  8874  		c.header_ = make(http.Header)
  8875  	}
  8876  	return c.header_
  8877  }
  8878  
  8879  func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) (*http.Response, error) {
  8880  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8881  	var body io.Reader = nil
  8882  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest)
  8883  	if err != nil {
  8884  		return nil, err
  8885  	}
  8886  	c.urlParams_.Set("alt", alt)
  8887  	c.urlParams_.Set("prettyPrint", "false")
  8888  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut")
  8889  	urls += "?" + c.urlParams_.Encode()
  8890  	req, err := http.NewRequest("POST", urls, body)
  8891  	if err != nil {
  8892  		return nil, err
  8893  	}
  8894  	req.Header = reqHeaders
  8895  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8896  }
  8897  
  8898  // Do executes the "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut" call.
  8899  // Any non-2xx status code is an error. Response headers are in either
  8900  // *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse.Serv
  8901  // erResponse.Header or (if a response was returned at all) in
  8902  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8903  // whether the returned error was because http.StatusNotModified was returned.
  8904  func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse, error) {
  8905  	gensupport.SetOptions(c.urlParams_, opts...)
  8906  	res, err := c.doRequest("json")
  8907  	if res != nil && res.StatusCode == http.StatusNotModified {
  8908  		if res.Body != nil {
  8909  			res.Body.Close()
  8910  		}
  8911  		return nil, gensupport.WrapError(&googleapi.Error{
  8912  			Code:   res.StatusCode,
  8913  			Header: res.Header,
  8914  		})
  8915  	}
  8916  	if err != nil {
  8917  		return nil, err
  8918  	}
  8919  	defer googleapi.CloseBody(res)
  8920  	if err := googleapi.CheckResponse(res); err != nil {
  8921  		return nil, gensupport.WrapError(err)
  8922  	}
  8923  	ret := &GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse{
  8924  		ServerResponse: googleapi.ServerResponse{
  8925  			Header:         res.Header,
  8926  			HTTPStatusCode: res.StatusCode,
  8927  		},
  8928  	}
  8929  	target := &ret
  8930  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8931  		return nil, err
  8932  	}
  8933  	return ret, nil
  8934  }
  8935  
  8936  type PropertiesFetchConnectedGa4PropertyCall struct {
  8937  	s            *Service
  8938  	urlParams_   gensupport.URLParams
  8939  	ifNoneMatch_ string
  8940  	ctx_         context.Context
  8941  	header_      http.Header
  8942  }
  8943  
  8944  // FetchConnectedGa4Property: Given a specified UA property, looks up the GA4
  8945  // property connected to it. Note: this cannot be used with GA4 properties.
  8946  func (r *PropertiesService) FetchConnectedGa4Property() *PropertiesFetchConnectedGa4PropertyCall {
  8947  	c := &PropertiesFetchConnectedGa4PropertyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8948  	return c
  8949  }
  8950  
  8951  // Property sets the optional parameter "property": Required. The UA property
  8952  // for which to look up the connected GA4 property. Note this request uses the
  8953  // internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format:
  8954  // properties/{internal_web_property_id} Example: properties/1234
  8955  func (c *PropertiesFetchConnectedGa4PropertyCall) Property(property string) *PropertiesFetchConnectedGa4PropertyCall {
  8956  	c.urlParams_.Set("property", property)
  8957  	return c
  8958  }
  8959  
  8960  // Fields allows partial responses to be retrieved. See
  8961  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8962  // details.
  8963  func (c *PropertiesFetchConnectedGa4PropertyCall) Fields(s ...googleapi.Field) *PropertiesFetchConnectedGa4PropertyCall {
  8964  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8965  	return c
  8966  }
  8967  
  8968  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8969  // object's ETag matches the given value. This is useful for getting updates
  8970  // only after the object has changed since the last request.
  8971  func (c *PropertiesFetchConnectedGa4PropertyCall) IfNoneMatch(entityTag string) *PropertiesFetchConnectedGa4PropertyCall {
  8972  	c.ifNoneMatch_ = entityTag
  8973  	return c
  8974  }
  8975  
  8976  // Context sets the context to be used in this call's Do method.
  8977  func (c *PropertiesFetchConnectedGa4PropertyCall) Context(ctx context.Context) *PropertiesFetchConnectedGa4PropertyCall {
  8978  	c.ctx_ = ctx
  8979  	return c
  8980  }
  8981  
  8982  // Header returns a http.Header that can be modified by the caller to add
  8983  // headers to the request.
  8984  func (c *PropertiesFetchConnectedGa4PropertyCall) Header() http.Header {
  8985  	if c.header_ == nil {
  8986  		c.header_ = make(http.Header)
  8987  	}
  8988  	return c.header_
  8989  }
  8990  
  8991  func (c *PropertiesFetchConnectedGa4PropertyCall) doRequest(alt string) (*http.Response, error) {
  8992  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8993  	if c.ifNoneMatch_ != "" {
  8994  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8995  	}
  8996  	var body io.Reader = nil
  8997  	c.urlParams_.Set("alt", alt)
  8998  	c.urlParams_.Set("prettyPrint", "false")
  8999  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:fetchConnectedGa4Property")
  9000  	urls += "?" + c.urlParams_.Encode()
  9001  	req, err := http.NewRequest("GET", urls, body)
  9002  	if err != nil {
  9003  		return nil, err
  9004  	}
  9005  	req.Header = reqHeaders
  9006  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9007  }
  9008  
  9009  // Do executes the "analyticsadmin.properties.fetchConnectedGa4Property" call.
  9010  // Any non-2xx status code is an error. Response headers are in either
  9011  // *GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse.ServerResponse.
  9012  // Header or (if a response was returned at all) in
  9013  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9014  // whether the returned error was because http.StatusNotModified was returned.
  9015  func (c *PropertiesFetchConnectedGa4PropertyCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse, error) {
  9016  	gensupport.SetOptions(c.urlParams_, opts...)
  9017  	res, err := c.doRequest("json")
  9018  	if res != nil && res.StatusCode == http.StatusNotModified {
  9019  		if res.Body != nil {
  9020  			res.Body.Close()
  9021  		}
  9022  		return nil, gensupport.WrapError(&googleapi.Error{
  9023  			Code:   res.StatusCode,
  9024  			Header: res.Header,
  9025  		})
  9026  	}
  9027  	if err != nil {
  9028  		return nil, err
  9029  	}
  9030  	defer googleapi.CloseBody(res)
  9031  	if err := googleapi.CheckResponse(res); err != nil {
  9032  		return nil, gensupport.WrapError(err)
  9033  	}
  9034  	ret := &GoogleAnalyticsAdminV1alphaFetchConnectedGa4PropertyResponse{
  9035  		ServerResponse: googleapi.ServerResponse{
  9036  			Header:         res.Header,
  9037  			HTTPStatusCode: res.StatusCode,
  9038  		},
  9039  	}
  9040  	target := &ret
  9041  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9042  		return nil, err
  9043  	}
  9044  	return ret, nil
  9045  }
  9046  
  9047  type PropertiesGetCall struct {
  9048  	s            *Service
  9049  	name         string
  9050  	urlParams_   gensupport.URLParams
  9051  	ifNoneMatch_ string
  9052  	ctx_         context.Context
  9053  	header_      http.Header
  9054  }
  9055  
  9056  // Get: Lookup for a single "GA4" Property.
  9057  //
  9058  //   - name: The name of the property to lookup. Format: properties/{property_id}
  9059  //     Example: "properties/1000".
  9060  func (r *PropertiesService) Get(name string) *PropertiesGetCall {
  9061  	c := &PropertiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9062  	c.name = name
  9063  	return c
  9064  }
  9065  
  9066  // Fields allows partial responses to be retrieved. See
  9067  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9068  // details.
  9069  func (c *PropertiesGetCall) Fields(s ...googleapi.Field) *PropertiesGetCall {
  9070  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9071  	return c
  9072  }
  9073  
  9074  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9075  // object's ETag matches the given value. This is useful for getting updates
  9076  // only after the object has changed since the last request.
  9077  func (c *PropertiesGetCall) IfNoneMatch(entityTag string) *PropertiesGetCall {
  9078  	c.ifNoneMatch_ = entityTag
  9079  	return c
  9080  }
  9081  
  9082  // Context sets the context to be used in this call's Do method.
  9083  func (c *PropertiesGetCall) Context(ctx context.Context) *PropertiesGetCall {
  9084  	c.ctx_ = ctx
  9085  	return c
  9086  }
  9087  
  9088  // Header returns a http.Header that can be modified by the caller to add
  9089  // headers to the request.
  9090  func (c *PropertiesGetCall) Header() http.Header {
  9091  	if c.header_ == nil {
  9092  		c.header_ = make(http.Header)
  9093  	}
  9094  	return c.header_
  9095  }
  9096  
  9097  func (c *PropertiesGetCall) doRequest(alt string) (*http.Response, error) {
  9098  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9099  	if c.ifNoneMatch_ != "" {
  9100  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9101  	}
  9102  	var body io.Reader = nil
  9103  	c.urlParams_.Set("alt", alt)
  9104  	c.urlParams_.Set("prettyPrint", "false")
  9105  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  9106  	urls += "?" + c.urlParams_.Encode()
  9107  	req, err := http.NewRequest("GET", urls, body)
  9108  	if err != nil {
  9109  		return nil, err
  9110  	}
  9111  	req.Header = reqHeaders
  9112  	googleapi.Expand(req.URL, map[string]string{
  9113  		"name": c.name,
  9114  	})
  9115  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9116  }
  9117  
  9118  // Do executes the "analyticsadmin.properties.get" call.
  9119  // Any non-2xx status code is an error. Response headers are in either
  9120  // *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or (if a response
  9121  // was returned at all) in error.(*googleapi.Error).Header. Use
  9122  // googleapi.IsNotModified to check whether the returned error was because
  9123  // http.StatusNotModified was returned.
  9124  func (c *PropertiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) {
  9125  	gensupport.SetOptions(c.urlParams_, opts...)
  9126  	res, err := c.doRequest("json")
  9127  	if res != nil && res.StatusCode == http.StatusNotModified {
  9128  		if res.Body != nil {
  9129  			res.Body.Close()
  9130  		}
  9131  		return nil, gensupport.WrapError(&googleapi.Error{
  9132  			Code:   res.StatusCode,
  9133  			Header: res.Header,
  9134  		})
  9135  	}
  9136  	if err != nil {
  9137  		return nil, err
  9138  	}
  9139  	defer googleapi.CloseBody(res)
  9140  	if err := googleapi.CheckResponse(res); err != nil {
  9141  		return nil, gensupport.WrapError(err)
  9142  	}
  9143  	ret := &GoogleAnalyticsAdminV1alphaProperty{
  9144  		ServerResponse: googleapi.ServerResponse{
  9145  			Header:         res.Header,
  9146  			HTTPStatusCode: res.StatusCode,
  9147  		},
  9148  	}
  9149  	target := &ret
  9150  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9151  		return nil, err
  9152  	}
  9153  	return ret, nil
  9154  }
  9155  
  9156  type PropertiesGetAttributionSettingsCall struct {
  9157  	s            *Service
  9158  	name         string
  9159  	urlParams_   gensupport.URLParams
  9160  	ifNoneMatch_ string
  9161  	ctx_         context.Context
  9162  	header_      http.Header
  9163  }
  9164  
  9165  // GetAttributionSettings: Lookup for a AttributionSettings singleton.
  9166  //
  9167  //   - name: The name of the attribution settings to retrieve. Format:
  9168  //     properties/{property}/attributionSettings.
  9169  func (r *PropertiesService) GetAttributionSettings(name string) *PropertiesGetAttributionSettingsCall {
  9170  	c := &PropertiesGetAttributionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9171  	c.name = name
  9172  	return c
  9173  }
  9174  
  9175  // Fields allows partial responses to be retrieved. See
  9176  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9177  // details.
  9178  func (c *PropertiesGetAttributionSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetAttributionSettingsCall {
  9179  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9180  	return c
  9181  }
  9182  
  9183  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9184  // object's ETag matches the given value. This is useful for getting updates
  9185  // only after the object has changed since the last request.
  9186  func (c *PropertiesGetAttributionSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetAttributionSettingsCall {
  9187  	c.ifNoneMatch_ = entityTag
  9188  	return c
  9189  }
  9190  
  9191  // Context sets the context to be used in this call's Do method.
  9192  func (c *PropertiesGetAttributionSettingsCall) Context(ctx context.Context) *PropertiesGetAttributionSettingsCall {
  9193  	c.ctx_ = ctx
  9194  	return c
  9195  }
  9196  
  9197  // Header returns a http.Header that can be modified by the caller to add
  9198  // headers to the request.
  9199  func (c *PropertiesGetAttributionSettingsCall) Header() http.Header {
  9200  	if c.header_ == nil {
  9201  		c.header_ = make(http.Header)
  9202  	}
  9203  	return c.header_
  9204  }
  9205  
  9206  func (c *PropertiesGetAttributionSettingsCall) doRequest(alt string) (*http.Response, error) {
  9207  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9208  	if c.ifNoneMatch_ != "" {
  9209  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9210  	}
  9211  	var body io.Reader = nil
  9212  	c.urlParams_.Set("alt", alt)
  9213  	c.urlParams_.Set("prettyPrint", "false")
  9214  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  9215  	urls += "?" + c.urlParams_.Encode()
  9216  	req, err := http.NewRequest("GET", urls, body)
  9217  	if err != nil {
  9218  		return nil, err
  9219  	}
  9220  	req.Header = reqHeaders
  9221  	googleapi.Expand(req.URL, map[string]string{
  9222  		"name": c.name,
  9223  	})
  9224  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9225  }
  9226  
  9227  // Do executes the "analyticsadmin.properties.getAttributionSettings" call.
  9228  // Any non-2xx status code is an error. Response headers are in either
  9229  // *GoogleAnalyticsAdminV1alphaAttributionSettings.ServerResponse.Header or (if
  9230  // a response was returned at all) in error.(*googleapi.Error).Header. Use
  9231  // googleapi.IsNotModified to check whether the returned error was because
  9232  // http.StatusNotModified was returned.
  9233  func (c *PropertiesGetAttributionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAttributionSettings, error) {
  9234  	gensupport.SetOptions(c.urlParams_, opts...)
  9235  	res, err := c.doRequest("json")
  9236  	if res != nil && res.StatusCode == http.StatusNotModified {
  9237  		if res.Body != nil {
  9238  			res.Body.Close()
  9239  		}
  9240  		return nil, gensupport.WrapError(&googleapi.Error{
  9241  			Code:   res.StatusCode,
  9242  			Header: res.Header,
  9243  		})
  9244  	}
  9245  	if err != nil {
  9246  		return nil, err
  9247  	}
  9248  	defer googleapi.CloseBody(res)
  9249  	if err := googleapi.CheckResponse(res); err != nil {
  9250  		return nil, gensupport.WrapError(err)
  9251  	}
  9252  	ret := &GoogleAnalyticsAdminV1alphaAttributionSettings{
  9253  		ServerResponse: googleapi.ServerResponse{
  9254  			Header:         res.Header,
  9255  			HTTPStatusCode: res.StatusCode,
  9256  		},
  9257  	}
  9258  	target := &ret
  9259  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9260  		return nil, err
  9261  	}
  9262  	return ret, nil
  9263  }
  9264  
  9265  type PropertiesGetDataRetentionSettingsCall struct {
  9266  	s            *Service
  9267  	name         string
  9268  	urlParams_   gensupport.URLParams
  9269  	ifNoneMatch_ string
  9270  	ctx_         context.Context
  9271  	header_      http.Header
  9272  }
  9273  
  9274  // GetDataRetentionSettings: Returns the singleton data retention settings for
  9275  // this property.
  9276  //
  9277  //   - name: The name of the settings to lookup. Format:
  9278  //     properties/{property}/dataRetentionSettings Example:
  9279  //     "properties/1000/dataRetentionSettings".
  9280  func (r *PropertiesService) GetDataRetentionSettings(name string) *PropertiesGetDataRetentionSettingsCall {
  9281  	c := &PropertiesGetDataRetentionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9282  	c.name = name
  9283  	return c
  9284  }
  9285  
  9286  // Fields allows partial responses to be retrieved. See
  9287  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9288  // details.
  9289  func (c *PropertiesGetDataRetentionSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetDataRetentionSettingsCall {
  9290  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9291  	return c
  9292  }
  9293  
  9294  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9295  // object's ETag matches the given value. This is useful for getting updates
  9296  // only after the object has changed since the last request.
  9297  func (c *PropertiesGetDataRetentionSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetDataRetentionSettingsCall {
  9298  	c.ifNoneMatch_ = entityTag
  9299  	return c
  9300  }
  9301  
  9302  // Context sets the context to be used in this call's Do method.
  9303  func (c *PropertiesGetDataRetentionSettingsCall) Context(ctx context.Context) *PropertiesGetDataRetentionSettingsCall {
  9304  	c.ctx_ = ctx
  9305  	return c
  9306  }
  9307  
  9308  // Header returns a http.Header that can be modified by the caller to add
  9309  // headers to the request.
  9310  func (c *PropertiesGetDataRetentionSettingsCall) Header() http.Header {
  9311  	if c.header_ == nil {
  9312  		c.header_ = make(http.Header)
  9313  	}
  9314  	return c.header_
  9315  }
  9316  
  9317  func (c *PropertiesGetDataRetentionSettingsCall) doRequest(alt string) (*http.Response, error) {
  9318  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9319  	if c.ifNoneMatch_ != "" {
  9320  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9321  	}
  9322  	var body io.Reader = nil
  9323  	c.urlParams_.Set("alt", alt)
  9324  	c.urlParams_.Set("prettyPrint", "false")
  9325  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  9326  	urls += "?" + c.urlParams_.Encode()
  9327  	req, err := http.NewRequest("GET", urls, body)
  9328  	if err != nil {
  9329  		return nil, err
  9330  	}
  9331  	req.Header = reqHeaders
  9332  	googleapi.Expand(req.URL, map[string]string{
  9333  		"name": c.name,
  9334  	})
  9335  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9336  }
  9337  
  9338  // Do executes the "analyticsadmin.properties.getDataRetentionSettings" call.
  9339  // Any non-2xx status code is an error. Response headers are in either
  9340  // *GoogleAnalyticsAdminV1alphaDataRetentionSettings.ServerResponse.Header or
  9341  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  9342  // googleapi.IsNotModified to check whether the returned error was because
  9343  // http.StatusNotModified was returned.
  9344  func (c *PropertiesGetDataRetentionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRetentionSettings, error) {
  9345  	gensupport.SetOptions(c.urlParams_, opts...)
  9346  	res, err := c.doRequest("json")
  9347  	if res != nil && res.StatusCode == http.StatusNotModified {
  9348  		if res.Body != nil {
  9349  			res.Body.Close()
  9350  		}
  9351  		return nil, gensupport.WrapError(&googleapi.Error{
  9352  			Code:   res.StatusCode,
  9353  			Header: res.Header,
  9354  		})
  9355  	}
  9356  	if err != nil {
  9357  		return nil, err
  9358  	}
  9359  	defer googleapi.CloseBody(res)
  9360  	if err := googleapi.CheckResponse(res); err != nil {
  9361  		return nil, gensupport.WrapError(err)
  9362  	}
  9363  	ret := &GoogleAnalyticsAdminV1alphaDataRetentionSettings{
  9364  		ServerResponse: googleapi.ServerResponse{
  9365  			Header:         res.Header,
  9366  			HTTPStatusCode: res.StatusCode,
  9367  		},
  9368  	}
  9369  	target := &ret
  9370  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9371  		return nil, err
  9372  	}
  9373  	return ret, nil
  9374  }
  9375  
  9376  type PropertiesGetGoogleSignalsSettingsCall struct {
  9377  	s            *Service
  9378  	name         string
  9379  	urlParams_   gensupport.URLParams
  9380  	ifNoneMatch_ string
  9381  	ctx_         context.Context
  9382  	header_      http.Header
  9383  }
  9384  
  9385  // GetGoogleSignalsSettings: Lookup for Google Signals settings for a property.
  9386  //
  9387  //   - name: The name of the google signals settings to retrieve. Format:
  9388  //     properties/{property}/googleSignalsSettings.
  9389  func (r *PropertiesService) GetGoogleSignalsSettings(name string) *PropertiesGetGoogleSignalsSettingsCall {
  9390  	c := &PropertiesGetGoogleSignalsSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9391  	c.name = name
  9392  	return c
  9393  }
  9394  
  9395  // Fields allows partial responses to be retrieved. See
  9396  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9397  // details.
  9398  func (c *PropertiesGetGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) *PropertiesGetGoogleSignalsSettingsCall {
  9399  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9400  	return c
  9401  }
  9402  
  9403  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9404  // object's ETag matches the given value. This is useful for getting updates
  9405  // only after the object has changed since the last request.
  9406  func (c *PropertiesGetGoogleSignalsSettingsCall) IfNoneMatch(entityTag string) *PropertiesGetGoogleSignalsSettingsCall {
  9407  	c.ifNoneMatch_ = entityTag
  9408  	return c
  9409  }
  9410  
  9411  // Context sets the context to be used in this call's Do method.
  9412  func (c *PropertiesGetGoogleSignalsSettingsCall) Context(ctx context.Context) *PropertiesGetGoogleSignalsSettingsCall {
  9413  	c.ctx_ = ctx
  9414  	return c
  9415  }
  9416  
  9417  // Header returns a http.Header that can be modified by the caller to add
  9418  // headers to the request.
  9419  func (c *PropertiesGetGoogleSignalsSettingsCall) Header() http.Header {
  9420  	if c.header_ == nil {
  9421  		c.header_ = make(http.Header)
  9422  	}
  9423  	return c.header_
  9424  }
  9425  
  9426  func (c *PropertiesGetGoogleSignalsSettingsCall) doRequest(alt string) (*http.Response, error) {
  9427  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9428  	if c.ifNoneMatch_ != "" {
  9429  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9430  	}
  9431  	var body io.Reader = nil
  9432  	c.urlParams_.Set("alt", alt)
  9433  	c.urlParams_.Set("prettyPrint", "false")
  9434  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  9435  	urls += "?" + c.urlParams_.Encode()
  9436  	req, err := http.NewRequest("GET", urls, body)
  9437  	if err != nil {
  9438  		return nil, err
  9439  	}
  9440  	req.Header = reqHeaders
  9441  	googleapi.Expand(req.URL, map[string]string{
  9442  		"name": c.name,
  9443  	})
  9444  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9445  }
  9446  
  9447  // Do executes the "analyticsadmin.properties.getGoogleSignalsSettings" call.
  9448  // Any non-2xx status code is an error. Response headers are in either
  9449  // *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.ServerResponse.Header or
  9450  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  9451  // googleapi.IsNotModified to check whether the returned error was because
  9452  // http.StatusNotModified was returned.
  9453  func (c *PropertiesGetGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, error) {
  9454  	gensupport.SetOptions(c.urlParams_, opts...)
  9455  	res, err := c.doRequest("json")
  9456  	if res != nil && res.StatusCode == http.StatusNotModified {
  9457  		if res.Body != nil {
  9458  			res.Body.Close()
  9459  		}
  9460  		return nil, gensupport.WrapError(&googleapi.Error{
  9461  			Code:   res.StatusCode,
  9462  			Header: res.Header,
  9463  		})
  9464  	}
  9465  	if err != nil {
  9466  		return nil, err
  9467  	}
  9468  	defer googleapi.CloseBody(res)
  9469  	if err := googleapi.CheckResponse(res); err != nil {
  9470  		return nil, gensupport.WrapError(err)
  9471  	}
  9472  	ret := &GoogleAnalyticsAdminV1alphaGoogleSignalsSettings{
  9473  		ServerResponse: googleapi.ServerResponse{
  9474  			Header:         res.Header,
  9475  			HTTPStatusCode: res.StatusCode,
  9476  		},
  9477  	}
  9478  	target := &ret
  9479  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9480  		return nil, err
  9481  	}
  9482  	return ret, nil
  9483  }
  9484  
  9485  type PropertiesListCall struct {
  9486  	s            *Service
  9487  	urlParams_   gensupport.URLParams
  9488  	ifNoneMatch_ string
  9489  	ctx_         context.Context
  9490  	header_      http.Header
  9491  }
  9492  
  9493  // List: Returns child Properties under the specified parent Account. Only
  9494  // "GA4" properties will be returned. Properties will be excluded if the caller
  9495  // does not have access. Soft-deleted (ie: "trashed") properties are excluded
  9496  // by default. Returns an empty list if no relevant properties are found.
  9497  func (r *PropertiesService) List() *PropertiesListCall {
  9498  	c := &PropertiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9499  	return c
  9500  }
  9501  
  9502  // Filter sets the optional parameter "filter": Required. An expression for
  9503  // filtering the results of the request. Fields eligible for filtering are:
  9504  // `parent:`(The resource name of the parent account/property) or
  9505  // `ancestor:`(The resource name of the parent account) or
  9506  // `firebase_project:`(The id or number of the linked firebase project). Some
  9507  // examples of filters: ``` | Filter | Description |
  9508  // |-----------------------------|-------------------------------------------|
  9509  // | parent:accounts/123 | The account with account id: 123. | |
  9510  // parent:properties/123 | The property with property id: 123. | |
  9511  // ancestor:accounts/123 | The account with account id: 123. | |
  9512  // firebase_project:project-id | The firebase project with id: project-id. | |
  9513  // firebase_project:123 | The firebase project with number: 123. | ```
  9514  func (c *PropertiesListCall) Filter(filter string) *PropertiesListCall {
  9515  	c.urlParams_.Set("filter", filter)
  9516  	return c
  9517  }
  9518  
  9519  // PageSize sets the optional parameter "pageSize": The maximum number of
  9520  // resources to return. The service may return fewer than this value, even if
  9521  // there are additional pages. If unspecified, at most 50 resources will be
  9522  // returned. The maximum value is 200; (higher values will be coerced to the
  9523  // maximum)
  9524  func (c *PropertiesListCall) PageSize(pageSize int64) *PropertiesListCall {
  9525  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9526  	return c
  9527  }
  9528  
  9529  // PageToken sets the optional parameter "pageToken": A page token, received
  9530  // from a previous `ListProperties` call. Provide this to retrieve the
  9531  // subsequent page. When paginating, all other parameters provided to
  9532  // `ListProperties` must match the call that provided the page token.
  9533  func (c *PropertiesListCall) PageToken(pageToken string) *PropertiesListCall {
  9534  	c.urlParams_.Set("pageToken", pageToken)
  9535  	return c
  9536  }
  9537  
  9538  // ShowDeleted sets the optional parameter "showDeleted": Whether to include
  9539  // soft-deleted (ie: "trashed") Properties in the results. Properties can be
  9540  // inspected to determine whether they are deleted or not.
  9541  func (c *PropertiesListCall) ShowDeleted(showDeleted bool) *PropertiesListCall {
  9542  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
  9543  	return c
  9544  }
  9545  
  9546  // Fields allows partial responses to be retrieved. See
  9547  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9548  // details.
  9549  func (c *PropertiesListCall) Fields(s ...googleapi.Field) *PropertiesListCall {
  9550  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9551  	return c
  9552  }
  9553  
  9554  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9555  // object's ETag matches the given value. This is useful for getting updates
  9556  // only after the object has changed since the last request.
  9557  func (c *PropertiesListCall) IfNoneMatch(entityTag string) *PropertiesListCall {
  9558  	c.ifNoneMatch_ = entityTag
  9559  	return c
  9560  }
  9561  
  9562  // Context sets the context to be used in this call's Do method.
  9563  func (c *PropertiesListCall) Context(ctx context.Context) *PropertiesListCall {
  9564  	c.ctx_ = ctx
  9565  	return c
  9566  }
  9567  
  9568  // Header returns a http.Header that can be modified by the caller to add
  9569  // headers to the request.
  9570  func (c *PropertiesListCall) Header() http.Header {
  9571  	if c.header_ == nil {
  9572  		c.header_ = make(http.Header)
  9573  	}
  9574  	return c.header_
  9575  }
  9576  
  9577  func (c *PropertiesListCall) doRequest(alt string) (*http.Response, error) {
  9578  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9579  	if c.ifNoneMatch_ != "" {
  9580  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9581  	}
  9582  	var body io.Reader = nil
  9583  	c.urlParams_.Set("alt", alt)
  9584  	c.urlParams_.Set("prettyPrint", "false")
  9585  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties")
  9586  	urls += "?" + c.urlParams_.Encode()
  9587  	req, err := http.NewRequest("GET", urls, body)
  9588  	if err != nil {
  9589  		return nil, err
  9590  	}
  9591  	req.Header = reqHeaders
  9592  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9593  }
  9594  
  9595  // Do executes the "analyticsadmin.properties.list" call.
  9596  // Any non-2xx status code is an error. Response headers are in either
  9597  // *GoogleAnalyticsAdminV1alphaListPropertiesResponse.ServerResponse.Header or
  9598  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  9599  // googleapi.IsNotModified to check whether the returned error was because
  9600  // http.StatusNotModified was returned.
  9601  func (c *PropertiesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListPropertiesResponse, error) {
  9602  	gensupport.SetOptions(c.urlParams_, opts...)
  9603  	res, err := c.doRequest("json")
  9604  	if res != nil && res.StatusCode == http.StatusNotModified {
  9605  		if res.Body != nil {
  9606  			res.Body.Close()
  9607  		}
  9608  		return nil, gensupport.WrapError(&googleapi.Error{
  9609  			Code:   res.StatusCode,
  9610  			Header: res.Header,
  9611  		})
  9612  	}
  9613  	if err != nil {
  9614  		return nil, err
  9615  	}
  9616  	defer googleapi.CloseBody(res)
  9617  	if err := googleapi.CheckResponse(res); err != nil {
  9618  		return nil, gensupport.WrapError(err)
  9619  	}
  9620  	ret := &GoogleAnalyticsAdminV1alphaListPropertiesResponse{
  9621  		ServerResponse: googleapi.ServerResponse{
  9622  			Header:         res.Header,
  9623  			HTTPStatusCode: res.StatusCode,
  9624  		},
  9625  	}
  9626  	target := &ret
  9627  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9628  		return nil, err
  9629  	}
  9630  	return ret, nil
  9631  }
  9632  
  9633  // Pages invokes f for each page of results.
  9634  // A non-nil error returned from f will halt the iteration.
  9635  // The provided context supersedes any context provided to the Context method.
  9636  func (c *PropertiesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListPropertiesResponse) error) error {
  9637  	c.ctx_ = ctx
  9638  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9639  	for {
  9640  		x, err := c.Do()
  9641  		if err != nil {
  9642  			return err
  9643  		}
  9644  		if err := f(x); err != nil {
  9645  			return err
  9646  		}
  9647  		if x.NextPageToken == "" {
  9648  			return nil
  9649  		}
  9650  		c.PageToken(x.NextPageToken)
  9651  	}
  9652  }
  9653  
  9654  type PropertiesListConnectedSiteTagsCall struct {
  9655  	s                                                       *Service
  9656  	googleanalyticsadminv1alphalistconnectedsitetagsrequest *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest
  9657  	urlParams_                                              gensupport.URLParams
  9658  	ctx_                                                    context.Context
  9659  	header_                                                 http.Header
  9660  }
  9661  
  9662  // ListConnectedSiteTags: Lists the connected site tags for a Universal
  9663  // Analytics property. A maximum of 20 connected site tags will be returned.
  9664  // Note: this has no effect on GA4 property.
  9665  func (r *PropertiesService) ListConnectedSiteTags(googleanalyticsadminv1alphalistconnectedsitetagsrequest *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest) *PropertiesListConnectedSiteTagsCall {
  9666  	c := &PropertiesListConnectedSiteTagsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9667  	c.googleanalyticsadminv1alphalistconnectedsitetagsrequest = googleanalyticsadminv1alphalistconnectedsitetagsrequest
  9668  	return c
  9669  }
  9670  
  9671  // Fields allows partial responses to be retrieved. See
  9672  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9673  // details.
  9674  func (c *PropertiesListConnectedSiteTagsCall) Fields(s ...googleapi.Field) *PropertiesListConnectedSiteTagsCall {
  9675  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9676  	return c
  9677  }
  9678  
  9679  // Context sets the context to be used in this call's Do method.
  9680  func (c *PropertiesListConnectedSiteTagsCall) Context(ctx context.Context) *PropertiesListConnectedSiteTagsCall {
  9681  	c.ctx_ = ctx
  9682  	return c
  9683  }
  9684  
  9685  // Header returns a http.Header that can be modified by the caller to add
  9686  // headers to the request.
  9687  func (c *PropertiesListConnectedSiteTagsCall) Header() http.Header {
  9688  	if c.header_ == nil {
  9689  		c.header_ = make(http.Header)
  9690  	}
  9691  	return c.header_
  9692  }
  9693  
  9694  func (c *PropertiesListConnectedSiteTagsCall) doRequest(alt string) (*http.Response, error) {
  9695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9696  	var body io.Reader = nil
  9697  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphalistconnectedsitetagsrequest)
  9698  	if err != nil {
  9699  		return nil, err
  9700  	}
  9701  	c.urlParams_.Set("alt", alt)
  9702  	c.urlParams_.Set("prettyPrint", "false")
  9703  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:listConnectedSiteTags")
  9704  	urls += "?" + c.urlParams_.Encode()
  9705  	req, err := http.NewRequest("POST", urls, body)
  9706  	if err != nil {
  9707  		return nil, err
  9708  	}
  9709  	req.Header = reqHeaders
  9710  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9711  }
  9712  
  9713  // Do executes the "analyticsadmin.properties.listConnectedSiteTags" call.
  9714  // Any non-2xx status code is an error. Response headers are in either
  9715  // *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse.ServerResponse.Head
  9716  // er or (if a response was returned at all) in
  9717  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9718  // whether the returned error was because http.StatusNotModified was returned.
  9719  func (c *PropertiesListConnectedSiteTagsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse, error) {
  9720  	gensupport.SetOptions(c.urlParams_, opts...)
  9721  	res, err := c.doRequest("json")
  9722  	if res != nil && res.StatusCode == http.StatusNotModified {
  9723  		if res.Body != nil {
  9724  			res.Body.Close()
  9725  		}
  9726  		return nil, gensupport.WrapError(&googleapi.Error{
  9727  			Code:   res.StatusCode,
  9728  			Header: res.Header,
  9729  		})
  9730  	}
  9731  	if err != nil {
  9732  		return nil, err
  9733  	}
  9734  	defer googleapi.CloseBody(res)
  9735  	if err := googleapi.CheckResponse(res); err != nil {
  9736  		return nil, gensupport.WrapError(err)
  9737  	}
  9738  	ret := &GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse{
  9739  		ServerResponse: googleapi.ServerResponse{
  9740  			Header:         res.Header,
  9741  			HTTPStatusCode: res.StatusCode,
  9742  		},
  9743  	}
  9744  	target := &ret
  9745  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9746  		return nil, err
  9747  	}
  9748  	return ret, nil
  9749  }
  9750  
  9751  type PropertiesPatchCall struct {
  9752  	s                                   *Service
  9753  	name                                string
  9754  	googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty
  9755  	urlParams_                          gensupport.URLParams
  9756  	ctx_                                context.Context
  9757  	header_                             http.Header
  9758  }
  9759  
  9760  // Patch: Updates a property.
  9761  //
  9762  //   - name: Output only. Resource name of this property. Format:
  9763  //     properties/{property_id} Example: "properties/1000".
  9764  func (r *PropertiesService) Patch(name string, googleanalyticsadminv1alphaproperty *GoogleAnalyticsAdminV1alphaProperty) *PropertiesPatchCall {
  9765  	c := &PropertiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9766  	c.name = name
  9767  	c.googleanalyticsadminv1alphaproperty = googleanalyticsadminv1alphaproperty
  9768  	return c
  9769  }
  9770  
  9771  // UpdateMask sets the optional parameter "updateMask": Required. The list of
  9772  // fields to be updated. Field names must be in snake case (e.g.,
  9773  // "field_to_update"). Omitted fields will not be updated. To replace the
  9774  // entire entity, use one path with the string "*" to match all fields.
  9775  func (c *PropertiesPatchCall) UpdateMask(updateMask string) *PropertiesPatchCall {
  9776  	c.urlParams_.Set("updateMask", updateMask)
  9777  	return c
  9778  }
  9779  
  9780  // Fields allows partial responses to be retrieved. See
  9781  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9782  // details.
  9783  func (c *PropertiesPatchCall) Fields(s ...googleapi.Field) *PropertiesPatchCall {
  9784  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9785  	return c
  9786  }
  9787  
  9788  // Context sets the context to be used in this call's Do method.
  9789  func (c *PropertiesPatchCall) Context(ctx context.Context) *PropertiesPatchCall {
  9790  	c.ctx_ = ctx
  9791  	return c
  9792  }
  9793  
  9794  // Header returns a http.Header that can be modified by the caller to add
  9795  // headers to the request.
  9796  func (c *PropertiesPatchCall) Header() http.Header {
  9797  	if c.header_ == nil {
  9798  		c.header_ = make(http.Header)
  9799  	}
  9800  	return c.header_
  9801  }
  9802  
  9803  func (c *PropertiesPatchCall) doRequest(alt string) (*http.Response, error) {
  9804  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9805  	var body io.Reader = nil
  9806  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaproperty)
  9807  	if err != nil {
  9808  		return nil, err
  9809  	}
  9810  	c.urlParams_.Set("alt", alt)
  9811  	c.urlParams_.Set("prettyPrint", "false")
  9812  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  9813  	urls += "?" + c.urlParams_.Encode()
  9814  	req, err := http.NewRequest("PATCH", urls, body)
  9815  	if err != nil {
  9816  		return nil, err
  9817  	}
  9818  	req.Header = reqHeaders
  9819  	googleapi.Expand(req.URL, map[string]string{
  9820  		"name": c.name,
  9821  	})
  9822  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9823  }
  9824  
  9825  // Do executes the "analyticsadmin.properties.patch" call.
  9826  // Any non-2xx status code is an error. Response headers are in either
  9827  // *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or (if a response
  9828  // was returned at all) in error.(*googleapi.Error).Header. Use
  9829  // googleapi.IsNotModified to check whether the returned error was because
  9830  // http.StatusNotModified was returned.
  9831  func (c *PropertiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) {
  9832  	gensupport.SetOptions(c.urlParams_, opts...)
  9833  	res, err := c.doRequest("json")
  9834  	if res != nil && res.StatusCode == http.StatusNotModified {
  9835  		if res.Body != nil {
  9836  			res.Body.Close()
  9837  		}
  9838  		return nil, gensupport.WrapError(&googleapi.Error{
  9839  			Code:   res.StatusCode,
  9840  			Header: res.Header,
  9841  		})
  9842  	}
  9843  	if err != nil {
  9844  		return nil, err
  9845  	}
  9846  	defer googleapi.CloseBody(res)
  9847  	if err := googleapi.CheckResponse(res); err != nil {
  9848  		return nil, gensupport.WrapError(err)
  9849  	}
  9850  	ret := &GoogleAnalyticsAdminV1alphaProperty{
  9851  		ServerResponse: googleapi.ServerResponse{
  9852  			Header:         res.Header,
  9853  			HTTPStatusCode: res.StatusCode,
  9854  		},
  9855  	}
  9856  	target := &ret
  9857  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9858  		return nil, err
  9859  	}
  9860  	return ret, nil
  9861  }
  9862  
  9863  type PropertiesRunAccessReportCall struct {
  9864  	s                                                 *Service
  9865  	entity                                            string
  9866  	googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest
  9867  	urlParams_                                        gensupport.URLParams
  9868  	ctx_                                              context.Context
  9869  	header_                                           http.Header
  9870  }
  9871  
  9872  // RunAccessReport: Returns a customized report of data access records. The
  9873  // report provides records of each time a user reads Google Analytics reporting
  9874  // data. Access records are retained for up to 2 years. Data Access Reports can
  9875  // be requested for a property. Reports may be requested for any property, but
  9876  // dimensions that aren't related to quota can only be requested on Google
  9877  // Analytics 360 properties. This method is only available to Administrators.
  9878  // These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4
  9879  // Data API, and other products like Firebase & Admob that can retrieve data
  9880  // from Google Analytics through a linkage. These records don't include
  9881  // property configuration changes like adding a stream or changing a property's
  9882  // time zone. For configuration change history, see searchChangeHistoryEvents
  9883  // (https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
  9884  //
  9885  //   - entity: The Data Access Report supports requesting at the property level
  9886  //     or account level. If requested at the account level, Data Access Reports
  9887  //     include all access for all properties under that account. To request at
  9888  //     the property level, entity should be for example 'properties/123' if "123"
  9889  //     is your GA4 property ID. To request at the account level, entity should be
  9890  //     for example 'accounts/1234' if "1234" is your GA4 Account ID.
  9891  func (r *PropertiesService) RunAccessReport(entity string, googleanalyticsadminv1alpharunaccessreportrequest *GoogleAnalyticsAdminV1alphaRunAccessReportRequest) *PropertiesRunAccessReportCall {
  9892  	c := &PropertiesRunAccessReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9893  	c.entity = entity
  9894  	c.googleanalyticsadminv1alpharunaccessreportrequest = googleanalyticsadminv1alpharunaccessreportrequest
  9895  	return c
  9896  }
  9897  
  9898  // Fields allows partial responses to be retrieved. See
  9899  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9900  // details.
  9901  func (c *PropertiesRunAccessReportCall) Fields(s ...googleapi.Field) *PropertiesRunAccessReportCall {
  9902  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9903  	return c
  9904  }
  9905  
  9906  // Context sets the context to be used in this call's Do method.
  9907  func (c *PropertiesRunAccessReportCall) Context(ctx context.Context) *PropertiesRunAccessReportCall {
  9908  	c.ctx_ = ctx
  9909  	return c
  9910  }
  9911  
  9912  // Header returns a http.Header that can be modified by the caller to add
  9913  // headers to the request.
  9914  func (c *PropertiesRunAccessReportCall) Header() http.Header {
  9915  	if c.header_ == nil {
  9916  		c.header_ = make(http.Header)
  9917  	}
  9918  	return c.header_
  9919  }
  9920  
  9921  func (c *PropertiesRunAccessReportCall) doRequest(alt string) (*http.Response, error) {
  9922  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9923  	var body io.Reader = nil
  9924  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alpharunaccessreportrequest)
  9925  	if err != nil {
  9926  		return nil, err
  9927  	}
  9928  	c.urlParams_.Set("alt", alt)
  9929  	c.urlParams_.Set("prettyPrint", "false")
  9930  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+entity}:runAccessReport")
  9931  	urls += "?" + c.urlParams_.Encode()
  9932  	req, err := http.NewRequest("POST", urls, body)
  9933  	if err != nil {
  9934  		return nil, err
  9935  	}
  9936  	req.Header = reqHeaders
  9937  	googleapi.Expand(req.URL, map[string]string{
  9938  		"entity": c.entity,
  9939  	})
  9940  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9941  }
  9942  
  9943  // Do executes the "analyticsadmin.properties.runAccessReport" call.
  9944  // Any non-2xx status code is an error. Response headers are in either
  9945  // *GoogleAnalyticsAdminV1alphaRunAccessReportResponse.ServerResponse.Header or
  9946  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  9947  // googleapi.IsNotModified to check whether the returned error was because
  9948  // http.StatusNotModified was returned.
  9949  func (c *PropertiesRunAccessReportCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRunAccessReportResponse, error) {
  9950  	gensupport.SetOptions(c.urlParams_, opts...)
  9951  	res, err := c.doRequest("json")
  9952  	if res != nil && res.StatusCode == http.StatusNotModified {
  9953  		if res.Body != nil {
  9954  			res.Body.Close()
  9955  		}
  9956  		return nil, gensupport.WrapError(&googleapi.Error{
  9957  			Code:   res.StatusCode,
  9958  			Header: res.Header,
  9959  		})
  9960  	}
  9961  	if err != nil {
  9962  		return nil, err
  9963  	}
  9964  	defer googleapi.CloseBody(res)
  9965  	if err := googleapi.CheckResponse(res); err != nil {
  9966  		return nil, gensupport.WrapError(err)
  9967  	}
  9968  	ret := &GoogleAnalyticsAdminV1alphaRunAccessReportResponse{
  9969  		ServerResponse: googleapi.ServerResponse{
  9970  			Header:         res.Header,
  9971  			HTTPStatusCode: res.StatusCode,
  9972  		},
  9973  	}
  9974  	target := &ret
  9975  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9976  		return nil, err
  9977  	}
  9978  	return ret, nil
  9979  }
  9980  
  9981  type PropertiesSetAutomatedGa4ConfigurationOptOutCall struct {
  9982  	s                                                                    *Service
  9983  	googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest
  9984  	urlParams_                                                           gensupport.URLParams
  9985  	ctx_                                                                 context.Context
  9986  	header_                                                              http.Header
  9987  }
  9988  
  9989  // SetAutomatedGa4ConfigurationOptOut: Sets the opt out status for the
  9990  // automated GA4 setup process for a UA property. Note: this has no effect on
  9991  // GA4 property.
  9992  func (r *PropertiesService) SetAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest) *PropertiesSetAutomatedGa4ConfigurationOptOutCall {
  9993  	c := &PropertiesSetAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9994  	c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest
  9995  	return c
  9996  }
  9997  
  9998  // Fields allows partial responses to be retrieved. See
  9999  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10000  // details.
 10001  func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesSetAutomatedGa4ConfigurationOptOutCall {
 10002  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10003  	return c
 10004  }
 10005  
 10006  // Context sets the context to be used in this call's Do method.
 10007  func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Context(ctx context.Context) *PropertiesSetAutomatedGa4ConfigurationOptOutCall {
 10008  	c.ctx_ = ctx
 10009  	return c
 10010  }
 10011  
 10012  // Header returns a http.Header that can be modified by the caller to add
 10013  // headers to the request.
 10014  func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Header() http.Header {
 10015  	if c.header_ == nil {
 10016  		c.header_ = make(http.Header)
 10017  	}
 10018  	return c.header_
 10019  }
 10020  
 10021  func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) doRequest(alt string) (*http.Response, error) {
 10022  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10023  	var body io.Reader = nil
 10024  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasetautomatedga4configurationoptoutrequest)
 10025  	if err != nil {
 10026  		return nil, err
 10027  	}
 10028  	c.urlParams_.Set("alt", alt)
 10029  	c.urlParams_.Set("prettyPrint", "false")
 10030  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:setAutomatedGa4ConfigurationOptOut")
 10031  	urls += "?" + c.urlParams_.Encode()
 10032  	req, err := http.NewRequest("POST", urls, body)
 10033  	if err != nil {
 10034  		return nil, err
 10035  	}
 10036  	req.Header = reqHeaders
 10037  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10038  }
 10039  
 10040  // Do executes the "analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut" call.
 10041  // Any non-2xx status code is an error. Response headers are in either
 10042  // *GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse.Server
 10043  // Response.Header or (if a response was returned at all) in
 10044  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10045  // whether the returned error was because http.StatusNotModified was returned.
 10046  func (c *PropertiesSetAutomatedGa4ConfigurationOptOutCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse, error) {
 10047  	gensupport.SetOptions(c.urlParams_, opts...)
 10048  	res, err := c.doRequest("json")
 10049  	if res != nil && res.StatusCode == http.StatusNotModified {
 10050  		if res.Body != nil {
 10051  			res.Body.Close()
 10052  		}
 10053  		return nil, gensupport.WrapError(&googleapi.Error{
 10054  			Code:   res.StatusCode,
 10055  			Header: res.Header,
 10056  		})
 10057  	}
 10058  	if err != nil {
 10059  		return nil, err
 10060  	}
 10061  	defer googleapi.CloseBody(res)
 10062  	if err := googleapi.CheckResponse(res); err != nil {
 10063  		return nil, gensupport.WrapError(err)
 10064  	}
 10065  	ret := &GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse{
 10066  		ServerResponse: googleapi.ServerResponse{
 10067  			Header:         res.Header,
 10068  			HTTPStatusCode: res.StatusCode,
 10069  		},
 10070  	}
 10071  	target := &ret
 10072  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10073  		return nil, err
 10074  	}
 10075  	return ret, nil
 10076  }
 10077  
 10078  type PropertiesUpdateAttributionSettingsCall struct {
 10079  	s                                              *Service
 10080  	name                                           string
 10081  	googleanalyticsadminv1alphaattributionsettings *GoogleAnalyticsAdminV1alphaAttributionSettings
 10082  	urlParams_                                     gensupport.URLParams
 10083  	ctx_                                           context.Context
 10084  	header_                                        http.Header
 10085  }
 10086  
 10087  // UpdateAttributionSettings: Updates attribution settings on a property.
 10088  //
 10089  //   - name: Output only. Resource name of this attribution settings resource.
 10090  //     Format: properties/{property_id}/attributionSettings Example:
 10091  //     "properties/1000/attributionSettings".
 10092  func (r *PropertiesService) UpdateAttributionSettings(name string, googleanalyticsadminv1alphaattributionsettings *GoogleAnalyticsAdminV1alphaAttributionSettings) *PropertiesUpdateAttributionSettingsCall {
 10093  	c := &PropertiesUpdateAttributionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10094  	c.name = name
 10095  	c.googleanalyticsadminv1alphaattributionsettings = googleanalyticsadminv1alphaattributionsettings
 10096  	return c
 10097  }
 10098  
 10099  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 10100  // fields to be updated. Field names must be in snake case (e.g.,
 10101  // "field_to_update"). Omitted fields will not be updated. To replace the
 10102  // entire entity, use one path with the string "*" to match all fields.
 10103  func (c *PropertiesUpdateAttributionSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateAttributionSettingsCall {
 10104  	c.urlParams_.Set("updateMask", updateMask)
 10105  	return c
 10106  }
 10107  
 10108  // Fields allows partial responses to be retrieved. See
 10109  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10110  // details.
 10111  func (c *PropertiesUpdateAttributionSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateAttributionSettingsCall {
 10112  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10113  	return c
 10114  }
 10115  
 10116  // Context sets the context to be used in this call's Do method.
 10117  func (c *PropertiesUpdateAttributionSettingsCall) Context(ctx context.Context) *PropertiesUpdateAttributionSettingsCall {
 10118  	c.ctx_ = ctx
 10119  	return c
 10120  }
 10121  
 10122  // Header returns a http.Header that can be modified by the caller to add
 10123  // headers to the request.
 10124  func (c *PropertiesUpdateAttributionSettingsCall) Header() http.Header {
 10125  	if c.header_ == nil {
 10126  		c.header_ = make(http.Header)
 10127  	}
 10128  	return c.header_
 10129  }
 10130  
 10131  func (c *PropertiesUpdateAttributionSettingsCall) doRequest(alt string) (*http.Response, error) {
 10132  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10133  	var body io.Reader = nil
 10134  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaattributionsettings)
 10135  	if err != nil {
 10136  		return nil, err
 10137  	}
 10138  	c.urlParams_.Set("alt", alt)
 10139  	c.urlParams_.Set("prettyPrint", "false")
 10140  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 10141  	urls += "?" + c.urlParams_.Encode()
 10142  	req, err := http.NewRequest("PATCH", urls, body)
 10143  	if err != nil {
 10144  		return nil, err
 10145  	}
 10146  	req.Header = reqHeaders
 10147  	googleapi.Expand(req.URL, map[string]string{
 10148  		"name": c.name,
 10149  	})
 10150  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10151  }
 10152  
 10153  // Do executes the "analyticsadmin.properties.updateAttributionSettings" call.
 10154  // Any non-2xx status code is an error. Response headers are in either
 10155  // *GoogleAnalyticsAdminV1alphaAttributionSettings.ServerResponse.Header or (if
 10156  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 10157  // googleapi.IsNotModified to check whether the returned error was because
 10158  // http.StatusNotModified was returned.
 10159  func (c *PropertiesUpdateAttributionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAttributionSettings, error) {
 10160  	gensupport.SetOptions(c.urlParams_, opts...)
 10161  	res, err := c.doRequest("json")
 10162  	if res != nil && res.StatusCode == http.StatusNotModified {
 10163  		if res.Body != nil {
 10164  			res.Body.Close()
 10165  		}
 10166  		return nil, gensupport.WrapError(&googleapi.Error{
 10167  			Code:   res.StatusCode,
 10168  			Header: res.Header,
 10169  		})
 10170  	}
 10171  	if err != nil {
 10172  		return nil, err
 10173  	}
 10174  	defer googleapi.CloseBody(res)
 10175  	if err := googleapi.CheckResponse(res); err != nil {
 10176  		return nil, gensupport.WrapError(err)
 10177  	}
 10178  	ret := &GoogleAnalyticsAdminV1alphaAttributionSettings{
 10179  		ServerResponse: googleapi.ServerResponse{
 10180  			Header:         res.Header,
 10181  			HTTPStatusCode: res.StatusCode,
 10182  		},
 10183  	}
 10184  	target := &ret
 10185  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10186  		return nil, err
 10187  	}
 10188  	return ret, nil
 10189  }
 10190  
 10191  type PropertiesUpdateDataRetentionSettingsCall struct {
 10192  	s                                                *Service
 10193  	name                                             string
 10194  	googleanalyticsadminv1alphadataretentionsettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings
 10195  	urlParams_                                       gensupport.URLParams
 10196  	ctx_                                             context.Context
 10197  	header_                                          http.Header
 10198  }
 10199  
 10200  // UpdateDataRetentionSettings: Updates the singleton data retention settings
 10201  // for this property.
 10202  //
 10203  //   - name: Output only. Resource name for this DataRetentionSetting resource.
 10204  //     Format: properties/{property}/dataRetentionSettings.
 10205  func (r *PropertiesService) UpdateDataRetentionSettings(name string, googleanalyticsadminv1alphadataretentionsettings *GoogleAnalyticsAdminV1alphaDataRetentionSettings) *PropertiesUpdateDataRetentionSettingsCall {
 10206  	c := &PropertiesUpdateDataRetentionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10207  	c.name = name
 10208  	c.googleanalyticsadminv1alphadataretentionsettings = googleanalyticsadminv1alphadataretentionsettings
 10209  	return c
 10210  }
 10211  
 10212  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 10213  // fields to be updated. Field names must be in snake case (e.g.,
 10214  // "field_to_update"). Omitted fields will not be updated. To replace the
 10215  // entire entity, use one path with the string "*" to match all fields.
 10216  func (c *PropertiesUpdateDataRetentionSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateDataRetentionSettingsCall {
 10217  	c.urlParams_.Set("updateMask", updateMask)
 10218  	return c
 10219  }
 10220  
 10221  // Fields allows partial responses to be retrieved. See
 10222  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10223  // details.
 10224  func (c *PropertiesUpdateDataRetentionSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateDataRetentionSettingsCall {
 10225  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10226  	return c
 10227  }
 10228  
 10229  // Context sets the context to be used in this call's Do method.
 10230  func (c *PropertiesUpdateDataRetentionSettingsCall) Context(ctx context.Context) *PropertiesUpdateDataRetentionSettingsCall {
 10231  	c.ctx_ = ctx
 10232  	return c
 10233  }
 10234  
 10235  // Header returns a http.Header that can be modified by the caller to add
 10236  // headers to the request.
 10237  func (c *PropertiesUpdateDataRetentionSettingsCall) Header() http.Header {
 10238  	if c.header_ == nil {
 10239  		c.header_ = make(http.Header)
 10240  	}
 10241  	return c.header_
 10242  }
 10243  
 10244  func (c *PropertiesUpdateDataRetentionSettingsCall) doRequest(alt string) (*http.Response, error) {
 10245  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10246  	var body io.Reader = nil
 10247  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadataretentionsettings)
 10248  	if err != nil {
 10249  		return nil, err
 10250  	}
 10251  	c.urlParams_.Set("alt", alt)
 10252  	c.urlParams_.Set("prettyPrint", "false")
 10253  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 10254  	urls += "?" + c.urlParams_.Encode()
 10255  	req, err := http.NewRequest("PATCH", urls, body)
 10256  	if err != nil {
 10257  		return nil, err
 10258  	}
 10259  	req.Header = reqHeaders
 10260  	googleapi.Expand(req.URL, map[string]string{
 10261  		"name": c.name,
 10262  	})
 10263  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10264  }
 10265  
 10266  // Do executes the "analyticsadmin.properties.updateDataRetentionSettings" call.
 10267  // Any non-2xx status code is an error. Response headers are in either
 10268  // *GoogleAnalyticsAdminV1alphaDataRetentionSettings.ServerResponse.Header or
 10269  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 10270  // googleapi.IsNotModified to check whether the returned error was because
 10271  // http.StatusNotModified was returned.
 10272  func (c *PropertiesUpdateDataRetentionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRetentionSettings, error) {
 10273  	gensupport.SetOptions(c.urlParams_, opts...)
 10274  	res, err := c.doRequest("json")
 10275  	if res != nil && res.StatusCode == http.StatusNotModified {
 10276  		if res.Body != nil {
 10277  			res.Body.Close()
 10278  		}
 10279  		return nil, gensupport.WrapError(&googleapi.Error{
 10280  			Code:   res.StatusCode,
 10281  			Header: res.Header,
 10282  		})
 10283  	}
 10284  	if err != nil {
 10285  		return nil, err
 10286  	}
 10287  	defer googleapi.CloseBody(res)
 10288  	if err := googleapi.CheckResponse(res); err != nil {
 10289  		return nil, gensupport.WrapError(err)
 10290  	}
 10291  	ret := &GoogleAnalyticsAdminV1alphaDataRetentionSettings{
 10292  		ServerResponse: googleapi.ServerResponse{
 10293  			Header:         res.Header,
 10294  			HTTPStatusCode: res.StatusCode,
 10295  		},
 10296  	}
 10297  	target := &ret
 10298  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10299  		return nil, err
 10300  	}
 10301  	return ret, nil
 10302  }
 10303  
 10304  type PropertiesUpdateGoogleSignalsSettingsCall struct {
 10305  	s                                                *Service
 10306  	name                                             string
 10307  	googleanalyticsadminv1alphagooglesignalssettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
 10308  	urlParams_                                       gensupport.URLParams
 10309  	ctx_                                             context.Context
 10310  	header_                                          http.Header
 10311  }
 10312  
 10313  // UpdateGoogleSignalsSettings: Updates Google Signals settings for a property.
 10314  //
 10315  //   - name: Output only. Resource name of this setting. Format:
 10316  //     properties/{property_id}/googleSignalsSettings Example:
 10317  //     "properties/1000/googleSignalsSettings".
 10318  func (r *PropertiesService) UpdateGoogleSignalsSettings(name string, googleanalyticsadminv1alphagooglesignalssettings *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings) *PropertiesUpdateGoogleSignalsSettingsCall {
 10319  	c := &PropertiesUpdateGoogleSignalsSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10320  	c.name = name
 10321  	c.googleanalyticsadminv1alphagooglesignalssettings = googleanalyticsadminv1alphagooglesignalssettings
 10322  	return c
 10323  }
 10324  
 10325  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 10326  // fields to be updated. Field names must be in snake case (e.g.,
 10327  // "field_to_update"). Omitted fields will not be updated. To replace the
 10328  // entire entity, use one path with the string "*" to match all fields.
 10329  func (c *PropertiesUpdateGoogleSignalsSettingsCall) UpdateMask(updateMask string) *PropertiesUpdateGoogleSignalsSettingsCall {
 10330  	c.urlParams_.Set("updateMask", updateMask)
 10331  	return c
 10332  }
 10333  
 10334  // Fields allows partial responses to be retrieved. See
 10335  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10336  // details.
 10337  func (c *PropertiesUpdateGoogleSignalsSettingsCall) Fields(s ...googleapi.Field) *PropertiesUpdateGoogleSignalsSettingsCall {
 10338  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10339  	return c
 10340  }
 10341  
 10342  // Context sets the context to be used in this call's Do method.
 10343  func (c *PropertiesUpdateGoogleSignalsSettingsCall) Context(ctx context.Context) *PropertiesUpdateGoogleSignalsSettingsCall {
 10344  	c.ctx_ = ctx
 10345  	return c
 10346  }
 10347  
 10348  // Header returns a http.Header that can be modified by the caller to add
 10349  // headers to the request.
 10350  func (c *PropertiesUpdateGoogleSignalsSettingsCall) Header() http.Header {
 10351  	if c.header_ == nil {
 10352  		c.header_ = make(http.Header)
 10353  	}
 10354  	return c.header_
 10355  }
 10356  
 10357  func (c *PropertiesUpdateGoogleSignalsSettingsCall) doRequest(alt string) (*http.Response, error) {
 10358  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10359  	var body io.Reader = nil
 10360  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphagooglesignalssettings)
 10361  	if err != nil {
 10362  		return nil, err
 10363  	}
 10364  	c.urlParams_.Set("alt", alt)
 10365  	c.urlParams_.Set("prettyPrint", "false")
 10366  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 10367  	urls += "?" + c.urlParams_.Encode()
 10368  	req, err := http.NewRequest("PATCH", urls, body)
 10369  	if err != nil {
 10370  		return nil, err
 10371  	}
 10372  	req.Header = reqHeaders
 10373  	googleapi.Expand(req.URL, map[string]string{
 10374  		"name": c.name,
 10375  	})
 10376  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10377  }
 10378  
 10379  // Do executes the "analyticsadmin.properties.updateGoogleSignalsSettings" call.
 10380  // Any non-2xx status code is an error. Response headers are in either
 10381  // *GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.ServerResponse.Header or
 10382  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 10383  // googleapi.IsNotModified to check whether the returned error was because
 10384  // http.StatusNotModified was returned.
 10385  func (c *PropertiesUpdateGoogleSignalsSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, error) {
 10386  	gensupport.SetOptions(c.urlParams_, opts...)
 10387  	res, err := c.doRequest("json")
 10388  	if res != nil && res.StatusCode == http.StatusNotModified {
 10389  		if res.Body != nil {
 10390  			res.Body.Close()
 10391  		}
 10392  		return nil, gensupport.WrapError(&googleapi.Error{
 10393  			Code:   res.StatusCode,
 10394  			Header: res.Header,
 10395  		})
 10396  	}
 10397  	if err != nil {
 10398  		return nil, err
 10399  	}
 10400  	defer googleapi.CloseBody(res)
 10401  	if err := googleapi.CheckResponse(res); err != nil {
 10402  		return nil, gensupport.WrapError(err)
 10403  	}
 10404  	ret := &GoogleAnalyticsAdminV1alphaGoogleSignalsSettings{
 10405  		ServerResponse: googleapi.ServerResponse{
 10406  			Header:         res.Header,
 10407  			HTTPStatusCode: res.StatusCode,
 10408  		},
 10409  	}
 10410  	target := &ret
 10411  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10412  		return nil, err
 10413  	}
 10414  	return ret, nil
 10415  }
 10416  
 10417  type PropertiesAccessBindingsBatchCreateCall struct {
 10418  	s                                                           *Service
 10419  	parent                                                      string
 10420  	googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest
 10421  	urlParams_                                                  gensupport.URLParams
 10422  	ctx_                                                        context.Context
 10423  	header_                                                     http.Header
 10424  }
 10425  
 10426  // BatchCreate: Creates information about multiple access bindings to an
 10427  // account or property. This method is transactional. If any AccessBinding
 10428  // cannot be created, none of the AccessBindings will be created.
 10429  //
 10430  //   - parent: The account or property that owns the access bindings. The parent
 10431  //     field in the CreateAccessBindingRequest messages must either be empty or
 10432  //     match this field. Formats: - accounts/{account} - properties/{property}.
 10433  func (r *PropertiesAccessBindingsService) BatchCreate(parent string, googleanalyticsadminv1alphabatchcreateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsRequest) *PropertiesAccessBindingsBatchCreateCall {
 10434  	c := &PropertiesAccessBindingsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10435  	c.parent = parent
 10436  	c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest = googleanalyticsadminv1alphabatchcreateaccessbindingsrequest
 10437  	return c
 10438  }
 10439  
 10440  // Fields allows partial responses to be retrieved. See
 10441  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10442  // details.
 10443  func (c *PropertiesAccessBindingsBatchCreateCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchCreateCall {
 10444  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10445  	return c
 10446  }
 10447  
 10448  // Context sets the context to be used in this call's Do method.
 10449  func (c *PropertiesAccessBindingsBatchCreateCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchCreateCall {
 10450  	c.ctx_ = ctx
 10451  	return c
 10452  }
 10453  
 10454  // Header returns a http.Header that can be modified by the caller to add
 10455  // headers to the request.
 10456  func (c *PropertiesAccessBindingsBatchCreateCall) Header() http.Header {
 10457  	if c.header_ == nil {
 10458  		c.header_ = make(http.Header)
 10459  	}
 10460  	return c.header_
 10461  }
 10462  
 10463  func (c *PropertiesAccessBindingsBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 10464  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10465  	var body io.Reader = nil
 10466  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchcreateaccessbindingsrequest)
 10467  	if err != nil {
 10468  		return nil, err
 10469  	}
 10470  	c.urlParams_.Set("alt", alt)
 10471  	c.urlParams_.Set("prettyPrint", "false")
 10472  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchCreate")
 10473  	urls += "?" + c.urlParams_.Encode()
 10474  	req, err := http.NewRequest("POST", urls, body)
 10475  	if err != nil {
 10476  		return nil, err
 10477  	}
 10478  	req.Header = reqHeaders
 10479  	googleapi.Expand(req.URL, map[string]string{
 10480  		"parent": c.parent,
 10481  	})
 10482  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10483  }
 10484  
 10485  // Do executes the "analyticsadmin.properties.accessBindings.batchCreate" call.
 10486  // Any non-2xx status code is an error. Response headers are in either
 10487  // *GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse.ServerResponse.
 10488  // Header or (if a response was returned at all) in
 10489  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10490  // whether the returned error was because http.StatusNotModified was returned.
 10491  func (c *PropertiesAccessBindingsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse, error) {
 10492  	gensupport.SetOptions(c.urlParams_, opts...)
 10493  	res, err := c.doRequest("json")
 10494  	if res != nil && res.StatusCode == http.StatusNotModified {
 10495  		if res.Body != nil {
 10496  			res.Body.Close()
 10497  		}
 10498  		return nil, gensupport.WrapError(&googleapi.Error{
 10499  			Code:   res.StatusCode,
 10500  			Header: res.Header,
 10501  		})
 10502  	}
 10503  	if err != nil {
 10504  		return nil, err
 10505  	}
 10506  	defer googleapi.CloseBody(res)
 10507  	if err := googleapi.CheckResponse(res); err != nil {
 10508  		return nil, gensupport.WrapError(err)
 10509  	}
 10510  	ret := &GoogleAnalyticsAdminV1alphaBatchCreateAccessBindingsResponse{
 10511  		ServerResponse: googleapi.ServerResponse{
 10512  			Header:         res.Header,
 10513  			HTTPStatusCode: res.StatusCode,
 10514  		},
 10515  	}
 10516  	target := &ret
 10517  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10518  		return nil, err
 10519  	}
 10520  	return ret, nil
 10521  }
 10522  
 10523  type PropertiesAccessBindingsBatchDeleteCall struct {
 10524  	s                                                           *Service
 10525  	parent                                                      string
 10526  	googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest
 10527  	urlParams_                                                  gensupport.URLParams
 10528  	ctx_                                                        context.Context
 10529  	header_                                                     http.Header
 10530  }
 10531  
 10532  // BatchDelete: Deletes information about multiple users' links to an account
 10533  // or property.
 10534  //
 10535  //   - parent: The account or property that owns the access bindings. The parent
 10536  //     of all provided values for the 'names' field in DeleteAccessBindingRequest
 10537  //     messages must match this field. Formats: - accounts/{account} -
 10538  //     properties/{property}.
 10539  func (r *PropertiesAccessBindingsService) BatchDelete(parent string, googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchDeleteAccessBindingsRequest) *PropertiesAccessBindingsBatchDeleteCall {
 10540  	c := &PropertiesAccessBindingsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10541  	c.parent = parent
 10542  	c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest = googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest
 10543  	return c
 10544  }
 10545  
 10546  // Fields allows partial responses to be retrieved. See
 10547  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10548  // details.
 10549  func (c *PropertiesAccessBindingsBatchDeleteCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchDeleteCall {
 10550  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10551  	return c
 10552  }
 10553  
 10554  // Context sets the context to be used in this call's Do method.
 10555  func (c *PropertiesAccessBindingsBatchDeleteCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchDeleteCall {
 10556  	c.ctx_ = ctx
 10557  	return c
 10558  }
 10559  
 10560  // Header returns a http.Header that can be modified by the caller to add
 10561  // headers to the request.
 10562  func (c *PropertiesAccessBindingsBatchDeleteCall) Header() http.Header {
 10563  	if c.header_ == nil {
 10564  		c.header_ = make(http.Header)
 10565  	}
 10566  	return c.header_
 10567  }
 10568  
 10569  func (c *PropertiesAccessBindingsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
 10570  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10571  	var body io.Reader = nil
 10572  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchdeleteaccessbindingsrequest)
 10573  	if err != nil {
 10574  		return nil, err
 10575  	}
 10576  	c.urlParams_.Set("alt", alt)
 10577  	c.urlParams_.Set("prettyPrint", "false")
 10578  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchDelete")
 10579  	urls += "?" + c.urlParams_.Encode()
 10580  	req, err := http.NewRequest("POST", urls, body)
 10581  	if err != nil {
 10582  		return nil, err
 10583  	}
 10584  	req.Header = reqHeaders
 10585  	googleapi.Expand(req.URL, map[string]string{
 10586  		"parent": c.parent,
 10587  	})
 10588  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10589  }
 10590  
 10591  // Do executes the "analyticsadmin.properties.accessBindings.batchDelete" call.
 10592  // Any non-2xx status code is an error. Response headers are in either
 10593  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 10594  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10595  // check whether the returned error was because http.StatusNotModified was
 10596  // returned.
 10597  func (c *PropertiesAccessBindingsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 10598  	gensupport.SetOptions(c.urlParams_, opts...)
 10599  	res, err := c.doRequest("json")
 10600  	if res != nil && res.StatusCode == http.StatusNotModified {
 10601  		if res.Body != nil {
 10602  			res.Body.Close()
 10603  		}
 10604  		return nil, gensupport.WrapError(&googleapi.Error{
 10605  			Code:   res.StatusCode,
 10606  			Header: res.Header,
 10607  		})
 10608  	}
 10609  	if err != nil {
 10610  		return nil, err
 10611  	}
 10612  	defer googleapi.CloseBody(res)
 10613  	if err := googleapi.CheckResponse(res); err != nil {
 10614  		return nil, gensupport.WrapError(err)
 10615  	}
 10616  	ret := &GoogleProtobufEmpty{
 10617  		ServerResponse: googleapi.ServerResponse{
 10618  			Header:         res.Header,
 10619  			HTTPStatusCode: res.StatusCode,
 10620  		},
 10621  	}
 10622  	target := &ret
 10623  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10624  		return nil, err
 10625  	}
 10626  	return ret, nil
 10627  }
 10628  
 10629  type PropertiesAccessBindingsBatchGetCall struct {
 10630  	s            *Service
 10631  	parent       string
 10632  	urlParams_   gensupport.URLParams
 10633  	ifNoneMatch_ string
 10634  	ctx_         context.Context
 10635  	header_      http.Header
 10636  }
 10637  
 10638  // BatchGet: Gets information about multiple access bindings to an account or
 10639  // property.
 10640  //
 10641  //   - parent: The account or property that owns the access bindings. The parent
 10642  //     of all provided values for the 'names' field must match this field.
 10643  //     Formats: - accounts/{account} - properties/{property}.
 10644  func (r *PropertiesAccessBindingsService) BatchGet(parent string) *PropertiesAccessBindingsBatchGetCall {
 10645  	c := &PropertiesAccessBindingsBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10646  	c.parent = parent
 10647  	return c
 10648  }
 10649  
 10650  // Names sets the optional parameter "names": Required. The names of the access
 10651  // bindings to retrieve. A maximum of 1000 access bindings can be retrieved in
 10652  // a batch. Formats: - accounts/{account}/accessBindings/{accessBinding} -
 10653  // properties/{property}/accessBindings/{accessBinding}
 10654  func (c *PropertiesAccessBindingsBatchGetCall) Names(names ...string) *PropertiesAccessBindingsBatchGetCall {
 10655  	c.urlParams_.SetMulti("names", append([]string{}, names...))
 10656  	return c
 10657  }
 10658  
 10659  // Fields allows partial responses to be retrieved. See
 10660  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10661  // details.
 10662  func (c *PropertiesAccessBindingsBatchGetCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchGetCall {
 10663  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10664  	return c
 10665  }
 10666  
 10667  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10668  // object's ETag matches the given value. This is useful for getting updates
 10669  // only after the object has changed since the last request.
 10670  func (c *PropertiesAccessBindingsBatchGetCall) IfNoneMatch(entityTag string) *PropertiesAccessBindingsBatchGetCall {
 10671  	c.ifNoneMatch_ = entityTag
 10672  	return c
 10673  }
 10674  
 10675  // Context sets the context to be used in this call's Do method.
 10676  func (c *PropertiesAccessBindingsBatchGetCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchGetCall {
 10677  	c.ctx_ = ctx
 10678  	return c
 10679  }
 10680  
 10681  // Header returns a http.Header that can be modified by the caller to add
 10682  // headers to the request.
 10683  func (c *PropertiesAccessBindingsBatchGetCall) Header() http.Header {
 10684  	if c.header_ == nil {
 10685  		c.header_ = make(http.Header)
 10686  	}
 10687  	return c.header_
 10688  }
 10689  
 10690  func (c *PropertiesAccessBindingsBatchGetCall) doRequest(alt string) (*http.Response, error) {
 10691  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10692  	if c.ifNoneMatch_ != "" {
 10693  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10694  	}
 10695  	var body io.Reader = nil
 10696  	c.urlParams_.Set("alt", alt)
 10697  	c.urlParams_.Set("prettyPrint", "false")
 10698  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchGet")
 10699  	urls += "?" + c.urlParams_.Encode()
 10700  	req, err := http.NewRequest("GET", urls, body)
 10701  	if err != nil {
 10702  		return nil, err
 10703  	}
 10704  	req.Header = reqHeaders
 10705  	googleapi.Expand(req.URL, map[string]string{
 10706  		"parent": c.parent,
 10707  	})
 10708  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10709  }
 10710  
 10711  // Do executes the "analyticsadmin.properties.accessBindings.batchGet" call.
 10712  // Any non-2xx status code is an error. Response headers are in either
 10713  // *GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse.ServerResponse.Hea
 10714  // der or (if a response was returned at all) in
 10715  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10716  // whether the returned error was because http.StatusNotModified was returned.
 10717  func (c *PropertiesAccessBindingsBatchGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse, error) {
 10718  	gensupport.SetOptions(c.urlParams_, opts...)
 10719  	res, err := c.doRequest("json")
 10720  	if res != nil && res.StatusCode == http.StatusNotModified {
 10721  		if res.Body != nil {
 10722  			res.Body.Close()
 10723  		}
 10724  		return nil, gensupport.WrapError(&googleapi.Error{
 10725  			Code:   res.StatusCode,
 10726  			Header: res.Header,
 10727  		})
 10728  	}
 10729  	if err != nil {
 10730  		return nil, err
 10731  	}
 10732  	defer googleapi.CloseBody(res)
 10733  	if err := googleapi.CheckResponse(res); err != nil {
 10734  		return nil, gensupport.WrapError(err)
 10735  	}
 10736  	ret := &GoogleAnalyticsAdminV1alphaBatchGetAccessBindingsResponse{
 10737  		ServerResponse: googleapi.ServerResponse{
 10738  			Header:         res.Header,
 10739  			HTTPStatusCode: res.StatusCode,
 10740  		},
 10741  	}
 10742  	target := &ret
 10743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10744  		return nil, err
 10745  	}
 10746  	return ret, nil
 10747  }
 10748  
 10749  type PropertiesAccessBindingsBatchUpdateCall struct {
 10750  	s                                                           *Service
 10751  	parent                                                      string
 10752  	googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest
 10753  	urlParams_                                                  gensupport.URLParams
 10754  	ctx_                                                        context.Context
 10755  	header_                                                     http.Header
 10756  }
 10757  
 10758  // BatchUpdate: Updates information about multiple access bindings to an
 10759  // account or property.
 10760  //
 10761  //   - parent: The account or property that owns the access bindings. The parent
 10762  //     of all provided AccessBinding in UpdateAccessBindingRequest messages must
 10763  //     match this field. Formats: - accounts/{account} - properties/{property}.
 10764  func (r *PropertiesAccessBindingsService) BatchUpdate(parent string, googleanalyticsadminv1alphabatchupdateaccessbindingsrequest *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsRequest) *PropertiesAccessBindingsBatchUpdateCall {
 10765  	c := &PropertiesAccessBindingsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10766  	c.parent = parent
 10767  	c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest = googleanalyticsadminv1alphabatchupdateaccessbindingsrequest
 10768  	return c
 10769  }
 10770  
 10771  // Fields allows partial responses to be retrieved. See
 10772  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10773  // details.
 10774  func (c *PropertiesAccessBindingsBatchUpdateCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsBatchUpdateCall {
 10775  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10776  	return c
 10777  }
 10778  
 10779  // Context sets the context to be used in this call's Do method.
 10780  func (c *PropertiesAccessBindingsBatchUpdateCall) Context(ctx context.Context) *PropertiesAccessBindingsBatchUpdateCall {
 10781  	c.ctx_ = ctx
 10782  	return c
 10783  }
 10784  
 10785  // Header returns a http.Header that can be modified by the caller to add
 10786  // headers to the request.
 10787  func (c *PropertiesAccessBindingsBatchUpdateCall) Header() http.Header {
 10788  	if c.header_ == nil {
 10789  		c.header_ = make(http.Header)
 10790  	}
 10791  	return c.header_
 10792  }
 10793  
 10794  func (c *PropertiesAccessBindingsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
 10795  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10796  	var body io.Reader = nil
 10797  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphabatchupdateaccessbindingsrequest)
 10798  	if err != nil {
 10799  		return nil, err
 10800  	}
 10801  	c.urlParams_.Set("alt", alt)
 10802  	c.urlParams_.Set("prettyPrint", "false")
 10803  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings:batchUpdate")
 10804  	urls += "?" + c.urlParams_.Encode()
 10805  	req, err := http.NewRequest("POST", urls, body)
 10806  	if err != nil {
 10807  		return nil, err
 10808  	}
 10809  	req.Header = reqHeaders
 10810  	googleapi.Expand(req.URL, map[string]string{
 10811  		"parent": c.parent,
 10812  	})
 10813  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10814  }
 10815  
 10816  // Do executes the "analyticsadmin.properties.accessBindings.batchUpdate" call.
 10817  // Any non-2xx status code is an error. Response headers are in either
 10818  // *GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse.ServerResponse.
 10819  // Header or (if a response was returned at all) in
 10820  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10821  // whether the returned error was because http.StatusNotModified was returned.
 10822  func (c *PropertiesAccessBindingsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse, error) {
 10823  	gensupport.SetOptions(c.urlParams_, opts...)
 10824  	res, err := c.doRequest("json")
 10825  	if res != nil && res.StatusCode == http.StatusNotModified {
 10826  		if res.Body != nil {
 10827  			res.Body.Close()
 10828  		}
 10829  		return nil, gensupport.WrapError(&googleapi.Error{
 10830  			Code:   res.StatusCode,
 10831  			Header: res.Header,
 10832  		})
 10833  	}
 10834  	if err != nil {
 10835  		return nil, err
 10836  	}
 10837  	defer googleapi.CloseBody(res)
 10838  	if err := googleapi.CheckResponse(res); err != nil {
 10839  		return nil, gensupport.WrapError(err)
 10840  	}
 10841  	ret := &GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse{
 10842  		ServerResponse: googleapi.ServerResponse{
 10843  			Header:         res.Header,
 10844  			HTTPStatusCode: res.StatusCode,
 10845  		},
 10846  	}
 10847  	target := &ret
 10848  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10849  		return nil, err
 10850  	}
 10851  	return ret, nil
 10852  }
 10853  
 10854  type PropertiesAccessBindingsCreateCall struct {
 10855  	s                                        *Service
 10856  	parent                                   string
 10857  	googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding
 10858  	urlParams_                               gensupport.URLParams
 10859  	ctx_                                     context.Context
 10860  	header_                                  http.Header
 10861  }
 10862  
 10863  // Create: Creates an access binding on an account or property.
 10864  //
 10865  // - parent: Formats: - accounts/{account} - properties/{property}.
 10866  func (r *PropertiesAccessBindingsService) Create(parent string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *PropertiesAccessBindingsCreateCall {
 10867  	c := &PropertiesAccessBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10868  	c.parent = parent
 10869  	c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding
 10870  	return c
 10871  }
 10872  
 10873  // Fields allows partial responses to be retrieved. See
 10874  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10875  // details.
 10876  func (c *PropertiesAccessBindingsCreateCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsCreateCall {
 10877  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10878  	return c
 10879  }
 10880  
 10881  // Context sets the context to be used in this call's Do method.
 10882  func (c *PropertiesAccessBindingsCreateCall) Context(ctx context.Context) *PropertiesAccessBindingsCreateCall {
 10883  	c.ctx_ = ctx
 10884  	return c
 10885  }
 10886  
 10887  // Header returns a http.Header that can be modified by the caller to add
 10888  // headers to the request.
 10889  func (c *PropertiesAccessBindingsCreateCall) Header() http.Header {
 10890  	if c.header_ == nil {
 10891  		c.header_ = make(http.Header)
 10892  	}
 10893  	return c.header_
 10894  }
 10895  
 10896  func (c *PropertiesAccessBindingsCreateCall) doRequest(alt string) (*http.Response, error) {
 10897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10898  	var body io.Reader = nil
 10899  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding)
 10900  	if err != nil {
 10901  		return nil, err
 10902  	}
 10903  	c.urlParams_.Set("alt", alt)
 10904  	c.urlParams_.Set("prettyPrint", "false")
 10905  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings")
 10906  	urls += "?" + c.urlParams_.Encode()
 10907  	req, err := http.NewRequest("POST", urls, body)
 10908  	if err != nil {
 10909  		return nil, err
 10910  	}
 10911  	req.Header = reqHeaders
 10912  	googleapi.Expand(req.URL, map[string]string{
 10913  		"parent": c.parent,
 10914  	})
 10915  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10916  }
 10917  
 10918  // Do executes the "analyticsadmin.properties.accessBindings.create" call.
 10919  // Any non-2xx status code is an error. Response headers are in either
 10920  // *GoogleAnalyticsAdminV1alphaAccessBinding.ServerResponse.Header or (if a
 10921  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10922  // googleapi.IsNotModified to check whether the returned error was because
 10923  // http.StatusNotModified was returned.
 10924  func (c *PropertiesAccessBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) {
 10925  	gensupport.SetOptions(c.urlParams_, opts...)
 10926  	res, err := c.doRequest("json")
 10927  	if res != nil && res.StatusCode == http.StatusNotModified {
 10928  		if res.Body != nil {
 10929  			res.Body.Close()
 10930  		}
 10931  		return nil, gensupport.WrapError(&googleapi.Error{
 10932  			Code:   res.StatusCode,
 10933  			Header: res.Header,
 10934  		})
 10935  	}
 10936  	if err != nil {
 10937  		return nil, err
 10938  	}
 10939  	defer googleapi.CloseBody(res)
 10940  	if err := googleapi.CheckResponse(res); err != nil {
 10941  		return nil, gensupport.WrapError(err)
 10942  	}
 10943  	ret := &GoogleAnalyticsAdminV1alphaAccessBinding{
 10944  		ServerResponse: googleapi.ServerResponse{
 10945  			Header:         res.Header,
 10946  			HTTPStatusCode: res.StatusCode,
 10947  		},
 10948  	}
 10949  	target := &ret
 10950  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10951  		return nil, err
 10952  	}
 10953  	return ret, nil
 10954  }
 10955  
 10956  type PropertiesAccessBindingsDeleteCall struct {
 10957  	s          *Service
 10958  	name       string
 10959  	urlParams_ gensupport.URLParams
 10960  	ctx_       context.Context
 10961  	header_    http.Header
 10962  }
 10963  
 10964  // Delete: Deletes an access binding on an account or property.
 10965  //
 10966  //   - name: Formats: - accounts/{account}/accessBindings/{accessBinding} -
 10967  //     properties/{property}/accessBindings/{accessBinding}.
 10968  func (r *PropertiesAccessBindingsService) Delete(name string) *PropertiesAccessBindingsDeleteCall {
 10969  	c := &PropertiesAccessBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10970  	c.name = name
 10971  	return c
 10972  }
 10973  
 10974  // Fields allows partial responses to be retrieved. See
 10975  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10976  // details.
 10977  func (c *PropertiesAccessBindingsDeleteCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsDeleteCall {
 10978  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10979  	return c
 10980  }
 10981  
 10982  // Context sets the context to be used in this call's Do method.
 10983  func (c *PropertiesAccessBindingsDeleteCall) Context(ctx context.Context) *PropertiesAccessBindingsDeleteCall {
 10984  	c.ctx_ = ctx
 10985  	return c
 10986  }
 10987  
 10988  // Header returns a http.Header that can be modified by the caller to add
 10989  // headers to the request.
 10990  func (c *PropertiesAccessBindingsDeleteCall) Header() http.Header {
 10991  	if c.header_ == nil {
 10992  		c.header_ = make(http.Header)
 10993  	}
 10994  	return c.header_
 10995  }
 10996  
 10997  func (c *PropertiesAccessBindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10998  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10999  	var body io.Reader = nil
 11000  	c.urlParams_.Set("alt", alt)
 11001  	c.urlParams_.Set("prettyPrint", "false")
 11002  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 11003  	urls += "?" + c.urlParams_.Encode()
 11004  	req, err := http.NewRequest("DELETE", urls, body)
 11005  	if err != nil {
 11006  		return nil, err
 11007  	}
 11008  	req.Header = reqHeaders
 11009  	googleapi.Expand(req.URL, map[string]string{
 11010  		"name": c.name,
 11011  	})
 11012  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11013  }
 11014  
 11015  // Do executes the "analyticsadmin.properties.accessBindings.delete" call.
 11016  // Any non-2xx status code is an error. Response headers are in either
 11017  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11018  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11019  // check whether the returned error was because http.StatusNotModified was
 11020  // returned.
 11021  func (c *PropertiesAccessBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11022  	gensupport.SetOptions(c.urlParams_, opts...)
 11023  	res, err := c.doRequest("json")
 11024  	if res != nil && res.StatusCode == http.StatusNotModified {
 11025  		if res.Body != nil {
 11026  			res.Body.Close()
 11027  		}
 11028  		return nil, gensupport.WrapError(&googleapi.Error{
 11029  			Code:   res.StatusCode,
 11030  			Header: res.Header,
 11031  		})
 11032  	}
 11033  	if err != nil {
 11034  		return nil, err
 11035  	}
 11036  	defer googleapi.CloseBody(res)
 11037  	if err := googleapi.CheckResponse(res); err != nil {
 11038  		return nil, gensupport.WrapError(err)
 11039  	}
 11040  	ret := &GoogleProtobufEmpty{
 11041  		ServerResponse: googleapi.ServerResponse{
 11042  			Header:         res.Header,
 11043  			HTTPStatusCode: res.StatusCode,
 11044  		},
 11045  	}
 11046  	target := &ret
 11047  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11048  		return nil, err
 11049  	}
 11050  	return ret, nil
 11051  }
 11052  
 11053  type PropertiesAccessBindingsGetCall struct {
 11054  	s            *Service
 11055  	name         string
 11056  	urlParams_   gensupport.URLParams
 11057  	ifNoneMatch_ string
 11058  	ctx_         context.Context
 11059  	header_      http.Header
 11060  }
 11061  
 11062  // Get: Gets information about an access binding.
 11063  //
 11064  //   - name: The name of the access binding to retrieve. Formats: -
 11065  //     accounts/{account}/accessBindings/{accessBinding} -
 11066  //     properties/{property}/accessBindings/{accessBinding}.
 11067  func (r *PropertiesAccessBindingsService) Get(name string) *PropertiesAccessBindingsGetCall {
 11068  	c := &PropertiesAccessBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11069  	c.name = name
 11070  	return c
 11071  }
 11072  
 11073  // Fields allows partial responses to be retrieved. See
 11074  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11075  // details.
 11076  func (c *PropertiesAccessBindingsGetCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsGetCall {
 11077  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11078  	return c
 11079  }
 11080  
 11081  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11082  // object's ETag matches the given value. This is useful for getting updates
 11083  // only after the object has changed since the last request.
 11084  func (c *PropertiesAccessBindingsGetCall) IfNoneMatch(entityTag string) *PropertiesAccessBindingsGetCall {
 11085  	c.ifNoneMatch_ = entityTag
 11086  	return c
 11087  }
 11088  
 11089  // Context sets the context to be used in this call's Do method.
 11090  func (c *PropertiesAccessBindingsGetCall) Context(ctx context.Context) *PropertiesAccessBindingsGetCall {
 11091  	c.ctx_ = ctx
 11092  	return c
 11093  }
 11094  
 11095  // Header returns a http.Header that can be modified by the caller to add
 11096  // headers to the request.
 11097  func (c *PropertiesAccessBindingsGetCall) Header() http.Header {
 11098  	if c.header_ == nil {
 11099  		c.header_ = make(http.Header)
 11100  	}
 11101  	return c.header_
 11102  }
 11103  
 11104  func (c *PropertiesAccessBindingsGetCall) doRequest(alt string) (*http.Response, error) {
 11105  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11106  	if c.ifNoneMatch_ != "" {
 11107  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11108  	}
 11109  	var body io.Reader = nil
 11110  	c.urlParams_.Set("alt", alt)
 11111  	c.urlParams_.Set("prettyPrint", "false")
 11112  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 11113  	urls += "?" + c.urlParams_.Encode()
 11114  	req, err := http.NewRequest("GET", urls, body)
 11115  	if err != nil {
 11116  		return nil, err
 11117  	}
 11118  	req.Header = reqHeaders
 11119  	googleapi.Expand(req.URL, map[string]string{
 11120  		"name": c.name,
 11121  	})
 11122  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11123  }
 11124  
 11125  // Do executes the "analyticsadmin.properties.accessBindings.get" call.
 11126  // Any non-2xx status code is an error. Response headers are in either
 11127  // *GoogleAnalyticsAdminV1alphaAccessBinding.ServerResponse.Header or (if a
 11128  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11129  // googleapi.IsNotModified to check whether the returned error was because
 11130  // http.StatusNotModified was returned.
 11131  func (c *PropertiesAccessBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) {
 11132  	gensupport.SetOptions(c.urlParams_, opts...)
 11133  	res, err := c.doRequest("json")
 11134  	if res != nil && res.StatusCode == http.StatusNotModified {
 11135  		if res.Body != nil {
 11136  			res.Body.Close()
 11137  		}
 11138  		return nil, gensupport.WrapError(&googleapi.Error{
 11139  			Code:   res.StatusCode,
 11140  			Header: res.Header,
 11141  		})
 11142  	}
 11143  	if err != nil {
 11144  		return nil, err
 11145  	}
 11146  	defer googleapi.CloseBody(res)
 11147  	if err := googleapi.CheckResponse(res); err != nil {
 11148  		return nil, gensupport.WrapError(err)
 11149  	}
 11150  	ret := &GoogleAnalyticsAdminV1alphaAccessBinding{
 11151  		ServerResponse: googleapi.ServerResponse{
 11152  			Header:         res.Header,
 11153  			HTTPStatusCode: res.StatusCode,
 11154  		},
 11155  	}
 11156  	target := &ret
 11157  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11158  		return nil, err
 11159  	}
 11160  	return ret, nil
 11161  }
 11162  
 11163  type PropertiesAccessBindingsListCall struct {
 11164  	s            *Service
 11165  	parent       string
 11166  	urlParams_   gensupport.URLParams
 11167  	ifNoneMatch_ string
 11168  	ctx_         context.Context
 11169  	header_      http.Header
 11170  }
 11171  
 11172  // List: Lists all access bindings on an account or property.
 11173  //
 11174  // - parent: Formats: - accounts/{account} - properties/{property}.
 11175  func (r *PropertiesAccessBindingsService) List(parent string) *PropertiesAccessBindingsListCall {
 11176  	c := &PropertiesAccessBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11177  	c.parent = parent
 11178  	return c
 11179  }
 11180  
 11181  // PageSize sets the optional parameter "pageSize": The maximum number of
 11182  // access bindings to return. The service may return fewer than this value. If
 11183  // unspecified, at most 200 access bindings will be returned. The maximum value
 11184  // is 500; values above 500 will be coerced to 500.
 11185  func (c *PropertiesAccessBindingsListCall) PageSize(pageSize int64) *PropertiesAccessBindingsListCall {
 11186  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11187  	return c
 11188  }
 11189  
 11190  // PageToken sets the optional parameter "pageToken": A page token, received
 11191  // from a previous `ListAccessBindings` call. Provide this to retrieve the
 11192  // subsequent page. When paginating, all other parameters provided to
 11193  // `ListAccessBindings` must match the call that provided the page token.
 11194  func (c *PropertiesAccessBindingsListCall) PageToken(pageToken string) *PropertiesAccessBindingsListCall {
 11195  	c.urlParams_.Set("pageToken", pageToken)
 11196  	return c
 11197  }
 11198  
 11199  // Fields allows partial responses to be retrieved. See
 11200  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11201  // details.
 11202  func (c *PropertiesAccessBindingsListCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsListCall {
 11203  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11204  	return c
 11205  }
 11206  
 11207  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11208  // object's ETag matches the given value. This is useful for getting updates
 11209  // only after the object has changed since the last request.
 11210  func (c *PropertiesAccessBindingsListCall) IfNoneMatch(entityTag string) *PropertiesAccessBindingsListCall {
 11211  	c.ifNoneMatch_ = entityTag
 11212  	return c
 11213  }
 11214  
 11215  // Context sets the context to be used in this call's Do method.
 11216  func (c *PropertiesAccessBindingsListCall) Context(ctx context.Context) *PropertiesAccessBindingsListCall {
 11217  	c.ctx_ = ctx
 11218  	return c
 11219  }
 11220  
 11221  // Header returns a http.Header that can be modified by the caller to add
 11222  // headers to the request.
 11223  func (c *PropertiesAccessBindingsListCall) Header() http.Header {
 11224  	if c.header_ == nil {
 11225  		c.header_ = make(http.Header)
 11226  	}
 11227  	return c.header_
 11228  }
 11229  
 11230  func (c *PropertiesAccessBindingsListCall) doRequest(alt string) (*http.Response, error) {
 11231  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11232  	if c.ifNoneMatch_ != "" {
 11233  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11234  	}
 11235  	var body io.Reader = nil
 11236  	c.urlParams_.Set("alt", alt)
 11237  	c.urlParams_.Set("prettyPrint", "false")
 11238  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/accessBindings")
 11239  	urls += "?" + c.urlParams_.Encode()
 11240  	req, err := http.NewRequest("GET", urls, body)
 11241  	if err != nil {
 11242  		return nil, err
 11243  	}
 11244  	req.Header = reqHeaders
 11245  	googleapi.Expand(req.URL, map[string]string{
 11246  		"parent": c.parent,
 11247  	})
 11248  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11249  }
 11250  
 11251  // Do executes the "analyticsadmin.properties.accessBindings.list" call.
 11252  // Any non-2xx status code is an error. Response headers are in either
 11253  // *GoogleAnalyticsAdminV1alphaListAccessBindingsResponse.ServerResponse.Header
 11254  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 11255  // Use googleapi.IsNotModified to check whether the returned error was because
 11256  // http.StatusNotModified was returned.
 11257  func (c *PropertiesAccessBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse, error) {
 11258  	gensupport.SetOptions(c.urlParams_, opts...)
 11259  	res, err := c.doRequest("json")
 11260  	if res != nil && res.StatusCode == http.StatusNotModified {
 11261  		if res.Body != nil {
 11262  			res.Body.Close()
 11263  		}
 11264  		return nil, gensupport.WrapError(&googleapi.Error{
 11265  			Code:   res.StatusCode,
 11266  			Header: res.Header,
 11267  		})
 11268  	}
 11269  	if err != nil {
 11270  		return nil, err
 11271  	}
 11272  	defer googleapi.CloseBody(res)
 11273  	if err := googleapi.CheckResponse(res); err != nil {
 11274  		return nil, gensupport.WrapError(err)
 11275  	}
 11276  	ret := &GoogleAnalyticsAdminV1alphaListAccessBindingsResponse{
 11277  		ServerResponse: googleapi.ServerResponse{
 11278  			Header:         res.Header,
 11279  			HTTPStatusCode: res.StatusCode,
 11280  		},
 11281  	}
 11282  	target := &ret
 11283  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11284  		return nil, err
 11285  	}
 11286  	return ret, nil
 11287  }
 11288  
 11289  // Pages invokes f for each page of results.
 11290  // A non-nil error returned from f will halt the iteration.
 11291  // The provided context supersedes any context provided to the Context method.
 11292  func (c *PropertiesAccessBindingsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAccessBindingsResponse) error) error {
 11293  	c.ctx_ = ctx
 11294  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11295  	for {
 11296  		x, err := c.Do()
 11297  		if err != nil {
 11298  			return err
 11299  		}
 11300  		if err := f(x); err != nil {
 11301  			return err
 11302  		}
 11303  		if x.NextPageToken == "" {
 11304  			return nil
 11305  		}
 11306  		c.PageToken(x.NextPageToken)
 11307  	}
 11308  }
 11309  
 11310  type PropertiesAccessBindingsPatchCall struct {
 11311  	s                                        *Service
 11312  	name                                     string
 11313  	googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding
 11314  	urlParams_                               gensupport.URLParams
 11315  	ctx_                                     context.Context
 11316  	header_                                  http.Header
 11317  }
 11318  
 11319  // Patch: Updates an access binding on an account or property.
 11320  //
 11321  //   - name: Output only. Resource name of this binding. Format:
 11322  //     accounts/{account}/accessBindings/{access_binding} or
 11323  //     properties/{property}/accessBindings/{access_binding} Example:
 11324  //     "accounts/100/accessBindings/200".
 11325  func (r *PropertiesAccessBindingsService) Patch(name string, googleanalyticsadminv1alphaaccessbinding *GoogleAnalyticsAdminV1alphaAccessBinding) *PropertiesAccessBindingsPatchCall {
 11326  	c := &PropertiesAccessBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11327  	c.name = name
 11328  	c.googleanalyticsadminv1alphaaccessbinding = googleanalyticsadminv1alphaaccessbinding
 11329  	return c
 11330  }
 11331  
 11332  // Fields allows partial responses to be retrieved. See
 11333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11334  // details.
 11335  func (c *PropertiesAccessBindingsPatchCall) Fields(s ...googleapi.Field) *PropertiesAccessBindingsPatchCall {
 11336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11337  	return c
 11338  }
 11339  
 11340  // Context sets the context to be used in this call's Do method.
 11341  func (c *PropertiesAccessBindingsPatchCall) Context(ctx context.Context) *PropertiesAccessBindingsPatchCall {
 11342  	c.ctx_ = ctx
 11343  	return c
 11344  }
 11345  
 11346  // Header returns a http.Header that can be modified by the caller to add
 11347  // headers to the request.
 11348  func (c *PropertiesAccessBindingsPatchCall) Header() http.Header {
 11349  	if c.header_ == nil {
 11350  		c.header_ = make(http.Header)
 11351  	}
 11352  	return c.header_
 11353  }
 11354  
 11355  func (c *PropertiesAccessBindingsPatchCall) doRequest(alt string) (*http.Response, error) {
 11356  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11357  	var body io.Reader = nil
 11358  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaccessbinding)
 11359  	if err != nil {
 11360  		return nil, err
 11361  	}
 11362  	c.urlParams_.Set("alt", alt)
 11363  	c.urlParams_.Set("prettyPrint", "false")
 11364  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 11365  	urls += "?" + c.urlParams_.Encode()
 11366  	req, err := http.NewRequest("PATCH", urls, body)
 11367  	if err != nil {
 11368  		return nil, err
 11369  	}
 11370  	req.Header = reqHeaders
 11371  	googleapi.Expand(req.URL, map[string]string{
 11372  		"name": c.name,
 11373  	})
 11374  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11375  }
 11376  
 11377  // Do executes the "analyticsadmin.properties.accessBindings.patch" call.
 11378  // Any non-2xx status code is an error. Response headers are in either
 11379  // *GoogleAnalyticsAdminV1alphaAccessBinding.ServerResponse.Header or (if a
 11380  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11381  // googleapi.IsNotModified to check whether the returned error was because
 11382  // http.StatusNotModified was returned.
 11383  func (c *PropertiesAccessBindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAccessBinding, error) {
 11384  	gensupport.SetOptions(c.urlParams_, opts...)
 11385  	res, err := c.doRequest("json")
 11386  	if res != nil && res.StatusCode == http.StatusNotModified {
 11387  		if res.Body != nil {
 11388  			res.Body.Close()
 11389  		}
 11390  		return nil, gensupport.WrapError(&googleapi.Error{
 11391  			Code:   res.StatusCode,
 11392  			Header: res.Header,
 11393  		})
 11394  	}
 11395  	if err != nil {
 11396  		return nil, err
 11397  	}
 11398  	defer googleapi.CloseBody(res)
 11399  	if err := googleapi.CheckResponse(res); err != nil {
 11400  		return nil, gensupport.WrapError(err)
 11401  	}
 11402  	ret := &GoogleAnalyticsAdminV1alphaAccessBinding{
 11403  		ServerResponse: googleapi.ServerResponse{
 11404  			Header:         res.Header,
 11405  			HTTPStatusCode: res.StatusCode,
 11406  		},
 11407  	}
 11408  	target := &ret
 11409  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11410  		return nil, err
 11411  	}
 11412  	return ret, nil
 11413  }
 11414  
 11415  type PropertiesAdSenseLinksCreateCall struct {
 11416  	s                                      *Service
 11417  	parent                                 string
 11418  	googleanalyticsadminv1alphaadsenselink *GoogleAnalyticsAdminV1alphaAdSenseLink
 11419  	urlParams_                             gensupport.URLParams
 11420  	ctx_                                   context.Context
 11421  	header_                                http.Header
 11422  }
 11423  
 11424  // Create: Creates an AdSenseLink.
 11425  //
 11426  //   - parent: The property for which to create an AdSense Link. Format:
 11427  //     properties/{propertyId} Example: properties/1234.
 11428  func (r *PropertiesAdSenseLinksService) Create(parent string, googleanalyticsadminv1alphaadsenselink *GoogleAnalyticsAdminV1alphaAdSenseLink) *PropertiesAdSenseLinksCreateCall {
 11429  	c := &PropertiesAdSenseLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11430  	c.parent = parent
 11431  	c.googleanalyticsadminv1alphaadsenselink = googleanalyticsadminv1alphaadsenselink
 11432  	return c
 11433  }
 11434  
 11435  // Fields allows partial responses to be retrieved. See
 11436  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11437  // details.
 11438  func (c *PropertiesAdSenseLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesAdSenseLinksCreateCall {
 11439  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11440  	return c
 11441  }
 11442  
 11443  // Context sets the context to be used in this call's Do method.
 11444  func (c *PropertiesAdSenseLinksCreateCall) Context(ctx context.Context) *PropertiesAdSenseLinksCreateCall {
 11445  	c.ctx_ = ctx
 11446  	return c
 11447  }
 11448  
 11449  // Header returns a http.Header that can be modified by the caller to add
 11450  // headers to the request.
 11451  func (c *PropertiesAdSenseLinksCreateCall) Header() http.Header {
 11452  	if c.header_ == nil {
 11453  		c.header_ = make(http.Header)
 11454  	}
 11455  	return c.header_
 11456  }
 11457  
 11458  func (c *PropertiesAdSenseLinksCreateCall) doRequest(alt string) (*http.Response, error) {
 11459  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11460  	var body io.Reader = nil
 11461  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaadsenselink)
 11462  	if err != nil {
 11463  		return nil, err
 11464  	}
 11465  	c.urlParams_.Set("alt", alt)
 11466  	c.urlParams_.Set("prettyPrint", "false")
 11467  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/adSenseLinks")
 11468  	urls += "?" + c.urlParams_.Encode()
 11469  	req, err := http.NewRequest("POST", urls, body)
 11470  	if err != nil {
 11471  		return nil, err
 11472  	}
 11473  	req.Header = reqHeaders
 11474  	googleapi.Expand(req.URL, map[string]string{
 11475  		"parent": c.parent,
 11476  	})
 11477  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11478  }
 11479  
 11480  // Do executes the "analyticsadmin.properties.adSenseLinks.create" call.
 11481  // Any non-2xx status code is an error. Response headers are in either
 11482  // *GoogleAnalyticsAdminV1alphaAdSenseLink.ServerResponse.Header or (if a
 11483  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11484  // googleapi.IsNotModified to check whether the returned error was because
 11485  // http.StatusNotModified was returned.
 11486  func (c *PropertiesAdSenseLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAdSenseLink, error) {
 11487  	gensupport.SetOptions(c.urlParams_, opts...)
 11488  	res, err := c.doRequest("json")
 11489  	if res != nil && res.StatusCode == http.StatusNotModified {
 11490  		if res.Body != nil {
 11491  			res.Body.Close()
 11492  		}
 11493  		return nil, gensupport.WrapError(&googleapi.Error{
 11494  			Code:   res.StatusCode,
 11495  			Header: res.Header,
 11496  		})
 11497  	}
 11498  	if err != nil {
 11499  		return nil, err
 11500  	}
 11501  	defer googleapi.CloseBody(res)
 11502  	if err := googleapi.CheckResponse(res); err != nil {
 11503  		return nil, gensupport.WrapError(err)
 11504  	}
 11505  	ret := &GoogleAnalyticsAdminV1alphaAdSenseLink{
 11506  		ServerResponse: googleapi.ServerResponse{
 11507  			Header:         res.Header,
 11508  			HTTPStatusCode: res.StatusCode,
 11509  		},
 11510  	}
 11511  	target := &ret
 11512  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11513  		return nil, err
 11514  	}
 11515  	return ret, nil
 11516  }
 11517  
 11518  type PropertiesAdSenseLinksDeleteCall struct {
 11519  	s          *Service
 11520  	nameid     string
 11521  	urlParams_ gensupport.URLParams
 11522  	ctx_       context.Context
 11523  	header_    http.Header
 11524  }
 11525  
 11526  // Delete: Deletes an AdSenseLink.
 11527  //
 11528  //   - name: Unique identifier for the AdSense Link to be deleted. Format:
 11529  //     properties/{propertyId}/adSenseLinks/{linkId} Example:
 11530  //     properties/1234/adSenseLinks/5678.
 11531  func (r *PropertiesAdSenseLinksService) Delete(nameid string) *PropertiesAdSenseLinksDeleteCall {
 11532  	c := &PropertiesAdSenseLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11533  	c.nameid = nameid
 11534  	return c
 11535  }
 11536  
 11537  // Fields allows partial responses to be retrieved. See
 11538  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11539  // details.
 11540  func (c *PropertiesAdSenseLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesAdSenseLinksDeleteCall {
 11541  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11542  	return c
 11543  }
 11544  
 11545  // Context sets the context to be used in this call's Do method.
 11546  func (c *PropertiesAdSenseLinksDeleteCall) Context(ctx context.Context) *PropertiesAdSenseLinksDeleteCall {
 11547  	c.ctx_ = ctx
 11548  	return c
 11549  }
 11550  
 11551  // Header returns a http.Header that can be modified by the caller to add
 11552  // headers to the request.
 11553  func (c *PropertiesAdSenseLinksDeleteCall) Header() http.Header {
 11554  	if c.header_ == nil {
 11555  		c.header_ = make(http.Header)
 11556  	}
 11557  	return c.header_
 11558  }
 11559  
 11560  func (c *PropertiesAdSenseLinksDeleteCall) doRequest(alt string) (*http.Response, error) {
 11561  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11562  	var body io.Reader = nil
 11563  	c.urlParams_.Set("alt", alt)
 11564  	c.urlParams_.Set("prettyPrint", "false")
 11565  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 11566  	urls += "?" + c.urlParams_.Encode()
 11567  	req, err := http.NewRequest("DELETE", urls, body)
 11568  	if err != nil {
 11569  		return nil, err
 11570  	}
 11571  	req.Header = reqHeaders
 11572  	googleapi.Expand(req.URL, map[string]string{
 11573  		"name": c.nameid,
 11574  	})
 11575  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11576  }
 11577  
 11578  // Do executes the "analyticsadmin.properties.adSenseLinks.delete" call.
 11579  // Any non-2xx status code is an error. Response headers are in either
 11580  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11581  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11582  // check whether the returned error was because http.StatusNotModified was
 11583  // returned.
 11584  func (c *PropertiesAdSenseLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11585  	gensupport.SetOptions(c.urlParams_, opts...)
 11586  	res, err := c.doRequest("json")
 11587  	if res != nil && res.StatusCode == http.StatusNotModified {
 11588  		if res.Body != nil {
 11589  			res.Body.Close()
 11590  		}
 11591  		return nil, gensupport.WrapError(&googleapi.Error{
 11592  			Code:   res.StatusCode,
 11593  			Header: res.Header,
 11594  		})
 11595  	}
 11596  	if err != nil {
 11597  		return nil, err
 11598  	}
 11599  	defer googleapi.CloseBody(res)
 11600  	if err := googleapi.CheckResponse(res); err != nil {
 11601  		return nil, gensupport.WrapError(err)
 11602  	}
 11603  	ret := &GoogleProtobufEmpty{
 11604  		ServerResponse: googleapi.ServerResponse{
 11605  			Header:         res.Header,
 11606  			HTTPStatusCode: res.StatusCode,
 11607  		},
 11608  	}
 11609  	target := &ret
 11610  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11611  		return nil, err
 11612  	}
 11613  	return ret, nil
 11614  }
 11615  
 11616  type PropertiesAdSenseLinksGetCall struct {
 11617  	s            *Service
 11618  	nameid       string
 11619  	urlParams_   gensupport.URLParams
 11620  	ifNoneMatch_ string
 11621  	ctx_         context.Context
 11622  	header_      http.Header
 11623  }
 11624  
 11625  // Get: Looks up a single AdSenseLink.
 11626  //
 11627  //   - name: Unique identifier for the AdSense Link requested. Format:
 11628  //     properties/{propertyId}/adSenseLinks/{linkId} Example:
 11629  //     properties/1234/adSenseLinks/5678.
 11630  func (r *PropertiesAdSenseLinksService) Get(nameid string) *PropertiesAdSenseLinksGetCall {
 11631  	c := &PropertiesAdSenseLinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11632  	c.nameid = nameid
 11633  	return c
 11634  }
 11635  
 11636  // Fields allows partial responses to be retrieved. See
 11637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11638  // details.
 11639  func (c *PropertiesAdSenseLinksGetCall) Fields(s ...googleapi.Field) *PropertiesAdSenseLinksGetCall {
 11640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11641  	return c
 11642  }
 11643  
 11644  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11645  // object's ETag matches the given value. This is useful for getting updates
 11646  // only after the object has changed since the last request.
 11647  func (c *PropertiesAdSenseLinksGetCall) IfNoneMatch(entityTag string) *PropertiesAdSenseLinksGetCall {
 11648  	c.ifNoneMatch_ = entityTag
 11649  	return c
 11650  }
 11651  
 11652  // Context sets the context to be used in this call's Do method.
 11653  func (c *PropertiesAdSenseLinksGetCall) Context(ctx context.Context) *PropertiesAdSenseLinksGetCall {
 11654  	c.ctx_ = ctx
 11655  	return c
 11656  }
 11657  
 11658  // Header returns a http.Header that can be modified by the caller to add
 11659  // headers to the request.
 11660  func (c *PropertiesAdSenseLinksGetCall) Header() http.Header {
 11661  	if c.header_ == nil {
 11662  		c.header_ = make(http.Header)
 11663  	}
 11664  	return c.header_
 11665  }
 11666  
 11667  func (c *PropertiesAdSenseLinksGetCall) doRequest(alt string) (*http.Response, error) {
 11668  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11669  	if c.ifNoneMatch_ != "" {
 11670  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11671  	}
 11672  	var body io.Reader = nil
 11673  	c.urlParams_.Set("alt", alt)
 11674  	c.urlParams_.Set("prettyPrint", "false")
 11675  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 11676  	urls += "?" + c.urlParams_.Encode()
 11677  	req, err := http.NewRequest("GET", urls, body)
 11678  	if err != nil {
 11679  		return nil, err
 11680  	}
 11681  	req.Header = reqHeaders
 11682  	googleapi.Expand(req.URL, map[string]string{
 11683  		"name": c.nameid,
 11684  	})
 11685  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11686  }
 11687  
 11688  // Do executes the "analyticsadmin.properties.adSenseLinks.get" call.
 11689  // Any non-2xx status code is an error. Response headers are in either
 11690  // *GoogleAnalyticsAdminV1alphaAdSenseLink.ServerResponse.Header or (if a
 11691  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11692  // googleapi.IsNotModified to check whether the returned error was because
 11693  // http.StatusNotModified was returned.
 11694  func (c *PropertiesAdSenseLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAdSenseLink, error) {
 11695  	gensupport.SetOptions(c.urlParams_, opts...)
 11696  	res, err := c.doRequest("json")
 11697  	if res != nil && res.StatusCode == http.StatusNotModified {
 11698  		if res.Body != nil {
 11699  			res.Body.Close()
 11700  		}
 11701  		return nil, gensupport.WrapError(&googleapi.Error{
 11702  			Code:   res.StatusCode,
 11703  			Header: res.Header,
 11704  		})
 11705  	}
 11706  	if err != nil {
 11707  		return nil, err
 11708  	}
 11709  	defer googleapi.CloseBody(res)
 11710  	if err := googleapi.CheckResponse(res); err != nil {
 11711  		return nil, gensupport.WrapError(err)
 11712  	}
 11713  	ret := &GoogleAnalyticsAdminV1alphaAdSenseLink{
 11714  		ServerResponse: googleapi.ServerResponse{
 11715  			Header:         res.Header,
 11716  			HTTPStatusCode: res.StatusCode,
 11717  		},
 11718  	}
 11719  	target := &ret
 11720  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11721  		return nil, err
 11722  	}
 11723  	return ret, nil
 11724  }
 11725  
 11726  type PropertiesAdSenseLinksListCall struct {
 11727  	s            *Service
 11728  	parent       string
 11729  	urlParams_   gensupport.URLParams
 11730  	ifNoneMatch_ string
 11731  	ctx_         context.Context
 11732  	header_      http.Header
 11733  }
 11734  
 11735  // List: Lists AdSenseLinks on a property.
 11736  //
 11737  //   - parent: Resource name of the parent property. Format:
 11738  //     properties/{propertyId} Example: properties/1234.
 11739  func (r *PropertiesAdSenseLinksService) List(parent string) *PropertiesAdSenseLinksListCall {
 11740  	c := &PropertiesAdSenseLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11741  	c.parent = parent
 11742  	return c
 11743  }
 11744  
 11745  // PageSize sets the optional parameter "pageSize": The maximum number of
 11746  // resources to return. If unspecified, at most 50 resources will be returned.
 11747  // The maximum value is 200 (higher values will be coerced to the maximum).
 11748  func (c *PropertiesAdSenseLinksListCall) PageSize(pageSize int64) *PropertiesAdSenseLinksListCall {
 11749  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11750  	return c
 11751  }
 11752  
 11753  // PageToken sets the optional parameter "pageToken": A page token received
 11754  // from a previous `ListAdSenseLinks` call. Provide this to retrieve the
 11755  // subsequent page. When paginating, all other parameters provided to
 11756  // `ListAdSenseLinks` must match the call that provided the page token.
 11757  func (c *PropertiesAdSenseLinksListCall) PageToken(pageToken string) *PropertiesAdSenseLinksListCall {
 11758  	c.urlParams_.Set("pageToken", pageToken)
 11759  	return c
 11760  }
 11761  
 11762  // Fields allows partial responses to be retrieved. See
 11763  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11764  // details.
 11765  func (c *PropertiesAdSenseLinksListCall) Fields(s ...googleapi.Field) *PropertiesAdSenseLinksListCall {
 11766  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11767  	return c
 11768  }
 11769  
 11770  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11771  // object's ETag matches the given value. This is useful for getting updates
 11772  // only after the object has changed since the last request.
 11773  func (c *PropertiesAdSenseLinksListCall) IfNoneMatch(entityTag string) *PropertiesAdSenseLinksListCall {
 11774  	c.ifNoneMatch_ = entityTag
 11775  	return c
 11776  }
 11777  
 11778  // Context sets the context to be used in this call's Do method.
 11779  func (c *PropertiesAdSenseLinksListCall) Context(ctx context.Context) *PropertiesAdSenseLinksListCall {
 11780  	c.ctx_ = ctx
 11781  	return c
 11782  }
 11783  
 11784  // Header returns a http.Header that can be modified by the caller to add
 11785  // headers to the request.
 11786  func (c *PropertiesAdSenseLinksListCall) Header() http.Header {
 11787  	if c.header_ == nil {
 11788  		c.header_ = make(http.Header)
 11789  	}
 11790  	return c.header_
 11791  }
 11792  
 11793  func (c *PropertiesAdSenseLinksListCall) doRequest(alt string) (*http.Response, error) {
 11794  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11795  	if c.ifNoneMatch_ != "" {
 11796  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11797  	}
 11798  	var body io.Reader = nil
 11799  	c.urlParams_.Set("alt", alt)
 11800  	c.urlParams_.Set("prettyPrint", "false")
 11801  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/adSenseLinks")
 11802  	urls += "?" + c.urlParams_.Encode()
 11803  	req, err := http.NewRequest("GET", urls, body)
 11804  	if err != nil {
 11805  		return nil, err
 11806  	}
 11807  	req.Header = reqHeaders
 11808  	googleapi.Expand(req.URL, map[string]string{
 11809  		"parent": c.parent,
 11810  	})
 11811  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11812  }
 11813  
 11814  // Do executes the "analyticsadmin.properties.adSenseLinks.list" call.
 11815  // Any non-2xx status code is an error. Response headers are in either
 11816  // *GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse.ServerResponse.Header
 11817  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 11818  // Use googleapi.IsNotModified to check whether the returned error was because
 11819  // http.StatusNotModified was returned.
 11820  func (c *PropertiesAdSenseLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse, error) {
 11821  	gensupport.SetOptions(c.urlParams_, opts...)
 11822  	res, err := c.doRequest("json")
 11823  	if res != nil && res.StatusCode == http.StatusNotModified {
 11824  		if res.Body != nil {
 11825  			res.Body.Close()
 11826  		}
 11827  		return nil, gensupport.WrapError(&googleapi.Error{
 11828  			Code:   res.StatusCode,
 11829  			Header: res.Header,
 11830  		})
 11831  	}
 11832  	if err != nil {
 11833  		return nil, err
 11834  	}
 11835  	defer googleapi.CloseBody(res)
 11836  	if err := googleapi.CheckResponse(res); err != nil {
 11837  		return nil, gensupport.WrapError(err)
 11838  	}
 11839  	ret := &GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse{
 11840  		ServerResponse: googleapi.ServerResponse{
 11841  			Header:         res.Header,
 11842  			HTTPStatusCode: res.StatusCode,
 11843  		},
 11844  	}
 11845  	target := &ret
 11846  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11847  		return nil, err
 11848  	}
 11849  	return ret, nil
 11850  }
 11851  
 11852  // Pages invokes f for each page of results.
 11853  // A non-nil error returned from f will halt the iteration.
 11854  // The provided context supersedes any context provided to the Context method.
 11855  func (c *PropertiesAdSenseLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse) error) error {
 11856  	c.ctx_ = ctx
 11857  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11858  	for {
 11859  		x, err := c.Do()
 11860  		if err != nil {
 11861  			return err
 11862  		}
 11863  		if err := f(x); err != nil {
 11864  			return err
 11865  		}
 11866  		if x.NextPageToken == "" {
 11867  			return nil
 11868  		}
 11869  		c.PageToken(x.NextPageToken)
 11870  	}
 11871  }
 11872  
 11873  type PropertiesAudiencesArchiveCall struct {
 11874  	s                                                 *Service
 11875  	name                                              string
 11876  	googleanalyticsadminv1alphaarchiveaudiencerequest *GoogleAnalyticsAdminV1alphaArchiveAudienceRequest
 11877  	urlParams_                                        gensupport.URLParams
 11878  	ctx_                                              context.Context
 11879  	header_                                           http.Header
 11880  }
 11881  
 11882  // Archive: Archives an Audience on a property.
 11883  //
 11884  // - name: Example format: properties/1234/audiences/5678.
 11885  func (r *PropertiesAudiencesService) Archive(name string, googleanalyticsadminv1alphaarchiveaudiencerequest *GoogleAnalyticsAdminV1alphaArchiveAudienceRequest) *PropertiesAudiencesArchiveCall {
 11886  	c := &PropertiesAudiencesArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11887  	c.name = name
 11888  	c.googleanalyticsadminv1alphaarchiveaudiencerequest = googleanalyticsadminv1alphaarchiveaudiencerequest
 11889  	return c
 11890  }
 11891  
 11892  // Fields allows partial responses to be retrieved. See
 11893  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11894  // details.
 11895  func (c *PropertiesAudiencesArchiveCall) Fields(s ...googleapi.Field) *PropertiesAudiencesArchiveCall {
 11896  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11897  	return c
 11898  }
 11899  
 11900  // Context sets the context to be used in this call's Do method.
 11901  func (c *PropertiesAudiencesArchiveCall) Context(ctx context.Context) *PropertiesAudiencesArchiveCall {
 11902  	c.ctx_ = ctx
 11903  	return c
 11904  }
 11905  
 11906  // Header returns a http.Header that can be modified by the caller to add
 11907  // headers to the request.
 11908  func (c *PropertiesAudiencesArchiveCall) Header() http.Header {
 11909  	if c.header_ == nil {
 11910  		c.header_ = make(http.Header)
 11911  	}
 11912  	return c.header_
 11913  }
 11914  
 11915  func (c *PropertiesAudiencesArchiveCall) doRequest(alt string) (*http.Response, error) {
 11916  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11917  	var body io.Reader = nil
 11918  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaarchiveaudiencerequest)
 11919  	if err != nil {
 11920  		return nil, err
 11921  	}
 11922  	c.urlParams_.Set("alt", alt)
 11923  	c.urlParams_.Set("prettyPrint", "false")
 11924  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:archive")
 11925  	urls += "?" + c.urlParams_.Encode()
 11926  	req, err := http.NewRequest("POST", urls, body)
 11927  	if err != nil {
 11928  		return nil, err
 11929  	}
 11930  	req.Header = reqHeaders
 11931  	googleapi.Expand(req.URL, map[string]string{
 11932  		"name": c.name,
 11933  	})
 11934  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11935  }
 11936  
 11937  // Do executes the "analyticsadmin.properties.audiences.archive" call.
 11938  // Any non-2xx status code is an error. Response headers are in either
 11939  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11940  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11941  // check whether the returned error was because http.StatusNotModified was
 11942  // returned.
 11943  func (c *PropertiesAudiencesArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11944  	gensupport.SetOptions(c.urlParams_, opts...)
 11945  	res, err := c.doRequest("json")
 11946  	if res != nil && res.StatusCode == http.StatusNotModified {
 11947  		if res.Body != nil {
 11948  			res.Body.Close()
 11949  		}
 11950  		return nil, gensupport.WrapError(&googleapi.Error{
 11951  			Code:   res.StatusCode,
 11952  			Header: res.Header,
 11953  		})
 11954  	}
 11955  	if err != nil {
 11956  		return nil, err
 11957  	}
 11958  	defer googleapi.CloseBody(res)
 11959  	if err := googleapi.CheckResponse(res); err != nil {
 11960  		return nil, gensupport.WrapError(err)
 11961  	}
 11962  	ret := &GoogleProtobufEmpty{
 11963  		ServerResponse: googleapi.ServerResponse{
 11964  			Header:         res.Header,
 11965  			HTTPStatusCode: res.StatusCode,
 11966  		},
 11967  	}
 11968  	target := &ret
 11969  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11970  		return nil, err
 11971  	}
 11972  	return ret, nil
 11973  }
 11974  
 11975  type PropertiesAudiencesCreateCall struct {
 11976  	s                                   *Service
 11977  	parent                              string
 11978  	googleanalyticsadminv1alphaaudience *GoogleAnalyticsAdminV1alphaAudience
 11979  	urlParams_                          gensupport.URLParams
 11980  	ctx_                                context.Context
 11981  	header_                             http.Header
 11982  }
 11983  
 11984  // Create: Creates an Audience.
 11985  //
 11986  // - parent: Example format: properties/1234.
 11987  func (r *PropertiesAudiencesService) Create(parent string, googleanalyticsadminv1alphaaudience *GoogleAnalyticsAdminV1alphaAudience) *PropertiesAudiencesCreateCall {
 11988  	c := &PropertiesAudiencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11989  	c.parent = parent
 11990  	c.googleanalyticsadminv1alphaaudience = googleanalyticsadminv1alphaaudience
 11991  	return c
 11992  }
 11993  
 11994  // Fields allows partial responses to be retrieved. See
 11995  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11996  // details.
 11997  func (c *PropertiesAudiencesCreateCall) Fields(s ...googleapi.Field) *PropertiesAudiencesCreateCall {
 11998  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11999  	return c
 12000  }
 12001  
 12002  // Context sets the context to be used in this call's Do method.
 12003  func (c *PropertiesAudiencesCreateCall) Context(ctx context.Context) *PropertiesAudiencesCreateCall {
 12004  	c.ctx_ = ctx
 12005  	return c
 12006  }
 12007  
 12008  // Header returns a http.Header that can be modified by the caller to add
 12009  // headers to the request.
 12010  func (c *PropertiesAudiencesCreateCall) Header() http.Header {
 12011  	if c.header_ == nil {
 12012  		c.header_ = make(http.Header)
 12013  	}
 12014  	return c.header_
 12015  }
 12016  
 12017  func (c *PropertiesAudiencesCreateCall) doRequest(alt string) (*http.Response, error) {
 12018  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12019  	var body io.Reader = nil
 12020  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaudience)
 12021  	if err != nil {
 12022  		return nil, err
 12023  	}
 12024  	c.urlParams_.Set("alt", alt)
 12025  	c.urlParams_.Set("prettyPrint", "false")
 12026  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/audiences")
 12027  	urls += "?" + c.urlParams_.Encode()
 12028  	req, err := http.NewRequest("POST", urls, body)
 12029  	if err != nil {
 12030  		return nil, err
 12031  	}
 12032  	req.Header = reqHeaders
 12033  	googleapi.Expand(req.URL, map[string]string{
 12034  		"parent": c.parent,
 12035  	})
 12036  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12037  }
 12038  
 12039  // Do executes the "analyticsadmin.properties.audiences.create" call.
 12040  // Any non-2xx status code is an error. Response headers are in either
 12041  // *GoogleAnalyticsAdminV1alphaAudience.ServerResponse.Header or (if a response
 12042  // was returned at all) in error.(*googleapi.Error).Header. Use
 12043  // googleapi.IsNotModified to check whether the returned error was because
 12044  // http.StatusNotModified was returned.
 12045  func (c *PropertiesAudiencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAudience, error) {
 12046  	gensupport.SetOptions(c.urlParams_, opts...)
 12047  	res, err := c.doRequest("json")
 12048  	if res != nil && res.StatusCode == http.StatusNotModified {
 12049  		if res.Body != nil {
 12050  			res.Body.Close()
 12051  		}
 12052  		return nil, gensupport.WrapError(&googleapi.Error{
 12053  			Code:   res.StatusCode,
 12054  			Header: res.Header,
 12055  		})
 12056  	}
 12057  	if err != nil {
 12058  		return nil, err
 12059  	}
 12060  	defer googleapi.CloseBody(res)
 12061  	if err := googleapi.CheckResponse(res); err != nil {
 12062  		return nil, gensupport.WrapError(err)
 12063  	}
 12064  	ret := &GoogleAnalyticsAdminV1alphaAudience{
 12065  		ServerResponse: googleapi.ServerResponse{
 12066  			Header:         res.Header,
 12067  			HTTPStatusCode: res.StatusCode,
 12068  		},
 12069  	}
 12070  	target := &ret
 12071  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12072  		return nil, err
 12073  	}
 12074  	return ret, nil
 12075  }
 12076  
 12077  type PropertiesAudiencesGetCall struct {
 12078  	s            *Service
 12079  	name         string
 12080  	urlParams_   gensupport.URLParams
 12081  	ifNoneMatch_ string
 12082  	ctx_         context.Context
 12083  	header_      http.Header
 12084  }
 12085  
 12086  // Get: Lookup for a single Audience. Audiences created before 2020 may not be
 12087  // supported. Default audiences will not show filter definitions.
 12088  //
 12089  //   - name: The name of the Audience to get. Example format:
 12090  //     properties/1234/audiences/5678.
 12091  func (r *PropertiesAudiencesService) Get(name string) *PropertiesAudiencesGetCall {
 12092  	c := &PropertiesAudiencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12093  	c.name = name
 12094  	return c
 12095  }
 12096  
 12097  // Fields allows partial responses to be retrieved. See
 12098  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12099  // details.
 12100  func (c *PropertiesAudiencesGetCall) Fields(s ...googleapi.Field) *PropertiesAudiencesGetCall {
 12101  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12102  	return c
 12103  }
 12104  
 12105  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12106  // object's ETag matches the given value. This is useful for getting updates
 12107  // only after the object has changed since the last request.
 12108  func (c *PropertiesAudiencesGetCall) IfNoneMatch(entityTag string) *PropertiesAudiencesGetCall {
 12109  	c.ifNoneMatch_ = entityTag
 12110  	return c
 12111  }
 12112  
 12113  // Context sets the context to be used in this call's Do method.
 12114  func (c *PropertiesAudiencesGetCall) Context(ctx context.Context) *PropertiesAudiencesGetCall {
 12115  	c.ctx_ = ctx
 12116  	return c
 12117  }
 12118  
 12119  // Header returns a http.Header that can be modified by the caller to add
 12120  // headers to the request.
 12121  func (c *PropertiesAudiencesGetCall) Header() http.Header {
 12122  	if c.header_ == nil {
 12123  		c.header_ = make(http.Header)
 12124  	}
 12125  	return c.header_
 12126  }
 12127  
 12128  func (c *PropertiesAudiencesGetCall) doRequest(alt string) (*http.Response, error) {
 12129  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12130  	if c.ifNoneMatch_ != "" {
 12131  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12132  	}
 12133  	var body io.Reader = nil
 12134  	c.urlParams_.Set("alt", alt)
 12135  	c.urlParams_.Set("prettyPrint", "false")
 12136  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12137  	urls += "?" + c.urlParams_.Encode()
 12138  	req, err := http.NewRequest("GET", urls, body)
 12139  	if err != nil {
 12140  		return nil, err
 12141  	}
 12142  	req.Header = reqHeaders
 12143  	googleapi.Expand(req.URL, map[string]string{
 12144  		"name": c.name,
 12145  	})
 12146  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12147  }
 12148  
 12149  // Do executes the "analyticsadmin.properties.audiences.get" call.
 12150  // Any non-2xx status code is an error. Response headers are in either
 12151  // *GoogleAnalyticsAdminV1alphaAudience.ServerResponse.Header or (if a response
 12152  // was returned at all) in error.(*googleapi.Error).Header. Use
 12153  // googleapi.IsNotModified to check whether the returned error was because
 12154  // http.StatusNotModified was returned.
 12155  func (c *PropertiesAudiencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAudience, error) {
 12156  	gensupport.SetOptions(c.urlParams_, opts...)
 12157  	res, err := c.doRequest("json")
 12158  	if res != nil && res.StatusCode == http.StatusNotModified {
 12159  		if res.Body != nil {
 12160  			res.Body.Close()
 12161  		}
 12162  		return nil, gensupport.WrapError(&googleapi.Error{
 12163  			Code:   res.StatusCode,
 12164  			Header: res.Header,
 12165  		})
 12166  	}
 12167  	if err != nil {
 12168  		return nil, err
 12169  	}
 12170  	defer googleapi.CloseBody(res)
 12171  	if err := googleapi.CheckResponse(res); err != nil {
 12172  		return nil, gensupport.WrapError(err)
 12173  	}
 12174  	ret := &GoogleAnalyticsAdminV1alphaAudience{
 12175  		ServerResponse: googleapi.ServerResponse{
 12176  			Header:         res.Header,
 12177  			HTTPStatusCode: res.StatusCode,
 12178  		},
 12179  	}
 12180  	target := &ret
 12181  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12182  		return nil, err
 12183  	}
 12184  	return ret, nil
 12185  }
 12186  
 12187  type PropertiesAudiencesListCall struct {
 12188  	s            *Service
 12189  	parent       string
 12190  	urlParams_   gensupport.URLParams
 12191  	ifNoneMatch_ string
 12192  	ctx_         context.Context
 12193  	header_      http.Header
 12194  }
 12195  
 12196  // List: Lists Audiences on a property. Audiences created before 2020 may not
 12197  // be supported. Default audiences will not show filter definitions.
 12198  //
 12199  // - parent: Example format: properties/1234.
 12200  func (r *PropertiesAudiencesService) List(parent string) *PropertiesAudiencesListCall {
 12201  	c := &PropertiesAudiencesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12202  	c.parent = parent
 12203  	return c
 12204  }
 12205  
 12206  // PageSize sets the optional parameter "pageSize": The maximum number of
 12207  // resources to return. If unspecified, at most 50 resources will be returned.
 12208  // The maximum value is 200 (higher values will be coerced to the maximum).
 12209  func (c *PropertiesAudiencesListCall) PageSize(pageSize int64) *PropertiesAudiencesListCall {
 12210  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12211  	return c
 12212  }
 12213  
 12214  // PageToken sets the optional parameter "pageToken": A page token, received
 12215  // from a previous `ListAudiences` call. Provide this to retrieve the
 12216  // subsequent page. When paginating, all other parameters provided to
 12217  // `ListAudiences` must match the call that provided the page token.
 12218  func (c *PropertiesAudiencesListCall) PageToken(pageToken string) *PropertiesAudiencesListCall {
 12219  	c.urlParams_.Set("pageToken", pageToken)
 12220  	return c
 12221  }
 12222  
 12223  // Fields allows partial responses to be retrieved. See
 12224  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12225  // details.
 12226  func (c *PropertiesAudiencesListCall) Fields(s ...googleapi.Field) *PropertiesAudiencesListCall {
 12227  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12228  	return c
 12229  }
 12230  
 12231  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12232  // object's ETag matches the given value. This is useful for getting updates
 12233  // only after the object has changed since the last request.
 12234  func (c *PropertiesAudiencesListCall) IfNoneMatch(entityTag string) *PropertiesAudiencesListCall {
 12235  	c.ifNoneMatch_ = entityTag
 12236  	return c
 12237  }
 12238  
 12239  // Context sets the context to be used in this call's Do method.
 12240  func (c *PropertiesAudiencesListCall) Context(ctx context.Context) *PropertiesAudiencesListCall {
 12241  	c.ctx_ = ctx
 12242  	return c
 12243  }
 12244  
 12245  // Header returns a http.Header that can be modified by the caller to add
 12246  // headers to the request.
 12247  func (c *PropertiesAudiencesListCall) Header() http.Header {
 12248  	if c.header_ == nil {
 12249  		c.header_ = make(http.Header)
 12250  	}
 12251  	return c.header_
 12252  }
 12253  
 12254  func (c *PropertiesAudiencesListCall) doRequest(alt string) (*http.Response, error) {
 12255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12256  	if c.ifNoneMatch_ != "" {
 12257  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12258  	}
 12259  	var body io.Reader = nil
 12260  	c.urlParams_.Set("alt", alt)
 12261  	c.urlParams_.Set("prettyPrint", "false")
 12262  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/audiences")
 12263  	urls += "?" + c.urlParams_.Encode()
 12264  	req, err := http.NewRequest("GET", urls, body)
 12265  	if err != nil {
 12266  		return nil, err
 12267  	}
 12268  	req.Header = reqHeaders
 12269  	googleapi.Expand(req.URL, map[string]string{
 12270  		"parent": c.parent,
 12271  	})
 12272  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12273  }
 12274  
 12275  // Do executes the "analyticsadmin.properties.audiences.list" call.
 12276  // Any non-2xx status code is an error. Response headers are in either
 12277  // *GoogleAnalyticsAdminV1alphaListAudiencesResponse.ServerResponse.Header or
 12278  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 12279  // googleapi.IsNotModified to check whether the returned error was because
 12280  // http.StatusNotModified was returned.
 12281  func (c *PropertiesAudiencesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListAudiencesResponse, error) {
 12282  	gensupport.SetOptions(c.urlParams_, opts...)
 12283  	res, err := c.doRequest("json")
 12284  	if res != nil && res.StatusCode == http.StatusNotModified {
 12285  		if res.Body != nil {
 12286  			res.Body.Close()
 12287  		}
 12288  		return nil, gensupport.WrapError(&googleapi.Error{
 12289  			Code:   res.StatusCode,
 12290  			Header: res.Header,
 12291  		})
 12292  	}
 12293  	if err != nil {
 12294  		return nil, err
 12295  	}
 12296  	defer googleapi.CloseBody(res)
 12297  	if err := googleapi.CheckResponse(res); err != nil {
 12298  		return nil, gensupport.WrapError(err)
 12299  	}
 12300  	ret := &GoogleAnalyticsAdminV1alphaListAudiencesResponse{
 12301  		ServerResponse: googleapi.ServerResponse{
 12302  			Header:         res.Header,
 12303  			HTTPStatusCode: res.StatusCode,
 12304  		},
 12305  	}
 12306  	target := &ret
 12307  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12308  		return nil, err
 12309  	}
 12310  	return ret, nil
 12311  }
 12312  
 12313  // Pages invokes f for each page of results.
 12314  // A non-nil error returned from f will halt the iteration.
 12315  // The provided context supersedes any context provided to the Context method.
 12316  func (c *PropertiesAudiencesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListAudiencesResponse) error) error {
 12317  	c.ctx_ = ctx
 12318  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12319  	for {
 12320  		x, err := c.Do()
 12321  		if err != nil {
 12322  			return err
 12323  		}
 12324  		if err := f(x); err != nil {
 12325  			return err
 12326  		}
 12327  		if x.NextPageToken == "" {
 12328  			return nil
 12329  		}
 12330  		c.PageToken(x.NextPageToken)
 12331  	}
 12332  }
 12333  
 12334  type PropertiesAudiencesPatchCall struct {
 12335  	s                                   *Service
 12336  	name                                string
 12337  	googleanalyticsadminv1alphaaudience *GoogleAnalyticsAdminV1alphaAudience
 12338  	urlParams_                          gensupport.URLParams
 12339  	ctx_                                context.Context
 12340  	header_                             http.Header
 12341  }
 12342  
 12343  // Patch: Updates an Audience on a property.
 12344  //
 12345  //   - name: Output only. The resource name for this Audience resource. Format:
 12346  //     properties/{propertyId}/audiences/{audienceId}.
 12347  func (r *PropertiesAudiencesService) Patch(name string, googleanalyticsadminv1alphaaudience *GoogleAnalyticsAdminV1alphaAudience) *PropertiesAudiencesPatchCall {
 12348  	c := &PropertiesAudiencesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12349  	c.name = name
 12350  	c.googleanalyticsadminv1alphaaudience = googleanalyticsadminv1alphaaudience
 12351  	return c
 12352  }
 12353  
 12354  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 12355  // fields to be updated. Field names must be in snake case (e.g.,
 12356  // "field_to_update"). Omitted fields will not be updated. To replace the
 12357  // entire entity, use one path with the string "*" to match all fields.
 12358  func (c *PropertiesAudiencesPatchCall) UpdateMask(updateMask string) *PropertiesAudiencesPatchCall {
 12359  	c.urlParams_.Set("updateMask", updateMask)
 12360  	return c
 12361  }
 12362  
 12363  // Fields allows partial responses to be retrieved. See
 12364  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12365  // details.
 12366  func (c *PropertiesAudiencesPatchCall) Fields(s ...googleapi.Field) *PropertiesAudiencesPatchCall {
 12367  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12368  	return c
 12369  }
 12370  
 12371  // Context sets the context to be used in this call's Do method.
 12372  func (c *PropertiesAudiencesPatchCall) Context(ctx context.Context) *PropertiesAudiencesPatchCall {
 12373  	c.ctx_ = ctx
 12374  	return c
 12375  }
 12376  
 12377  // Header returns a http.Header that can be modified by the caller to add
 12378  // headers to the request.
 12379  func (c *PropertiesAudiencesPatchCall) Header() http.Header {
 12380  	if c.header_ == nil {
 12381  		c.header_ = make(http.Header)
 12382  	}
 12383  	return c.header_
 12384  }
 12385  
 12386  func (c *PropertiesAudiencesPatchCall) doRequest(alt string) (*http.Response, error) {
 12387  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12388  	var body io.Reader = nil
 12389  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaaudience)
 12390  	if err != nil {
 12391  		return nil, err
 12392  	}
 12393  	c.urlParams_.Set("alt", alt)
 12394  	c.urlParams_.Set("prettyPrint", "false")
 12395  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12396  	urls += "?" + c.urlParams_.Encode()
 12397  	req, err := http.NewRequest("PATCH", urls, body)
 12398  	if err != nil {
 12399  		return nil, err
 12400  	}
 12401  	req.Header = reqHeaders
 12402  	googleapi.Expand(req.URL, map[string]string{
 12403  		"name": c.name,
 12404  	})
 12405  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12406  }
 12407  
 12408  // Do executes the "analyticsadmin.properties.audiences.patch" call.
 12409  // Any non-2xx status code is an error. Response headers are in either
 12410  // *GoogleAnalyticsAdminV1alphaAudience.ServerResponse.Header or (if a response
 12411  // was returned at all) in error.(*googleapi.Error).Header. Use
 12412  // googleapi.IsNotModified to check whether the returned error was because
 12413  // http.StatusNotModified was returned.
 12414  func (c *PropertiesAudiencesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaAudience, error) {
 12415  	gensupport.SetOptions(c.urlParams_, opts...)
 12416  	res, err := c.doRequest("json")
 12417  	if res != nil && res.StatusCode == http.StatusNotModified {
 12418  		if res.Body != nil {
 12419  			res.Body.Close()
 12420  		}
 12421  		return nil, gensupport.WrapError(&googleapi.Error{
 12422  			Code:   res.StatusCode,
 12423  			Header: res.Header,
 12424  		})
 12425  	}
 12426  	if err != nil {
 12427  		return nil, err
 12428  	}
 12429  	defer googleapi.CloseBody(res)
 12430  	if err := googleapi.CheckResponse(res); err != nil {
 12431  		return nil, gensupport.WrapError(err)
 12432  	}
 12433  	ret := &GoogleAnalyticsAdminV1alphaAudience{
 12434  		ServerResponse: googleapi.ServerResponse{
 12435  			Header:         res.Header,
 12436  			HTTPStatusCode: res.StatusCode,
 12437  		},
 12438  	}
 12439  	target := &ret
 12440  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12441  		return nil, err
 12442  	}
 12443  	return ret, nil
 12444  }
 12445  
 12446  type PropertiesBigQueryLinksGetCall struct {
 12447  	s            *Service
 12448  	name         string
 12449  	urlParams_   gensupport.URLParams
 12450  	ifNoneMatch_ string
 12451  	ctx_         context.Context
 12452  	header_      http.Header
 12453  }
 12454  
 12455  // Get: Lookup for a single BigQuery Link.
 12456  //
 12457  //   - name: The name of the BigQuery link to lookup. Format:
 12458  //     properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example:
 12459  //     properties/123/bigQueryLinks/456.
 12460  func (r *PropertiesBigQueryLinksService) Get(name string) *PropertiesBigQueryLinksGetCall {
 12461  	c := &PropertiesBigQueryLinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12462  	c.name = name
 12463  	return c
 12464  }
 12465  
 12466  // Fields allows partial responses to be retrieved. See
 12467  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12468  // details.
 12469  func (c *PropertiesBigQueryLinksGetCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksGetCall {
 12470  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12471  	return c
 12472  }
 12473  
 12474  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12475  // object's ETag matches the given value. This is useful for getting updates
 12476  // only after the object has changed since the last request.
 12477  func (c *PropertiesBigQueryLinksGetCall) IfNoneMatch(entityTag string) *PropertiesBigQueryLinksGetCall {
 12478  	c.ifNoneMatch_ = entityTag
 12479  	return c
 12480  }
 12481  
 12482  // Context sets the context to be used in this call's Do method.
 12483  func (c *PropertiesBigQueryLinksGetCall) Context(ctx context.Context) *PropertiesBigQueryLinksGetCall {
 12484  	c.ctx_ = ctx
 12485  	return c
 12486  }
 12487  
 12488  // Header returns a http.Header that can be modified by the caller to add
 12489  // headers to the request.
 12490  func (c *PropertiesBigQueryLinksGetCall) Header() http.Header {
 12491  	if c.header_ == nil {
 12492  		c.header_ = make(http.Header)
 12493  	}
 12494  	return c.header_
 12495  }
 12496  
 12497  func (c *PropertiesBigQueryLinksGetCall) doRequest(alt string) (*http.Response, error) {
 12498  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12499  	if c.ifNoneMatch_ != "" {
 12500  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12501  	}
 12502  	var body io.Reader = nil
 12503  	c.urlParams_.Set("alt", alt)
 12504  	c.urlParams_.Set("prettyPrint", "false")
 12505  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12506  	urls += "?" + c.urlParams_.Encode()
 12507  	req, err := http.NewRequest("GET", urls, body)
 12508  	if err != nil {
 12509  		return nil, err
 12510  	}
 12511  	req.Header = reqHeaders
 12512  	googleapi.Expand(req.URL, map[string]string{
 12513  		"name": c.name,
 12514  	})
 12515  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12516  }
 12517  
 12518  // Do executes the "analyticsadmin.properties.bigQueryLinks.get" call.
 12519  // Any non-2xx status code is an error. Response headers are in either
 12520  // *GoogleAnalyticsAdminV1alphaBigQueryLink.ServerResponse.Header or (if a
 12521  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12522  // googleapi.IsNotModified to check whether the returned error was because
 12523  // http.StatusNotModified was returned.
 12524  func (c *PropertiesBigQueryLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBigQueryLink, error) {
 12525  	gensupport.SetOptions(c.urlParams_, opts...)
 12526  	res, err := c.doRequest("json")
 12527  	if res != nil && res.StatusCode == http.StatusNotModified {
 12528  		if res.Body != nil {
 12529  			res.Body.Close()
 12530  		}
 12531  		return nil, gensupport.WrapError(&googleapi.Error{
 12532  			Code:   res.StatusCode,
 12533  			Header: res.Header,
 12534  		})
 12535  	}
 12536  	if err != nil {
 12537  		return nil, err
 12538  	}
 12539  	defer googleapi.CloseBody(res)
 12540  	if err := googleapi.CheckResponse(res); err != nil {
 12541  		return nil, gensupport.WrapError(err)
 12542  	}
 12543  	ret := &GoogleAnalyticsAdminV1alphaBigQueryLink{
 12544  		ServerResponse: googleapi.ServerResponse{
 12545  			Header:         res.Header,
 12546  			HTTPStatusCode: res.StatusCode,
 12547  		},
 12548  	}
 12549  	target := &ret
 12550  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12551  		return nil, err
 12552  	}
 12553  	return ret, nil
 12554  }
 12555  
 12556  type PropertiesBigQueryLinksListCall struct {
 12557  	s            *Service
 12558  	parent       string
 12559  	urlParams_   gensupport.URLParams
 12560  	ifNoneMatch_ string
 12561  	ctx_         context.Context
 12562  	header_      http.Header
 12563  }
 12564  
 12565  // List: Lists BigQuery Links on a property.
 12566  //
 12567  //   - parent: The name of the property to list BigQuery links under. Format:
 12568  //     properties/{property_id} Example: properties/1234.
 12569  func (r *PropertiesBigQueryLinksService) List(parent string) *PropertiesBigQueryLinksListCall {
 12570  	c := &PropertiesBigQueryLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12571  	c.parent = parent
 12572  	return c
 12573  }
 12574  
 12575  // PageSize sets the optional parameter "pageSize": The maximum number of
 12576  // resources to return. The service may return fewer than this value, even if
 12577  // there are additional pages. If unspecified, at most 50 resources will be
 12578  // returned. The maximum value is 200; (higher values will be coerced to the
 12579  // maximum)
 12580  func (c *PropertiesBigQueryLinksListCall) PageSize(pageSize int64) *PropertiesBigQueryLinksListCall {
 12581  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12582  	return c
 12583  }
 12584  
 12585  // PageToken sets the optional parameter "pageToken": A page token, received
 12586  // from a previous `ListBigQueryLinks` call. Provide this to retrieve the
 12587  // subsequent page. When paginating, all other parameters provided to
 12588  // `ListBigQueryLinks` must match the call that provided the page token.
 12589  func (c *PropertiesBigQueryLinksListCall) PageToken(pageToken string) *PropertiesBigQueryLinksListCall {
 12590  	c.urlParams_.Set("pageToken", pageToken)
 12591  	return c
 12592  }
 12593  
 12594  // Fields allows partial responses to be retrieved. See
 12595  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12596  // details.
 12597  func (c *PropertiesBigQueryLinksListCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksListCall {
 12598  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12599  	return c
 12600  }
 12601  
 12602  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12603  // object's ETag matches the given value. This is useful for getting updates
 12604  // only after the object has changed since the last request.
 12605  func (c *PropertiesBigQueryLinksListCall) IfNoneMatch(entityTag string) *PropertiesBigQueryLinksListCall {
 12606  	c.ifNoneMatch_ = entityTag
 12607  	return c
 12608  }
 12609  
 12610  // Context sets the context to be used in this call's Do method.
 12611  func (c *PropertiesBigQueryLinksListCall) Context(ctx context.Context) *PropertiesBigQueryLinksListCall {
 12612  	c.ctx_ = ctx
 12613  	return c
 12614  }
 12615  
 12616  // Header returns a http.Header that can be modified by the caller to add
 12617  // headers to the request.
 12618  func (c *PropertiesBigQueryLinksListCall) Header() http.Header {
 12619  	if c.header_ == nil {
 12620  		c.header_ = make(http.Header)
 12621  	}
 12622  	return c.header_
 12623  }
 12624  
 12625  func (c *PropertiesBigQueryLinksListCall) doRequest(alt string) (*http.Response, error) {
 12626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12627  	if c.ifNoneMatch_ != "" {
 12628  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12629  	}
 12630  	var body io.Reader = nil
 12631  	c.urlParams_.Set("alt", alt)
 12632  	c.urlParams_.Set("prettyPrint", "false")
 12633  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/bigQueryLinks")
 12634  	urls += "?" + c.urlParams_.Encode()
 12635  	req, err := http.NewRequest("GET", urls, body)
 12636  	if err != nil {
 12637  		return nil, err
 12638  	}
 12639  	req.Header = reqHeaders
 12640  	googleapi.Expand(req.URL, map[string]string{
 12641  		"parent": c.parent,
 12642  	})
 12643  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12644  }
 12645  
 12646  // Do executes the "analyticsadmin.properties.bigQueryLinks.list" call.
 12647  // Any non-2xx status code is an error. Response headers are in either
 12648  // *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse.ServerResponse.Header
 12649  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 12650  // Use googleapi.IsNotModified to check whether the returned error was because
 12651  // http.StatusNotModified was returned.
 12652  func (c *PropertiesBigQueryLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse, error) {
 12653  	gensupport.SetOptions(c.urlParams_, opts...)
 12654  	res, err := c.doRequest("json")
 12655  	if res != nil && res.StatusCode == http.StatusNotModified {
 12656  		if res.Body != nil {
 12657  			res.Body.Close()
 12658  		}
 12659  		return nil, gensupport.WrapError(&googleapi.Error{
 12660  			Code:   res.StatusCode,
 12661  			Header: res.Header,
 12662  		})
 12663  	}
 12664  	if err != nil {
 12665  		return nil, err
 12666  	}
 12667  	defer googleapi.CloseBody(res)
 12668  	if err := googleapi.CheckResponse(res); err != nil {
 12669  		return nil, gensupport.WrapError(err)
 12670  	}
 12671  	ret := &GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse{
 12672  		ServerResponse: googleapi.ServerResponse{
 12673  			Header:         res.Header,
 12674  			HTTPStatusCode: res.StatusCode,
 12675  		},
 12676  	}
 12677  	target := &ret
 12678  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12679  		return nil, err
 12680  	}
 12681  	return ret, nil
 12682  }
 12683  
 12684  // Pages invokes f for each page of results.
 12685  // A non-nil error returned from f will halt the iteration.
 12686  // The provided context supersedes any context provided to the Context method.
 12687  func (c *PropertiesBigQueryLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse) error) error {
 12688  	c.ctx_ = ctx
 12689  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12690  	for {
 12691  		x, err := c.Do()
 12692  		if err != nil {
 12693  			return err
 12694  		}
 12695  		if err := f(x); err != nil {
 12696  			return err
 12697  		}
 12698  		if x.NextPageToken == "" {
 12699  			return nil
 12700  		}
 12701  		c.PageToken(x.NextPageToken)
 12702  	}
 12703  }
 12704  
 12705  type PropertiesCalculatedMetricsCreateCall struct {
 12706  	s                                           *Service
 12707  	parent                                      string
 12708  	googleanalyticsadminv1alphacalculatedmetric *GoogleAnalyticsAdminV1alphaCalculatedMetric
 12709  	urlParams_                                  gensupport.URLParams
 12710  	ctx_                                        context.Context
 12711  	header_                                     http.Header
 12712  }
 12713  
 12714  // Create: Creates a CalculatedMetric.
 12715  //
 12716  // - parent: Format: properties/{property_id} Example: properties/1234.
 12717  func (r *PropertiesCalculatedMetricsService) Create(parent string, googleanalyticsadminv1alphacalculatedmetric *GoogleAnalyticsAdminV1alphaCalculatedMetric) *PropertiesCalculatedMetricsCreateCall {
 12718  	c := &PropertiesCalculatedMetricsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12719  	c.parent = parent
 12720  	c.googleanalyticsadminv1alphacalculatedmetric = googleanalyticsadminv1alphacalculatedmetric
 12721  	return c
 12722  }
 12723  
 12724  // CalculatedMetricId sets the optional parameter "calculatedMetricId":
 12725  // Required. The ID to use for the calculated metric which will become the
 12726  // final component of the calculated metric's resource name. This value should
 12727  // be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces
 12728  // allowed. calculated_metric_id must be unique between all calculated metrics
 12729  // under a property. The calculated_metric_id is used when referencing this
 12730  // calculated metric from external APIs, for example,
 12731  // "calcMetric:{calculated_metric_id}".
 12732  func (c *PropertiesCalculatedMetricsCreateCall) CalculatedMetricId(calculatedMetricId string) *PropertiesCalculatedMetricsCreateCall {
 12733  	c.urlParams_.Set("calculatedMetricId", calculatedMetricId)
 12734  	return c
 12735  }
 12736  
 12737  // Fields allows partial responses to be retrieved. See
 12738  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12739  // details.
 12740  func (c *PropertiesCalculatedMetricsCreateCall) Fields(s ...googleapi.Field) *PropertiesCalculatedMetricsCreateCall {
 12741  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12742  	return c
 12743  }
 12744  
 12745  // Context sets the context to be used in this call's Do method.
 12746  func (c *PropertiesCalculatedMetricsCreateCall) Context(ctx context.Context) *PropertiesCalculatedMetricsCreateCall {
 12747  	c.ctx_ = ctx
 12748  	return c
 12749  }
 12750  
 12751  // Header returns a http.Header that can be modified by the caller to add
 12752  // headers to the request.
 12753  func (c *PropertiesCalculatedMetricsCreateCall) Header() http.Header {
 12754  	if c.header_ == nil {
 12755  		c.header_ = make(http.Header)
 12756  	}
 12757  	return c.header_
 12758  }
 12759  
 12760  func (c *PropertiesCalculatedMetricsCreateCall) doRequest(alt string) (*http.Response, error) {
 12761  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12762  	var body io.Reader = nil
 12763  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacalculatedmetric)
 12764  	if err != nil {
 12765  		return nil, err
 12766  	}
 12767  	c.urlParams_.Set("alt", alt)
 12768  	c.urlParams_.Set("prettyPrint", "false")
 12769  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/calculatedMetrics")
 12770  	urls += "?" + c.urlParams_.Encode()
 12771  	req, err := http.NewRequest("POST", urls, body)
 12772  	if err != nil {
 12773  		return nil, err
 12774  	}
 12775  	req.Header = reqHeaders
 12776  	googleapi.Expand(req.URL, map[string]string{
 12777  		"parent": c.parent,
 12778  	})
 12779  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12780  }
 12781  
 12782  // Do executes the "analyticsadmin.properties.calculatedMetrics.create" call.
 12783  // Any non-2xx status code is an error. Response headers are in either
 12784  // *GoogleAnalyticsAdminV1alphaCalculatedMetric.ServerResponse.Header or (if a
 12785  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12786  // googleapi.IsNotModified to check whether the returned error was because
 12787  // http.StatusNotModified was returned.
 12788  func (c *PropertiesCalculatedMetricsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCalculatedMetric, error) {
 12789  	gensupport.SetOptions(c.urlParams_, opts...)
 12790  	res, err := c.doRequest("json")
 12791  	if res != nil && res.StatusCode == http.StatusNotModified {
 12792  		if res.Body != nil {
 12793  			res.Body.Close()
 12794  		}
 12795  		return nil, gensupport.WrapError(&googleapi.Error{
 12796  			Code:   res.StatusCode,
 12797  			Header: res.Header,
 12798  		})
 12799  	}
 12800  	if err != nil {
 12801  		return nil, err
 12802  	}
 12803  	defer googleapi.CloseBody(res)
 12804  	if err := googleapi.CheckResponse(res); err != nil {
 12805  		return nil, gensupport.WrapError(err)
 12806  	}
 12807  	ret := &GoogleAnalyticsAdminV1alphaCalculatedMetric{
 12808  		ServerResponse: googleapi.ServerResponse{
 12809  			Header:         res.Header,
 12810  			HTTPStatusCode: res.StatusCode,
 12811  		},
 12812  	}
 12813  	target := &ret
 12814  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12815  		return nil, err
 12816  	}
 12817  	return ret, nil
 12818  }
 12819  
 12820  type PropertiesCalculatedMetricsDeleteCall struct {
 12821  	s          *Service
 12822  	name       string
 12823  	urlParams_ gensupport.URLParams
 12824  	ctx_       context.Context
 12825  	header_    http.Header
 12826  }
 12827  
 12828  // Delete: Deletes a CalculatedMetric on a property.
 12829  //
 12830  //   - name: The name of the CalculatedMetric to delete. Format:
 12831  //     properties/{property_id}/calculatedMetrics/{calculated_metric_id} Example:
 12832  //     properties/1234/calculatedMetrics/Metric01.
 12833  func (r *PropertiesCalculatedMetricsService) Delete(name string) *PropertiesCalculatedMetricsDeleteCall {
 12834  	c := &PropertiesCalculatedMetricsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12835  	c.name = name
 12836  	return c
 12837  }
 12838  
 12839  // Fields allows partial responses to be retrieved. See
 12840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12841  // details.
 12842  func (c *PropertiesCalculatedMetricsDeleteCall) Fields(s ...googleapi.Field) *PropertiesCalculatedMetricsDeleteCall {
 12843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12844  	return c
 12845  }
 12846  
 12847  // Context sets the context to be used in this call's Do method.
 12848  func (c *PropertiesCalculatedMetricsDeleteCall) Context(ctx context.Context) *PropertiesCalculatedMetricsDeleteCall {
 12849  	c.ctx_ = ctx
 12850  	return c
 12851  }
 12852  
 12853  // Header returns a http.Header that can be modified by the caller to add
 12854  // headers to the request.
 12855  func (c *PropertiesCalculatedMetricsDeleteCall) Header() http.Header {
 12856  	if c.header_ == nil {
 12857  		c.header_ = make(http.Header)
 12858  	}
 12859  	return c.header_
 12860  }
 12861  
 12862  func (c *PropertiesCalculatedMetricsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12863  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12864  	var body io.Reader = nil
 12865  	c.urlParams_.Set("alt", alt)
 12866  	c.urlParams_.Set("prettyPrint", "false")
 12867  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12868  	urls += "?" + c.urlParams_.Encode()
 12869  	req, err := http.NewRequest("DELETE", urls, body)
 12870  	if err != nil {
 12871  		return nil, err
 12872  	}
 12873  	req.Header = reqHeaders
 12874  	googleapi.Expand(req.URL, map[string]string{
 12875  		"name": c.name,
 12876  	})
 12877  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12878  }
 12879  
 12880  // Do executes the "analyticsadmin.properties.calculatedMetrics.delete" call.
 12881  // Any non-2xx status code is an error. Response headers are in either
 12882  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 12883  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12884  // check whether the returned error was because http.StatusNotModified was
 12885  // returned.
 12886  func (c *PropertiesCalculatedMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 12887  	gensupport.SetOptions(c.urlParams_, opts...)
 12888  	res, err := c.doRequest("json")
 12889  	if res != nil && res.StatusCode == http.StatusNotModified {
 12890  		if res.Body != nil {
 12891  			res.Body.Close()
 12892  		}
 12893  		return nil, gensupport.WrapError(&googleapi.Error{
 12894  			Code:   res.StatusCode,
 12895  			Header: res.Header,
 12896  		})
 12897  	}
 12898  	if err != nil {
 12899  		return nil, err
 12900  	}
 12901  	defer googleapi.CloseBody(res)
 12902  	if err := googleapi.CheckResponse(res); err != nil {
 12903  		return nil, gensupport.WrapError(err)
 12904  	}
 12905  	ret := &GoogleProtobufEmpty{
 12906  		ServerResponse: googleapi.ServerResponse{
 12907  			Header:         res.Header,
 12908  			HTTPStatusCode: res.StatusCode,
 12909  		},
 12910  	}
 12911  	target := &ret
 12912  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12913  		return nil, err
 12914  	}
 12915  	return ret, nil
 12916  }
 12917  
 12918  type PropertiesCalculatedMetricsGetCall struct {
 12919  	s            *Service
 12920  	name         string
 12921  	urlParams_   gensupport.URLParams
 12922  	ifNoneMatch_ string
 12923  	ctx_         context.Context
 12924  	header_      http.Header
 12925  }
 12926  
 12927  // Get: Lookup for a single CalculatedMetric.
 12928  //
 12929  //   - name: The name of the CalculatedMetric to get. Format:
 12930  //     properties/{property_id}/calculatedMetrics/{calculated_metric_id} Example:
 12931  //     properties/1234/calculatedMetrics/Metric01.
 12932  func (r *PropertiesCalculatedMetricsService) Get(name string) *PropertiesCalculatedMetricsGetCall {
 12933  	c := &PropertiesCalculatedMetricsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12934  	c.name = name
 12935  	return c
 12936  }
 12937  
 12938  // Fields allows partial responses to be retrieved. See
 12939  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12940  // details.
 12941  func (c *PropertiesCalculatedMetricsGetCall) Fields(s ...googleapi.Field) *PropertiesCalculatedMetricsGetCall {
 12942  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12943  	return c
 12944  }
 12945  
 12946  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12947  // object's ETag matches the given value. This is useful for getting updates
 12948  // only after the object has changed since the last request.
 12949  func (c *PropertiesCalculatedMetricsGetCall) IfNoneMatch(entityTag string) *PropertiesCalculatedMetricsGetCall {
 12950  	c.ifNoneMatch_ = entityTag
 12951  	return c
 12952  }
 12953  
 12954  // Context sets the context to be used in this call's Do method.
 12955  func (c *PropertiesCalculatedMetricsGetCall) Context(ctx context.Context) *PropertiesCalculatedMetricsGetCall {
 12956  	c.ctx_ = ctx
 12957  	return c
 12958  }
 12959  
 12960  // Header returns a http.Header that can be modified by the caller to add
 12961  // headers to the request.
 12962  func (c *PropertiesCalculatedMetricsGetCall) Header() http.Header {
 12963  	if c.header_ == nil {
 12964  		c.header_ = make(http.Header)
 12965  	}
 12966  	return c.header_
 12967  }
 12968  
 12969  func (c *PropertiesCalculatedMetricsGetCall) doRequest(alt string) (*http.Response, error) {
 12970  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12971  	if c.ifNoneMatch_ != "" {
 12972  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12973  	}
 12974  	var body io.Reader = nil
 12975  	c.urlParams_.Set("alt", alt)
 12976  	c.urlParams_.Set("prettyPrint", "false")
 12977  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12978  	urls += "?" + c.urlParams_.Encode()
 12979  	req, err := http.NewRequest("GET", urls, body)
 12980  	if err != nil {
 12981  		return nil, err
 12982  	}
 12983  	req.Header = reqHeaders
 12984  	googleapi.Expand(req.URL, map[string]string{
 12985  		"name": c.name,
 12986  	})
 12987  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12988  }
 12989  
 12990  // Do executes the "analyticsadmin.properties.calculatedMetrics.get" call.
 12991  // Any non-2xx status code is an error. Response headers are in either
 12992  // *GoogleAnalyticsAdminV1alphaCalculatedMetric.ServerResponse.Header or (if a
 12993  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12994  // googleapi.IsNotModified to check whether the returned error was because
 12995  // http.StatusNotModified was returned.
 12996  func (c *PropertiesCalculatedMetricsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCalculatedMetric, error) {
 12997  	gensupport.SetOptions(c.urlParams_, opts...)
 12998  	res, err := c.doRequest("json")
 12999  	if res != nil && res.StatusCode == http.StatusNotModified {
 13000  		if res.Body != nil {
 13001  			res.Body.Close()
 13002  		}
 13003  		return nil, gensupport.WrapError(&googleapi.Error{
 13004  			Code:   res.StatusCode,
 13005  			Header: res.Header,
 13006  		})
 13007  	}
 13008  	if err != nil {
 13009  		return nil, err
 13010  	}
 13011  	defer googleapi.CloseBody(res)
 13012  	if err := googleapi.CheckResponse(res); err != nil {
 13013  		return nil, gensupport.WrapError(err)
 13014  	}
 13015  	ret := &GoogleAnalyticsAdminV1alphaCalculatedMetric{
 13016  		ServerResponse: googleapi.ServerResponse{
 13017  			Header:         res.Header,
 13018  			HTTPStatusCode: res.StatusCode,
 13019  		},
 13020  	}
 13021  	target := &ret
 13022  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13023  		return nil, err
 13024  	}
 13025  	return ret, nil
 13026  }
 13027  
 13028  type PropertiesCalculatedMetricsListCall struct {
 13029  	s            *Service
 13030  	parent       string
 13031  	urlParams_   gensupport.URLParams
 13032  	ifNoneMatch_ string
 13033  	ctx_         context.Context
 13034  	header_      http.Header
 13035  }
 13036  
 13037  // List: Lists CalculatedMetrics on a property.
 13038  //
 13039  // - parent: Example format: properties/1234.
 13040  func (r *PropertiesCalculatedMetricsService) List(parent string) *PropertiesCalculatedMetricsListCall {
 13041  	c := &PropertiesCalculatedMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13042  	c.parent = parent
 13043  	return c
 13044  }
 13045  
 13046  // PageSize sets the optional parameter "pageSize": The maximum number of
 13047  // resources to return. If unspecified, at most 50 resources will be returned.
 13048  // The maximum value is 200 (higher values will be coerced to the maximum).
 13049  func (c *PropertiesCalculatedMetricsListCall) PageSize(pageSize int64) *PropertiesCalculatedMetricsListCall {
 13050  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13051  	return c
 13052  }
 13053  
 13054  // PageToken sets the optional parameter "pageToken": A page token, received
 13055  // from a previous `ListCalculatedMetrics` call. Provide this to retrieve the
 13056  // subsequent page. When paginating, all other parameters provided to
 13057  // `ListCalculatedMetrics` must match the call that provided the page token.
 13058  func (c *PropertiesCalculatedMetricsListCall) PageToken(pageToken string) *PropertiesCalculatedMetricsListCall {
 13059  	c.urlParams_.Set("pageToken", pageToken)
 13060  	return c
 13061  }
 13062  
 13063  // Fields allows partial responses to be retrieved. See
 13064  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13065  // details.
 13066  func (c *PropertiesCalculatedMetricsListCall) Fields(s ...googleapi.Field) *PropertiesCalculatedMetricsListCall {
 13067  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13068  	return c
 13069  }
 13070  
 13071  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13072  // object's ETag matches the given value. This is useful for getting updates
 13073  // only after the object has changed since the last request.
 13074  func (c *PropertiesCalculatedMetricsListCall) IfNoneMatch(entityTag string) *PropertiesCalculatedMetricsListCall {
 13075  	c.ifNoneMatch_ = entityTag
 13076  	return c
 13077  }
 13078  
 13079  // Context sets the context to be used in this call's Do method.
 13080  func (c *PropertiesCalculatedMetricsListCall) Context(ctx context.Context) *PropertiesCalculatedMetricsListCall {
 13081  	c.ctx_ = ctx
 13082  	return c
 13083  }
 13084  
 13085  // Header returns a http.Header that can be modified by the caller to add
 13086  // headers to the request.
 13087  func (c *PropertiesCalculatedMetricsListCall) Header() http.Header {
 13088  	if c.header_ == nil {
 13089  		c.header_ = make(http.Header)
 13090  	}
 13091  	return c.header_
 13092  }
 13093  
 13094  func (c *PropertiesCalculatedMetricsListCall) doRequest(alt string) (*http.Response, error) {
 13095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13096  	if c.ifNoneMatch_ != "" {
 13097  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13098  	}
 13099  	var body io.Reader = nil
 13100  	c.urlParams_.Set("alt", alt)
 13101  	c.urlParams_.Set("prettyPrint", "false")
 13102  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/calculatedMetrics")
 13103  	urls += "?" + c.urlParams_.Encode()
 13104  	req, err := http.NewRequest("GET", urls, body)
 13105  	if err != nil {
 13106  		return nil, err
 13107  	}
 13108  	req.Header = reqHeaders
 13109  	googleapi.Expand(req.URL, map[string]string{
 13110  		"parent": c.parent,
 13111  	})
 13112  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13113  }
 13114  
 13115  // Do executes the "analyticsadmin.properties.calculatedMetrics.list" call.
 13116  // Any non-2xx status code is an error. Response headers are in either
 13117  // *GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse.ServerResponse.Head
 13118  // er or (if a response was returned at all) in
 13119  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13120  // whether the returned error was because http.StatusNotModified was returned.
 13121  func (c *PropertiesCalculatedMetricsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse, error) {
 13122  	gensupport.SetOptions(c.urlParams_, opts...)
 13123  	res, err := c.doRequest("json")
 13124  	if res != nil && res.StatusCode == http.StatusNotModified {
 13125  		if res.Body != nil {
 13126  			res.Body.Close()
 13127  		}
 13128  		return nil, gensupport.WrapError(&googleapi.Error{
 13129  			Code:   res.StatusCode,
 13130  			Header: res.Header,
 13131  		})
 13132  	}
 13133  	if err != nil {
 13134  		return nil, err
 13135  	}
 13136  	defer googleapi.CloseBody(res)
 13137  	if err := googleapi.CheckResponse(res); err != nil {
 13138  		return nil, gensupport.WrapError(err)
 13139  	}
 13140  	ret := &GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse{
 13141  		ServerResponse: googleapi.ServerResponse{
 13142  			Header:         res.Header,
 13143  			HTTPStatusCode: res.StatusCode,
 13144  		},
 13145  	}
 13146  	target := &ret
 13147  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13148  		return nil, err
 13149  	}
 13150  	return ret, nil
 13151  }
 13152  
 13153  // Pages invokes f for each page of results.
 13154  // A non-nil error returned from f will halt the iteration.
 13155  // The provided context supersedes any context provided to the Context method.
 13156  func (c *PropertiesCalculatedMetricsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListCalculatedMetricsResponse) error) error {
 13157  	c.ctx_ = ctx
 13158  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13159  	for {
 13160  		x, err := c.Do()
 13161  		if err != nil {
 13162  			return err
 13163  		}
 13164  		if err := f(x); err != nil {
 13165  			return err
 13166  		}
 13167  		if x.NextPageToken == "" {
 13168  			return nil
 13169  		}
 13170  		c.PageToken(x.NextPageToken)
 13171  	}
 13172  }
 13173  
 13174  type PropertiesCalculatedMetricsPatchCall struct {
 13175  	s                                           *Service
 13176  	name                                        string
 13177  	googleanalyticsadminv1alphacalculatedmetric *GoogleAnalyticsAdminV1alphaCalculatedMetric
 13178  	urlParams_                                  gensupport.URLParams
 13179  	ctx_                                        context.Context
 13180  	header_                                     http.Header
 13181  }
 13182  
 13183  // Patch: Updates a CalculatedMetric on a property.
 13184  //
 13185  //   - name: Output only. Resource name for this CalculatedMetric. Format:
 13186  //     'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'.
 13187  func (r *PropertiesCalculatedMetricsService) Patch(name string, googleanalyticsadminv1alphacalculatedmetric *GoogleAnalyticsAdminV1alphaCalculatedMetric) *PropertiesCalculatedMetricsPatchCall {
 13188  	c := &PropertiesCalculatedMetricsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13189  	c.name = name
 13190  	c.googleanalyticsadminv1alphacalculatedmetric = googleanalyticsadminv1alphacalculatedmetric
 13191  	return c
 13192  }
 13193  
 13194  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 13195  // fields to be updated. Omitted fields will not be updated. To replace the
 13196  // entire entity, use one path with the string "*" to match all fields.
 13197  func (c *PropertiesCalculatedMetricsPatchCall) UpdateMask(updateMask string) *PropertiesCalculatedMetricsPatchCall {
 13198  	c.urlParams_.Set("updateMask", updateMask)
 13199  	return c
 13200  }
 13201  
 13202  // Fields allows partial responses to be retrieved. See
 13203  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13204  // details.
 13205  func (c *PropertiesCalculatedMetricsPatchCall) Fields(s ...googleapi.Field) *PropertiesCalculatedMetricsPatchCall {
 13206  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13207  	return c
 13208  }
 13209  
 13210  // Context sets the context to be used in this call's Do method.
 13211  func (c *PropertiesCalculatedMetricsPatchCall) Context(ctx context.Context) *PropertiesCalculatedMetricsPatchCall {
 13212  	c.ctx_ = ctx
 13213  	return c
 13214  }
 13215  
 13216  // Header returns a http.Header that can be modified by the caller to add
 13217  // headers to the request.
 13218  func (c *PropertiesCalculatedMetricsPatchCall) Header() http.Header {
 13219  	if c.header_ == nil {
 13220  		c.header_ = make(http.Header)
 13221  	}
 13222  	return c.header_
 13223  }
 13224  
 13225  func (c *PropertiesCalculatedMetricsPatchCall) doRequest(alt string) (*http.Response, error) {
 13226  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13227  	var body io.Reader = nil
 13228  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacalculatedmetric)
 13229  	if err != nil {
 13230  		return nil, err
 13231  	}
 13232  	c.urlParams_.Set("alt", alt)
 13233  	c.urlParams_.Set("prettyPrint", "false")
 13234  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13235  	urls += "?" + c.urlParams_.Encode()
 13236  	req, err := http.NewRequest("PATCH", urls, body)
 13237  	if err != nil {
 13238  		return nil, err
 13239  	}
 13240  	req.Header = reqHeaders
 13241  	googleapi.Expand(req.URL, map[string]string{
 13242  		"name": c.name,
 13243  	})
 13244  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13245  }
 13246  
 13247  // Do executes the "analyticsadmin.properties.calculatedMetrics.patch" call.
 13248  // Any non-2xx status code is an error. Response headers are in either
 13249  // *GoogleAnalyticsAdminV1alphaCalculatedMetric.ServerResponse.Header or (if a
 13250  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13251  // googleapi.IsNotModified to check whether the returned error was because
 13252  // http.StatusNotModified was returned.
 13253  func (c *PropertiesCalculatedMetricsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCalculatedMetric, error) {
 13254  	gensupport.SetOptions(c.urlParams_, opts...)
 13255  	res, err := c.doRequest("json")
 13256  	if res != nil && res.StatusCode == http.StatusNotModified {
 13257  		if res.Body != nil {
 13258  			res.Body.Close()
 13259  		}
 13260  		return nil, gensupport.WrapError(&googleapi.Error{
 13261  			Code:   res.StatusCode,
 13262  			Header: res.Header,
 13263  		})
 13264  	}
 13265  	if err != nil {
 13266  		return nil, err
 13267  	}
 13268  	defer googleapi.CloseBody(res)
 13269  	if err := googleapi.CheckResponse(res); err != nil {
 13270  		return nil, gensupport.WrapError(err)
 13271  	}
 13272  	ret := &GoogleAnalyticsAdminV1alphaCalculatedMetric{
 13273  		ServerResponse: googleapi.ServerResponse{
 13274  			Header:         res.Header,
 13275  			HTTPStatusCode: res.StatusCode,
 13276  		},
 13277  	}
 13278  	target := &ret
 13279  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13280  		return nil, err
 13281  	}
 13282  	return ret, nil
 13283  }
 13284  
 13285  type PropertiesChannelGroupsCreateCall struct {
 13286  	s                                       *Service
 13287  	parent                                  string
 13288  	googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup
 13289  	urlParams_                              gensupport.URLParams
 13290  	ctx_                                    context.Context
 13291  	header_                                 http.Header
 13292  }
 13293  
 13294  // Create: Creates a ChannelGroup.
 13295  //
 13296  //   - parent: The property for which to create a ChannelGroup. Example format:
 13297  //     properties/1234.
 13298  func (r *PropertiesChannelGroupsService) Create(parent string, googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup) *PropertiesChannelGroupsCreateCall {
 13299  	c := &PropertiesChannelGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13300  	c.parent = parent
 13301  	c.googleanalyticsadminv1alphachannelgroup = googleanalyticsadminv1alphachannelgroup
 13302  	return c
 13303  }
 13304  
 13305  // Fields allows partial responses to be retrieved. See
 13306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13307  // details.
 13308  func (c *PropertiesChannelGroupsCreateCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsCreateCall {
 13309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13310  	return c
 13311  }
 13312  
 13313  // Context sets the context to be used in this call's Do method.
 13314  func (c *PropertiesChannelGroupsCreateCall) Context(ctx context.Context) *PropertiesChannelGroupsCreateCall {
 13315  	c.ctx_ = ctx
 13316  	return c
 13317  }
 13318  
 13319  // Header returns a http.Header that can be modified by the caller to add
 13320  // headers to the request.
 13321  func (c *PropertiesChannelGroupsCreateCall) Header() http.Header {
 13322  	if c.header_ == nil {
 13323  		c.header_ = make(http.Header)
 13324  	}
 13325  	return c.header_
 13326  }
 13327  
 13328  func (c *PropertiesChannelGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
 13329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13330  	var body io.Reader = nil
 13331  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphachannelgroup)
 13332  	if err != nil {
 13333  		return nil, err
 13334  	}
 13335  	c.urlParams_.Set("alt", alt)
 13336  	c.urlParams_.Set("prettyPrint", "false")
 13337  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/channelGroups")
 13338  	urls += "?" + c.urlParams_.Encode()
 13339  	req, err := http.NewRequest("POST", urls, body)
 13340  	if err != nil {
 13341  		return nil, err
 13342  	}
 13343  	req.Header = reqHeaders
 13344  	googleapi.Expand(req.URL, map[string]string{
 13345  		"parent": c.parent,
 13346  	})
 13347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13348  }
 13349  
 13350  // Do executes the "analyticsadmin.properties.channelGroups.create" call.
 13351  // Any non-2xx status code is an error. Response headers are in either
 13352  // *GoogleAnalyticsAdminV1alphaChannelGroup.ServerResponse.Header or (if a
 13353  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13354  // googleapi.IsNotModified to check whether the returned error was because
 13355  // http.StatusNotModified was returned.
 13356  func (c *PropertiesChannelGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaChannelGroup, error) {
 13357  	gensupport.SetOptions(c.urlParams_, opts...)
 13358  	res, err := c.doRequest("json")
 13359  	if res != nil && res.StatusCode == http.StatusNotModified {
 13360  		if res.Body != nil {
 13361  			res.Body.Close()
 13362  		}
 13363  		return nil, gensupport.WrapError(&googleapi.Error{
 13364  			Code:   res.StatusCode,
 13365  			Header: res.Header,
 13366  		})
 13367  	}
 13368  	if err != nil {
 13369  		return nil, err
 13370  	}
 13371  	defer googleapi.CloseBody(res)
 13372  	if err := googleapi.CheckResponse(res); err != nil {
 13373  		return nil, gensupport.WrapError(err)
 13374  	}
 13375  	ret := &GoogleAnalyticsAdminV1alphaChannelGroup{
 13376  		ServerResponse: googleapi.ServerResponse{
 13377  			Header:         res.Header,
 13378  			HTTPStatusCode: res.StatusCode,
 13379  		},
 13380  	}
 13381  	target := &ret
 13382  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13383  		return nil, err
 13384  	}
 13385  	return ret, nil
 13386  }
 13387  
 13388  type PropertiesChannelGroupsDeleteCall struct {
 13389  	s          *Service
 13390  	name       string
 13391  	urlParams_ gensupport.URLParams
 13392  	ctx_       context.Context
 13393  	header_    http.Header
 13394  }
 13395  
 13396  // Delete: Deletes a ChannelGroup on a property.
 13397  //
 13398  //   - name: The ChannelGroup to delete. Example format:
 13399  //     properties/1234/channelGroups/5678.
 13400  func (r *PropertiesChannelGroupsService) Delete(name string) *PropertiesChannelGroupsDeleteCall {
 13401  	c := &PropertiesChannelGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13402  	c.name = name
 13403  	return c
 13404  }
 13405  
 13406  // Fields allows partial responses to be retrieved. See
 13407  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13408  // details.
 13409  func (c *PropertiesChannelGroupsDeleteCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsDeleteCall {
 13410  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13411  	return c
 13412  }
 13413  
 13414  // Context sets the context to be used in this call's Do method.
 13415  func (c *PropertiesChannelGroupsDeleteCall) Context(ctx context.Context) *PropertiesChannelGroupsDeleteCall {
 13416  	c.ctx_ = ctx
 13417  	return c
 13418  }
 13419  
 13420  // Header returns a http.Header that can be modified by the caller to add
 13421  // headers to the request.
 13422  func (c *PropertiesChannelGroupsDeleteCall) Header() http.Header {
 13423  	if c.header_ == nil {
 13424  		c.header_ = make(http.Header)
 13425  	}
 13426  	return c.header_
 13427  }
 13428  
 13429  func (c *PropertiesChannelGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
 13430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13431  	var body io.Reader = nil
 13432  	c.urlParams_.Set("alt", alt)
 13433  	c.urlParams_.Set("prettyPrint", "false")
 13434  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13435  	urls += "?" + c.urlParams_.Encode()
 13436  	req, err := http.NewRequest("DELETE", urls, body)
 13437  	if err != nil {
 13438  		return nil, err
 13439  	}
 13440  	req.Header = reqHeaders
 13441  	googleapi.Expand(req.URL, map[string]string{
 13442  		"name": c.name,
 13443  	})
 13444  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13445  }
 13446  
 13447  // Do executes the "analyticsadmin.properties.channelGroups.delete" call.
 13448  // Any non-2xx status code is an error. Response headers are in either
 13449  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 13450  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13451  // check whether the returned error was because http.StatusNotModified was
 13452  // returned.
 13453  func (c *PropertiesChannelGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 13454  	gensupport.SetOptions(c.urlParams_, opts...)
 13455  	res, err := c.doRequest("json")
 13456  	if res != nil && res.StatusCode == http.StatusNotModified {
 13457  		if res.Body != nil {
 13458  			res.Body.Close()
 13459  		}
 13460  		return nil, gensupport.WrapError(&googleapi.Error{
 13461  			Code:   res.StatusCode,
 13462  			Header: res.Header,
 13463  		})
 13464  	}
 13465  	if err != nil {
 13466  		return nil, err
 13467  	}
 13468  	defer googleapi.CloseBody(res)
 13469  	if err := googleapi.CheckResponse(res); err != nil {
 13470  		return nil, gensupport.WrapError(err)
 13471  	}
 13472  	ret := &GoogleProtobufEmpty{
 13473  		ServerResponse: googleapi.ServerResponse{
 13474  			Header:         res.Header,
 13475  			HTTPStatusCode: res.StatusCode,
 13476  		},
 13477  	}
 13478  	target := &ret
 13479  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13480  		return nil, err
 13481  	}
 13482  	return ret, nil
 13483  }
 13484  
 13485  type PropertiesChannelGroupsGetCall struct {
 13486  	s            *Service
 13487  	name         string
 13488  	urlParams_   gensupport.URLParams
 13489  	ifNoneMatch_ string
 13490  	ctx_         context.Context
 13491  	header_      http.Header
 13492  }
 13493  
 13494  // Get: Lookup for a single ChannelGroup.
 13495  //
 13496  //   - name: The ChannelGroup to get. Example format:
 13497  //     properties/1234/channelGroups/5678.
 13498  func (r *PropertiesChannelGroupsService) Get(name string) *PropertiesChannelGroupsGetCall {
 13499  	c := &PropertiesChannelGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13500  	c.name = name
 13501  	return c
 13502  }
 13503  
 13504  // Fields allows partial responses to be retrieved. See
 13505  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13506  // details.
 13507  func (c *PropertiesChannelGroupsGetCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsGetCall {
 13508  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13509  	return c
 13510  }
 13511  
 13512  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13513  // object's ETag matches the given value. This is useful for getting updates
 13514  // only after the object has changed since the last request.
 13515  func (c *PropertiesChannelGroupsGetCall) IfNoneMatch(entityTag string) *PropertiesChannelGroupsGetCall {
 13516  	c.ifNoneMatch_ = entityTag
 13517  	return c
 13518  }
 13519  
 13520  // Context sets the context to be used in this call's Do method.
 13521  func (c *PropertiesChannelGroupsGetCall) Context(ctx context.Context) *PropertiesChannelGroupsGetCall {
 13522  	c.ctx_ = ctx
 13523  	return c
 13524  }
 13525  
 13526  // Header returns a http.Header that can be modified by the caller to add
 13527  // headers to the request.
 13528  func (c *PropertiesChannelGroupsGetCall) Header() http.Header {
 13529  	if c.header_ == nil {
 13530  		c.header_ = make(http.Header)
 13531  	}
 13532  	return c.header_
 13533  }
 13534  
 13535  func (c *PropertiesChannelGroupsGetCall) doRequest(alt string) (*http.Response, error) {
 13536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13537  	if c.ifNoneMatch_ != "" {
 13538  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13539  	}
 13540  	var body io.Reader = nil
 13541  	c.urlParams_.Set("alt", alt)
 13542  	c.urlParams_.Set("prettyPrint", "false")
 13543  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13544  	urls += "?" + c.urlParams_.Encode()
 13545  	req, err := http.NewRequest("GET", urls, body)
 13546  	if err != nil {
 13547  		return nil, err
 13548  	}
 13549  	req.Header = reqHeaders
 13550  	googleapi.Expand(req.URL, map[string]string{
 13551  		"name": c.name,
 13552  	})
 13553  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13554  }
 13555  
 13556  // Do executes the "analyticsadmin.properties.channelGroups.get" call.
 13557  // Any non-2xx status code is an error. Response headers are in either
 13558  // *GoogleAnalyticsAdminV1alphaChannelGroup.ServerResponse.Header or (if a
 13559  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13560  // googleapi.IsNotModified to check whether the returned error was because
 13561  // http.StatusNotModified was returned.
 13562  func (c *PropertiesChannelGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaChannelGroup, error) {
 13563  	gensupport.SetOptions(c.urlParams_, opts...)
 13564  	res, err := c.doRequest("json")
 13565  	if res != nil && res.StatusCode == http.StatusNotModified {
 13566  		if res.Body != nil {
 13567  			res.Body.Close()
 13568  		}
 13569  		return nil, gensupport.WrapError(&googleapi.Error{
 13570  			Code:   res.StatusCode,
 13571  			Header: res.Header,
 13572  		})
 13573  	}
 13574  	if err != nil {
 13575  		return nil, err
 13576  	}
 13577  	defer googleapi.CloseBody(res)
 13578  	if err := googleapi.CheckResponse(res); err != nil {
 13579  		return nil, gensupport.WrapError(err)
 13580  	}
 13581  	ret := &GoogleAnalyticsAdminV1alphaChannelGroup{
 13582  		ServerResponse: googleapi.ServerResponse{
 13583  			Header:         res.Header,
 13584  			HTTPStatusCode: res.StatusCode,
 13585  		},
 13586  	}
 13587  	target := &ret
 13588  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13589  		return nil, err
 13590  	}
 13591  	return ret, nil
 13592  }
 13593  
 13594  type PropertiesChannelGroupsListCall struct {
 13595  	s            *Service
 13596  	parent       string
 13597  	urlParams_   gensupport.URLParams
 13598  	ifNoneMatch_ string
 13599  	ctx_         context.Context
 13600  	header_      http.Header
 13601  }
 13602  
 13603  // List: Lists ChannelGroups on a property.
 13604  //
 13605  //   - parent: The property for which to list ChannelGroups. Example format:
 13606  //     properties/1234.
 13607  func (r *PropertiesChannelGroupsService) List(parent string) *PropertiesChannelGroupsListCall {
 13608  	c := &PropertiesChannelGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13609  	c.parent = parent
 13610  	return c
 13611  }
 13612  
 13613  // PageSize sets the optional parameter "pageSize": The maximum number of
 13614  // resources to return. If unspecified, at most 50 resources will be returned.
 13615  // The maximum value is 200 (higher values will be coerced to the maximum).
 13616  func (c *PropertiesChannelGroupsListCall) PageSize(pageSize int64) *PropertiesChannelGroupsListCall {
 13617  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13618  	return c
 13619  }
 13620  
 13621  // PageToken sets the optional parameter "pageToken": A page token, received
 13622  // from a previous `ListChannelGroups` call. Provide this to retrieve the
 13623  // subsequent page. When paginating, all other parameters provided to
 13624  // `ListChannelGroups` must match the call that provided the page token.
 13625  func (c *PropertiesChannelGroupsListCall) PageToken(pageToken string) *PropertiesChannelGroupsListCall {
 13626  	c.urlParams_.Set("pageToken", pageToken)
 13627  	return c
 13628  }
 13629  
 13630  // Fields allows partial responses to be retrieved. See
 13631  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13632  // details.
 13633  func (c *PropertiesChannelGroupsListCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsListCall {
 13634  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13635  	return c
 13636  }
 13637  
 13638  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13639  // object's ETag matches the given value. This is useful for getting updates
 13640  // only after the object has changed since the last request.
 13641  func (c *PropertiesChannelGroupsListCall) IfNoneMatch(entityTag string) *PropertiesChannelGroupsListCall {
 13642  	c.ifNoneMatch_ = entityTag
 13643  	return c
 13644  }
 13645  
 13646  // Context sets the context to be used in this call's Do method.
 13647  func (c *PropertiesChannelGroupsListCall) Context(ctx context.Context) *PropertiesChannelGroupsListCall {
 13648  	c.ctx_ = ctx
 13649  	return c
 13650  }
 13651  
 13652  // Header returns a http.Header that can be modified by the caller to add
 13653  // headers to the request.
 13654  func (c *PropertiesChannelGroupsListCall) Header() http.Header {
 13655  	if c.header_ == nil {
 13656  		c.header_ = make(http.Header)
 13657  	}
 13658  	return c.header_
 13659  }
 13660  
 13661  func (c *PropertiesChannelGroupsListCall) doRequest(alt string) (*http.Response, error) {
 13662  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13663  	if c.ifNoneMatch_ != "" {
 13664  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13665  	}
 13666  	var body io.Reader = nil
 13667  	c.urlParams_.Set("alt", alt)
 13668  	c.urlParams_.Set("prettyPrint", "false")
 13669  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/channelGroups")
 13670  	urls += "?" + c.urlParams_.Encode()
 13671  	req, err := http.NewRequest("GET", urls, body)
 13672  	if err != nil {
 13673  		return nil, err
 13674  	}
 13675  	req.Header = reqHeaders
 13676  	googleapi.Expand(req.URL, map[string]string{
 13677  		"parent": c.parent,
 13678  	})
 13679  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13680  }
 13681  
 13682  // Do executes the "analyticsadmin.properties.channelGroups.list" call.
 13683  // Any non-2xx status code is an error. Response headers are in either
 13684  // *GoogleAnalyticsAdminV1alphaListChannelGroupsResponse.ServerResponse.Header
 13685  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 13686  // Use googleapi.IsNotModified to check whether the returned error was because
 13687  // http.StatusNotModified was returned.
 13688  func (c *PropertiesChannelGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListChannelGroupsResponse, error) {
 13689  	gensupport.SetOptions(c.urlParams_, opts...)
 13690  	res, err := c.doRequest("json")
 13691  	if res != nil && res.StatusCode == http.StatusNotModified {
 13692  		if res.Body != nil {
 13693  			res.Body.Close()
 13694  		}
 13695  		return nil, gensupport.WrapError(&googleapi.Error{
 13696  			Code:   res.StatusCode,
 13697  			Header: res.Header,
 13698  		})
 13699  	}
 13700  	if err != nil {
 13701  		return nil, err
 13702  	}
 13703  	defer googleapi.CloseBody(res)
 13704  	if err := googleapi.CheckResponse(res); err != nil {
 13705  		return nil, gensupport.WrapError(err)
 13706  	}
 13707  	ret := &GoogleAnalyticsAdminV1alphaListChannelGroupsResponse{
 13708  		ServerResponse: googleapi.ServerResponse{
 13709  			Header:         res.Header,
 13710  			HTTPStatusCode: res.StatusCode,
 13711  		},
 13712  	}
 13713  	target := &ret
 13714  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13715  		return nil, err
 13716  	}
 13717  	return ret, nil
 13718  }
 13719  
 13720  // Pages invokes f for each page of results.
 13721  // A non-nil error returned from f will halt the iteration.
 13722  // The provided context supersedes any context provided to the Context method.
 13723  func (c *PropertiesChannelGroupsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListChannelGroupsResponse) error) error {
 13724  	c.ctx_ = ctx
 13725  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13726  	for {
 13727  		x, err := c.Do()
 13728  		if err != nil {
 13729  			return err
 13730  		}
 13731  		if err := f(x); err != nil {
 13732  			return err
 13733  		}
 13734  		if x.NextPageToken == "" {
 13735  			return nil
 13736  		}
 13737  		c.PageToken(x.NextPageToken)
 13738  	}
 13739  }
 13740  
 13741  type PropertiesChannelGroupsPatchCall struct {
 13742  	s                                       *Service
 13743  	name                                    string
 13744  	googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup
 13745  	urlParams_                              gensupport.URLParams
 13746  	ctx_                                    context.Context
 13747  	header_                                 http.Header
 13748  }
 13749  
 13750  // Patch: Updates a ChannelGroup.
 13751  //
 13752  //   - name: Output only. The resource name for this Channel Group resource.
 13753  //     Format: properties/{property}/channelGroups/{channel_group}.
 13754  func (r *PropertiesChannelGroupsService) Patch(name string, googleanalyticsadminv1alphachannelgroup *GoogleAnalyticsAdminV1alphaChannelGroup) *PropertiesChannelGroupsPatchCall {
 13755  	c := &PropertiesChannelGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13756  	c.name = name
 13757  	c.googleanalyticsadminv1alphachannelgroup = googleanalyticsadminv1alphachannelgroup
 13758  	return c
 13759  }
 13760  
 13761  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 13762  // fields to be updated. Field names must be in snake case (e.g.,
 13763  // "field_to_update"). Omitted fields will not be updated. To replace the
 13764  // entire entity, use one path with the string "*" to match all fields.
 13765  func (c *PropertiesChannelGroupsPatchCall) UpdateMask(updateMask string) *PropertiesChannelGroupsPatchCall {
 13766  	c.urlParams_.Set("updateMask", updateMask)
 13767  	return c
 13768  }
 13769  
 13770  // Fields allows partial responses to be retrieved. See
 13771  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13772  // details.
 13773  func (c *PropertiesChannelGroupsPatchCall) Fields(s ...googleapi.Field) *PropertiesChannelGroupsPatchCall {
 13774  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13775  	return c
 13776  }
 13777  
 13778  // Context sets the context to be used in this call's Do method.
 13779  func (c *PropertiesChannelGroupsPatchCall) Context(ctx context.Context) *PropertiesChannelGroupsPatchCall {
 13780  	c.ctx_ = ctx
 13781  	return c
 13782  }
 13783  
 13784  // Header returns a http.Header that can be modified by the caller to add
 13785  // headers to the request.
 13786  func (c *PropertiesChannelGroupsPatchCall) Header() http.Header {
 13787  	if c.header_ == nil {
 13788  		c.header_ = make(http.Header)
 13789  	}
 13790  	return c.header_
 13791  }
 13792  
 13793  func (c *PropertiesChannelGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
 13794  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13795  	var body io.Reader = nil
 13796  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphachannelgroup)
 13797  	if err != nil {
 13798  		return nil, err
 13799  	}
 13800  	c.urlParams_.Set("alt", alt)
 13801  	c.urlParams_.Set("prettyPrint", "false")
 13802  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13803  	urls += "?" + c.urlParams_.Encode()
 13804  	req, err := http.NewRequest("PATCH", urls, body)
 13805  	if err != nil {
 13806  		return nil, err
 13807  	}
 13808  	req.Header = reqHeaders
 13809  	googleapi.Expand(req.URL, map[string]string{
 13810  		"name": c.name,
 13811  	})
 13812  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13813  }
 13814  
 13815  // Do executes the "analyticsadmin.properties.channelGroups.patch" call.
 13816  // Any non-2xx status code is an error. Response headers are in either
 13817  // *GoogleAnalyticsAdminV1alphaChannelGroup.ServerResponse.Header or (if a
 13818  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13819  // googleapi.IsNotModified to check whether the returned error was because
 13820  // http.StatusNotModified was returned.
 13821  func (c *PropertiesChannelGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaChannelGroup, error) {
 13822  	gensupport.SetOptions(c.urlParams_, opts...)
 13823  	res, err := c.doRequest("json")
 13824  	if res != nil && res.StatusCode == http.StatusNotModified {
 13825  		if res.Body != nil {
 13826  			res.Body.Close()
 13827  		}
 13828  		return nil, gensupport.WrapError(&googleapi.Error{
 13829  			Code:   res.StatusCode,
 13830  			Header: res.Header,
 13831  		})
 13832  	}
 13833  	if err != nil {
 13834  		return nil, err
 13835  	}
 13836  	defer googleapi.CloseBody(res)
 13837  	if err := googleapi.CheckResponse(res); err != nil {
 13838  		return nil, gensupport.WrapError(err)
 13839  	}
 13840  	ret := &GoogleAnalyticsAdminV1alphaChannelGroup{
 13841  		ServerResponse: googleapi.ServerResponse{
 13842  			Header:         res.Header,
 13843  			HTTPStatusCode: res.StatusCode,
 13844  		},
 13845  	}
 13846  	target := &ret
 13847  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13848  		return nil, err
 13849  	}
 13850  	return ret, nil
 13851  }
 13852  
 13853  type PropertiesConversionEventsCreateCall struct {
 13854  	s                                          *Service
 13855  	parent                                     string
 13856  	googleanalyticsadminv1alphaconversionevent *GoogleAnalyticsAdminV1alphaConversionEvent
 13857  	urlParams_                                 gensupport.URLParams
 13858  	ctx_                                       context.Context
 13859  	header_                                    http.Header
 13860  }
 13861  
 13862  // Create: Creates a conversion event with the specified attributes.
 13863  //
 13864  //   - parent: The resource name of the parent property where this conversion
 13865  //     event will be created. Format: properties/123.
 13866  func (r *PropertiesConversionEventsService) Create(parent string, googleanalyticsadminv1alphaconversionevent *GoogleAnalyticsAdminV1alphaConversionEvent) *PropertiesConversionEventsCreateCall {
 13867  	c := &PropertiesConversionEventsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13868  	c.parent = parent
 13869  	c.googleanalyticsadminv1alphaconversionevent = googleanalyticsadminv1alphaconversionevent
 13870  	return c
 13871  }
 13872  
 13873  // Fields allows partial responses to be retrieved. See
 13874  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13875  // details.
 13876  func (c *PropertiesConversionEventsCreateCall) Fields(s ...googleapi.Field) *PropertiesConversionEventsCreateCall {
 13877  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13878  	return c
 13879  }
 13880  
 13881  // Context sets the context to be used in this call's Do method.
 13882  func (c *PropertiesConversionEventsCreateCall) Context(ctx context.Context) *PropertiesConversionEventsCreateCall {
 13883  	c.ctx_ = ctx
 13884  	return c
 13885  }
 13886  
 13887  // Header returns a http.Header that can be modified by the caller to add
 13888  // headers to the request.
 13889  func (c *PropertiesConversionEventsCreateCall) Header() http.Header {
 13890  	if c.header_ == nil {
 13891  		c.header_ = make(http.Header)
 13892  	}
 13893  	return c.header_
 13894  }
 13895  
 13896  func (c *PropertiesConversionEventsCreateCall) doRequest(alt string) (*http.Response, error) {
 13897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13898  	var body io.Reader = nil
 13899  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaconversionevent)
 13900  	if err != nil {
 13901  		return nil, err
 13902  	}
 13903  	c.urlParams_.Set("alt", alt)
 13904  	c.urlParams_.Set("prettyPrint", "false")
 13905  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversionEvents")
 13906  	urls += "?" + c.urlParams_.Encode()
 13907  	req, err := http.NewRequest("POST", urls, body)
 13908  	if err != nil {
 13909  		return nil, err
 13910  	}
 13911  	req.Header = reqHeaders
 13912  	googleapi.Expand(req.URL, map[string]string{
 13913  		"parent": c.parent,
 13914  	})
 13915  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13916  }
 13917  
 13918  // Do executes the "analyticsadmin.properties.conversionEvents.create" call.
 13919  // Any non-2xx status code is an error. Response headers are in either
 13920  // *GoogleAnalyticsAdminV1alphaConversionEvent.ServerResponse.Header or (if a
 13921  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13922  // googleapi.IsNotModified to check whether the returned error was because
 13923  // http.StatusNotModified was returned.
 13924  func (c *PropertiesConversionEventsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaConversionEvent, error) {
 13925  	gensupport.SetOptions(c.urlParams_, opts...)
 13926  	res, err := c.doRequest("json")
 13927  	if res != nil && res.StatusCode == http.StatusNotModified {
 13928  		if res.Body != nil {
 13929  			res.Body.Close()
 13930  		}
 13931  		return nil, gensupport.WrapError(&googleapi.Error{
 13932  			Code:   res.StatusCode,
 13933  			Header: res.Header,
 13934  		})
 13935  	}
 13936  	if err != nil {
 13937  		return nil, err
 13938  	}
 13939  	defer googleapi.CloseBody(res)
 13940  	if err := googleapi.CheckResponse(res); err != nil {
 13941  		return nil, gensupport.WrapError(err)
 13942  	}
 13943  	ret := &GoogleAnalyticsAdminV1alphaConversionEvent{
 13944  		ServerResponse: googleapi.ServerResponse{
 13945  			Header:         res.Header,
 13946  			HTTPStatusCode: res.StatusCode,
 13947  		},
 13948  	}
 13949  	target := &ret
 13950  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13951  		return nil, err
 13952  	}
 13953  	return ret, nil
 13954  }
 13955  
 13956  type PropertiesConversionEventsDeleteCall struct {
 13957  	s          *Service
 13958  	name       string
 13959  	urlParams_ gensupport.URLParams
 13960  	ctx_       context.Context
 13961  	header_    http.Header
 13962  }
 13963  
 13964  // Delete: Deletes a conversion event in a property.
 13965  //
 13966  //   - name: The resource name of the conversion event to delete. Format:
 13967  //     properties/{property}/conversionEvents/{conversion_event} Example:
 13968  //     "properties/123/conversionEvents/456".
 13969  func (r *PropertiesConversionEventsService) Delete(name string) *PropertiesConversionEventsDeleteCall {
 13970  	c := &PropertiesConversionEventsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13971  	c.name = name
 13972  	return c
 13973  }
 13974  
 13975  // Fields allows partial responses to be retrieved. See
 13976  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13977  // details.
 13978  func (c *PropertiesConversionEventsDeleteCall) Fields(s ...googleapi.Field) *PropertiesConversionEventsDeleteCall {
 13979  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13980  	return c
 13981  }
 13982  
 13983  // Context sets the context to be used in this call's Do method.
 13984  func (c *PropertiesConversionEventsDeleteCall) Context(ctx context.Context) *PropertiesConversionEventsDeleteCall {
 13985  	c.ctx_ = ctx
 13986  	return c
 13987  }
 13988  
 13989  // Header returns a http.Header that can be modified by the caller to add
 13990  // headers to the request.
 13991  func (c *PropertiesConversionEventsDeleteCall) Header() http.Header {
 13992  	if c.header_ == nil {
 13993  		c.header_ = make(http.Header)
 13994  	}
 13995  	return c.header_
 13996  }
 13997  
 13998  func (c *PropertiesConversionEventsDeleteCall) doRequest(alt string) (*http.Response, error) {
 13999  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14000  	var body io.Reader = nil
 14001  	c.urlParams_.Set("alt", alt)
 14002  	c.urlParams_.Set("prettyPrint", "false")
 14003  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14004  	urls += "?" + c.urlParams_.Encode()
 14005  	req, err := http.NewRequest("DELETE", urls, body)
 14006  	if err != nil {
 14007  		return nil, err
 14008  	}
 14009  	req.Header = reqHeaders
 14010  	googleapi.Expand(req.URL, map[string]string{
 14011  		"name": c.name,
 14012  	})
 14013  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14014  }
 14015  
 14016  // Do executes the "analyticsadmin.properties.conversionEvents.delete" call.
 14017  // Any non-2xx status code is an error. Response headers are in either
 14018  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 14019  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14020  // check whether the returned error was because http.StatusNotModified was
 14021  // returned.
 14022  func (c *PropertiesConversionEventsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 14023  	gensupport.SetOptions(c.urlParams_, opts...)
 14024  	res, err := c.doRequest("json")
 14025  	if res != nil && res.StatusCode == http.StatusNotModified {
 14026  		if res.Body != nil {
 14027  			res.Body.Close()
 14028  		}
 14029  		return nil, gensupport.WrapError(&googleapi.Error{
 14030  			Code:   res.StatusCode,
 14031  			Header: res.Header,
 14032  		})
 14033  	}
 14034  	if err != nil {
 14035  		return nil, err
 14036  	}
 14037  	defer googleapi.CloseBody(res)
 14038  	if err := googleapi.CheckResponse(res); err != nil {
 14039  		return nil, gensupport.WrapError(err)
 14040  	}
 14041  	ret := &GoogleProtobufEmpty{
 14042  		ServerResponse: googleapi.ServerResponse{
 14043  			Header:         res.Header,
 14044  			HTTPStatusCode: res.StatusCode,
 14045  		},
 14046  	}
 14047  	target := &ret
 14048  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14049  		return nil, err
 14050  	}
 14051  	return ret, nil
 14052  }
 14053  
 14054  type PropertiesConversionEventsGetCall struct {
 14055  	s            *Service
 14056  	name         string
 14057  	urlParams_   gensupport.URLParams
 14058  	ifNoneMatch_ string
 14059  	ctx_         context.Context
 14060  	header_      http.Header
 14061  }
 14062  
 14063  // Get: Retrieve a single conversion event.
 14064  //
 14065  //   - name: The resource name of the conversion event to retrieve. Format:
 14066  //     properties/{property}/conversionEvents/{conversion_event} Example:
 14067  //     "properties/123/conversionEvents/456".
 14068  func (r *PropertiesConversionEventsService) Get(name string) *PropertiesConversionEventsGetCall {
 14069  	c := &PropertiesConversionEventsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14070  	c.name = name
 14071  	return c
 14072  }
 14073  
 14074  // Fields allows partial responses to be retrieved. See
 14075  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14076  // details.
 14077  func (c *PropertiesConversionEventsGetCall) Fields(s ...googleapi.Field) *PropertiesConversionEventsGetCall {
 14078  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14079  	return c
 14080  }
 14081  
 14082  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14083  // object's ETag matches the given value. This is useful for getting updates
 14084  // only after the object has changed since the last request.
 14085  func (c *PropertiesConversionEventsGetCall) IfNoneMatch(entityTag string) *PropertiesConversionEventsGetCall {
 14086  	c.ifNoneMatch_ = entityTag
 14087  	return c
 14088  }
 14089  
 14090  // Context sets the context to be used in this call's Do method.
 14091  func (c *PropertiesConversionEventsGetCall) Context(ctx context.Context) *PropertiesConversionEventsGetCall {
 14092  	c.ctx_ = ctx
 14093  	return c
 14094  }
 14095  
 14096  // Header returns a http.Header that can be modified by the caller to add
 14097  // headers to the request.
 14098  func (c *PropertiesConversionEventsGetCall) Header() http.Header {
 14099  	if c.header_ == nil {
 14100  		c.header_ = make(http.Header)
 14101  	}
 14102  	return c.header_
 14103  }
 14104  
 14105  func (c *PropertiesConversionEventsGetCall) doRequest(alt string) (*http.Response, error) {
 14106  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14107  	if c.ifNoneMatch_ != "" {
 14108  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14109  	}
 14110  	var body io.Reader = nil
 14111  	c.urlParams_.Set("alt", alt)
 14112  	c.urlParams_.Set("prettyPrint", "false")
 14113  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14114  	urls += "?" + c.urlParams_.Encode()
 14115  	req, err := http.NewRequest("GET", urls, body)
 14116  	if err != nil {
 14117  		return nil, err
 14118  	}
 14119  	req.Header = reqHeaders
 14120  	googleapi.Expand(req.URL, map[string]string{
 14121  		"name": c.name,
 14122  	})
 14123  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14124  }
 14125  
 14126  // Do executes the "analyticsadmin.properties.conversionEvents.get" call.
 14127  // Any non-2xx status code is an error. Response headers are in either
 14128  // *GoogleAnalyticsAdminV1alphaConversionEvent.ServerResponse.Header or (if a
 14129  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14130  // googleapi.IsNotModified to check whether the returned error was because
 14131  // http.StatusNotModified was returned.
 14132  func (c *PropertiesConversionEventsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaConversionEvent, error) {
 14133  	gensupport.SetOptions(c.urlParams_, opts...)
 14134  	res, err := c.doRequest("json")
 14135  	if res != nil && res.StatusCode == http.StatusNotModified {
 14136  		if res.Body != nil {
 14137  			res.Body.Close()
 14138  		}
 14139  		return nil, gensupport.WrapError(&googleapi.Error{
 14140  			Code:   res.StatusCode,
 14141  			Header: res.Header,
 14142  		})
 14143  	}
 14144  	if err != nil {
 14145  		return nil, err
 14146  	}
 14147  	defer googleapi.CloseBody(res)
 14148  	if err := googleapi.CheckResponse(res); err != nil {
 14149  		return nil, gensupport.WrapError(err)
 14150  	}
 14151  	ret := &GoogleAnalyticsAdminV1alphaConversionEvent{
 14152  		ServerResponse: googleapi.ServerResponse{
 14153  			Header:         res.Header,
 14154  			HTTPStatusCode: res.StatusCode,
 14155  		},
 14156  	}
 14157  	target := &ret
 14158  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14159  		return nil, err
 14160  	}
 14161  	return ret, nil
 14162  }
 14163  
 14164  type PropertiesConversionEventsListCall struct {
 14165  	s            *Service
 14166  	parent       string
 14167  	urlParams_   gensupport.URLParams
 14168  	ifNoneMatch_ string
 14169  	ctx_         context.Context
 14170  	header_      http.Header
 14171  }
 14172  
 14173  // List: Returns a list of conversion events in the specified parent property.
 14174  // Returns an empty list if no conversion events are found.
 14175  //
 14176  //   - parent: The resource name of the parent property. Example:
 14177  //     'properties/123'.
 14178  func (r *PropertiesConversionEventsService) List(parent string) *PropertiesConversionEventsListCall {
 14179  	c := &PropertiesConversionEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14180  	c.parent = parent
 14181  	return c
 14182  }
 14183  
 14184  // PageSize sets the optional parameter "pageSize": The maximum number of
 14185  // resources to return. If unspecified, at most 50 resources will be returned.
 14186  // The maximum value is 200; (higher values will be coerced to the maximum)
 14187  func (c *PropertiesConversionEventsListCall) PageSize(pageSize int64) *PropertiesConversionEventsListCall {
 14188  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14189  	return c
 14190  }
 14191  
 14192  // PageToken sets the optional parameter "pageToken": A page token, received
 14193  // from a previous `ListConversionEvents` call. Provide this to retrieve the
 14194  // subsequent page. When paginating, all other parameters provided to
 14195  // `ListConversionEvents` must match the call that provided the page token.
 14196  func (c *PropertiesConversionEventsListCall) PageToken(pageToken string) *PropertiesConversionEventsListCall {
 14197  	c.urlParams_.Set("pageToken", pageToken)
 14198  	return c
 14199  }
 14200  
 14201  // Fields allows partial responses to be retrieved. See
 14202  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14203  // details.
 14204  func (c *PropertiesConversionEventsListCall) Fields(s ...googleapi.Field) *PropertiesConversionEventsListCall {
 14205  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14206  	return c
 14207  }
 14208  
 14209  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14210  // object's ETag matches the given value. This is useful for getting updates
 14211  // only after the object has changed since the last request.
 14212  func (c *PropertiesConversionEventsListCall) IfNoneMatch(entityTag string) *PropertiesConversionEventsListCall {
 14213  	c.ifNoneMatch_ = entityTag
 14214  	return c
 14215  }
 14216  
 14217  // Context sets the context to be used in this call's Do method.
 14218  func (c *PropertiesConversionEventsListCall) Context(ctx context.Context) *PropertiesConversionEventsListCall {
 14219  	c.ctx_ = ctx
 14220  	return c
 14221  }
 14222  
 14223  // Header returns a http.Header that can be modified by the caller to add
 14224  // headers to the request.
 14225  func (c *PropertiesConversionEventsListCall) Header() http.Header {
 14226  	if c.header_ == nil {
 14227  		c.header_ = make(http.Header)
 14228  	}
 14229  	return c.header_
 14230  }
 14231  
 14232  func (c *PropertiesConversionEventsListCall) doRequest(alt string) (*http.Response, error) {
 14233  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14234  	if c.ifNoneMatch_ != "" {
 14235  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14236  	}
 14237  	var body io.Reader = nil
 14238  	c.urlParams_.Set("alt", alt)
 14239  	c.urlParams_.Set("prettyPrint", "false")
 14240  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversionEvents")
 14241  	urls += "?" + c.urlParams_.Encode()
 14242  	req, err := http.NewRequest("GET", urls, body)
 14243  	if err != nil {
 14244  		return nil, err
 14245  	}
 14246  	req.Header = reqHeaders
 14247  	googleapi.Expand(req.URL, map[string]string{
 14248  		"parent": c.parent,
 14249  	})
 14250  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14251  }
 14252  
 14253  // Do executes the "analyticsadmin.properties.conversionEvents.list" call.
 14254  // Any non-2xx status code is an error. Response headers are in either
 14255  // *GoogleAnalyticsAdminV1alphaListConversionEventsResponse.ServerResponse.Heade
 14256  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 14257  // Use googleapi.IsNotModified to check whether the returned error was because
 14258  // http.StatusNotModified was returned.
 14259  func (c *PropertiesConversionEventsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListConversionEventsResponse, error) {
 14260  	gensupport.SetOptions(c.urlParams_, opts...)
 14261  	res, err := c.doRequest("json")
 14262  	if res != nil && res.StatusCode == http.StatusNotModified {
 14263  		if res.Body != nil {
 14264  			res.Body.Close()
 14265  		}
 14266  		return nil, gensupport.WrapError(&googleapi.Error{
 14267  			Code:   res.StatusCode,
 14268  			Header: res.Header,
 14269  		})
 14270  	}
 14271  	if err != nil {
 14272  		return nil, err
 14273  	}
 14274  	defer googleapi.CloseBody(res)
 14275  	if err := googleapi.CheckResponse(res); err != nil {
 14276  		return nil, gensupport.WrapError(err)
 14277  	}
 14278  	ret := &GoogleAnalyticsAdminV1alphaListConversionEventsResponse{
 14279  		ServerResponse: googleapi.ServerResponse{
 14280  			Header:         res.Header,
 14281  			HTTPStatusCode: res.StatusCode,
 14282  		},
 14283  	}
 14284  	target := &ret
 14285  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14286  		return nil, err
 14287  	}
 14288  	return ret, nil
 14289  }
 14290  
 14291  // Pages invokes f for each page of results.
 14292  // A non-nil error returned from f will halt the iteration.
 14293  // The provided context supersedes any context provided to the Context method.
 14294  func (c *PropertiesConversionEventsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListConversionEventsResponse) error) error {
 14295  	c.ctx_ = ctx
 14296  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14297  	for {
 14298  		x, err := c.Do()
 14299  		if err != nil {
 14300  			return err
 14301  		}
 14302  		if err := f(x); err != nil {
 14303  			return err
 14304  		}
 14305  		if x.NextPageToken == "" {
 14306  			return nil
 14307  		}
 14308  		c.PageToken(x.NextPageToken)
 14309  	}
 14310  }
 14311  
 14312  type PropertiesConversionEventsPatchCall struct {
 14313  	s                                          *Service
 14314  	name                                       string
 14315  	googleanalyticsadminv1alphaconversionevent *GoogleAnalyticsAdminV1alphaConversionEvent
 14316  	urlParams_                                 gensupport.URLParams
 14317  	ctx_                                       context.Context
 14318  	header_                                    http.Header
 14319  }
 14320  
 14321  // Patch: Updates a conversion event with the specified attributes.
 14322  //
 14323  //   - name: Output only. Resource name of this conversion event. Format:
 14324  //     properties/{property}/conversionEvents/{conversion_event}.
 14325  func (r *PropertiesConversionEventsService) Patch(name string, googleanalyticsadminv1alphaconversionevent *GoogleAnalyticsAdminV1alphaConversionEvent) *PropertiesConversionEventsPatchCall {
 14326  	c := &PropertiesConversionEventsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14327  	c.name = name
 14328  	c.googleanalyticsadminv1alphaconversionevent = googleanalyticsadminv1alphaconversionevent
 14329  	return c
 14330  }
 14331  
 14332  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 14333  // fields to be updated. Field names must be in snake case (e.g.,
 14334  // "field_to_update"). Omitted fields will not be updated. To replace the
 14335  // entire entity, use one path with the string "*" to match all fields.
 14336  func (c *PropertiesConversionEventsPatchCall) UpdateMask(updateMask string) *PropertiesConversionEventsPatchCall {
 14337  	c.urlParams_.Set("updateMask", updateMask)
 14338  	return c
 14339  }
 14340  
 14341  // Fields allows partial responses to be retrieved. See
 14342  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14343  // details.
 14344  func (c *PropertiesConversionEventsPatchCall) Fields(s ...googleapi.Field) *PropertiesConversionEventsPatchCall {
 14345  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14346  	return c
 14347  }
 14348  
 14349  // Context sets the context to be used in this call's Do method.
 14350  func (c *PropertiesConversionEventsPatchCall) Context(ctx context.Context) *PropertiesConversionEventsPatchCall {
 14351  	c.ctx_ = ctx
 14352  	return c
 14353  }
 14354  
 14355  // Header returns a http.Header that can be modified by the caller to add
 14356  // headers to the request.
 14357  func (c *PropertiesConversionEventsPatchCall) Header() http.Header {
 14358  	if c.header_ == nil {
 14359  		c.header_ = make(http.Header)
 14360  	}
 14361  	return c.header_
 14362  }
 14363  
 14364  func (c *PropertiesConversionEventsPatchCall) doRequest(alt string) (*http.Response, error) {
 14365  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14366  	var body io.Reader = nil
 14367  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaconversionevent)
 14368  	if err != nil {
 14369  		return nil, err
 14370  	}
 14371  	c.urlParams_.Set("alt", alt)
 14372  	c.urlParams_.Set("prettyPrint", "false")
 14373  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14374  	urls += "?" + c.urlParams_.Encode()
 14375  	req, err := http.NewRequest("PATCH", urls, body)
 14376  	if err != nil {
 14377  		return nil, err
 14378  	}
 14379  	req.Header = reqHeaders
 14380  	googleapi.Expand(req.URL, map[string]string{
 14381  		"name": c.name,
 14382  	})
 14383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14384  }
 14385  
 14386  // Do executes the "analyticsadmin.properties.conversionEvents.patch" call.
 14387  // Any non-2xx status code is an error. Response headers are in either
 14388  // *GoogleAnalyticsAdminV1alphaConversionEvent.ServerResponse.Header or (if a
 14389  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14390  // googleapi.IsNotModified to check whether the returned error was because
 14391  // http.StatusNotModified was returned.
 14392  func (c *PropertiesConversionEventsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaConversionEvent, error) {
 14393  	gensupport.SetOptions(c.urlParams_, opts...)
 14394  	res, err := c.doRequest("json")
 14395  	if res != nil && res.StatusCode == http.StatusNotModified {
 14396  		if res.Body != nil {
 14397  			res.Body.Close()
 14398  		}
 14399  		return nil, gensupport.WrapError(&googleapi.Error{
 14400  			Code:   res.StatusCode,
 14401  			Header: res.Header,
 14402  		})
 14403  	}
 14404  	if err != nil {
 14405  		return nil, err
 14406  	}
 14407  	defer googleapi.CloseBody(res)
 14408  	if err := googleapi.CheckResponse(res); err != nil {
 14409  		return nil, gensupport.WrapError(err)
 14410  	}
 14411  	ret := &GoogleAnalyticsAdminV1alphaConversionEvent{
 14412  		ServerResponse: googleapi.ServerResponse{
 14413  			Header:         res.Header,
 14414  			HTTPStatusCode: res.StatusCode,
 14415  		},
 14416  	}
 14417  	target := &ret
 14418  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14419  		return nil, err
 14420  	}
 14421  	return ret, nil
 14422  }
 14423  
 14424  type PropertiesCustomDimensionsArchiveCall struct {
 14425  	s                                                        *Service
 14426  	name                                                     string
 14427  	googleanalyticsadminv1alphaarchivecustomdimensionrequest *GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest
 14428  	urlParams_                                               gensupport.URLParams
 14429  	ctx_                                                     context.Context
 14430  	header_                                                  http.Header
 14431  }
 14432  
 14433  // Archive: Archives a CustomDimension on a property.
 14434  //
 14435  //   - name: The name of the CustomDimension to archive. Example format:
 14436  //     properties/1234/customDimensions/5678.
 14437  func (r *PropertiesCustomDimensionsService) Archive(name string, googleanalyticsadminv1alphaarchivecustomdimensionrequest *GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest) *PropertiesCustomDimensionsArchiveCall {
 14438  	c := &PropertiesCustomDimensionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14439  	c.name = name
 14440  	c.googleanalyticsadminv1alphaarchivecustomdimensionrequest = googleanalyticsadminv1alphaarchivecustomdimensionrequest
 14441  	return c
 14442  }
 14443  
 14444  // Fields allows partial responses to be retrieved. See
 14445  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14446  // details.
 14447  func (c *PropertiesCustomDimensionsArchiveCall) Fields(s ...googleapi.Field) *PropertiesCustomDimensionsArchiveCall {
 14448  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14449  	return c
 14450  }
 14451  
 14452  // Context sets the context to be used in this call's Do method.
 14453  func (c *PropertiesCustomDimensionsArchiveCall) Context(ctx context.Context) *PropertiesCustomDimensionsArchiveCall {
 14454  	c.ctx_ = ctx
 14455  	return c
 14456  }
 14457  
 14458  // Header returns a http.Header that can be modified by the caller to add
 14459  // headers to the request.
 14460  func (c *PropertiesCustomDimensionsArchiveCall) Header() http.Header {
 14461  	if c.header_ == nil {
 14462  		c.header_ = make(http.Header)
 14463  	}
 14464  	return c.header_
 14465  }
 14466  
 14467  func (c *PropertiesCustomDimensionsArchiveCall) doRequest(alt string) (*http.Response, error) {
 14468  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14469  	var body io.Reader = nil
 14470  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaarchivecustomdimensionrequest)
 14471  	if err != nil {
 14472  		return nil, err
 14473  	}
 14474  	c.urlParams_.Set("alt", alt)
 14475  	c.urlParams_.Set("prettyPrint", "false")
 14476  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:archive")
 14477  	urls += "?" + c.urlParams_.Encode()
 14478  	req, err := http.NewRequest("POST", urls, body)
 14479  	if err != nil {
 14480  		return nil, err
 14481  	}
 14482  	req.Header = reqHeaders
 14483  	googleapi.Expand(req.URL, map[string]string{
 14484  		"name": c.name,
 14485  	})
 14486  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14487  }
 14488  
 14489  // Do executes the "analyticsadmin.properties.customDimensions.archive" call.
 14490  // Any non-2xx status code is an error. Response headers are in either
 14491  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 14492  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14493  // check whether the returned error was because http.StatusNotModified was
 14494  // returned.
 14495  func (c *PropertiesCustomDimensionsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 14496  	gensupport.SetOptions(c.urlParams_, opts...)
 14497  	res, err := c.doRequest("json")
 14498  	if res != nil && res.StatusCode == http.StatusNotModified {
 14499  		if res.Body != nil {
 14500  			res.Body.Close()
 14501  		}
 14502  		return nil, gensupport.WrapError(&googleapi.Error{
 14503  			Code:   res.StatusCode,
 14504  			Header: res.Header,
 14505  		})
 14506  	}
 14507  	if err != nil {
 14508  		return nil, err
 14509  	}
 14510  	defer googleapi.CloseBody(res)
 14511  	if err := googleapi.CheckResponse(res); err != nil {
 14512  		return nil, gensupport.WrapError(err)
 14513  	}
 14514  	ret := &GoogleProtobufEmpty{
 14515  		ServerResponse: googleapi.ServerResponse{
 14516  			Header:         res.Header,
 14517  			HTTPStatusCode: res.StatusCode,
 14518  		},
 14519  	}
 14520  	target := &ret
 14521  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14522  		return nil, err
 14523  	}
 14524  	return ret, nil
 14525  }
 14526  
 14527  type PropertiesCustomDimensionsCreateCall struct {
 14528  	s                                          *Service
 14529  	parent                                     string
 14530  	googleanalyticsadminv1alphacustomdimension *GoogleAnalyticsAdminV1alphaCustomDimension
 14531  	urlParams_                                 gensupport.URLParams
 14532  	ctx_                                       context.Context
 14533  	header_                                    http.Header
 14534  }
 14535  
 14536  // Create: Creates a CustomDimension.
 14537  //
 14538  // - parent: Example format: properties/1234.
 14539  func (r *PropertiesCustomDimensionsService) Create(parent string, googleanalyticsadminv1alphacustomdimension *GoogleAnalyticsAdminV1alphaCustomDimension) *PropertiesCustomDimensionsCreateCall {
 14540  	c := &PropertiesCustomDimensionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14541  	c.parent = parent
 14542  	c.googleanalyticsadminv1alphacustomdimension = googleanalyticsadminv1alphacustomdimension
 14543  	return c
 14544  }
 14545  
 14546  // Fields allows partial responses to be retrieved. See
 14547  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14548  // details.
 14549  func (c *PropertiesCustomDimensionsCreateCall) Fields(s ...googleapi.Field) *PropertiesCustomDimensionsCreateCall {
 14550  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14551  	return c
 14552  }
 14553  
 14554  // Context sets the context to be used in this call's Do method.
 14555  func (c *PropertiesCustomDimensionsCreateCall) Context(ctx context.Context) *PropertiesCustomDimensionsCreateCall {
 14556  	c.ctx_ = ctx
 14557  	return c
 14558  }
 14559  
 14560  // Header returns a http.Header that can be modified by the caller to add
 14561  // headers to the request.
 14562  func (c *PropertiesCustomDimensionsCreateCall) Header() http.Header {
 14563  	if c.header_ == nil {
 14564  		c.header_ = make(http.Header)
 14565  	}
 14566  	return c.header_
 14567  }
 14568  
 14569  func (c *PropertiesCustomDimensionsCreateCall) doRequest(alt string) (*http.Response, error) {
 14570  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14571  	var body io.Reader = nil
 14572  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacustomdimension)
 14573  	if err != nil {
 14574  		return nil, err
 14575  	}
 14576  	c.urlParams_.Set("alt", alt)
 14577  	c.urlParams_.Set("prettyPrint", "false")
 14578  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/customDimensions")
 14579  	urls += "?" + c.urlParams_.Encode()
 14580  	req, err := http.NewRequest("POST", urls, body)
 14581  	if err != nil {
 14582  		return nil, err
 14583  	}
 14584  	req.Header = reqHeaders
 14585  	googleapi.Expand(req.URL, map[string]string{
 14586  		"parent": c.parent,
 14587  	})
 14588  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14589  }
 14590  
 14591  // Do executes the "analyticsadmin.properties.customDimensions.create" call.
 14592  // Any non-2xx status code is an error. Response headers are in either
 14593  // *GoogleAnalyticsAdminV1alphaCustomDimension.ServerResponse.Header or (if a
 14594  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14595  // googleapi.IsNotModified to check whether the returned error was because
 14596  // http.StatusNotModified was returned.
 14597  func (c *PropertiesCustomDimensionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCustomDimension, error) {
 14598  	gensupport.SetOptions(c.urlParams_, opts...)
 14599  	res, err := c.doRequest("json")
 14600  	if res != nil && res.StatusCode == http.StatusNotModified {
 14601  		if res.Body != nil {
 14602  			res.Body.Close()
 14603  		}
 14604  		return nil, gensupport.WrapError(&googleapi.Error{
 14605  			Code:   res.StatusCode,
 14606  			Header: res.Header,
 14607  		})
 14608  	}
 14609  	if err != nil {
 14610  		return nil, err
 14611  	}
 14612  	defer googleapi.CloseBody(res)
 14613  	if err := googleapi.CheckResponse(res); err != nil {
 14614  		return nil, gensupport.WrapError(err)
 14615  	}
 14616  	ret := &GoogleAnalyticsAdminV1alphaCustomDimension{
 14617  		ServerResponse: googleapi.ServerResponse{
 14618  			Header:         res.Header,
 14619  			HTTPStatusCode: res.StatusCode,
 14620  		},
 14621  	}
 14622  	target := &ret
 14623  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14624  		return nil, err
 14625  	}
 14626  	return ret, nil
 14627  }
 14628  
 14629  type PropertiesCustomDimensionsGetCall struct {
 14630  	s            *Service
 14631  	name         string
 14632  	urlParams_   gensupport.URLParams
 14633  	ifNoneMatch_ string
 14634  	ctx_         context.Context
 14635  	header_      http.Header
 14636  }
 14637  
 14638  // Get: Lookup for a single CustomDimension.
 14639  //
 14640  //   - name: The name of the CustomDimension to get. Example format:
 14641  //     properties/1234/customDimensions/5678.
 14642  func (r *PropertiesCustomDimensionsService) Get(name string) *PropertiesCustomDimensionsGetCall {
 14643  	c := &PropertiesCustomDimensionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14644  	c.name = name
 14645  	return c
 14646  }
 14647  
 14648  // Fields allows partial responses to be retrieved. See
 14649  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14650  // details.
 14651  func (c *PropertiesCustomDimensionsGetCall) Fields(s ...googleapi.Field) *PropertiesCustomDimensionsGetCall {
 14652  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14653  	return c
 14654  }
 14655  
 14656  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14657  // object's ETag matches the given value. This is useful for getting updates
 14658  // only after the object has changed since the last request.
 14659  func (c *PropertiesCustomDimensionsGetCall) IfNoneMatch(entityTag string) *PropertiesCustomDimensionsGetCall {
 14660  	c.ifNoneMatch_ = entityTag
 14661  	return c
 14662  }
 14663  
 14664  // Context sets the context to be used in this call's Do method.
 14665  func (c *PropertiesCustomDimensionsGetCall) Context(ctx context.Context) *PropertiesCustomDimensionsGetCall {
 14666  	c.ctx_ = ctx
 14667  	return c
 14668  }
 14669  
 14670  // Header returns a http.Header that can be modified by the caller to add
 14671  // headers to the request.
 14672  func (c *PropertiesCustomDimensionsGetCall) Header() http.Header {
 14673  	if c.header_ == nil {
 14674  		c.header_ = make(http.Header)
 14675  	}
 14676  	return c.header_
 14677  }
 14678  
 14679  func (c *PropertiesCustomDimensionsGetCall) doRequest(alt string) (*http.Response, error) {
 14680  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14681  	if c.ifNoneMatch_ != "" {
 14682  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14683  	}
 14684  	var body io.Reader = nil
 14685  	c.urlParams_.Set("alt", alt)
 14686  	c.urlParams_.Set("prettyPrint", "false")
 14687  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14688  	urls += "?" + c.urlParams_.Encode()
 14689  	req, err := http.NewRequest("GET", urls, body)
 14690  	if err != nil {
 14691  		return nil, err
 14692  	}
 14693  	req.Header = reqHeaders
 14694  	googleapi.Expand(req.URL, map[string]string{
 14695  		"name": c.name,
 14696  	})
 14697  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14698  }
 14699  
 14700  // Do executes the "analyticsadmin.properties.customDimensions.get" call.
 14701  // Any non-2xx status code is an error. Response headers are in either
 14702  // *GoogleAnalyticsAdminV1alphaCustomDimension.ServerResponse.Header or (if a
 14703  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14704  // googleapi.IsNotModified to check whether the returned error was because
 14705  // http.StatusNotModified was returned.
 14706  func (c *PropertiesCustomDimensionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCustomDimension, error) {
 14707  	gensupport.SetOptions(c.urlParams_, opts...)
 14708  	res, err := c.doRequest("json")
 14709  	if res != nil && res.StatusCode == http.StatusNotModified {
 14710  		if res.Body != nil {
 14711  			res.Body.Close()
 14712  		}
 14713  		return nil, gensupport.WrapError(&googleapi.Error{
 14714  			Code:   res.StatusCode,
 14715  			Header: res.Header,
 14716  		})
 14717  	}
 14718  	if err != nil {
 14719  		return nil, err
 14720  	}
 14721  	defer googleapi.CloseBody(res)
 14722  	if err := googleapi.CheckResponse(res); err != nil {
 14723  		return nil, gensupport.WrapError(err)
 14724  	}
 14725  	ret := &GoogleAnalyticsAdminV1alphaCustomDimension{
 14726  		ServerResponse: googleapi.ServerResponse{
 14727  			Header:         res.Header,
 14728  			HTTPStatusCode: res.StatusCode,
 14729  		},
 14730  	}
 14731  	target := &ret
 14732  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14733  		return nil, err
 14734  	}
 14735  	return ret, nil
 14736  }
 14737  
 14738  type PropertiesCustomDimensionsListCall struct {
 14739  	s            *Service
 14740  	parent       string
 14741  	urlParams_   gensupport.URLParams
 14742  	ifNoneMatch_ string
 14743  	ctx_         context.Context
 14744  	header_      http.Header
 14745  }
 14746  
 14747  // List: Lists CustomDimensions on a property.
 14748  //
 14749  // - parent: Example format: properties/1234.
 14750  func (r *PropertiesCustomDimensionsService) List(parent string) *PropertiesCustomDimensionsListCall {
 14751  	c := &PropertiesCustomDimensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14752  	c.parent = parent
 14753  	return c
 14754  }
 14755  
 14756  // PageSize sets the optional parameter "pageSize": The maximum number of
 14757  // resources to return. If unspecified, at most 50 resources will be returned.
 14758  // The maximum value is 200 (higher values will be coerced to the maximum).
 14759  func (c *PropertiesCustomDimensionsListCall) PageSize(pageSize int64) *PropertiesCustomDimensionsListCall {
 14760  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14761  	return c
 14762  }
 14763  
 14764  // PageToken sets the optional parameter "pageToken": A page token, received
 14765  // from a previous `ListCustomDimensions` call. Provide this to retrieve the
 14766  // subsequent page. When paginating, all other parameters provided to
 14767  // `ListCustomDimensions` must match the call that provided the page token.
 14768  func (c *PropertiesCustomDimensionsListCall) PageToken(pageToken string) *PropertiesCustomDimensionsListCall {
 14769  	c.urlParams_.Set("pageToken", pageToken)
 14770  	return c
 14771  }
 14772  
 14773  // Fields allows partial responses to be retrieved. See
 14774  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14775  // details.
 14776  func (c *PropertiesCustomDimensionsListCall) Fields(s ...googleapi.Field) *PropertiesCustomDimensionsListCall {
 14777  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14778  	return c
 14779  }
 14780  
 14781  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14782  // object's ETag matches the given value. This is useful for getting updates
 14783  // only after the object has changed since the last request.
 14784  func (c *PropertiesCustomDimensionsListCall) IfNoneMatch(entityTag string) *PropertiesCustomDimensionsListCall {
 14785  	c.ifNoneMatch_ = entityTag
 14786  	return c
 14787  }
 14788  
 14789  // Context sets the context to be used in this call's Do method.
 14790  func (c *PropertiesCustomDimensionsListCall) Context(ctx context.Context) *PropertiesCustomDimensionsListCall {
 14791  	c.ctx_ = ctx
 14792  	return c
 14793  }
 14794  
 14795  // Header returns a http.Header that can be modified by the caller to add
 14796  // headers to the request.
 14797  func (c *PropertiesCustomDimensionsListCall) Header() http.Header {
 14798  	if c.header_ == nil {
 14799  		c.header_ = make(http.Header)
 14800  	}
 14801  	return c.header_
 14802  }
 14803  
 14804  func (c *PropertiesCustomDimensionsListCall) doRequest(alt string) (*http.Response, error) {
 14805  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14806  	if c.ifNoneMatch_ != "" {
 14807  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14808  	}
 14809  	var body io.Reader = nil
 14810  	c.urlParams_.Set("alt", alt)
 14811  	c.urlParams_.Set("prettyPrint", "false")
 14812  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/customDimensions")
 14813  	urls += "?" + c.urlParams_.Encode()
 14814  	req, err := http.NewRequest("GET", urls, body)
 14815  	if err != nil {
 14816  		return nil, err
 14817  	}
 14818  	req.Header = reqHeaders
 14819  	googleapi.Expand(req.URL, map[string]string{
 14820  		"parent": c.parent,
 14821  	})
 14822  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14823  }
 14824  
 14825  // Do executes the "analyticsadmin.properties.customDimensions.list" call.
 14826  // Any non-2xx status code is an error. Response headers are in either
 14827  // *GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse.ServerResponse.Heade
 14828  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 14829  // Use googleapi.IsNotModified to check whether the returned error was because
 14830  // http.StatusNotModified was returned.
 14831  func (c *PropertiesCustomDimensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse, error) {
 14832  	gensupport.SetOptions(c.urlParams_, opts...)
 14833  	res, err := c.doRequest("json")
 14834  	if res != nil && res.StatusCode == http.StatusNotModified {
 14835  		if res.Body != nil {
 14836  			res.Body.Close()
 14837  		}
 14838  		return nil, gensupport.WrapError(&googleapi.Error{
 14839  			Code:   res.StatusCode,
 14840  			Header: res.Header,
 14841  		})
 14842  	}
 14843  	if err != nil {
 14844  		return nil, err
 14845  	}
 14846  	defer googleapi.CloseBody(res)
 14847  	if err := googleapi.CheckResponse(res); err != nil {
 14848  		return nil, gensupport.WrapError(err)
 14849  	}
 14850  	ret := &GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse{
 14851  		ServerResponse: googleapi.ServerResponse{
 14852  			Header:         res.Header,
 14853  			HTTPStatusCode: res.StatusCode,
 14854  		},
 14855  	}
 14856  	target := &ret
 14857  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14858  		return nil, err
 14859  	}
 14860  	return ret, nil
 14861  }
 14862  
 14863  // Pages invokes f for each page of results.
 14864  // A non-nil error returned from f will halt the iteration.
 14865  // The provided context supersedes any context provided to the Context method.
 14866  func (c *PropertiesCustomDimensionsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse) error) error {
 14867  	c.ctx_ = ctx
 14868  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14869  	for {
 14870  		x, err := c.Do()
 14871  		if err != nil {
 14872  			return err
 14873  		}
 14874  		if err := f(x); err != nil {
 14875  			return err
 14876  		}
 14877  		if x.NextPageToken == "" {
 14878  			return nil
 14879  		}
 14880  		c.PageToken(x.NextPageToken)
 14881  	}
 14882  }
 14883  
 14884  type PropertiesCustomDimensionsPatchCall struct {
 14885  	s                                          *Service
 14886  	name                                       string
 14887  	googleanalyticsadminv1alphacustomdimension *GoogleAnalyticsAdminV1alphaCustomDimension
 14888  	urlParams_                                 gensupport.URLParams
 14889  	ctx_                                       context.Context
 14890  	header_                                    http.Header
 14891  }
 14892  
 14893  // Patch: Updates a CustomDimension on a property.
 14894  //
 14895  //   - name: Output only. Resource name for this CustomDimension resource.
 14896  //     Format: properties/{property}/customDimensions/{customDimension}.
 14897  func (r *PropertiesCustomDimensionsService) Patch(name string, googleanalyticsadminv1alphacustomdimension *GoogleAnalyticsAdminV1alphaCustomDimension) *PropertiesCustomDimensionsPatchCall {
 14898  	c := &PropertiesCustomDimensionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14899  	c.name = name
 14900  	c.googleanalyticsadminv1alphacustomdimension = googleanalyticsadminv1alphacustomdimension
 14901  	return c
 14902  }
 14903  
 14904  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 14905  // fields to be updated. Omitted fields will not be updated. To replace the
 14906  // entire entity, use one path with the string "*" to match all fields.
 14907  func (c *PropertiesCustomDimensionsPatchCall) UpdateMask(updateMask string) *PropertiesCustomDimensionsPatchCall {
 14908  	c.urlParams_.Set("updateMask", updateMask)
 14909  	return c
 14910  }
 14911  
 14912  // Fields allows partial responses to be retrieved. See
 14913  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14914  // details.
 14915  func (c *PropertiesCustomDimensionsPatchCall) Fields(s ...googleapi.Field) *PropertiesCustomDimensionsPatchCall {
 14916  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14917  	return c
 14918  }
 14919  
 14920  // Context sets the context to be used in this call's Do method.
 14921  func (c *PropertiesCustomDimensionsPatchCall) Context(ctx context.Context) *PropertiesCustomDimensionsPatchCall {
 14922  	c.ctx_ = ctx
 14923  	return c
 14924  }
 14925  
 14926  // Header returns a http.Header that can be modified by the caller to add
 14927  // headers to the request.
 14928  func (c *PropertiesCustomDimensionsPatchCall) Header() http.Header {
 14929  	if c.header_ == nil {
 14930  		c.header_ = make(http.Header)
 14931  	}
 14932  	return c.header_
 14933  }
 14934  
 14935  func (c *PropertiesCustomDimensionsPatchCall) doRequest(alt string) (*http.Response, error) {
 14936  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14937  	var body io.Reader = nil
 14938  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacustomdimension)
 14939  	if err != nil {
 14940  		return nil, err
 14941  	}
 14942  	c.urlParams_.Set("alt", alt)
 14943  	c.urlParams_.Set("prettyPrint", "false")
 14944  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14945  	urls += "?" + c.urlParams_.Encode()
 14946  	req, err := http.NewRequest("PATCH", urls, body)
 14947  	if err != nil {
 14948  		return nil, err
 14949  	}
 14950  	req.Header = reqHeaders
 14951  	googleapi.Expand(req.URL, map[string]string{
 14952  		"name": c.name,
 14953  	})
 14954  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14955  }
 14956  
 14957  // Do executes the "analyticsadmin.properties.customDimensions.patch" call.
 14958  // Any non-2xx status code is an error. Response headers are in either
 14959  // *GoogleAnalyticsAdminV1alphaCustomDimension.ServerResponse.Header or (if a
 14960  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14961  // googleapi.IsNotModified to check whether the returned error was because
 14962  // http.StatusNotModified was returned.
 14963  func (c *PropertiesCustomDimensionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCustomDimension, error) {
 14964  	gensupport.SetOptions(c.urlParams_, opts...)
 14965  	res, err := c.doRequest("json")
 14966  	if res != nil && res.StatusCode == http.StatusNotModified {
 14967  		if res.Body != nil {
 14968  			res.Body.Close()
 14969  		}
 14970  		return nil, gensupport.WrapError(&googleapi.Error{
 14971  			Code:   res.StatusCode,
 14972  			Header: res.Header,
 14973  		})
 14974  	}
 14975  	if err != nil {
 14976  		return nil, err
 14977  	}
 14978  	defer googleapi.CloseBody(res)
 14979  	if err := googleapi.CheckResponse(res); err != nil {
 14980  		return nil, gensupport.WrapError(err)
 14981  	}
 14982  	ret := &GoogleAnalyticsAdminV1alphaCustomDimension{
 14983  		ServerResponse: googleapi.ServerResponse{
 14984  			Header:         res.Header,
 14985  			HTTPStatusCode: res.StatusCode,
 14986  		},
 14987  	}
 14988  	target := &ret
 14989  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14990  		return nil, err
 14991  	}
 14992  	return ret, nil
 14993  }
 14994  
 14995  type PropertiesCustomMetricsArchiveCall struct {
 14996  	s                                                     *Service
 14997  	name                                                  string
 14998  	googleanalyticsadminv1alphaarchivecustommetricrequest *GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest
 14999  	urlParams_                                            gensupport.URLParams
 15000  	ctx_                                                  context.Context
 15001  	header_                                               http.Header
 15002  }
 15003  
 15004  // Archive: Archives a CustomMetric on a property.
 15005  //
 15006  //   - name: The name of the CustomMetric to archive. Example format:
 15007  //     properties/1234/customMetrics/5678.
 15008  func (r *PropertiesCustomMetricsService) Archive(name string, googleanalyticsadminv1alphaarchivecustommetricrequest *GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest) *PropertiesCustomMetricsArchiveCall {
 15009  	c := &PropertiesCustomMetricsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15010  	c.name = name
 15011  	c.googleanalyticsadminv1alphaarchivecustommetricrequest = googleanalyticsadminv1alphaarchivecustommetricrequest
 15012  	return c
 15013  }
 15014  
 15015  // Fields allows partial responses to be retrieved. See
 15016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15017  // details.
 15018  func (c *PropertiesCustomMetricsArchiveCall) Fields(s ...googleapi.Field) *PropertiesCustomMetricsArchiveCall {
 15019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15020  	return c
 15021  }
 15022  
 15023  // Context sets the context to be used in this call's Do method.
 15024  func (c *PropertiesCustomMetricsArchiveCall) Context(ctx context.Context) *PropertiesCustomMetricsArchiveCall {
 15025  	c.ctx_ = ctx
 15026  	return c
 15027  }
 15028  
 15029  // Header returns a http.Header that can be modified by the caller to add
 15030  // headers to the request.
 15031  func (c *PropertiesCustomMetricsArchiveCall) Header() http.Header {
 15032  	if c.header_ == nil {
 15033  		c.header_ = make(http.Header)
 15034  	}
 15035  	return c.header_
 15036  }
 15037  
 15038  func (c *PropertiesCustomMetricsArchiveCall) doRequest(alt string) (*http.Response, error) {
 15039  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15040  	var body io.Reader = nil
 15041  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaarchivecustommetricrequest)
 15042  	if err != nil {
 15043  		return nil, err
 15044  	}
 15045  	c.urlParams_.Set("alt", alt)
 15046  	c.urlParams_.Set("prettyPrint", "false")
 15047  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:archive")
 15048  	urls += "?" + c.urlParams_.Encode()
 15049  	req, err := http.NewRequest("POST", urls, body)
 15050  	if err != nil {
 15051  		return nil, err
 15052  	}
 15053  	req.Header = reqHeaders
 15054  	googleapi.Expand(req.URL, map[string]string{
 15055  		"name": c.name,
 15056  	})
 15057  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15058  }
 15059  
 15060  // Do executes the "analyticsadmin.properties.customMetrics.archive" call.
 15061  // Any non-2xx status code is an error. Response headers are in either
 15062  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 15063  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15064  // check whether the returned error was because http.StatusNotModified was
 15065  // returned.
 15066  func (c *PropertiesCustomMetricsArchiveCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 15067  	gensupport.SetOptions(c.urlParams_, opts...)
 15068  	res, err := c.doRequest("json")
 15069  	if res != nil && res.StatusCode == http.StatusNotModified {
 15070  		if res.Body != nil {
 15071  			res.Body.Close()
 15072  		}
 15073  		return nil, gensupport.WrapError(&googleapi.Error{
 15074  			Code:   res.StatusCode,
 15075  			Header: res.Header,
 15076  		})
 15077  	}
 15078  	if err != nil {
 15079  		return nil, err
 15080  	}
 15081  	defer googleapi.CloseBody(res)
 15082  	if err := googleapi.CheckResponse(res); err != nil {
 15083  		return nil, gensupport.WrapError(err)
 15084  	}
 15085  	ret := &GoogleProtobufEmpty{
 15086  		ServerResponse: googleapi.ServerResponse{
 15087  			Header:         res.Header,
 15088  			HTTPStatusCode: res.StatusCode,
 15089  		},
 15090  	}
 15091  	target := &ret
 15092  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15093  		return nil, err
 15094  	}
 15095  	return ret, nil
 15096  }
 15097  
 15098  type PropertiesCustomMetricsCreateCall struct {
 15099  	s                                       *Service
 15100  	parent                                  string
 15101  	googleanalyticsadminv1alphacustommetric *GoogleAnalyticsAdminV1alphaCustomMetric
 15102  	urlParams_                              gensupport.URLParams
 15103  	ctx_                                    context.Context
 15104  	header_                                 http.Header
 15105  }
 15106  
 15107  // Create: Creates a CustomMetric.
 15108  //
 15109  // - parent: Example format: properties/1234.
 15110  func (r *PropertiesCustomMetricsService) Create(parent string, googleanalyticsadminv1alphacustommetric *GoogleAnalyticsAdminV1alphaCustomMetric) *PropertiesCustomMetricsCreateCall {
 15111  	c := &PropertiesCustomMetricsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15112  	c.parent = parent
 15113  	c.googleanalyticsadminv1alphacustommetric = googleanalyticsadminv1alphacustommetric
 15114  	return c
 15115  }
 15116  
 15117  // Fields allows partial responses to be retrieved. See
 15118  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15119  // details.
 15120  func (c *PropertiesCustomMetricsCreateCall) Fields(s ...googleapi.Field) *PropertiesCustomMetricsCreateCall {
 15121  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15122  	return c
 15123  }
 15124  
 15125  // Context sets the context to be used in this call's Do method.
 15126  func (c *PropertiesCustomMetricsCreateCall) Context(ctx context.Context) *PropertiesCustomMetricsCreateCall {
 15127  	c.ctx_ = ctx
 15128  	return c
 15129  }
 15130  
 15131  // Header returns a http.Header that can be modified by the caller to add
 15132  // headers to the request.
 15133  func (c *PropertiesCustomMetricsCreateCall) Header() http.Header {
 15134  	if c.header_ == nil {
 15135  		c.header_ = make(http.Header)
 15136  	}
 15137  	return c.header_
 15138  }
 15139  
 15140  func (c *PropertiesCustomMetricsCreateCall) doRequest(alt string) (*http.Response, error) {
 15141  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15142  	var body io.Reader = nil
 15143  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacustommetric)
 15144  	if err != nil {
 15145  		return nil, err
 15146  	}
 15147  	c.urlParams_.Set("alt", alt)
 15148  	c.urlParams_.Set("prettyPrint", "false")
 15149  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/customMetrics")
 15150  	urls += "?" + c.urlParams_.Encode()
 15151  	req, err := http.NewRequest("POST", urls, body)
 15152  	if err != nil {
 15153  		return nil, err
 15154  	}
 15155  	req.Header = reqHeaders
 15156  	googleapi.Expand(req.URL, map[string]string{
 15157  		"parent": c.parent,
 15158  	})
 15159  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15160  }
 15161  
 15162  // Do executes the "analyticsadmin.properties.customMetrics.create" call.
 15163  // Any non-2xx status code is an error. Response headers are in either
 15164  // *GoogleAnalyticsAdminV1alphaCustomMetric.ServerResponse.Header or (if a
 15165  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15166  // googleapi.IsNotModified to check whether the returned error was because
 15167  // http.StatusNotModified was returned.
 15168  func (c *PropertiesCustomMetricsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCustomMetric, error) {
 15169  	gensupport.SetOptions(c.urlParams_, opts...)
 15170  	res, err := c.doRequest("json")
 15171  	if res != nil && res.StatusCode == http.StatusNotModified {
 15172  		if res.Body != nil {
 15173  			res.Body.Close()
 15174  		}
 15175  		return nil, gensupport.WrapError(&googleapi.Error{
 15176  			Code:   res.StatusCode,
 15177  			Header: res.Header,
 15178  		})
 15179  	}
 15180  	if err != nil {
 15181  		return nil, err
 15182  	}
 15183  	defer googleapi.CloseBody(res)
 15184  	if err := googleapi.CheckResponse(res); err != nil {
 15185  		return nil, gensupport.WrapError(err)
 15186  	}
 15187  	ret := &GoogleAnalyticsAdminV1alphaCustomMetric{
 15188  		ServerResponse: googleapi.ServerResponse{
 15189  			Header:         res.Header,
 15190  			HTTPStatusCode: res.StatusCode,
 15191  		},
 15192  	}
 15193  	target := &ret
 15194  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15195  		return nil, err
 15196  	}
 15197  	return ret, nil
 15198  }
 15199  
 15200  type PropertiesCustomMetricsGetCall struct {
 15201  	s            *Service
 15202  	name         string
 15203  	urlParams_   gensupport.URLParams
 15204  	ifNoneMatch_ string
 15205  	ctx_         context.Context
 15206  	header_      http.Header
 15207  }
 15208  
 15209  // Get: Lookup for a single CustomMetric.
 15210  //
 15211  //   - name: The name of the CustomMetric to get. Example format:
 15212  //     properties/1234/customMetrics/5678.
 15213  func (r *PropertiesCustomMetricsService) Get(name string) *PropertiesCustomMetricsGetCall {
 15214  	c := &PropertiesCustomMetricsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15215  	c.name = name
 15216  	return c
 15217  }
 15218  
 15219  // Fields allows partial responses to be retrieved. See
 15220  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15221  // details.
 15222  func (c *PropertiesCustomMetricsGetCall) Fields(s ...googleapi.Field) *PropertiesCustomMetricsGetCall {
 15223  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15224  	return c
 15225  }
 15226  
 15227  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15228  // object's ETag matches the given value. This is useful for getting updates
 15229  // only after the object has changed since the last request.
 15230  func (c *PropertiesCustomMetricsGetCall) IfNoneMatch(entityTag string) *PropertiesCustomMetricsGetCall {
 15231  	c.ifNoneMatch_ = entityTag
 15232  	return c
 15233  }
 15234  
 15235  // Context sets the context to be used in this call's Do method.
 15236  func (c *PropertiesCustomMetricsGetCall) Context(ctx context.Context) *PropertiesCustomMetricsGetCall {
 15237  	c.ctx_ = ctx
 15238  	return c
 15239  }
 15240  
 15241  // Header returns a http.Header that can be modified by the caller to add
 15242  // headers to the request.
 15243  func (c *PropertiesCustomMetricsGetCall) Header() http.Header {
 15244  	if c.header_ == nil {
 15245  		c.header_ = make(http.Header)
 15246  	}
 15247  	return c.header_
 15248  }
 15249  
 15250  func (c *PropertiesCustomMetricsGetCall) doRequest(alt string) (*http.Response, error) {
 15251  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15252  	if c.ifNoneMatch_ != "" {
 15253  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15254  	}
 15255  	var body io.Reader = nil
 15256  	c.urlParams_.Set("alt", alt)
 15257  	c.urlParams_.Set("prettyPrint", "false")
 15258  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15259  	urls += "?" + c.urlParams_.Encode()
 15260  	req, err := http.NewRequest("GET", urls, body)
 15261  	if err != nil {
 15262  		return nil, err
 15263  	}
 15264  	req.Header = reqHeaders
 15265  	googleapi.Expand(req.URL, map[string]string{
 15266  		"name": c.name,
 15267  	})
 15268  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15269  }
 15270  
 15271  // Do executes the "analyticsadmin.properties.customMetrics.get" call.
 15272  // Any non-2xx status code is an error. Response headers are in either
 15273  // *GoogleAnalyticsAdminV1alphaCustomMetric.ServerResponse.Header or (if a
 15274  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15275  // googleapi.IsNotModified to check whether the returned error was because
 15276  // http.StatusNotModified was returned.
 15277  func (c *PropertiesCustomMetricsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCustomMetric, error) {
 15278  	gensupport.SetOptions(c.urlParams_, opts...)
 15279  	res, err := c.doRequest("json")
 15280  	if res != nil && res.StatusCode == http.StatusNotModified {
 15281  		if res.Body != nil {
 15282  			res.Body.Close()
 15283  		}
 15284  		return nil, gensupport.WrapError(&googleapi.Error{
 15285  			Code:   res.StatusCode,
 15286  			Header: res.Header,
 15287  		})
 15288  	}
 15289  	if err != nil {
 15290  		return nil, err
 15291  	}
 15292  	defer googleapi.CloseBody(res)
 15293  	if err := googleapi.CheckResponse(res); err != nil {
 15294  		return nil, gensupport.WrapError(err)
 15295  	}
 15296  	ret := &GoogleAnalyticsAdminV1alphaCustomMetric{
 15297  		ServerResponse: googleapi.ServerResponse{
 15298  			Header:         res.Header,
 15299  			HTTPStatusCode: res.StatusCode,
 15300  		},
 15301  	}
 15302  	target := &ret
 15303  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15304  		return nil, err
 15305  	}
 15306  	return ret, nil
 15307  }
 15308  
 15309  type PropertiesCustomMetricsListCall struct {
 15310  	s            *Service
 15311  	parent       string
 15312  	urlParams_   gensupport.URLParams
 15313  	ifNoneMatch_ string
 15314  	ctx_         context.Context
 15315  	header_      http.Header
 15316  }
 15317  
 15318  // List: Lists CustomMetrics on a property.
 15319  //
 15320  // - parent: Example format: properties/1234.
 15321  func (r *PropertiesCustomMetricsService) List(parent string) *PropertiesCustomMetricsListCall {
 15322  	c := &PropertiesCustomMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15323  	c.parent = parent
 15324  	return c
 15325  }
 15326  
 15327  // PageSize sets the optional parameter "pageSize": The maximum number of
 15328  // resources to return. If unspecified, at most 50 resources will be returned.
 15329  // The maximum value is 200 (higher values will be coerced to the maximum).
 15330  func (c *PropertiesCustomMetricsListCall) PageSize(pageSize int64) *PropertiesCustomMetricsListCall {
 15331  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15332  	return c
 15333  }
 15334  
 15335  // PageToken sets the optional parameter "pageToken": A page token, received
 15336  // from a previous `ListCustomMetrics` call. Provide this to retrieve the
 15337  // subsequent page. When paginating, all other parameters provided to
 15338  // `ListCustomMetrics` must match the call that provided the page token.
 15339  func (c *PropertiesCustomMetricsListCall) PageToken(pageToken string) *PropertiesCustomMetricsListCall {
 15340  	c.urlParams_.Set("pageToken", pageToken)
 15341  	return c
 15342  }
 15343  
 15344  // Fields allows partial responses to be retrieved. See
 15345  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15346  // details.
 15347  func (c *PropertiesCustomMetricsListCall) Fields(s ...googleapi.Field) *PropertiesCustomMetricsListCall {
 15348  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15349  	return c
 15350  }
 15351  
 15352  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15353  // object's ETag matches the given value. This is useful for getting updates
 15354  // only after the object has changed since the last request.
 15355  func (c *PropertiesCustomMetricsListCall) IfNoneMatch(entityTag string) *PropertiesCustomMetricsListCall {
 15356  	c.ifNoneMatch_ = entityTag
 15357  	return c
 15358  }
 15359  
 15360  // Context sets the context to be used in this call's Do method.
 15361  func (c *PropertiesCustomMetricsListCall) Context(ctx context.Context) *PropertiesCustomMetricsListCall {
 15362  	c.ctx_ = ctx
 15363  	return c
 15364  }
 15365  
 15366  // Header returns a http.Header that can be modified by the caller to add
 15367  // headers to the request.
 15368  func (c *PropertiesCustomMetricsListCall) Header() http.Header {
 15369  	if c.header_ == nil {
 15370  		c.header_ = make(http.Header)
 15371  	}
 15372  	return c.header_
 15373  }
 15374  
 15375  func (c *PropertiesCustomMetricsListCall) doRequest(alt string) (*http.Response, error) {
 15376  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15377  	if c.ifNoneMatch_ != "" {
 15378  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15379  	}
 15380  	var body io.Reader = nil
 15381  	c.urlParams_.Set("alt", alt)
 15382  	c.urlParams_.Set("prettyPrint", "false")
 15383  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/customMetrics")
 15384  	urls += "?" + c.urlParams_.Encode()
 15385  	req, err := http.NewRequest("GET", urls, body)
 15386  	if err != nil {
 15387  		return nil, err
 15388  	}
 15389  	req.Header = reqHeaders
 15390  	googleapi.Expand(req.URL, map[string]string{
 15391  		"parent": c.parent,
 15392  	})
 15393  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15394  }
 15395  
 15396  // Do executes the "analyticsadmin.properties.customMetrics.list" call.
 15397  // Any non-2xx status code is an error. Response headers are in either
 15398  // *GoogleAnalyticsAdminV1alphaListCustomMetricsResponse.ServerResponse.Header
 15399  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 15400  // Use googleapi.IsNotModified to check whether the returned error was because
 15401  // http.StatusNotModified was returned.
 15402  func (c *PropertiesCustomMetricsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListCustomMetricsResponse, error) {
 15403  	gensupport.SetOptions(c.urlParams_, opts...)
 15404  	res, err := c.doRequest("json")
 15405  	if res != nil && res.StatusCode == http.StatusNotModified {
 15406  		if res.Body != nil {
 15407  			res.Body.Close()
 15408  		}
 15409  		return nil, gensupport.WrapError(&googleapi.Error{
 15410  			Code:   res.StatusCode,
 15411  			Header: res.Header,
 15412  		})
 15413  	}
 15414  	if err != nil {
 15415  		return nil, err
 15416  	}
 15417  	defer googleapi.CloseBody(res)
 15418  	if err := googleapi.CheckResponse(res); err != nil {
 15419  		return nil, gensupport.WrapError(err)
 15420  	}
 15421  	ret := &GoogleAnalyticsAdminV1alphaListCustomMetricsResponse{
 15422  		ServerResponse: googleapi.ServerResponse{
 15423  			Header:         res.Header,
 15424  			HTTPStatusCode: res.StatusCode,
 15425  		},
 15426  	}
 15427  	target := &ret
 15428  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15429  		return nil, err
 15430  	}
 15431  	return ret, nil
 15432  }
 15433  
 15434  // Pages invokes f for each page of results.
 15435  // A non-nil error returned from f will halt the iteration.
 15436  // The provided context supersedes any context provided to the Context method.
 15437  func (c *PropertiesCustomMetricsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListCustomMetricsResponse) error) error {
 15438  	c.ctx_ = ctx
 15439  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15440  	for {
 15441  		x, err := c.Do()
 15442  		if err != nil {
 15443  			return err
 15444  		}
 15445  		if err := f(x); err != nil {
 15446  			return err
 15447  		}
 15448  		if x.NextPageToken == "" {
 15449  			return nil
 15450  		}
 15451  		c.PageToken(x.NextPageToken)
 15452  	}
 15453  }
 15454  
 15455  type PropertiesCustomMetricsPatchCall struct {
 15456  	s                                       *Service
 15457  	name                                    string
 15458  	googleanalyticsadminv1alphacustommetric *GoogleAnalyticsAdminV1alphaCustomMetric
 15459  	urlParams_                              gensupport.URLParams
 15460  	ctx_                                    context.Context
 15461  	header_                                 http.Header
 15462  }
 15463  
 15464  // Patch: Updates a CustomMetric on a property.
 15465  //
 15466  //   - name: Output only. Resource name for this CustomMetric resource. Format:
 15467  //     properties/{property}/customMetrics/{customMetric}.
 15468  func (r *PropertiesCustomMetricsService) Patch(name string, googleanalyticsadminv1alphacustommetric *GoogleAnalyticsAdminV1alphaCustomMetric) *PropertiesCustomMetricsPatchCall {
 15469  	c := &PropertiesCustomMetricsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15470  	c.name = name
 15471  	c.googleanalyticsadminv1alphacustommetric = googleanalyticsadminv1alphacustommetric
 15472  	return c
 15473  }
 15474  
 15475  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 15476  // fields to be updated. Omitted fields will not be updated. To replace the
 15477  // entire entity, use one path with the string "*" to match all fields.
 15478  func (c *PropertiesCustomMetricsPatchCall) UpdateMask(updateMask string) *PropertiesCustomMetricsPatchCall {
 15479  	c.urlParams_.Set("updateMask", updateMask)
 15480  	return c
 15481  }
 15482  
 15483  // Fields allows partial responses to be retrieved. See
 15484  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15485  // details.
 15486  func (c *PropertiesCustomMetricsPatchCall) Fields(s ...googleapi.Field) *PropertiesCustomMetricsPatchCall {
 15487  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15488  	return c
 15489  }
 15490  
 15491  // Context sets the context to be used in this call's Do method.
 15492  func (c *PropertiesCustomMetricsPatchCall) Context(ctx context.Context) *PropertiesCustomMetricsPatchCall {
 15493  	c.ctx_ = ctx
 15494  	return c
 15495  }
 15496  
 15497  // Header returns a http.Header that can be modified by the caller to add
 15498  // headers to the request.
 15499  func (c *PropertiesCustomMetricsPatchCall) Header() http.Header {
 15500  	if c.header_ == nil {
 15501  		c.header_ = make(http.Header)
 15502  	}
 15503  	return c.header_
 15504  }
 15505  
 15506  func (c *PropertiesCustomMetricsPatchCall) doRequest(alt string) (*http.Response, error) {
 15507  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15508  	var body io.Reader = nil
 15509  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacustommetric)
 15510  	if err != nil {
 15511  		return nil, err
 15512  	}
 15513  	c.urlParams_.Set("alt", alt)
 15514  	c.urlParams_.Set("prettyPrint", "false")
 15515  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15516  	urls += "?" + c.urlParams_.Encode()
 15517  	req, err := http.NewRequest("PATCH", urls, body)
 15518  	if err != nil {
 15519  		return nil, err
 15520  	}
 15521  	req.Header = reqHeaders
 15522  	googleapi.Expand(req.URL, map[string]string{
 15523  		"name": c.name,
 15524  	})
 15525  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15526  }
 15527  
 15528  // Do executes the "analyticsadmin.properties.customMetrics.patch" call.
 15529  // Any non-2xx status code is an error. Response headers are in either
 15530  // *GoogleAnalyticsAdminV1alphaCustomMetric.ServerResponse.Header or (if a
 15531  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15532  // googleapi.IsNotModified to check whether the returned error was because
 15533  // http.StatusNotModified was returned.
 15534  func (c *PropertiesCustomMetricsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCustomMetric, error) {
 15535  	gensupport.SetOptions(c.urlParams_, opts...)
 15536  	res, err := c.doRequest("json")
 15537  	if res != nil && res.StatusCode == http.StatusNotModified {
 15538  		if res.Body != nil {
 15539  			res.Body.Close()
 15540  		}
 15541  		return nil, gensupport.WrapError(&googleapi.Error{
 15542  			Code:   res.StatusCode,
 15543  			Header: res.Header,
 15544  		})
 15545  	}
 15546  	if err != nil {
 15547  		return nil, err
 15548  	}
 15549  	defer googleapi.CloseBody(res)
 15550  	if err := googleapi.CheckResponse(res); err != nil {
 15551  		return nil, gensupport.WrapError(err)
 15552  	}
 15553  	ret := &GoogleAnalyticsAdminV1alphaCustomMetric{
 15554  		ServerResponse: googleapi.ServerResponse{
 15555  			Header:         res.Header,
 15556  			HTTPStatusCode: res.StatusCode,
 15557  		},
 15558  	}
 15559  	target := &ret
 15560  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15561  		return nil, err
 15562  	}
 15563  	return ret, nil
 15564  }
 15565  
 15566  type PropertiesDataStreamsCreateCall struct {
 15567  	s                                     *Service
 15568  	parent                                string
 15569  	googleanalyticsadminv1alphadatastream *GoogleAnalyticsAdminV1alphaDataStream
 15570  	urlParams_                            gensupport.URLParams
 15571  	ctx_                                  context.Context
 15572  	header_                               http.Header
 15573  }
 15574  
 15575  // Create: Creates a DataStream.
 15576  //
 15577  // - parent: Example format: properties/1234.
 15578  func (r *PropertiesDataStreamsService) Create(parent string, googleanalyticsadminv1alphadatastream *GoogleAnalyticsAdminV1alphaDataStream) *PropertiesDataStreamsCreateCall {
 15579  	c := &PropertiesDataStreamsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15580  	c.parent = parent
 15581  	c.googleanalyticsadminv1alphadatastream = googleanalyticsadminv1alphadatastream
 15582  	return c
 15583  }
 15584  
 15585  // Fields allows partial responses to be retrieved. See
 15586  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15587  // details.
 15588  func (c *PropertiesDataStreamsCreateCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsCreateCall {
 15589  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15590  	return c
 15591  }
 15592  
 15593  // Context sets the context to be used in this call's Do method.
 15594  func (c *PropertiesDataStreamsCreateCall) Context(ctx context.Context) *PropertiesDataStreamsCreateCall {
 15595  	c.ctx_ = ctx
 15596  	return c
 15597  }
 15598  
 15599  // Header returns a http.Header that can be modified by the caller to add
 15600  // headers to the request.
 15601  func (c *PropertiesDataStreamsCreateCall) Header() http.Header {
 15602  	if c.header_ == nil {
 15603  		c.header_ = make(http.Header)
 15604  	}
 15605  	return c.header_
 15606  }
 15607  
 15608  func (c *PropertiesDataStreamsCreateCall) doRequest(alt string) (*http.Response, error) {
 15609  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15610  	var body io.Reader = nil
 15611  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadatastream)
 15612  	if err != nil {
 15613  		return nil, err
 15614  	}
 15615  	c.urlParams_.Set("alt", alt)
 15616  	c.urlParams_.Set("prettyPrint", "false")
 15617  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStreams")
 15618  	urls += "?" + c.urlParams_.Encode()
 15619  	req, err := http.NewRequest("POST", urls, body)
 15620  	if err != nil {
 15621  		return nil, err
 15622  	}
 15623  	req.Header = reqHeaders
 15624  	googleapi.Expand(req.URL, map[string]string{
 15625  		"parent": c.parent,
 15626  	})
 15627  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15628  }
 15629  
 15630  // Do executes the "analyticsadmin.properties.dataStreams.create" call.
 15631  // Any non-2xx status code is an error. Response headers are in either
 15632  // *GoogleAnalyticsAdminV1alphaDataStream.ServerResponse.Header or (if a
 15633  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15634  // googleapi.IsNotModified to check whether the returned error was because
 15635  // http.StatusNotModified was returned.
 15636  func (c *PropertiesDataStreamsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataStream, error) {
 15637  	gensupport.SetOptions(c.urlParams_, opts...)
 15638  	res, err := c.doRequest("json")
 15639  	if res != nil && res.StatusCode == http.StatusNotModified {
 15640  		if res.Body != nil {
 15641  			res.Body.Close()
 15642  		}
 15643  		return nil, gensupport.WrapError(&googleapi.Error{
 15644  			Code:   res.StatusCode,
 15645  			Header: res.Header,
 15646  		})
 15647  	}
 15648  	if err != nil {
 15649  		return nil, err
 15650  	}
 15651  	defer googleapi.CloseBody(res)
 15652  	if err := googleapi.CheckResponse(res); err != nil {
 15653  		return nil, gensupport.WrapError(err)
 15654  	}
 15655  	ret := &GoogleAnalyticsAdminV1alphaDataStream{
 15656  		ServerResponse: googleapi.ServerResponse{
 15657  			Header:         res.Header,
 15658  			HTTPStatusCode: res.StatusCode,
 15659  		},
 15660  	}
 15661  	target := &ret
 15662  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15663  		return nil, err
 15664  	}
 15665  	return ret, nil
 15666  }
 15667  
 15668  type PropertiesDataStreamsDeleteCall struct {
 15669  	s          *Service
 15670  	name       string
 15671  	urlParams_ gensupport.URLParams
 15672  	ctx_       context.Context
 15673  	header_    http.Header
 15674  }
 15675  
 15676  // Delete: Deletes a DataStream on a property.
 15677  //
 15678  //   - name: The name of the DataStream to delete. Example format:
 15679  //     properties/1234/dataStreams/5678.
 15680  func (r *PropertiesDataStreamsService) Delete(name string) *PropertiesDataStreamsDeleteCall {
 15681  	c := &PropertiesDataStreamsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15682  	c.name = name
 15683  	return c
 15684  }
 15685  
 15686  // Fields allows partial responses to be retrieved. See
 15687  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15688  // details.
 15689  func (c *PropertiesDataStreamsDeleteCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsDeleteCall {
 15690  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15691  	return c
 15692  }
 15693  
 15694  // Context sets the context to be used in this call's Do method.
 15695  func (c *PropertiesDataStreamsDeleteCall) Context(ctx context.Context) *PropertiesDataStreamsDeleteCall {
 15696  	c.ctx_ = ctx
 15697  	return c
 15698  }
 15699  
 15700  // Header returns a http.Header that can be modified by the caller to add
 15701  // headers to the request.
 15702  func (c *PropertiesDataStreamsDeleteCall) Header() http.Header {
 15703  	if c.header_ == nil {
 15704  		c.header_ = make(http.Header)
 15705  	}
 15706  	return c.header_
 15707  }
 15708  
 15709  func (c *PropertiesDataStreamsDeleteCall) doRequest(alt string) (*http.Response, error) {
 15710  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15711  	var body io.Reader = nil
 15712  	c.urlParams_.Set("alt", alt)
 15713  	c.urlParams_.Set("prettyPrint", "false")
 15714  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15715  	urls += "?" + c.urlParams_.Encode()
 15716  	req, err := http.NewRequest("DELETE", urls, body)
 15717  	if err != nil {
 15718  		return nil, err
 15719  	}
 15720  	req.Header = reqHeaders
 15721  	googleapi.Expand(req.URL, map[string]string{
 15722  		"name": c.name,
 15723  	})
 15724  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15725  }
 15726  
 15727  // Do executes the "analyticsadmin.properties.dataStreams.delete" call.
 15728  // Any non-2xx status code is an error. Response headers are in either
 15729  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 15730  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15731  // check whether the returned error was because http.StatusNotModified was
 15732  // returned.
 15733  func (c *PropertiesDataStreamsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 15734  	gensupport.SetOptions(c.urlParams_, opts...)
 15735  	res, err := c.doRequest("json")
 15736  	if res != nil && res.StatusCode == http.StatusNotModified {
 15737  		if res.Body != nil {
 15738  			res.Body.Close()
 15739  		}
 15740  		return nil, gensupport.WrapError(&googleapi.Error{
 15741  			Code:   res.StatusCode,
 15742  			Header: res.Header,
 15743  		})
 15744  	}
 15745  	if err != nil {
 15746  		return nil, err
 15747  	}
 15748  	defer googleapi.CloseBody(res)
 15749  	if err := googleapi.CheckResponse(res); err != nil {
 15750  		return nil, gensupport.WrapError(err)
 15751  	}
 15752  	ret := &GoogleProtobufEmpty{
 15753  		ServerResponse: googleapi.ServerResponse{
 15754  			Header:         res.Header,
 15755  			HTTPStatusCode: res.StatusCode,
 15756  		},
 15757  	}
 15758  	target := &ret
 15759  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15760  		return nil, err
 15761  	}
 15762  	return ret, nil
 15763  }
 15764  
 15765  type PropertiesDataStreamsGetCall struct {
 15766  	s            *Service
 15767  	name         string
 15768  	urlParams_   gensupport.URLParams
 15769  	ifNoneMatch_ string
 15770  	ctx_         context.Context
 15771  	header_      http.Header
 15772  }
 15773  
 15774  // Get: Lookup for a single DataStream.
 15775  //
 15776  //   - name: The name of the DataStream to get. Example format:
 15777  //     properties/1234/dataStreams/5678.
 15778  func (r *PropertiesDataStreamsService) Get(name string) *PropertiesDataStreamsGetCall {
 15779  	c := &PropertiesDataStreamsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15780  	c.name = name
 15781  	return c
 15782  }
 15783  
 15784  // Fields allows partial responses to be retrieved. See
 15785  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15786  // details.
 15787  func (c *PropertiesDataStreamsGetCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsGetCall {
 15788  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15789  	return c
 15790  }
 15791  
 15792  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15793  // object's ETag matches the given value. This is useful for getting updates
 15794  // only after the object has changed since the last request.
 15795  func (c *PropertiesDataStreamsGetCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsGetCall {
 15796  	c.ifNoneMatch_ = entityTag
 15797  	return c
 15798  }
 15799  
 15800  // Context sets the context to be used in this call's Do method.
 15801  func (c *PropertiesDataStreamsGetCall) Context(ctx context.Context) *PropertiesDataStreamsGetCall {
 15802  	c.ctx_ = ctx
 15803  	return c
 15804  }
 15805  
 15806  // Header returns a http.Header that can be modified by the caller to add
 15807  // headers to the request.
 15808  func (c *PropertiesDataStreamsGetCall) Header() http.Header {
 15809  	if c.header_ == nil {
 15810  		c.header_ = make(http.Header)
 15811  	}
 15812  	return c.header_
 15813  }
 15814  
 15815  func (c *PropertiesDataStreamsGetCall) doRequest(alt string) (*http.Response, error) {
 15816  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15817  	if c.ifNoneMatch_ != "" {
 15818  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15819  	}
 15820  	var body io.Reader = nil
 15821  	c.urlParams_.Set("alt", alt)
 15822  	c.urlParams_.Set("prettyPrint", "false")
 15823  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15824  	urls += "?" + c.urlParams_.Encode()
 15825  	req, err := http.NewRequest("GET", urls, body)
 15826  	if err != nil {
 15827  		return nil, err
 15828  	}
 15829  	req.Header = reqHeaders
 15830  	googleapi.Expand(req.URL, map[string]string{
 15831  		"name": c.name,
 15832  	})
 15833  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15834  }
 15835  
 15836  // Do executes the "analyticsadmin.properties.dataStreams.get" call.
 15837  // Any non-2xx status code is an error. Response headers are in either
 15838  // *GoogleAnalyticsAdminV1alphaDataStream.ServerResponse.Header or (if a
 15839  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15840  // googleapi.IsNotModified to check whether the returned error was because
 15841  // http.StatusNotModified was returned.
 15842  func (c *PropertiesDataStreamsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataStream, error) {
 15843  	gensupport.SetOptions(c.urlParams_, opts...)
 15844  	res, err := c.doRequest("json")
 15845  	if res != nil && res.StatusCode == http.StatusNotModified {
 15846  		if res.Body != nil {
 15847  			res.Body.Close()
 15848  		}
 15849  		return nil, gensupport.WrapError(&googleapi.Error{
 15850  			Code:   res.StatusCode,
 15851  			Header: res.Header,
 15852  		})
 15853  	}
 15854  	if err != nil {
 15855  		return nil, err
 15856  	}
 15857  	defer googleapi.CloseBody(res)
 15858  	if err := googleapi.CheckResponse(res); err != nil {
 15859  		return nil, gensupport.WrapError(err)
 15860  	}
 15861  	ret := &GoogleAnalyticsAdminV1alphaDataStream{
 15862  		ServerResponse: googleapi.ServerResponse{
 15863  			Header:         res.Header,
 15864  			HTTPStatusCode: res.StatusCode,
 15865  		},
 15866  	}
 15867  	target := &ret
 15868  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15869  		return nil, err
 15870  	}
 15871  	return ret, nil
 15872  }
 15873  
 15874  type PropertiesDataStreamsGetDataRedactionSettingsCall struct {
 15875  	s            *Service
 15876  	name         string
 15877  	urlParams_   gensupport.URLParams
 15878  	ifNoneMatch_ string
 15879  	ctx_         context.Context
 15880  	header_      http.Header
 15881  }
 15882  
 15883  // GetDataRedactionSettings: Lookup for a single DataRedactionSettings.
 15884  //
 15885  //   - name: The name of the settings to lookup. Format:
 15886  //     properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
 15887  //     Example: "properties/1000/dataStreams/2000/dataRedactionSettings".
 15888  func (r *PropertiesDataStreamsService) GetDataRedactionSettings(name string) *PropertiesDataStreamsGetDataRedactionSettingsCall {
 15889  	c := &PropertiesDataStreamsGetDataRedactionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15890  	c.name = name
 15891  	return c
 15892  }
 15893  
 15894  // Fields allows partial responses to be retrieved. See
 15895  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15896  // details.
 15897  func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsGetDataRedactionSettingsCall {
 15898  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15899  	return c
 15900  }
 15901  
 15902  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15903  // object's ETag matches the given value. This is useful for getting updates
 15904  // only after the object has changed since the last request.
 15905  func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsGetDataRedactionSettingsCall {
 15906  	c.ifNoneMatch_ = entityTag
 15907  	return c
 15908  }
 15909  
 15910  // Context sets the context to be used in this call's Do method.
 15911  func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) Context(ctx context.Context) *PropertiesDataStreamsGetDataRedactionSettingsCall {
 15912  	c.ctx_ = ctx
 15913  	return c
 15914  }
 15915  
 15916  // Header returns a http.Header that can be modified by the caller to add
 15917  // headers to the request.
 15918  func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) Header() http.Header {
 15919  	if c.header_ == nil {
 15920  		c.header_ = make(http.Header)
 15921  	}
 15922  	return c.header_
 15923  }
 15924  
 15925  func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) doRequest(alt string) (*http.Response, error) {
 15926  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15927  	if c.ifNoneMatch_ != "" {
 15928  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15929  	}
 15930  	var body io.Reader = nil
 15931  	c.urlParams_.Set("alt", alt)
 15932  	c.urlParams_.Set("prettyPrint", "false")
 15933  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15934  	urls += "?" + c.urlParams_.Encode()
 15935  	req, err := http.NewRequest("GET", urls, body)
 15936  	if err != nil {
 15937  		return nil, err
 15938  	}
 15939  	req.Header = reqHeaders
 15940  	googleapi.Expand(req.URL, map[string]string{
 15941  		"name": c.name,
 15942  	})
 15943  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15944  }
 15945  
 15946  // Do executes the "analyticsadmin.properties.dataStreams.getDataRedactionSettings" call.
 15947  // Any non-2xx status code is an error. Response headers are in either
 15948  // *GoogleAnalyticsAdminV1alphaDataRedactionSettings.ServerResponse.Header or
 15949  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 15950  // googleapi.IsNotModified to check whether the returned error was because
 15951  // http.StatusNotModified was returned.
 15952  func (c *PropertiesDataStreamsGetDataRedactionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRedactionSettings, error) {
 15953  	gensupport.SetOptions(c.urlParams_, opts...)
 15954  	res, err := c.doRequest("json")
 15955  	if res != nil && res.StatusCode == http.StatusNotModified {
 15956  		if res.Body != nil {
 15957  			res.Body.Close()
 15958  		}
 15959  		return nil, gensupport.WrapError(&googleapi.Error{
 15960  			Code:   res.StatusCode,
 15961  			Header: res.Header,
 15962  		})
 15963  	}
 15964  	if err != nil {
 15965  		return nil, err
 15966  	}
 15967  	defer googleapi.CloseBody(res)
 15968  	if err := googleapi.CheckResponse(res); err != nil {
 15969  		return nil, gensupport.WrapError(err)
 15970  	}
 15971  	ret := &GoogleAnalyticsAdminV1alphaDataRedactionSettings{
 15972  		ServerResponse: googleapi.ServerResponse{
 15973  			Header:         res.Header,
 15974  			HTTPStatusCode: res.StatusCode,
 15975  		},
 15976  	}
 15977  	target := &ret
 15978  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15979  		return nil, err
 15980  	}
 15981  	return ret, nil
 15982  }
 15983  
 15984  type PropertiesDataStreamsGetEnhancedMeasurementSettingsCall struct {
 15985  	s            *Service
 15986  	name         string
 15987  	urlParams_   gensupport.URLParams
 15988  	ifNoneMatch_ string
 15989  	ctx_         context.Context
 15990  	header_      http.Header
 15991  }
 15992  
 15993  // GetEnhancedMeasurementSettings: Returns the enhanced measurement settings
 15994  // for this data stream. Note that the stream must enable enhanced measurement
 15995  // for these settings to take effect.
 15996  //
 15997  //   - name: The name of the settings to lookup. Format:
 15998  //     properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
 15999  //     Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings".
 16000  func (r *PropertiesDataStreamsService) GetEnhancedMeasurementSettings(name string) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall {
 16001  	c := &PropertiesDataStreamsGetEnhancedMeasurementSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16002  	c.name = name
 16003  	return c
 16004  }
 16005  
 16006  // Fields allows partial responses to be retrieved. See
 16007  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16008  // details.
 16009  func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall {
 16010  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16011  	return c
 16012  }
 16013  
 16014  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16015  // object's ETag matches the given value. This is useful for getting updates
 16016  // only after the object has changed since the last request.
 16017  func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall {
 16018  	c.ifNoneMatch_ = entityTag
 16019  	return c
 16020  }
 16021  
 16022  // Context sets the context to be used in this call's Do method.
 16023  func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Context(ctx context.Context) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall {
 16024  	c.ctx_ = ctx
 16025  	return c
 16026  }
 16027  
 16028  // Header returns a http.Header that can be modified by the caller to add
 16029  // headers to the request.
 16030  func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Header() http.Header {
 16031  	if c.header_ == nil {
 16032  		c.header_ = make(http.Header)
 16033  	}
 16034  	return c.header_
 16035  }
 16036  
 16037  func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) doRequest(alt string) (*http.Response, error) {
 16038  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16039  	if c.ifNoneMatch_ != "" {
 16040  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16041  	}
 16042  	var body io.Reader = nil
 16043  	c.urlParams_.Set("alt", alt)
 16044  	c.urlParams_.Set("prettyPrint", "false")
 16045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16046  	urls += "?" + c.urlParams_.Encode()
 16047  	req, err := http.NewRequest("GET", urls, body)
 16048  	if err != nil {
 16049  		return nil, err
 16050  	}
 16051  	req.Header = reqHeaders
 16052  	googleapi.Expand(req.URL, map[string]string{
 16053  		"name": c.name,
 16054  	})
 16055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16056  }
 16057  
 16058  // Do executes the "analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings" call.
 16059  // Any non-2xx status code is an error. Response headers are in either
 16060  // *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.ServerResponse.Header
 16061  //
 16062  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 16063  //
 16064  // Use googleapi.IsNotModified to check whether the returned error was because
 16065  // http.StatusNotModified was returned.
 16066  func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings, error) {
 16067  	gensupport.SetOptions(c.urlParams_, opts...)
 16068  	res, err := c.doRequest("json")
 16069  	if res != nil && res.StatusCode == http.StatusNotModified {
 16070  		if res.Body != nil {
 16071  			res.Body.Close()
 16072  		}
 16073  		return nil, gensupport.WrapError(&googleapi.Error{
 16074  			Code:   res.StatusCode,
 16075  			Header: res.Header,
 16076  		})
 16077  	}
 16078  	if err != nil {
 16079  		return nil, err
 16080  	}
 16081  	defer googleapi.CloseBody(res)
 16082  	if err := googleapi.CheckResponse(res); err != nil {
 16083  		return nil, gensupport.WrapError(err)
 16084  	}
 16085  	ret := &GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings{
 16086  		ServerResponse: googleapi.ServerResponse{
 16087  			Header:         res.Header,
 16088  			HTTPStatusCode: res.StatusCode,
 16089  		},
 16090  	}
 16091  	target := &ret
 16092  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16093  		return nil, err
 16094  	}
 16095  	return ret, nil
 16096  }
 16097  
 16098  type PropertiesDataStreamsGetGlobalSiteTagCall struct {
 16099  	s            *Service
 16100  	name         string
 16101  	urlParams_   gensupport.URLParams
 16102  	ifNoneMatch_ string
 16103  	ctx_         context.Context
 16104  	header_      http.Header
 16105  }
 16106  
 16107  // GetGlobalSiteTag: Returns the Site Tag for the specified web stream. Site
 16108  // Tags are immutable singletons.
 16109  //
 16110  //   - name: The name of the site tag to lookup. Note that site tags are
 16111  //     singletons and do not have unique IDs. Format:
 16112  //     properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example:
 16113  //     "properties/123/dataStreams/456/globalSiteTag".
 16114  func (r *PropertiesDataStreamsService) GetGlobalSiteTag(name string) *PropertiesDataStreamsGetGlobalSiteTagCall {
 16115  	c := &PropertiesDataStreamsGetGlobalSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16116  	c.name = name
 16117  	return c
 16118  }
 16119  
 16120  // Fields allows partial responses to be retrieved. See
 16121  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16122  // details.
 16123  func (c *PropertiesDataStreamsGetGlobalSiteTagCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsGetGlobalSiteTagCall {
 16124  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16125  	return c
 16126  }
 16127  
 16128  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16129  // object's ETag matches the given value. This is useful for getting updates
 16130  // only after the object has changed since the last request.
 16131  func (c *PropertiesDataStreamsGetGlobalSiteTagCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsGetGlobalSiteTagCall {
 16132  	c.ifNoneMatch_ = entityTag
 16133  	return c
 16134  }
 16135  
 16136  // Context sets the context to be used in this call's Do method.
 16137  func (c *PropertiesDataStreamsGetGlobalSiteTagCall) Context(ctx context.Context) *PropertiesDataStreamsGetGlobalSiteTagCall {
 16138  	c.ctx_ = ctx
 16139  	return c
 16140  }
 16141  
 16142  // Header returns a http.Header that can be modified by the caller to add
 16143  // headers to the request.
 16144  func (c *PropertiesDataStreamsGetGlobalSiteTagCall) Header() http.Header {
 16145  	if c.header_ == nil {
 16146  		c.header_ = make(http.Header)
 16147  	}
 16148  	return c.header_
 16149  }
 16150  
 16151  func (c *PropertiesDataStreamsGetGlobalSiteTagCall) doRequest(alt string) (*http.Response, error) {
 16152  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16153  	if c.ifNoneMatch_ != "" {
 16154  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16155  	}
 16156  	var body io.Reader = nil
 16157  	c.urlParams_.Set("alt", alt)
 16158  	c.urlParams_.Set("prettyPrint", "false")
 16159  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16160  	urls += "?" + c.urlParams_.Encode()
 16161  	req, err := http.NewRequest("GET", urls, body)
 16162  	if err != nil {
 16163  		return nil, err
 16164  	}
 16165  	req.Header = reqHeaders
 16166  	googleapi.Expand(req.URL, map[string]string{
 16167  		"name": c.name,
 16168  	})
 16169  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16170  }
 16171  
 16172  // Do executes the "analyticsadmin.properties.dataStreams.getGlobalSiteTag" call.
 16173  // Any non-2xx status code is an error. Response headers are in either
 16174  // *GoogleAnalyticsAdminV1alphaGlobalSiteTag.ServerResponse.Header or (if a
 16175  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16176  // googleapi.IsNotModified to check whether the returned error was because
 16177  // http.StatusNotModified was returned.
 16178  func (c *PropertiesDataStreamsGetGlobalSiteTagCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGlobalSiteTag, error) {
 16179  	gensupport.SetOptions(c.urlParams_, opts...)
 16180  	res, err := c.doRequest("json")
 16181  	if res != nil && res.StatusCode == http.StatusNotModified {
 16182  		if res.Body != nil {
 16183  			res.Body.Close()
 16184  		}
 16185  		return nil, gensupport.WrapError(&googleapi.Error{
 16186  			Code:   res.StatusCode,
 16187  			Header: res.Header,
 16188  		})
 16189  	}
 16190  	if err != nil {
 16191  		return nil, err
 16192  	}
 16193  	defer googleapi.CloseBody(res)
 16194  	if err := googleapi.CheckResponse(res); err != nil {
 16195  		return nil, gensupport.WrapError(err)
 16196  	}
 16197  	ret := &GoogleAnalyticsAdminV1alphaGlobalSiteTag{
 16198  		ServerResponse: googleapi.ServerResponse{
 16199  			Header:         res.Header,
 16200  			HTTPStatusCode: res.StatusCode,
 16201  		},
 16202  	}
 16203  	target := &ret
 16204  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16205  		return nil, err
 16206  	}
 16207  	return ret, nil
 16208  }
 16209  
 16210  type PropertiesDataStreamsListCall struct {
 16211  	s            *Service
 16212  	parent       string
 16213  	urlParams_   gensupport.URLParams
 16214  	ifNoneMatch_ string
 16215  	ctx_         context.Context
 16216  	header_      http.Header
 16217  }
 16218  
 16219  // List: Lists DataStreams on a property.
 16220  //
 16221  // - parent: Example format: properties/1234.
 16222  func (r *PropertiesDataStreamsService) List(parent string) *PropertiesDataStreamsListCall {
 16223  	c := &PropertiesDataStreamsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16224  	c.parent = parent
 16225  	return c
 16226  }
 16227  
 16228  // PageSize sets the optional parameter "pageSize": The maximum number of
 16229  // resources to return. If unspecified, at most 50 resources will be returned.
 16230  // The maximum value is 200 (higher values will be coerced to the maximum).
 16231  func (c *PropertiesDataStreamsListCall) PageSize(pageSize int64) *PropertiesDataStreamsListCall {
 16232  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16233  	return c
 16234  }
 16235  
 16236  // PageToken sets the optional parameter "pageToken": A page token, received
 16237  // from a previous `ListDataStreams` call. Provide this to retrieve the
 16238  // subsequent page. When paginating, all other parameters provided to
 16239  // `ListDataStreams` must match the call that provided the page token.
 16240  func (c *PropertiesDataStreamsListCall) PageToken(pageToken string) *PropertiesDataStreamsListCall {
 16241  	c.urlParams_.Set("pageToken", pageToken)
 16242  	return c
 16243  }
 16244  
 16245  // Fields allows partial responses to be retrieved. See
 16246  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16247  // details.
 16248  func (c *PropertiesDataStreamsListCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsListCall {
 16249  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16250  	return c
 16251  }
 16252  
 16253  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16254  // object's ETag matches the given value. This is useful for getting updates
 16255  // only after the object has changed since the last request.
 16256  func (c *PropertiesDataStreamsListCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsListCall {
 16257  	c.ifNoneMatch_ = entityTag
 16258  	return c
 16259  }
 16260  
 16261  // Context sets the context to be used in this call's Do method.
 16262  func (c *PropertiesDataStreamsListCall) Context(ctx context.Context) *PropertiesDataStreamsListCall {
 16263  	c.ctx_ = ctx
 16264  	return c
 16265  }
 16266  
 16267  // Header returns a http.Header that can be modified by the caller to add
 16268  // headers to the request.
 16269  func (c *PropertiesDataStreamsListCall) Header() http.Header {
 16270  	if c.header_ == nil {
 16271  		c.header_ = make(http.Header)
 16272  	}
 16273  	return c.header_
 16274  }
 16275  
 16276  func (c *PropertiesDataStreamsListCall) doRequest(alt string) (*http.Response, error) {
 16277  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16278  	if c.ifNoneMatch_ != "" {
 16279  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16280  	}
 16281  	var body io.Reader = nil
 16282  	c.urlParams_.Set("alt", alt)
 16283  	c.urlParams_.Set("prettyPrint", "false")
 16284  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStreams")
 16285  	urls += "?" + c.urlParams_.Encode()
 16286  	req, err := http.NewRequest("GET", urls, body)
 16287  	if err != nil {
 16288  		return nil, err
 16289  	}
 16290  	req.Header = reqHeaders
 16291  	googleapi.Expand(req.URL, map[string]string{
 16292  		"parent": c.parent,
 16293  	})
 16294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16295  }
 16296  
 16297  // Do executes the "analyticsadmin.properties.dataStreams.list" call.
 16298  // Any non-2xx status code is an error. Response headers are in either
 16299  // *GoogleAnalyticsAdminV1alphaListDataStreamsResponse.ServerResponse.Header or
 16300  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 16301  // googleapi.IsNotModified to check whether the returned error was because
 16302  // http.StatusNotModified was returned.
 16303  func (c *PropertiesDataStreamsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListDataStreamsResponse, error) {
 16304  	gensupport.SetOptions(c.urlParams_, opts...)
 16305  	res, err := c.doRequest("json")
 16306  	if res != nil && res.StatusCode == http.StatusNotModified {
 16307  		if res.Body != nil {
 16308  			res.Body.Close()
 16309  		}
 16310  		return nil, gensupport.WrapError(&googleapi.Error{
 16311  			Code:   res.StatusCode,
 16312  			Header: res.Header,
 16313  		})
 16314  	}
 16315  	if err != nil {
 16316  		return nil, err
 16317  	}
 16318  	defer googleapi.CloseBody(res)
 16319  	if err := googleapi.CheckResponse(res); err != nil {
 16320  		return nil, gensupport.WrapError(err)
 16321  	}
 16322  	ret := &GoogleAnalyticsAdminV1alphaListDataStreamsResponse{
 16323  		ServerResponse: googleapi.ServerResponse{
 16324  			Header:         res.Header,
 16325  			HTTPStatusCode: res.StatusCode,
 16326  		},
 16327  	}
 16328  	target := &ret
 16329  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16330  		return nil, err
 16331  	}
 16332  	return ret, nil
 16333  }
 16334  
 16335  // Pages invokes f for each page of results.
 16336  // A non-nil error returned from f will halt the iteration.
 16337  // The provided context supersedes any context provided to the Context method.
 16338  func (c *PropertiesDataStreamsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListDataStreamsResponse) error) error {
 16339  	c.ctx_ = ctx
 16340  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16341  	for {
 16342  		x, err := c.Do()
 16343  		if err != nil {
 16344  			return err
 16345  		}
 16346  		if err := f(x); err != nil {
 16347  			return err
 16348  		}
 16349  		if x.NextPageToken == "" {
 16350  			return nil
 16351  		}
 16352  		c.PageToken(x.NextPageToken)
 16353  	}
 16354  }
 16355  
 16356  type PropertiesDataStreamsPatchCall struct {
 16357  	s                                     *Service
 16358  	name                                  string
 16359  	googleanalyticsadminv1alphadatastream *GoogleAnalyticsAdminV1alphaDataStream
 16360  	urlParams_                            gensupport.URLParams
 16361  	ctx_                                  context.Context
 16362  	header_                               http.Header
 16363  }
 16364  
 16365  // Patch: Updates a DataStream on a property.
 16366  //
 16367  //   - name: Output only. Resource name of this Data Stream. Format:
 16368  //     properties/{property_id}/dataStreams/{stream_id} Example:
 16369  //     "properties/1000/dataStreams/2000".
 16370  func (r *PropertiesDataStreamsService) Patch(name string, googleanalyticsadminv1alphadatastream *GoogleAnalyticsAdminV1alphaDataStream) *PropertiesDataStreamsPatchCall {
 16371  	c := &PropertiesDataStreamsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16372  	c.name = name
 16373  	c.googleanalyticsadminv1alphadatastream = googleanalyticsadminv1alphadatastream
 16374  	return c
 16375  }
 16376  
 16377  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 16378  // fields to be updated. Omitted fields will not be updated. To replace the
 16379  // entire entity, use one path with the string "*" to match all fields.
 16380  func (c *PropertiesDataStreamsPatchCall) UpdateMask(updateMask string) *PropertiesDataStreamsPatchCall {
 16381  	c.urlParams_.Set("updateMask", updateMask)
 16382  	return c
 16383  }
 16384  
 16385  // Fields allows partial responses to be retrieved. See
 16386  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16387  // details.
 16388  func (c *PropertiesDataStreamsPatchCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsPatchCall {
 16389  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16390  	return c
 16391  }
 16392  
 16393  // Context sets the context to be used in this call's Do method.
 16394  func (c *PropertiesDataStreamsPatchCall) Context(ctx context.Context) *PropertiesDataStreamsPatchCall {
 16395  	c.ctx_ = ctx
 16396  	return c
 16397  }
 16398  
 16399  // Header returns a http.Header that can be modified by the caller to add
 16400  // headers to the request.
 16401  func (c *PropertiesDataStreamsPatchCall) Header() http.Header {
 16402  	if c.header_ == nil {
 16403  		c.header_ = make(http.Header)
 16404  	}
 16405  	return c.header_
 16406  }
 16407  
 16408  func (c *PropertiesDataStreamsPatchCall) doRequest(alt string) (*http.Response, error) {
 16409  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16410  	var body io.Reader = nil
 16411  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadatastream)
 16412  	if err != nil {
 16413  		return nil, err
 16414  	}
 16415  	c.urlParams_.Set("alt", alt)
 16416  	c.urlParams_.Set("prettyPrint", "false")
 16417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16418  	urls += "?" + c.urlParams_.Encode()
 16419  	req, err := http.NewRequest("PATCH", urls, body)
 16420  	if err != nil {
 16421  		return nil, err
 16422  	}
 16423  	req.Header = reqHeaders
 16424  	googleapi.Expand(req.URL, map[string]string{
 16425  		"name": c.name,
 16426  	})
 16427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16428  }
 16429  
 16430  // Do executes the "analyticsadmin.properties.dataStreams.patch" call.
 16431  // Any non-2xx status code is an error. Response headers are in either
 16432  // *GoogleAnalyticsAdminV1alphaDataStream.ServerResponse.Header or (if a
 16433  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16434  // googleapi.IsNotModified to check whether the returned error was because
 16435  // http.StatusNotModified was returned.
 16436  func (c *PropertiesDataStreamsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataStream, error) {
 16437  	gensupport.SetOptions(c.urlParams_, opts...)
 16438  	res, err := c.doRequest("json")
 16439  	if res != nil && res.StatusCode == http.StatusNotModified {
 16440  		if res.Body != nil {
 16441  			res.Body.Close()
 16442  		}
 16443  		return nil, gensupport.WrapError(&googleapi.Error{
 16444  			Code:   res.StatusCode,
 16445  			Header: res.Header,
 16446  		})
 16447  	}
 16448  	if err != nil {
 16449  		return nil, err
 16450  	}
 16451  	defer googleapi.CloseBody(res)
 16452  	if err := googleapi.CheckResponse(res); err != nil {
 16453  		return nil, gensupport.WrapError(err)
 16454  	}
 16455  	ret := &GoogleAnalyticsAdminV1alphaDataStream{
 16456  		ServerResponse: googleapi.ServerResponse{
 16457  			Header:         res.Header,
 16458  			HTTPStatusCode: res.StatusCode,
 16459  		},
 16460  	}
 16461  	target := &ret
 16462  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16463  		return nil, err
 16464  	}
 16465  	return ret, nil
 16466  }
 16467  
 16468  type PropertiesDataStreamsUpdateDataRedactionSettingsCall struct {
 16469  	s                                                *Service
 16470  	name                                             string
 16471  	googleanalyticsadminv1alphadataredactionsettings *GoogleAnalyticsAdminV1alphaDataRedactionSettings
 16472  	urlParams_                                       gensupport.URLParams
 16473  	ctx_                                             context.Context
 16474  	header_                                          http.Header
 16475  }
 16476  
 16477  // UpdateDataRedactionSettings: Updates a DataRedactionSettings on a property.
 16478  //
 16479  //   - name: Output only. Name of this Data Redaction Settings resource. Format:
 16480  //     properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
 16481  //     Example: "properties/1000/dataStreams/2000/dataRedactionSettings".
 16482  func (r *PropertiesDataStreamsService) UpdateDataRedactionSettings(name string, googleanalyticsadminv1alphadataredactionsettings *GoogleAnalyticsAdminV1alphaDataRedactionSettings) *PropertiesDataStreamsUpdateDataRedactionSettingsCall {
 16483  	c := &PropertiesDataStreamsUpdateDataRedactionSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16484  	c.name = name
 16485  	c.googleanalyticsadminv1alphadataredactionsettings = googleanalyticsadminv1alphadataredactionsettings
 16486  	return c
 16487  }
 16488  
 16489  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 16490  // fields to be updated. Field names must be in snake case (e.g.,
 16491  // "field_to_update"). Omitted fields will not be updated. To replace the
 16492  // entire entity, use one path with the string "*" to match all fields.
 16493  func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) UpdateMask(updateMask string) *PropertiesDataStreamsUpdateDataRedactionSettingsCall {
 16494  	c.urlParams_.Set("updateMask", updateMask)
 16495  	return c
 16496  }
 16497  
 16498  // Fields allows partial responses to be retrieved. See
 16499  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16500  // details.
 16501  func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsUpdateDataRedactionSettingsCall {
 16502  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16503  	return c
 16504  }
 16505  
 16506  // Context sets the context to be used in this call's Do method.
 16507  func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) Context(ctx context.Context) *PropertiesDataStreamsUpdateDataRedactionSettingsCall {
 16508  	c.ctx_ = ctx
 16509  	return c
 16510  }
 16511  
 16512  // Header returns a http.Header that can be modified by the caller to add
 16513  // headers to the request.
 16514  func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) Header() http.Header {
 16515  	if c.header_ == nil {
 16516  		c.header_ = make(http.Header)
 16517  	}
 16518  	return c.header_
 16519  }
 16520  
 16521  func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) doRequest(alt string) (*http.Response, error) {
 16522  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16523  	var body io.Reader = nil
 16524  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadataredactionsettings)
 16525  	if err != nil {
 16526  		return nil, err
 16527  	}
 16528  	c.urlParams_.Set("alt", alt)
 16529  	c.urlParams_.Set("prettyPrint", "false")
 16530  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16531  	urls += "?" + c.urlParams_.Encode()
 16532  	req, err := http.NewRequest("PATCH", urls, body)
 16533  	if err != nil {
 16534  		return nil, err
 16535  	}
 16536  	req.Header = reqHeaders
 16537  	googleapi.Expand(req.URL, map[string]string{
 16538  		"name": c.name,
 16539  	})
 16540  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16541  }
 16542  
 16543  // Do executes the "analyticsadmin.properties.dataStreams.updateDataRedactionSettings" call.
 16544  // Any non-2xx status code is an error. Response headers are in either
 16545  // *GoogleAnalyticsAdminV1alphaDataRedactionSettings.ServerResponse.Header or
 16546  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 16547  // googleapi.IsNotModified to check whether the returned error was because
 16548  // http.StatusNotModified was returned.
 16549  func (c *PropertiesDataStreamsUpdateDataRedactionSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDataRedactionSettings, error) {
 16550  	gensupport.SetOptions(c.urlParams_, opts...)
 16551  	res, err := c.doRequest("json")
 16552  	if res != nil && res.StatusCode == http.StatusNotModified {
 16553  		if res.Body != nil {
 16554  			res.Body.Close()
 16555  		}
 16556  		return nil, gensupport.WrapError(&googleapi.Error{
 16557  			Code:   res.StatusCode,
 16558  			Header: res.Header,
 16559  		})
 16560  	}
 16561  	if err != nil {
 16562  		return nil, err
 16563  	}
 16564  	defer googleapi.CloseBody(res)
 16565  	if err := googleapi.CheckResponse(res); err != nil {
 16566  		return nil, gensupport.WrapError(err)
 16567  	}
 16568  	ret := &GoogleAnalyticsAdminV1alphaDataRedactionSettings{
 16569  		ServerResponse: googleapi.ServerResponse{
 16570  			Header:         res.Header,
 16571  			HTTPStatusCode: res.StatusCode,
 16572  		},
 16573  	}
 16574  	target := &ret
 16575  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16576  		return nil, err
 16577  	}
 16578  	return ret, nil
 16579  }
 16580  
 16581  type PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall struct {
 16582  	s                                                      *Service
 16583  	name                                                   string
 16584  	googleanalyticsadminv1alphaenhancedmeasurementsettings *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings
 16585  	urlParams_                                             gensupport.URLParams
 16586  	ctx_                                                   context.Context
 16587  	header_                                                http.Header
 16588  }
 16589  
 16590  // UpdateEnhancedMeasurementSettings: Updates the enhanced measurement settings
 16591  // for this data stream. Note that the stream must enable enhanced measurement
 16592  // for these settings to take effect.
 16593  //
 16594  //   - name: Output only. Resource name of the Enhanced Measurement Settings.
 16595  //     Format:
 16596  //     properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSetti
 16597  //     ngs Example:
 16598  //     "properties/1000/dataStreams/2000/enhancedMeasurementSettings".
 16599  func (r *PropertiesDataStreamsService) UpdateEnhancedMeasurementSettings(name string, googleanalyticsadminv1alphaenhancedmeasurementsettings *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall {
 16600  	c := &PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16601  	c.name = name
 16602  	c.googleanalyticsadminv1alphaenhancedmeasurementsettings = googleanalyticsadminv1alphaenhancedmeasurementsettings
 16603  	return c
 16604  }
 16605  
 16606  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 16607  // fields to be updated. Field names must be in snake case (e.g.,
 16608  // "field_to_update"). Omitted fields will not be updated. To replace the
 16609  // entire entity, use one path with the string "*" to match all fields.
 16610  func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) UpdateMask(updateMask string) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall {
 16611  	c.urlParams_.Set("updateMask", updateMask)
 16612  	return c
 16613  }
 16614  
 16615  // Fields allows partial responses to be retrieved. See
 16616  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16617  // details.
 16618  func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall {
 16619  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16620  	return c
 16621  }
 16622  
 16623  // Context sets the context to be used in this call's Do method.
 16624  func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Context(ctx context.Context) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall {
 16625  	c.ctx_ = ctx
 16626  	return c
 16627  }
 16628  
 16629  // Header returns a http.Header that can be modified by the caller to add
 16630  // headers to the request.
 16631  func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Header() http.Header {
 16632  	if c.header_ == nil {
 16633  		c.header_ = make(http.Header)
 16634  	}
 16635  	return c.header_
 16636  }
 16637  
 16638  func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) doRequest(alt string) (*http.Response, error) {
 16639  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16640  	var body io.Reader = nil
 16641  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaenhancedmeasurementsettings)
 16642  	if err != nil {
 16643  		return nil, err
 16644  	}
 16645  	c.urlParams_.Set("alt", alt)
 16646  	c.urlParams_.Set("prettyPrint", "false")
 16647  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16648  	urls += "?" + c.urlParams_.Encode()
 16649  	req, err := http.NewRequest("PATCH", urls, body)
 16650  	if err != nil {
 16651  		return nil, err
 16652  	}
 16653  	req.Header = reqHeaders
 16654  	googleapi.Expand(req.URL, map[string]string{
 16655  		"name": c.name,
 16656  	})
 16657  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16658  }
 16659  
 16660  // Do executes the "analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings" call.
 16661  // Any non-2xx status code is an error. Response headers are in either
 16662  // *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.ServerResponse.Header
 16663  //
 16664  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 16665  //
 16666  // Use googleapi.IsNotModified to check whether the returned error was because
 16667  // http.StatusNotModified was returned.
 16668  func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings, error) {
 16669  	gensupport.SetOptions(c.urlParams_, opts...)
 16670  	res, err := c.doRequest("json")
 16671  	if res != nil && res.StatusCode == http.StatusNotModified {
 16672  		if res.Body != nil {
 16673  			res.Body.Close()
 16674  		}
 16675  		return nil, gensupport.WrapError(&googleapi.Error{
 16676  			Code:   res.StatusCode,
 16677  			Header: res.Header,
 16678  		})
 16679  	}
 16680  	if err != nil {
 16681  		return nil, err
 16682  	}
 16683  	defer googleapi.CloseBody(res)
 16684  	if err := googleapi.CheckResponse(res); err != nil {
 16685  		return nil, gensupport.WrapError(err)
 16686  	}
 16687  	ret := &GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings{
 16688  		ServerResponse: googleapi.ServerResponse{
 16689  			Header:         res.Header,
 16690  			HTTPStatusCode: res.StatusCode,
 16691  		},
 16692  	}
 16693  	target := &ret
 16694  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16695  		return nil, err
 16696  	}
 16697  	return ret, nil
 16698  }
 16699  
 16700  type PropertiesDataStreamsEventCreateRulesCreateCall struct {
 16701  	s                                          *Service
 16702  	parent                                     string
 16703  	googleanalyticsadminv1alphaeventcreaterule *GoogleAnalyticsAdminV1alphaEventCreateRule
 16704  	urlParams_                                 gensupport.URLParams
 16705  	ctx_                                       context.Context
 16706  	header_                                    http.Header
 16707  }
 16708  
 16709  // Create: Creates an EventCreateRule.
 16710  //
 16711  // - parent: Example format: properties/123/dataStreams/456.
 16712  func (r *PropertiesDataStreamsEventCreateRulesService) Create(parent string, googleanalyticsadminv1alphaeventcreaterule *GoogleAnalyticsAdminV1alphaEventCreateRule) *PropertiesDataStreamsEventCreateRulesCreateCall {
 16713  	c := &PropertiesDataStreamsEventCreateRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16714  	c.parent = parent
 16715  	c.googleanalyticsadminv1alphaeventcreaterule = googleanalyticsadminv1alphaeventcreaterule
 16716  	return c
 16717  }
 16718  
 16719  // Fields allows partial responses to be retrieved. See
 16720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16721  // details.
 16722  func (c *PropertiesDataStreamsEventCreateRulesCreateCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventCreateRulesCreateCall {
 16723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16724  	return c
 16725  }
 16726  
 16727  // Context sets the context to be used in this call's Do method.
 16728  func (c *PropertiesDataStreamsEventCreateRulesCreateCall) Context(ctx context.Context) *PropertiesDataStreamsEventCreateRulesCreateCall {
 16729  	c.ctx_ = ctx
 16730  	return c
 16731  }
 16732  
 16733  // Header returns a http.Header that can be modified by the caller to add
 16734  // headers to the request.
 16735  func (c *PropertiesDataStreamsEventCreateRulesCreateCall) Header() http.Header {
 16736  	if c.header_ == nil {
 16737  		c.header_ = make(http.Header)
 16738  	}
 16739  	return c.header_
 16740  }
 16741  
 16742  func (c *PropertiesDataStreamsEventCreateRulesCreateCall) doRequest(alt string) (*http.Response, error) {
 16743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16744  	var body io.Reader = nil
 16745  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaeventcreaterule)
 16746  	if err != nil {
 16747  		return nil, err
 16748  	}
 16749  	c.urlParams_.Set("alt", alt)
 16750  	c.urlParams_.Set("prettyPrint", "false")
 16751  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/eventCreateRules")
 16752  	urls += "?" + c.urlParams_.Encode()
 16753  	req, err := http.NewRequest("POST", urls, body)
 16754  	if err != nil {
 16755  		return nil, err
 16756  	}
 16757  	req.Header = reqHeaders
 16758  	googleapi.Expand(req.URL, map[string]string{
 16759  		"parent": c.parent,
 16760  	})
 16761  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16762  }
 16763  
 16764  // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.create" call.
 16765  // Any non-2xx status code is an error. Response headers are in either
 16766  // *GoogleAnalyticsAdminV1alphaEventCreateRule.ServerResponse.Header or (if a
 16767  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16768  // googleapi.IsNotModified to check whether the returned error was because
 16769  // http.StatusNotModified was returned.
 16770  func (c *PropertiesDataStreamsEventCreateRulesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEventCreateRule, error) {
 16771  	gensupport.SetOptions(c.urlParams_, opts...)
 16772  	res, err := c.doRequest("json")
 16773  	if res != nil && res.StatusCode == http.StatusNotModified {
 16774  		if res.Body != nil {
 16775  			res.Body.Close()
 16776  		}
 16777  		return nil, gensupport.WrapError(&googleapi.Error{
 16778  			Code:   res.StatusCode,
 16779  			Header: res.Header,
 16780  		})
 16781  	}
 16782  	if err != nil {
 16783  		return nil, err
 16784  	}
 16785  	defer googleapi.CloseBody(res)
 16786  	if err := googleapi.CheckResponse(res); err != nil {
 16787  		return nil, gensupport.WrapError(err)
 16788  	}
 16789  	ret := &GoogleAnalyticsAdminV1alphaEventCreateRule{
 16790  		ServerResponse: googleapi.ServerResponse{
 16791  			Header:         res.Header,
 16792  			HTTPStatusCode: res.StatusCode,
 16793  		},
 16794  	}
 16795  	target := &ret
 16796  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16797  		return nil, err
 16798  	}
 16799  	return ret, nil
 16800  }
 16801  
 16802  type PropertiesDataStreamsEventCreateRulesDeleteCall struct {
 16803  	s          *Service
 16804  	name       string
 16805  	urlParams_ gensupport.URLParams
 16806  	ctx_       context.Context
 16807  	header_    http.Header
 16808  }
 16809  
 16810  // Delete: Deletes an EventCreateRule.
 16811  //
 16812  // - name: Example format: properties/123/dataStreams/456/eventCreateRules/789.
 16813  func (r *PropertiesDataStreamsEventCreateRulesService) Delete(name string) *PropertiesDataStreamsEventCreateRulesDeleteCall {
 16814  	c := &PropertiesDataStreamsEventCreateRulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16815  	c.name = name
 16816  	return c
 16817  }
 16818  
 16819  // Fields allows partial responses to be retrieved. See
 16820  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16821  // details.
 16822  func (c *PropertiesDataStreamsEventCreateRulesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventCreateRulesDeleteCall {
 16823  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16824  	return c
 16825  }
 16826  
 16827  // Context sets the context to be used in this call's Do method.
 16828  func (c *PropertiesDataStreamsEventCreateRulesDeleteCall) Context(ctx context.Context) *PropertiesDataStreamsEventCreateRulesDeleteCall {
 16829  	c.ctx_ = ctx
 16830  	return c
 16831  }
 16832  
 16833  // Header returns a http.Header that can be modified by the caller to add
 16834  // headers to the request.
 16835  func (c *PropertiesDataStreamsEventCreateRulesDeleteCall) Header() http.Header {
 16836  	if c.header_ == nil {
 16837  		c.header_ = make(http.Header)
 16838  	}
 16839  	return c.header_
 16840  }
 16841  
 16842  func (c *PropertiesDataStreamsEventCreateRulesDeleteCall) doRequest(alt string) (*http.Response, error) {
 16843  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16844  	var body io.Reader = nil
 16845  	c.urlParams_.Set("alt", alt)
 16846  	c.urlParams_.Set("prettyPrint", "false")
 16847  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16848  	urls += "?" + c.urlParams_.Encode()
 16849  	req, err := http.NewRequest("DELETE", urls, body)
 16850  	if err != nil {
 16851  		return nil, err
 16852  	}
 16853  	req.Header = reqHeaders
 16854  	googleapi.Expand(req.URL, map[string]string{
 16855  		"name": c.name,
 16856  	})
 16857  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16858  }
 16859  
 16860  // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.delete" call.
 16861  // Any non-2xx status code is an error. Response headers are in either
 16862  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 16863  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16864  // check whether the returned error was because http.StatusNotModified was
 16865  // returned.
 16866  func (c *PropertiesDataStreamsEventCreateRulesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 16867  	gensupport.SetOptions(c.urlParams_, opts...)
 16868  	res, err := c.doRequest("json")
 16869  	if res != nil && res.StatusCode == http.StatusNotModified {
 16870  		if res.Body != nil {
 16871  			res.Body.Close()
 16872  		}
 16873  		return nil, gensupport.WrapError(&googleapi.Error{
 16874  			Code:   res.StatusCode,
 16875  			Header: res.Header,
 16876  		})
 16877  	}
 16878  	if err != nil {
 16879  		return nil, err
 16880  	}
 16881  	defer googleapi.CloseBody(res)
 16882  	if err := googleapi.CheckResponse(res); err != nil {
 16883  		return nil, gensupport.WrapError(err)
 16884  	}
 16885  	ret := &GoogleProtobufEmpty{
 16886  		ServerResponse: googleapi.ServerResponse{
 16887  			Header:         res.Header,
 16888  			HTTPStatusCode: res.StatusCode,
 16889  		},
 16890  	}
 16891  	target := &ret
 16892  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16893  		return nil, err
 16894  	}
 16895  	return ret, nil
 16896  }
 16897  
 16898  type PropertiesDataStreamsEventCreateRulesGetCall struct {
 16899  	s            *Service
 16900  	name         string
 16901  	urlParams_   gensupport.URLParams
 16902  	ifNoneMatch_ string
 16903  	ctx_         context.Context
 16904  	header_      http.Header
 16905  }
 16906  
 16907  // Get: Lookup for a single EventCreateRule.
 16908  //
 16909  //   - name: The name of the EventCreateRule to get. Example format:
 16910  //     properties/123/dataStreams/456/eventCreateRules/789.
 16911  func (r *PropertiesDataStreamsEventCreateRulesService) Get(name string) *PropertiesDataStreamsEventCreateRulesGetCall {
 16912  	c := &PropertiesDataStreamsEventCreateRulesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16913  	c.name = name
 16914  	return c
 16915  }
 16916  
 16917  // Fields allows partial responses to be retrieved. See
 16918  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16919  // details.
 16920  func (c *PropertiesDataStreamsEventCreateRulesGetCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventCreateRulesGetCall {
 16921  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16922  	return c
 16923  }
 16924  
 16925  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16926  // object's ETag matches the given value. This is useful for getting updates
 16927  // only after the object has changed since the last request.
 16928  func (c *PropertiesDataStreamsEventCreateRulesGetCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsEventCreateRulesGetCall {
 16929  	c.ifNoneMatch_ = entityTag
 16930  	return c
 16931  }
 16932  
 16933  // Context sets the context to be used in this call's Do method.
 16934  func (c *PropertiesDataStreamsEventCreateRulesGetCall) Context(ctx context.Context) *PropertiesDataStreamsEventCreateRulesGetCall {
 16935  	c.ctx_ = ctx
 16936  	return c
 16937  }
 16938  
 16939  // Header returns a http.Header that can be modified by the caller to add
 16940  // headers to the request.
 16941  func (c *PropertiesDataStreamsEventCreateRulesGetCall) Header() http.Header {
 16942  	if c.header_ == nil {
 16943  		c.header_ = make(http.Header)
 16944  	}
 16945  	return c.header_
 16946  }
 16947  
 16948  func (c *PropertiesDataStreamsEventCreateRulesGetCall) doRequest(alt string) (*http.Response, error) {
 16949  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16950  	if c.ifNoneMatch_ != "" {
 16951  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16952  	}
 16953  	var body io.Reader = nil
 16954  	c.urlParams_.Set("alt", alt)
 16955  	c.urlParams_.Set("prettyPrint", "false")
 16956  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16957  	urls += "?" + c.urlParams_.Encode()
 16958  	req, err := http.NewRequest("GET", urls, body)
 16959  	if err != nil {
 16960  		return nil, err
 16961  	}
 16962  	req.Header = reqHeaders
 16963  	googleapi.Expand(req.URL, map[string]string{
 16964  		"name": c.name,
 16965  	})
 16966  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16967  }
 16968  
 16969  // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.get" call.
 16970  // Any non-2xx status code is an error. Response headers are in either
 16971  // *GoogleAnalyticsAdminV1alphaEventCreateRule.ServerResponse.Header or (if a
 16972  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16973  // googleapi.IsNotModified to check whether the returned error was because
 16974  // http.StatusNotModified was returned.
 16975  func (c *PropertiesDataStreamsEventCreateRulesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEventCreateRule, error) {
 16976  	gensupport.SetOptions(c.urlParams_, opts...)
 16977  	res, err := c.doRequest("json")
 16978  	if res != nil && res.StatusCode == http.StatusNotModified {
 16979  		if res.Body != nil {
 16980  			res.Body.Close()
 16981  		}
 16982  		return nil, gensupport.WrapError(&googleapi.Error{
 16983  			Code:   res.StatusCode,
 16984  			Header: res.Header,
 16985  		})
 16986  	}
 16987  	if err != nil {
 16988  		return nil, err
 16989  	}
 16990  	defer googleapi.CloseBody(res)
 16991  	if err := googleapi.CheckResponse(res); err != nil {
 16992  		return nil, gensupport.WrapError(err)
 16993  	}
 16994  	ret := &GoogleAnalyticsAdminV1alphaEventCreateRule{
 16995  		ServerResponse: googleapi.ServerResponse{
 16996  			Header:         res.Header,
 16997  			HTTPStatusCode: res.StatusCode,
 16998  		},
 16999  	}
 17000  	target := &ret
 17001  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17002  		return nil, err
 17003  	}
 17004  	return ret, nil
 17005  }
 17006  
 17007  type PropertiesDataStreamsEventCreateRulesListCall struct {
 17008  	s            *Service
 17009  	parent       string
 17010  	urlParams_   gensupport.URLParams
 17011  	ifNoneMatch_ string
 17012  	ctx_         context.Context
 17013  	header_      http.Header
 17014  }
 17015  
 17016  // List: Lists EventCreateRules on a web data stream.
 17017  //
 17018  // - parent: Example format: properties/123/dataStreams/456.
 17019  func (r *PropertiesDataStreamsEventCreateRulesService) List(parent string) *PropertiesDataStreamsEventCreateRulesListCall {
 17020  	c := &PropertiesDataStreamsEventCreateRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17021  	c.parent = parent
 17022  	return c
 17023  }
 17024  
 17025  // PageSize sets the optional parameter "pageSize": The maximum number of
 17026  // resources to return. If unspecified, at most 50 resources will be returned.
 17027  // The maximum value is 200 (higher values will be coerced to the maximum).
 17028  func (c *PropertiesDataStreamsEventCreateRulesListCall) PageSize(pageSize int64) *PropertiesDataStreamsEventCreateRulesListCall {
 17029  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17030  	return c
 17031  }
 17032  
 17033  // PageToken sets the optional parameter "pageToken": A page token, received
 17034  // from a previous `ListEventCreateRules` call. Provide this to retrieve the
 17035  // subsequent page. When paginating, all other parameters provided to
 17036  // `ListEventCreateRules` must match the call that provided the page token.
 17037  func (c *PropertiesDataStreamsEventCreateRulesListCall) PageToken(pageToken string) *PropertiesDataStreamsEventCreateRulesListCall {
 17038  	c.urlParams_.Set("pageToken", pageToken)
 17039  	return c
 17040  }
 17041  
 17042  // Fields allows partial responses to be retrieved. See
 17043  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17044  // details.
 17045  func (c *PropertiesDataStreamsEventCreateRulesListCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventCreateRulesListCall {
 17046  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17047  	return c
 17048  }
 17049  
 17050  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17051  // object's ETag matches the given value. This is useful for getting updates
 17052  // only after the object has changed since the last request.
 17053  func (c *PropertiesDataStreamsEventCreateRulesListCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsEventCreateRulesListCall {
 17054  	c.ifNoneMatch_ = entityTag
 17055  	return c
 17056  }
 17057  
 17058  // Context sets the context to be used in this call's Do method.
 17059  func (c *PropertiesDataStreamsEventCreateRulesListCall) Context(ctx context.Context) *PropertiesDataStreamsEventCreateRulesListCall {
 17060  	c.ctx_ = ctx
 17061  	return c
 17062  }
 17063  
 17064  // Header returns a http.Header that can be modified by the caller to add
 17065  // headers to the request.
 17066  func (c *PropertiesDataStreamsEventCreateRulesListCall) Header() http.Header {
 17067  	if c.header_ == nil {
 17068  		c.header_ = make(http.Header)
 17069  	}
 17070  	return c.header_
 17071  }
 17072  
 17073  func (c *PropertiesDataStreamsEventCreateRulesListCall) doRequest(alt string) (*http.Response, error) {
 17074  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17075  	if c.ifNoneMatch_ != "" {
 17076  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17077  	}
 17078  	var body io.Reader = nil
 17079  	c.urlParams_.Set("alt", alt)
 17080  	c.urlParams_.Set("prettyPrint", "false")
 17081  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/eventCreateRules")
 17082  	urls += "?" + c.urlParams_.Encode()
 17083  	req, err := http.NewRequest("GET", urls, body)
 17084  	if err != nil {
 17085  		return nil, err
 17086  	}
 17087  	req.Header = reqHeaders
 17088  	googleapi.Expand(req.URL, map[string]string{
 17089  		"parent": c.parent,
 17090  	})
 17091  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17092  }
 17093  
 17094  // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.list" call.
 17095  // Any non-2xx status code is an error. Response headers are in either
 17096  // *GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse.ServerResponse.Heade
 17097  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 17098  // Use googleapi.IsNotModified to check whether the returned error was because
 17099  // http.StatusNotModified was returned.
 17100  func (c *PropertiesDataStreamsEventCreateRulesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse, error) {
 17101  	gensupport.SetOptions(c.urlParams_, opts...)
 17102  	res, err := c.doRequest("json")
 17103  	if res != nil && res.StatusCode == http.StatusNotModified {
 17104  		if res.Body != nil {
 17105  			res.Body.Close()
 17106  		}
 17107  		return nil, gensupport.WrapError(&googleapi.Error{
 17108  			Code:   res.StatusCode,
 17109  			Header: res.Header,
 17110  		})
 17111  	}
 17112  	if err != nil {
 17113  		return nil, err
 17114  	}
 17115  	defer googleapi.CloseBody(res)
 17116  	if err := googleapi.CheckResponse(res); err != nil {
 17117  		return nil, gensupport.WrapError(err)
 17118  	}
 17119  	ret := &GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse{
 17120  		ServerResponse: googleapi.ServerResponse{
 17121  			Header:         res.Header,
 17122  			HTTPStatusCode: res.StatusCode,
 17123  		},
 17124  	}
 17125  	target := &ret
 17126  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17127  		return nil, err
 17128  	}
 17129  	return ret, nil
 17130  }
 17131  
 17132  // Pages invokes f for each page of results.
 17133  // A non-nil error returned from f will halt the iteration.
 17134  // The provided context supersedes any context provided to the Context method.
 17135  func (c *PropertiesDataStreamsEventCreateRulesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse) error) error {
 17136  	c.ctx_ = ctx
 17137  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17138  	for {
 17139  		x, err := c.Do()
 17140  		if err != nil {
 17141  			return err
 17142  		}
 17143  		if err := f(x); err != nil {
 17144  			return err
 17145  		}
 17146  		if x.NextPageToken == "" {
 17147  			return nil
 17148  		}
 17149  		c.PageToken(x.NextPageToken)
 17150  	}
 17151  }
 17152  
 17153  type PropertiesDataStreamsEventCreateRulesPatchCall struct {
 17154  	s                                          *Service
 17155  	name                                       string
 17156  	googleanalyticsadminv1alphaeventcreaterule *GoogleAnalyticsAdminV1alphaEventCreateRule
 17157  	urlParams_                                 gensupport.URLParams
 17158  	ctx_                                       context.Context
 17159  	header_                                    http.Header
 17160  }
 17161  
 17162  // Patch: Updates an EventCreateRule.
 17163  //
 17164  //   - name: Output only. Resource name for this EventCreateRule resource.
 17165  //     Format:
 17166  //     properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_cre
 17167  //     ate_rule}.
 17168  func (r *PropertiesDataStreamsEventCreateRulesService) Patch(name string, googleanalyticsadminv1alphaeventcreaterule *GoogleAnalyticsAdminV1alphaEventCreateRule) *PropertiesDataStreamsEventCreateRulesPatchCall {
 17169  	c := &PropertiesDataStreamsEventCreateRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17170  	c.name = name
 17171  	c.googleanalyticsadminv1alphaeventcreaterule = googleanalyticsadminv1alphaeventcreaterule
 17172  	return c
 17173  }
 17174  
 17175  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 17176  // fields to be updated. Field names must be in snake case (e.g.,
 17177  // "field_to_update"). Omitted fields will not be updated. To replace the
 17178  // entire entity, use one path with the string "*" to match all fields.
 17179  func (c *PropertiesDataStreamsEventCreateRulesPatchCall) UpdateMask(updateMask string) *PropertiesDataStreamsEventCreateRulesPatchCall {
 17180  	c.urlParams_.Set("updateMask", updateMask)
 17181  	return c
 17182  }
 17183  
 17184  // Fields allows partial responses to be retrieved. See
 17185  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17186  // details.
 17187  func (c *PropertiesDataStreamsEventCreateRulesPatchCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventCreateRulesPatchCall {
 17188  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17189  	return c
 17190  }
 17191  
 17192  // Context sets the context to be used in this call's Do method.
 17193  func (c *PropertiesDataStreamsEventCreateRulesPatchCall) Context(ctx context.Context) *PropertiesDataStreamsEventCreateRulesPatchCall {
 17194  	c.ctx_ = ctx
 17195  	return c
 17196  }
 17197  
 17198  // Header returns a http.Header that can be modified by the caller to add
 17199  // headers to the request.
 17200  func (c *PropertiesDataStreamsEventCreateRulesPatchCall) Header() http.Header {
 17201  	if c.header_ == nil {
 17202  		c.header_ = make(http.Header)
 17203  	}
 17204  	return c.header_
 17205  }
 17206  
 17207  func (c *PropertiesDataStreamsEventCreateRulesPatchCall) doRequest(alt string) (*http.Response, error) {
 17208  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17209  	var body io.Reader = nil
 17210  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaeventcreaterule)
 17211  	if err != nil {
 17212  		return nil, err
 17213  	}
 17214  	c.urlParams_.Set("alt", alt)
 17215  	c.urlParams_.Set("prettyPrint", "false")
 17216  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17217  	urls += "?" + c.urlParams_.Encode()
 17218  	req, err := http.NewRequest("PATCH", urls, body)
 17219  	if err != nil {
 17220  		return nil, err
 17221  	}
 17222  	req.Header = reqHeaders
 17223  	googleapi.Expand(req.URL, map[string]string{
 17224  		"name": c.name,
 17225  	})
 17226  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17227  }
 17228  
 17229  // Do executes the "analyticsadmin.properties.dataStreams.eventCreateRules.patch" call.
 17230  // Any non-2xx status code is an error. Response headers are in either
 17231  // *GoogleAnalyticsAdminV1alphaEventCreateRule.ServerResponse.Header or (if a
 17232  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17233  // googleapi.IsNotModified to check whether the returned error was because
 17234  // http.StatusNotModified was returned.
 17235  func (c *PropertiesDataStreamsEventCreateRulesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEventCreateRule, error) {
 17236  	gensupport.SetOptions(c.urlParams_, opts...)
 17237  	res, err := c.doRequest("json")
 17238  	if res != nil && res.StatusCode == http.StatusNotModified {
 17239  		if res.Body != nil {
 17240  			res.Body.Close()
 17241  		}
 17242  		return nil, gensupport.WrapError(&googleapi.Error{
 17243  			Code:   res.StatusCode,
 17244  			Header: res.Header,
 17245  		})
 17246  	}
 17247  	if err != nil {
 17248  		return nil, err
 17249  	}
 17250  	defer googleapi.CloseBody(res)
 17251  	if err := googleapi.CheckResponse(res); err != nil {
 17252  		return nil, gensupport.WrapError(err)
 17253  	}
 17254  	ret := &GoogleAnalyticsAdminV1alphaEventCreateRule{
 17255  		ServerResponse: googleapi.ServerResponse{
 17256  			Header:         res.Header,
 17257  			HTTPStatusCode: res.StatusCode,
 17258  		},
 17259  	}
 17260  	target := &ret
 17261  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17262  		return nil, err
 17263  	}
 17264  	return ret, nil
 17265  }
 17266  
 17267  type PropertiesDataStreamsMeasurementProtocolSecretsCreateCall struct {
 17268  	s                                                    *Service
 17269  	parent                                               string
 17270  	googleanalyticsadminv1alphameasurementprotocolsecret *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
 17271  	urlParams_                                           gensupport.URLParams
 17272  	ctx_                                                 context.Context
 17273  	header_                                              http.Header
 17274  }
 17275  
 17276  // Create: Creates a measurement protocol secret.
 17277  //
 17278  //   - parent: The parent resource where this secret will be created. Format:
 17279  //     properties/{property}/dataStreams/{dataStream}.
 17280  func (r *PropertiesDataStreamsMeasurementProtocolSecretsService) Create(parent string, googleanalyticsadminv1alphameasurementprotocolsecret *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret) *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall {
 17281  	c := &PropertiesDataStreamsMeasurementProtocolSecretsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17282  	c.parent = parent
 17283  	c.googleanalyticsadminv1alphameasurementprotocolsecret = googleanalyticsadminv1alphameasurementprotocolsecret
 17284  	return c
 17285  }
 17286  
 17287  // Fields allows partial responses to be retrieved. See
 17288  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17289  // details.
 17290  func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall {
 17291  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17292  	return c
 17293  }
 17294  
 17295  // Context sets the context to be used in this call's Do method.
 17296  func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) Context(ctx context.Context) *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall {
 17297  	c.ctx_ = ctx
 17298  	return c
 17299  }
 17300  
 17301  // Header returns a http.Header that can be modified by the caller to add
 17302  // headers to the request.
 17303  func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) Header() http.Header {
 17304  	if c.header_ == nil {
 17305  		c.header_ = make(http.Header)
 17306  	}
 17307  	return c.header_
 17308  }
 17309  
 17310  func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) doRequest(alt string) (*http.Response, error) {
 17311  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17312  	var body io.Reader = nil
 17313  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphameasurementprotocolsecret)
 17314  	if err != nil {
 17315  		return nil, err
 17316  	}
 17317  	c.urlParams_.Set("alt", alt)
 17318  	c.urlParams_.Set("prettyPrint", "false")
 17319  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/measurementProtocolSecrets")
 17320  	urls += "?" + c.urlParams_.Encode()
 17321  	req, err := http.NewRequest("POST", urls, body)
 17322  	if err != nil {
 17323  		return nil, err
 17324  	}
 17325  	req.Header = reqHeaders
 17326  	googleapi.Expand(req.URL, map[string]string{
 17327  		"parent": c.parent,
 17328  	})
 17329  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17330  }
 17331  
 17332  // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.create" call.
 17333  // Any non-2xx status code is an error. Response headers are in either
 17334  // *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.ServerResponse.Header
 17335  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 17336  // Use googleapi.IsNotModified to check whether the returned error was because
 17337  // http.StatusNotModified was returned.
 17338  func (c *PropertiesDataStreamsMeasurementProtocolSecretsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, error) {
 17339  	gensupport.SetOptions(c.urlParams_, opts...)
 17340  	res, err := c.doRequest("json")
 17341  	if res != nil && res.StatusCode == http.StatusNotModified {
 17342  		if res.Body != nil {
 17343  			res.Body.Close()
 17344  		}
 17345  		return nil, gensupport.WrapError(&googleapi.Error{
 17346  			Code:   res.StatusCode,
 17347  			Header: res.Header,
 17348  		})
 17349  	}
 17350  	if err != nil {
 17351  		return nil, err
 17352  	}
 17353  	defer googleapi.CloseBody(res)
 17354  	if err := googleapi.CheckResponse(res); err != nil {
 17355  		return nil, gensupport.WrapError(err)
 17356  	}
 17357  	ret := &GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret{
 17358  		ServerResponse: googleapi.ServerResponse{
 17359  			Header:         res.Header,
 17360  			HTTPStatusCode: res.StatusCode,
 17361  		},
 17362  	}
 17363  	target := &ret
 17364  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17365  		return nil, err
 17366  	}
 17367  	return ret, nil
 17368  }
 17369  
 17370  type PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall struct {
 17371  	s          *Service
 17372  	name       string
 17373  	urlParams_ gensupport.URLParams
 17374  	ctx_       context.Context
 17375  	header_    http.Header
 17376  }
 17377  
 17378  // Delete: Deletes target MeasurementProtocolSecret.
 17379  //
 17380  //   - name: The name of the MeasurementProtocolSecret to delete. Format:
 17381  //     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{
 17382  //     measurementProtocolSecret}.
 17383  func (r *PropertiesDataStreamsMeasurementProtocolSecretsService) Delete(name string) *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall {
 17384  	c := &PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17385  	c.name = name
 17386  	return c
 17387  }
 17388  
 17389  // Fields allows partial responses to be retrieved. See
 17390  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17391  // details.
 17392  func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall {
 17393  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17394  	return c
 17395  }
 17396  
 17397  // Context sets the context to be used in this call's Do method.
 17398  func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) Context(ctx context.Context) *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall {
 17399  	c.ctx_ = ctx
 17400  	return c
 17401  }
 17402  
 17403  // Header returns a http.Header that can be modified by the caller to add
 17404  // headers to the request.
 17405  func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) Header() http.Header {
 17406  	if c.header_ == nil {
 17407  		c.header_ = make(http.Header)
 17408  	}
 17409  	return c.header_
 17410  }
 17411  
 17412  func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) doRequest(alt string) (*http.Response, error) {
 17413  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17414  	var body io.Reader = nil
 17415  	c.urlParams_.Set("alt", alt)
 17416  	c.urlParams_.Set("prettyPrint", "false")
 17417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17418  	urls += "?" + c.urlParams_.Encode()
 17419  	req, err := http.NewRequest("DELETE", urls, body)
 17420  	if err != nil {
 17421  		return nil, err
 17422  	}
 17423  	req.Header = reqHeaders
 17424  	googleapi.Expand(req.URL, map[string]string{
 17425  		"name": c.name,
 17426  	})
 17427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17428  }
 17429  
 17430  // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.delete" call.
 17431  // Any non-2xx status code is an error. Response headers are in either
 17432  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 17433  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17434  // check whether the returned error was because http.StatusNotModified was
 17435  // returned.
 17436  func (c *PropertiesDataStreamsMeasurementProtocolSecretsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 17437  	gensupport.SetOptions(c.urlParams_, opts...)
 17438  	res, err := c.doRequest("json")
 17439  	if res != nil && res.StatusCode == http.StatusNotModified {
 17440  		if res.Body != nil {
 17441  			res.Body.Close()
 17442  		}
 17443  		return nil, gensupport.WrapError(&googleapi.Error{
 17444  			Code:   res.StatusCode,
 17445  			Header: res.Header,
 17446  		})
 17447  	}
 17448  	if err != nil {
 17449  		return nil, err
 17450  	}
 17451  	defer googleapi.CloseBody(res)
 17452  	if err := googleapi.CheckResponse(res); err != nil {
 17453  		return nil, gensupport.WrapError(err)
 17454  	}
 17455  	ret := &GoogleProtobufEmpty{
 17456  		ServerResponse: googleapi.ServerResponse{
 17457  			Header:         res.Header,
 17458  			HTTPStatusCode: res.StatusCode,
 17459  		},
 17460  	}
 17461  	target := &ret
 17462  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17463  		return nil, err
 17464  	}
 17465  	return ret, nil
 17466  }
 17467  
 17468  type PropertiesDataStreamsMeasurementProtocolSecretsGetCall struct {
 17469  	s            *Service
 17470  	name         string
 17471  	urlParams_   gensupport.URLParams
 17472  	ifNoneMatch_ string
 17473  	ctx_         context.Context
 17474  	header_      http.Header
 17475  }
 17476  
 17477  // Get: Lookup for a single "GA4" MeasurementProtocolSecret.
 17478  //
 17479  //   - name: The name of the measurement protocol secret to lookup. Format:
 17480  //     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{
 17481  //     measurementProtocolSecret}.
 17482  func (r *PropertiesDataStreamsMeasurementProtocolSecretsService) Get(name string) *PropertiesDataStreamsMeasurementProtocolSecretsGetCall {
 17483  	c := &PropertiesDataStreamsMeasurementProtocolSecretsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17484  	c.name = name
 17485  	return c
 17486  }
 17487  
 17488  // Fields allows partial responses to be retrieved. See
 17489  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17490  // details.
 17491  func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsMeasurementProtocolSecretsGetCall {
 17492  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17493  	return c
 17494  }
 17495  
 17496  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17497  // object's ETag matches the given value. This is useful for getting updates
 17498  // only after the object has changed since the last request.
 17499  func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsMeasurementProtocolSecretsGetCall {
 17500  	c.ifNoneMatch_ = entityTag
 17501  	return c
 17502  }
 17503  
 17504  // Context sets the context to be used in this call's Do method.
 17505  func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) Context(ctx context.Context) *PropertiesDataStreamsMeasurementProtocolSecretsGetCall {
 17506  	c.ctx_ = ctx
 17507  	return c
 17508  }
 17509  
 17510  // Header returns a http.Header that can be modified by the caller to add
 17511  // headers to the request.
 17512  func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) Header() http.Header {
 17513  	if c.header_ == nil {
 17514  		c.header_ = make(http.Header)
 17515  	}
 17516  	return c.header_
 17517  }
 17518  
 17519  func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) doRequest(alt string) (*http.Response, error) {
 17520  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17521  	if c.ifNoneMatch_ != "" {
 17522  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17523  	}
 17524  	var body io.Reader = nil
 17525  	c.urlParams_.Set("alt", alt)
 17526  	c.urlParams_.Set("prettyPrint", "false")
 17527  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17528  	urls += "?" + c.urlParams_.Encode()
 17529  	req, err := http.NewRequest("GET", urls, body)
 17530  	if err != nil {
 17531  		return nil, err
 17532  	}
 17533  	req.Header = reqHeaders
 17534  	googleapi.Expand(req.URL, map[string]string{
 17535  		"name": c.name,
 17536  	})
 17537  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17538  }
 17539  
 17540  // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.get" call.
 17541  // Any non-2xx status code is an error. Response headers are in either
 17542  // *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.ServerResponse.Header
 17543  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 17544  // Use googleapi.IsNotModified to check whether the returned error was because
 17545  // http.StatusNotModified was returned.
 17546  func (c *PropertiesDataStreamsMeasurementProtocolSecretsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, error) {
 17547  	gensupport.SetOptions(c.urlParams_, opts...)
 17548  	res, err := c.doRequest("json")
 17549  	if res != nil && res.StatusCode == http.StatusNotModified {
 17550  		if res.Body != nil {
 17551  			res.Body.Close()
 17552  		}
 17553  		return nil, gensupport.WrapError(&googleapi.Error{
 17554  			Code:   res.StatusCode,
 17555  			Header: res.Header,
 17556  		})
 17557  	}
 17558  	if err != nil {
 17559  		return nil, err
 17560  	}
 17561  	defer googleapi.CloseBody(res)
 17562  	if err := googleapi.CheckResponse(res); err != nil {
 17563  		return nil, gensupport.WrapError(err)
 17564  	}
 17565  	ret := &GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret{
 17566  		ServerResponse: googleapi.ServerResponse{
 17567  			Header:         res.Header,
 17568  			HTTPStatusCode: res.StatusCode,
 17569  		},
 17570  	}
 17571  	target := &ret
 17572  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17573  		return nil, err
 17574  	}
 17575  	return ret, nil
 17576  }
 17577  
 17578  type PropertiesDataStreamsMeasurementProtocolSecretsListCall struct {
 17579  	s            *Service
 17580  	parent       string
 17581  	urlParams_   gensupport.URLParams
 17582  	ifNoneMatch_ string
 17583  	ctx_         context.Context
 17584  	header_      http.Header
 17585  }
 17586  
 17587  // List: Returns child MeasurementProtocolSecrets under the specified parent
 17588  // Property.
 17589  //
 17590  //   - parent: The resource name of the parent stream. Format:
 17591  //     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets.
 17592  func (r *PropertiesDataStreamsMeasurementProtocolSecretsService) List(parent string) *PropertiesDataStreamsMeasurementProtocolSecretsListCall {
 17593  	c := &PropertiesDataStreamsMeasurementProtocolSecretsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17594  	c.parent = parent
 17595  	return c
 17596  }
 17597  
 17598  // PageSize sets the optional parameter "pageSize": The maximum number of
 17599  // resources to return. If unspecified, at most 10 resources will be returned.
 17600  // The maximum value is 10. Higher values will be coerced to the maximum.
 17601  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) PageSize(pageSize int64) *PropertiesDataStreamsMeasurementProtocolSecretsListCall {
 17602  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17603  	return c
 17604  }
 17605  
 17606  // PageToken sets the optional parameter "pageToken": A page token, received
 17607  // from a previous `ListMeasurementProtocolSecrets` call. Provide this to
 17608  // retrieve the subsequent page. When paginating, all other parameters provided
 17609  // to `ListMeasurementProtocolSecrets` must match the call that provided the
 17610  // page token.
 17611  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) PageToken(pageToken string) *PropertiesDataStreamsMeasurementProtocolSecretsListCall {
 17612  	c.urlParams_.Set("pageToken", pageToken)
 17613  	return c
 17614  }
 17615  
 17616  // Fields allows partial responses to be retrieved. See
 17617  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17618  // details.
 17619  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsMeasurementProtocolSecretsListCall {
 17620  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17621  	return c
 17622  }
 17623  
 17624  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17625  // object's ETag matches the given value. This is useful for getting updates
 17626  // only after the object has changed since the last request.
 17627  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsMeasurementProtocolSecretsListCall {
 17628  	c.ifNoneMatch_ = entityTag
 17629  	return c
 17630  }
 17631  
 17632  // Context sets the context to be used in this call's Do method.
 17633  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) Context(ctx context.Context) *PropertiesDataStreamsMeasurementProtocolSecretsListCall {
 17634  	c.ctx_ = ctx
 17635  	return c
 17636  }
 17637  
 17638  // Header returns a http.Header that can be modified by the caller to add
 17639  // headers to the request.
 17640  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) Header() http.Header {
 17641  	if c.header_ == nil {
 17642  		c.header_ = make(http.Header)
 17643  	}
 17644  	return c.header_
 17645  }
 17646  
 17647  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) doRequest(alt string) (*http.Response, error) {
 17648  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17649  	if c.ifNoneMatch_ != "" {
 17650  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17651  	}
 17652  	var body io.Reader = nil
 17653  	c.urlParams_.Set("alt", alt)
 17654  	c.urlParams_.Set("prettyPrint", "false")
 17655  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/measurementProtocolSecrets")
 17656  	urls += "?" + c.urlParams_.Encode()
 17657  	req, err := http.NewRequest("GET", urls, body)
 17658  	if err != nil {
 17659  		return nil, err
 17660  	}
 17661  	req.Header = reqHeaders
 17662  	googleapi.Expand(req.URL, map[string]string{
 17663  		"parent": c.parent,
 17664  	})
 17665  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17666  }
 17667  
 17668  // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.list" call.
 17669  // Any non-2xx status code is an error. Response headers are in either
 17670  // *GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse.ServerResp
 17671  // onse.Header or (if a response was returned at all) in
 17672  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17673  // whether the returned error was because http.StatusNotModified was returned.
 17674  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse, error) {
 17675  	gensupport.SetOptions(c.urlParams_, opts...)
 17676  	res, err := c.doRequest("json")
 17677  	if res != nil && res.StatusCode == http.StatusNotModified {
 17678  		if res.Body != nil {
 17679  			res.Body.Close()
 17680  		}
 17681  		return nil, gensupport.WrapError(&googleapi.Error{
 17682  			Code:   res.StatusCode,
 17683  			Header: res.Header,
 17684  		})
 17685  	}
 17686  	if err != nil {
 17687  		return nil, err
 17688  	}
 17689  	defer googleapi.CloseBody(res)
 17690  	if err := googleapi.CheckResponse(res); err != nil {
 17691  		return nil, gensupport.WrapError(err)
 17692  	}
 17693  	ret := &GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse{
 17694  		ServerResponse: googleapi.ServerResponse{
 17695  			Header:         res.Header,
 17696  			HTTPStatusCode: res.StatusCode,
 17697  		},
 17698  	}
 17699  	target := &ret
 17700  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17701  		return nil, err
 17702  	}
 17703  	return ret, nil
 17704  }
 17705  
 17706  // Pages invokes f for each page of results.
 17707  // A non-nil error returned from f will halt the iteration.
 17708  // The provided context supersedes any context provided to the Context method.
 17709  func (c *PropertiesDataStreamsMeasurementProtocolSecretsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse) error) error {
 17710  	c.ctx_ = ctx
 17711  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17712  	for {
 17713  		x, err := c.Do()
 17714  		if err != nil {
 17715  			return err
 17716  		}
 17717  		if err := f(x); err != nil {
 17718  			return err
 17719  		}
 17720  		if x.NextPageToken == "" {
 17721  			return nil
 17722  		}
 17723  		c.PageToken(x.NextPageToken)
 17724  	}
 17725  }
 17726  
 17727  type PropertiesDataStreamsMeasurementProtocolSecretsPatchCall struct {
 17728  	s                                                    *Service
 17729  	name                                                 string
 17730  	googleanalyticsadminv1alphameasurementprotocolsecret *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
 17731  	urlParams_                                           gensupport.URLParams
 17732  	ctx_                                                 context.Context
 17733  	header_                                              http.Header
 17734  }
 17735  
 17736  // Patch: Updates a measurement protocol secret.
 17737  //
 17738  //   - name: Output only. Resource name of this secret. This secret may be a
 17739  //     child of any type of stream. Format:
 17740  //     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{
 17741  //     measurementProtocolSecret}.
 17742  func (r *PropertiesDataStreamsMeasurementProtocolSecretsService) Patch(name string, googleanalyticsadminv1alphameasurementprotocolsecret *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret) *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall {
 17743  	c := &PropertiesDataStreamsMeasurementProtocolSecretsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17744  	c.name = name
 17745  	c.googleanalyticsadminv1alphameasurementprotocolsecret = googleanalyticsadminv1alphameasurementprotocolsecret
 17746  	return c
 17747  }
 17748  
 17749  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 17750  // fields to be updated. Omitted fields will not be updated.
 17751  func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) UpdateMask(updateMask string) *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall {
 17752  	c.urlParams_.Set("updateMask", updateMask)
 17753  	return c
 17754  }
 17755  
 17756  // Fields allows partial responses to be retrieved. See
 17757  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17758  // details.
 17759  func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall {
 17760  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17761  	return c
 17762  }
 17763  
 17764  // Context sets the context to be used in this call's Do method.
 17765  func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) Context(ctx context.Context) *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall {
 17766  	c.ctx_ = ctx
 17767  	return c
 17768  }
 17769  
 17770  // Header returns a http.Header that can be modified by the caller to add
 17771  // headers to the request.
 17772  func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) Header() http.Header {
 17773  	if c.header_ == nil {
 17774  		c.header_ = make(http.Header)
 17775  	}
 17776  	return c.header_
 17777  }
 17778  
 17779  func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) doRequest(alt string) (*http.Response, error) {
 17780  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17781  	var body io.Reader = nil
 17782  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphameasurementprotocolsecret)
 17783  	if err != nil {
 17784  		return nil, err
 17785  	}
 17786  	c.urlParams_.Set("alt", alt)
 17787  	c.urlParams_.Set("prettyPrint", "false")
 17788  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17789  	urls += "?" + c.urlParams_.Encode()
 17790  	req, err := http.NewRequest("PATCH", urls, body)
 17791  	if err != nil {
 17792  		return nil, err
 17793  	}
 17794  	req.Header = reqHeaders
 17795  	googleapi.Expand(req.URL, map[string]string{
 17796  		"name": c.name,
 17797  	})
 17798  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17799  }
 17800  
 17801  // Do executes the "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.patch" call.
 17802  // Any non-2xx status code is an error. Response headers are in either
 17803  // *GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.ServerResponse.Header
 17804  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 17805  // Use googleapi.IsNotModified to check whether the returned error was because
 17806  // http.StatusNotModified was returned.
 17807  func (c *PropertiesDataStreamsMeasurementProtocolSecretsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, error) {
 17808  	gensupport.SetOptions(c.urlParams_, opts...)
 17809  	res, err := c.doRequest("json")
 17810  	if res != nil && res.StatusCode == http.StatusNotModified {
 17811  		if res.Body != nil {
 17812  			res.Body.Close()
 17813  		}
 17814  		return nil, gensupport.WrapError(&googleapi.Error{
 17815  			Code:   res.StatusCode,
 17816  			Header: res.Header,
 17817  		})
 17818  	}
 17819  	if err != nil {
 17820  		return nil, err
 17821  	}
 17822  	defer googleapi.CloseBody(res)
 17823  	if err := googleapi.CheckResponse(res); err != nil {
 17824  		return nil, gensupport.WrapError(err)
 17825  	}
 17826  	ret := &GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret{
 17827  		ServerResponse: googleapi.ServerResponse{
 17828  			Header:         res.Header,
 17829  			HTTPStatusCode: res.StatusCode,
 17830  		},
 17831  	}
 17832  	target := &ret
 17833  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17834  		return nil, err
 17835  	}
 17836  	return ret, nil
 17837  }
 17838  
 17839  type PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall struct {
 17840  	s                                                           *Service
 17841  	parent                                                      string
 17842  	googleanalyticsadminv1alphaskadnetworkconversionvalueschema *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema
 17843  	urlParams_                                                  gensupport.URLParams
 17844  	ctx_                                                        context.Context
 17845  	header_                                                     http.Header
 17846  }
 17847  
 17848  // Create: Creates a SKAdNetworkConversionValueSchema.
 17849  //
 17850  //   - parent: The parent resource where this schema will be created. Format:
 17851  //     properties/{property}/dataStreams/{dataStream}.
 17852  func (r *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService) Create(parent string, googleanalyticsadminv1alphaskadnetworkconversionvalueschema *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall {
 17853  	c := &PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17854  	c.parent = parent
 17855  	c.googleanalyticsadminv1alphaskadnetworkconversionvalueschema = googleanalyticsadminv1alphaskadnetworkconversionvalueschema
 17856  	return c
 17857  }
 17858  
 17859  // Fields allows partial responses to be retrieved. See
 17860  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17861  // details.
 17862  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall {
 17863  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17864  	return c
 17865  }
 17866  
 17867  // Context sets the context to be used in this call's Do method.
 17868  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall) Context(ctx context.Context) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall {
 17869  	c.ctx_ = ctx
 17870  	return c
 17871  }
 17872  
 17873  // Header returns a http.Header that can be modified by the caller to add
 17874  // headers to the request.
 17875  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall) Header() http.Header {
 17876  	if c.header_ == nil {
 17877  		c.header_ = make(http.Header)
 17878  	}
 17879  	return c.header_
 17880  }
 17881  
 17882  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall) doRequest(alt string) (*http.Response, error) {
 17883  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17884  	var body io.Reader = nil
 17885  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaskadnetworkconversionvalueschema)
 17886  	if err != nil {
 17887  		return nil, err
 17888  	}
 17889  	c.urlParams_.Set("alt", alt)
 17890  	c.urlParams_.Set("prettyPrint", "false")
 17891  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sKAdNetworkConversionValueSchema")
 17892  	urls += "?" + c.urlParams_.Encode()
 17893  	req, err := http.NewRequest("POST", urls, body)
 17894  	if err != nil {
 17895  		return nil, err
 17896  	}
 17897  	req.Header = reqHeaders
 17898  	googleapi.Expand(req.URL, map[string]string{
 17899  		"parent": c.parent,
 17900  	})
 17901  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17902  }
 17903  
 17904  // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.create" call.
 17905  // Any non-2xx status code is an error. Response headers are in either
 17906  // *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema.ServerResponse.H
 17907  // eader or (if a response was returned at all) in
 17908  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17909  // whether the returned error was because http.StatusNotModified was returned.
 17910  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema, error) {
 17911  	gensupport.SetOptions(c.urlParams_, opts...)
 17912  	res, err := c.doRequest("json")
 17913  	if res != nil && res.StatusCode == http.StatusNotModified {
 17914  		if res.Body != nil {
 17915  			res.Body.Close()
 17916  		}
 17917  		return nil, gensupport.WrapError(&googleapi.Error{
 17918  			Code:   res.StatusCode,
 17919  			Header: res.Header,
 17920  		})
 17921  	}
 17922  	if err != nil {
 17923  		return nil, err
 17924  	}
 17925  	defer googleapi.CloseBody(res)
 17926  	if err := googleapi.CheckResponse(res); err != nil {
 17927  		return nil, gensupport.WrapError(err)
 17928  	}
 17929  	ret := &GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema{
 17930  		ServerResponse: googleapi.ServerResponse{
 17931  			Header:         res.Header,
 17932  			HTTPStatusCode: res.StatusCode,
 17933  		},
 17934  	}
 17935  	target := &ret
 17936  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17937  		return nil, err
 17938  	}
 17939  	return ret, nil
 17940  }
 17941  
 17942  type PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall struct {
 17943  	s          *Service
 17944  	name       string
 17945  	urlParams_ gensupport.URLParams
 17946  	ctx_       context.Context
 17947  	header_    http.Header
 17948  }
 17949  
 17950  // Delete: Deletes target SKAdNetworkConversionValueSchema.
 17951  //
 17952  //   - name: The name of the SKAdNetworkConversionValueSchema to delete. Format:
 17953  //     properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSc
 17954  //     hema/{skadnetwork_conversion_value_schema}.
 17955  func (r *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService) Delete(name string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall {
 17956  	c := &PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17957  	c.name = name
 17958  	return c
 17959  }
 17960  
 17961  // Fields allows partial responses to be retrieved. See
 17962  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17963  // details.
 17964  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall {
 17965  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17966  	return c
 17967  }
 17968  
 17969  // Context sets the context to be used in this call's Do method.
 17970  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall) Context(ctx context.Context) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall {
 17971  	c.ctx_ = ctx
 17972  	return c
 17973  }
 17974  
 17975  // Header returns a http.Header that can be modified by the caller to add
 17976  // headers to the request.
 17977  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall) Header() http.Header {
 17978  	if c.header_ == nil {
 17979  		c.header_ = make(http.Header)
 17980  	}
 17981  	return c.header_
 17982  }
 17983  
 17984  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall) doRequest(alt string) (*http.Response, error) {
 17985  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17986  	var body io.Reader = nil
 17987  	c.urlParams_.Set("alt", alt)
 17988  	c.urlParams_.Set("prettyPrint", "false")
 17989  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17990  	urls += "?" + c.urlParams_.Encode()
 17991  	req, err := http.NewRequest("DELETE", urls, body)
 17992  	if err != nil {
 17993  		return nil, err
 17994  	}
 17995  	req.Header = reqHeaders
 17996  	googleapi.Expand(req.URL, map[string]string{
 17997  		"name": c.name,
 17998  	})
 17999  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18000  }
 18001  
 18002  // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.delete" call.
 18003  // Any non-2xx status code is an error. Response headers are in either
 18004  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 18005  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18006  // check whether the returned error was because http.StatusNotModified was
 18007  // returned.
 18008  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 18009  	gensupport.SetOptions(c.urlParams_, opts...)
 18010  	res, err := c.doRequest("json")
 18011  	if res != nil && res.StatusCode == http.StatusNotModified {
 18012  		if res.Body != nil {
 18013  			res.Body.Close()
 18014  		}
 18015  		return nil, gensupport.WrapError(&googleapi.Error{
 18016  			Code:   res.StatusCode,
 18017  			Header: res.Header,
 18018  		})
 18019  	}
 18020  	if err != nil {
 18021  		return nil, err
 18022  	}
 18023  	defer googleapi.CloseBody(res)
 18024  	if err := googleapi.CheckResponse(res); err != nil {
 18025  		return nil, gensupport.WrapError(err)
 18026  	}
 18027  	ret := &GoogleProtobufEmpty{
 18028  		ServerResponse: googleapi.ServerResponse{
 18029  			Header:         res.Header,
 18030  			HTTPStatusCode: res.StatusCode,
 18031  		},
 18032  	}
 18033  	target := &ret
 18034  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18035  		return nil, err
 18036  	}
 18037  	return ret, nil
 18038  }
 18039  
 18040  type PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall struct {
 18041  	s            *Service
 18042  	name         string
 18043  	urlParams_   gensupport.URLParams
 18044  	ifNoneMatch_ string
 18045  	ctx_         context.Context
 18046  	header_      http.Header
 18047  }
 18048  
 18049  // Get: Looks up a single SKAdNetworkConversionValueSchema.
 18050  //
 18051  //   - name: The resource name of SKAdNetwork conversion value schema to look up.
 18052  //     Format:
 18053  //     properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSc
 18054  //     hema/{skadnetwork_conversion_value_schema}.
 18055  func (r *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService) Get(name string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall {
 18056  	c := &PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18057  	c.name = name
 18058  	return c
 18059  }
 18060  
 18061  // Fields allows partial responses to be retrieved. See
 18062  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18063  // details.
 18064  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall {
 18065  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18066  	return c
 18067  }
 18068  
 18069  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18070  // object's ETag matches the given value. This is useful for getting updates
 18071  // only after the object has changed since the last request.
 18072  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall {
 18073  	c.ifNoneMatch_ = entityTag
 18074  	return c
 18075  }
 18076  
 18077  // Context sets the context to be used in this call's Do method.
 18078  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) Context(ctx context.Context) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall {
 18079  	c.ctx_ = ctx
 18080  	return c
 18081  }
 18082  
 18083  // Header returns a http.Header that can be modified by the caller to add
 18084  // headers to the request.
 18085  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) Header() http.Header {
 18086  	if c.header_ == nil {
 18087  		c.header_ = make(http.Header)
 18088  	}
 18089  	return c.header_
 18090  }
 18091  
 18092  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) doRequest(alt string) (*http.Response, error) {
 18093  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18094  	if c.ifNoneMatch_ != "" {
 18095  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18096  	}
 18097  	var body io.Reader = nil
 18098  	c.urlParams_.Set("alt", alt)
 18099  	c.urlParams_.Set("prettyPrint", "false")
 18100  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18101  	urls += "?" + c.urlParams_.Encode()
 18102  	req, err := http.NewRequest("GET", urls, body)
 18103  	if err != nil {
 18104  		return nil, err
 18105  	}
 18106  	req.Header = reqHeaders
 18107  	googleapi.Expand(req.URL, map[string]string{
 18108  		"name": c.name,
 18109  	})
 18110  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18111  }
 18112  
 18113  // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.get" call.
 18114  // Any non-2xx status code is an error. Response headers are in either
 18115  // *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema.ServerResponse.H
 18116  // eader or (if a response was returned at all) in
 18117  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18118  // whether the returned error was because http.StatusNotModified was returned.
 18119  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema, error) {
 18120  	gensupport.SetOptions(c.urlParams_, opts...)
 18121  	res, err := c.doRequest("json")
 18122  	if res != nil && res.StatusCode == http.StatusNotModified {
 18123  		if res.Body != nil {
 18124  			res.Body.Close()
 18125  		}
 18126  		return nil, gensupport.WrapError(&googleapi.Error{
 18127  			Code:   res.StatusCode,
 18128  			Header: res.Header,
 18129  		})
 18130  	}
 18131  	if err != nil {
 18132  		return nil, err
 18133  	}
 18134  	defer googleapi.CloseBody(res)
 18135  	if err := googleapi.CheckResponse(res); err != nil {
 18136  		return nil, gensupport.WrapError(err)
 18137  	}
 18138  	ret := &GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema{
 18139  		ServerResponse: googleapi.ServerResponse{
 18140  			Header:         res.Header,
 18141  			HTTPStatusCode: res.StatusCode,
 18142  		},
 18143  	}
 18144  	target := &ret
 18145  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18146  		return nil, err
 18147  	}
 18148  	return ret, nil
 18149  }
 18150  
 18151  type PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall struct {
 18152  	s            *Service
 18153  	parent       string
 18154  	urlParams_   gensupport.URLParams
 18155  	ifNoneMatch_ string
 18156  	ctx_         context.Context
 18157  	header_      http.Header
 18158  }
 18159  
 18160  // List: Lists SKAdNetworkConversionValueSchema on a stream. Properties can
 18161  // have at most one SKAdNetworkConversionValueSchema.
 18162  //
 18163  //   - parent: The DataStream resource to list schemas for. Format:
 18164  //     properties/{property_id}/dataStreams/{dataStream} Example:
 18165  //     properties/1234/dataStreams/5678.
 18166  func (r *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService) List(parent string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall {
 18167  	c := &PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18168  	c.parent = parent
 18169  	return c
 18170  }
 18171  
 18172  // PageSize sets the optional parameter "pageSize": The maximum number of
 18173  // resources to return. The service may return fewer than this value, even if
 18174  // there are additional pages. If unspecified, at most 50 resources will be
 18175  // returned. The maximum value is 200; (higher values will be coerced to the
 18176  // maximum)
 18177  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) PageSize(pageSize int64) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall {
 18178  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18179  	return c
 18180  }
 18181  
 18182  // PageToken sets the optional parameter "pageToken": A page token, received
 18183  // from a previous `ListSKAdNetworkConversionValueSchemas` call. Provide this
 18184  // to retrieve the subsequent page. When paginating, all other parameters
 18185  // provided to `ListSKAdNetworkConversionValueSchema` must match the call that
 18186  // provided the page token.
 18187  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) PageToken(pageToken string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall {
 18188  	c.urlParams_.Set("pageToken", pageToken)
 18189  	return c
 18190  }
 18191  
 18192  // Fields allows partial responses to be retrieved. See
 18193  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18194  // details.
 18195  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall {
 18196  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18197  	return c
 18198  }
 18199  
 18200  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18201  // object's ETag matches the given value. This is useful for getting updates
 18202  // only after the object has changed since the last request.
 18203  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall {
 18204  	c.ifNoneMatch_ = entityTag
 18205  	return c
 18206  }
 18207  
 18208  // Context sets the context to be used in this call's Do method.
 18209  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) Context(ctx context.Context) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall {
 18210  	c.ctx_ = ctx
 18211  	return c
 18212  }
 18213  
 18214  // Header returns a http.Header that can be modified by the caller to add
 18215  // headers to the request.
 18216  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) Header() http.Header {
 18217  	if c.header_ == nil {
 18218  		c.header_ = make(http.Header)
 18219  	}
 18220  	return c.header_
 18221  }
 18222  
 18223  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) doRequest(alt string) (*http.Response, error) {
 18224  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18225  	if c.ifNoneMatch_ != "" {
 18226  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18227  	}
 18228  	var body io.Reader = nil
 18229  	c.urlParams_.Set("alt", alt)
 18230  	c.urlParams_.Set("prettyPrint", "false")
 18231  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sKAdNetworkConversionValueSchema")
 18232  	urls += "?" + c.urlParams_.Encode()
 18233  	req, err := http.NewRequest("GET", urls, body)
 18234  	if err != nil {
 18235  		return nil, err
 18236  	}
 18237  	req.Header = reqHeaders
 18238  	googleapi.Expand(req.URL, map[string]string{
 18239  		"parent": c.parent,
 18240  	})
 18241  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18242  }
 18243  
 18244  // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.list" call.
 18245  // Any non-2xx status code is an error. Response headers are in either
 18246  // *GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse.Ser
 18247  // verResponse.Header or (if a response was returned at all) in
 18248  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18249  // whether the returned error was because http.StatusNotModified was returned.
 18250  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse, error) {
 18251  	gensupport.SetOptions(c.urlParams_, opts...)
 18252  	res, err := c.doRequest("json")
 18253  	if res != nil && res.StatusCode == http.StatusNotModified {
 18254  		if res.Body != nil {
 18255  			res.Body.Close()
 18256  		}
 18257  		return nil, gensupport.WrapError(&googleapi.Error{
 18258  			Code:   res.StatusCode,
 18259  			Header: res.Header,
 18260  		})
 18261  	}
 18262  	if err != nil {
 18263  		return nil, err
 18264  	}
 18265  	defer googleapi.CloseBody(res)
 18266  	if err := googleapi.CheckResponse(res); err != nil {
 18267  		return nil, gensupport.WrapError(err)
 18268  	}
 18269  	ret := &GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse{
 18270  		ServerResponse: googleapi.ServerResponse{
 18271  			Header:         res.Header,
 18272  			HTTPStatusCode: res.StatusCode,
 18273  		},
 18274  	}
 18275  	target := &ret
 18276  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18277  		return nil, err
 18278  	}
 18279  	return ret, nil
 18280  }
 18281  
 18282  // Pages invokes f for each page of results.
 18283  // A non-nil error returned from f will halt the iteration.
 18284  // The provided context supersedes any context provided to the Context method.
 18285  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListSKAdNetworkConversionValueSchemasResponse) error) error {
 18286  	c.ctx_ = ctx
 18287  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18288  	for {
 18289  		x, err := c.Do()
 18290  		if err != nil {
 18291  			return err
 18292  		}
 18293  		if err := f(x); err != nil {
 18294  			return err
 18295  		}
 18296  		if x.NextPageToken == "" {
 18297  			return nil
 18298  		}
 18299  		c.PageToken(x.NextPageToken)
 18300  	}
 18301  }
 18302  
 18303  type PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall struct {
 18304  	s                                                           *Service
 18305  	name                                                        string
 18306  	googleanalyticsadminv1alphaskadnetworkconversionvalueschema *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema
 18307  	urlParams_                                                  gensupport.URLParams
 18308  	ctx_                                                        context.Context
 18309  	header_                                                     http.Header
 18310  }
 18311  
 18312  // Patch: Updates a SKAdNetworkConversionValueSchema.
 18313  //
 18314  //   - name: Output only. Resource name of the schema. This will be child of ONLY
 18315  //     an iOS stream, and there can be at most one such child under an iOS
 18316  //     stream. Format:
 18317  //     properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSc
 18318  //     hema.
 18319  func (r *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService) Patch(name string, googleanalyticsadminv1alphaskadnetworkconversionvalueschema *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall {
 18320  	c := &PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18321  	c.name = name
 18322  	c.googleanalyticsadminv1alphaskadnetworkconversionvalueschema = googleanalyticsadminv1alphaskadnetworkconversionvalueschema
 18323  	return c
 18324  }
 18325  
 18326  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 18327  // fields to be updated. Omitted fields will not be updated.
 18328  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) UpdateMask(updateMask string) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall {
 18329  	c.urlParams_.Set("updateMask", updateMask)
 18330  	return c
 18331  }
 18332  
 18333  // Fields allows partial responses to be retrieved. See
 18334  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18335  // details.
 18336  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall {
 18337  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18338  	return c
 18339  }
 18340  
 18341  // Context sets the context to be used in this call's Do method.
 18342  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) Context(ctx context.Context) *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall {
 18343  	c.ctx_ = ctx
 18344  	return c
 18345  }
 18346  
 18347  // Header returns a http.Header that can be modified by the caller to add
 18348  // headers to the request.
 18349  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) Header() http.Header {
 18350  	if c.header_ == nil {
 18351  		c.header_ = make(http.Header)
 18352  	}
 18353  	return c.header_
 18354  }
 18355  
 18356  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) doRequest(alt string) (*http.Response, error) {
 18357  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18358  	var body io.Reader = nil
 18359  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaskadnetworkconversionvalueschema)
 18360  	if err != nil {
 18361  		return nil, err
 18362  	}
 18363  	c.urlParams_.Set("alt", alt)
 18364  	c.urlParams_.Set("prettyPrint", "false")
 18365  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18366  	urls += "?" + c.urlParams_.Encode()
 18367  	req, err := http.NewRequest("PATCH", urls, body)
 18368  	if err != nil {
 18369  		return nil, err
 18370  	}
 18371  	req.Header = reqHeaders
 18372  	googleapi.Expand(req.URL, map[string]string{
 18373  		"name": c.name,
 18374  	})
 18375  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18376  }
 18377  
 18378  // Do executes the "analyticsadmin.properties.dataStreams.sKAdNetworkConversionValueSchema.patch" call.
 18379  // Any non-2xx status code is an error. Response headers are in either
 18380  // *GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema.ServerResponse.H
 18381  // eader or (if a response was returned at all) in
 18382  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18383  // whether the returned error was because http.StatusNotModified was returned.
 18384  func (c *PropertiesDataStreamsSKAdNetworkConversionValueSchemaPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema, error) {
 18385  	gensupport.SetOptions(c.urlParams_, opts...)
 18386  	res, err := c.doRequest("json")
 18387  	if res != nil && res.StatusCode == http.StatusNotModified {
 18388  		if res.Body != nil {
 18389  			res.Body.Close()
 18390  		}
 18391  		return nil, gensupport.WrapError(&googleapi.Error{
 18392  			Code:   res.StatusCode,
 18393  			Header: res.Header,
 18394  		})
 18395  	}
 18396  	if err != nil {
 18397  		return nil, err
 18398  	}
 18399  	defer googleapi.CloseBody(res)
 18400  	if err := googleapi.CheckResponse(res); err != nil {
 18401  		return nil, gensupport.WrapError(err)
 18402  	}
 18403  	ret := &GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema{
 18404  		ServerResponse: googleapi.ServerResponse{
 18405  			Header:         res.Header,
 18406  			HTTPStatusCode: res.StatusCode,
 18407  		},
 18408  	}
 18409  	target := &ret
 18410  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18411  		return nil, err
 18412  	}
 18413  	return ret, nil
 18414  }
 18415  
 18416  type PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall struct {
 18417  	s                                                                              *Service
 18418  	name                                                                           string
 18419  	googleanalyticsadminv1alphaapprovedisplayvideo360advertiserlinkproposalrequest *GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest
 18420  	urlParams_                                                                     gensupport.URLParams
 18421  	ctx_                                                                           context.Context
 18422  	header_                                                                        http.Header
 18423  }
 18424  
 18425  // Approve: Approves a DisplayVideo360AdvertiserLinkProposal. The
 18426  // DisplayVideo360AdvertiserLinkProposal will be deleted and a new
 18427  // DisplayVideo360AdvertiserLink will be created.
 18428  //
 18429  //   - name: The name of the DisplayVideo360AdvertiserLinkProposal to approve.
 18430  //     Example format:
 18431  //     properties/1234/displayVideo360AdvertiserLinkProposals/5678.
 18432  func (r *PropertiesDisplayVideo360AdvertiserLinkProposalsService) Approve(name string, googleanalyticsadminv1alphaapprovedisplayvideo360advertiserlinkproposalrequest *GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest) *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall {
 18433  	c := &PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18434  	c.name = name
 18435  	c.googleanalyticsadminv1alphaapprovedisplayvideo360advertiserlinkproposalrequest = googleanalyticsadminv1alphaapprovedisplayvideo360advertiserlinkproposalrequest
 18436  	return c
 18437  }
 18438  
 18439  // Fields allows partial responses to be retrieved. See
 18440  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18441  // details.
 18442  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall {
 18443  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18444  	return c
 18445  }
 18446  
 18447  // Context sets the context to be used in this call's Do method.
 18448  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall {
 18449  	c.ctx_ = ctx
 18450  	return c
 18451  }
 18452  
 18453  // Header returns a http.Header that can be modified by the caller to add
 18454  // headers to the request.
 18455  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall) Header() http.Header {
 18456  	if c.header_ == nil {
 18457  		c.header_ = make(http.Header)
 18458  	}
 18459  	return c.header_
 18460  }
 18461  
 18462  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall) doRequest(alt string) (*http.Response, error) {
 18463  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18464  	var body io.Reader = nil
 18465  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaapprovedisplayvideo360advertiserlinkproposalrequest)
 18466  	if err != nil {
 18467  		return nil, err
 18468  	}
 18469  	c.urlParams_.Set("alt", alt)
 18470  	c.urlParams_.Set("prettyPrint", "false")
 18471  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:approve")
 18472  	urls += "?" + c.urlParams_.Encode()
 18473  	req, err := http.NewRequest("POST", urls, body)
 18474  	if err != nil {
 18475  		return nil, err
 18476  	}
 18477  	req.Header = reqHeaders
 18478  	googleapi.Expand(req.URL, map[string]string{
 18479  		"name": c.name,
 18480  	})
 18481  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18482  }
 18483  
 18484  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.approve" call.
 18485  // Any non-2xx status code is an error. Response headers are in either
 18486  // *GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRespo
 18487  // nse.ServerResponse.Header or (if a response was returned at all) in
 18488  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18489  // whether the returned error was because http.StatusNotModified was returned.
 18490  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsApproveCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse, error) {
 18491  	gensupport.SetOptions(c.urlParams_, opts...)
 18492  	res, err := c.doRequest("json")
 18493  	if res != nil && res.StatusCode == http.StatusNotModified {
 18494  		if res.Body != nil {
 18495  			res.Body.Close()
 18496  		}
 18497  		return nil, gensupport.WrapError(&googleapi.Error{
 18498  			Code:   res.StatusCode,
 18499  			Header: res.Header,
 18500  		})
 18501  	}
 18502  	if err != nil {
 18503  		return nil, err
 18504  	}
 18505  	defer googleapi.CloseBody(res)
 18506  	if err := googleapi.CheckResponse(res); err != nil {
 18507  		return nil, gensupport.WrapError(err)
 18508  	}
 18509  	ret := &GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse{
 18510  		ServerResponse: googleapi.ServerResponse{
 18511  			Header:         res.Header,
 18512  			HTTPStatusCode: res.StatusCode,
 18513  		},
 18514  	}
 18515  	target := &ret
 18516  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18517  		return nil, err
 18518  	}
 18519  	return ret, nil
 18520  }
 18521  
 18522  type PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall struct {
 18523  	s                                                                             *Service
 18524  	name                                                                          string
 18525  	googleanalyticsadminv1alphacanceldisplayvideo360advertiserlinkproposalrequest *GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest
 18526  	urlParams_                                                                    gensupport.URLParams
 18527  	ctx_                                                                          context.Context
 18528  	header_                                                                       http.Header
 18529  }
 18530  
 18531  // Cancel: Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean
 18532  // either: - Declining a proposal initiated from Display & Video 360 -
 18533  // Withdrawing a proposal initiated from Google Analytics After being
 18534  // cancelled, a proposal will eventually be deleted automatically.
 18535  //
 18536  //   - name: The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
 18537  //     Example format:
 18538  //     properties/1234/displayVideo360AdvertiserLinkProposals/5678.
 18539  func (r *PropertiesDisplayVideo360AdvertiserLinkProposalsService) Cancel(name string, googleanalyticsadminv1alphacanceldisplayvideo360advertiserlinkproposalrequest *GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest) *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall {
 18540  	c := &PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18541  	c.name = name
 18542  	c.googleanalyticsadminv1alphacanceldisplayvideo360advertiserlinkproposalrequest = googleanalyticsadminv1alphacanceldisplayvideo360advertiserlinkproposalrequest
 18543  	return c
 18544  }
 18545  
 18546  // Fields allows partial responses to be retrieved. See
 18547  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18548  // details.
 18549  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall {
 18550  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18551  	return c
 18552  }
 18553  
 18554  // Context sets the context to be used in this call's Do method.
 18555  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall {
 18556  	c.ctx_ = ctx
 18557  	return c
 18558  }
 18559  
 18560  // Header returns a http.Header that can be modified by the caller to add
 18561  // headers to the request.
 18562  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall) Header() http.Header {
 18563  	if c.header_ == nil {
 18564  		c.header_ = make(http.Header)
 18565  	}
 18566  	return c.header_
 18567  }
 18568  
 18569  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall) doRequest(alt string) (*http.Response, error) {
 18570  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18571  	var body io.Reader = nil
 18572  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacanceldisplayvideo360advertiserlinkproposalrequest)
 18573  	if err != nil {
 18574  		return nil, err
 18575  	}
 18576  	c.urlParams_.Set("alt", alt)
 18577  	c.urlParams_.Set("prettyPrint", "false")
 18578  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel")
 18579  	urls += "?" + c.urlParams_.Encode()
 18580  	req, err := http.NewRequest("POST", urls, body)
 18581  	if err != nil {
 18582  		return nil, err
 18583  	}
 18584  	req.Header = reqHeaders
 18585  	googleapi.Expand(req.URL, map[string]string{
 18586  		"name": c.name,
 18587  	})
 18588  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18589  }
 18590  
 18591  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.cancel" call.
 18592  // Any non-2xx status code is an error. Response headers are in either
 18593  // *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal.ServerRespo
 18594  // nse.Header or (if a response was returned at all) in
 18595  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18596  // whether the returned error was because http.StatusNotModified was returned.
 18597  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal, error) {
 18598  	gensupport.SetOptions(c.urlParams_, opts...)
 18599  	res, err := c.doRequest("json")
 18600  	if res != nil && res.StatusCode == http.StatusNotModified {
 18601  		if res.Body != nil {
 18602  			res.Body.Close()
 18603  		}
 18604  		return nil, gensupport.WrapError(&googleapi.Error{
 18605  			Code:   res.StatusCode,
 18606  			Header: res.Header,
 18607  		})
 18608  	}
 18609  	if err != nil {
 18610  		return nil, err
 18611  	}
 18612  	defer googleapi.CloseBody(res)
 18613  	if err := googleapi.CheckResponse(res); err != nil {
 18614  		return nil, gensupport.WrapError(err)
 18615  	}
 18616  	ret := &GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal{
 18617  		ServerResponse: googleapi.ServerResponse{
 18618  			Header:         res.Header,
 18619  			HTTPStatusCode: res.StatusCode,
 18620  		},
 18621  	}
 18622  	target := &ret
 18623  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18624  		return nil, err
 18625  	}
 18626  	return ret, nil
 18627  }
 18628  
 18629  type PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall struct {
 18630  	s                                                                *Service
 18631  	parent                                                           string
 18632  	googleanalyticsadminv1alphadisplayvideo360advertiserlinkproposal *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal
 18633  	urlParams_                                                       gensupport.URLParams
 18634  	ctx_                                                             context.Context
 18635  	header_                                                          http.Header
 18636  }
 18637  
 18638  // Create: Creates a DisplayVideo360AdvertiserLinkProposal.
 18639  //
 18640  // - parent: Example format: properties/1234.
 18641  func (r *PropertiesDisplayVideo360AdvertiserLinkProposalsService) Create(parent string, googleanalyticsadminv1alphadisplayvideo360advertiserlinkproposal *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal) *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall {
 18642  	c := &PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18643  	c.parent = parent
 18644  	c.googleanalyticsadminv1alphadisplayvideo360advertiserlinkproposal = googleanalyticsadminv1alphadisplayvideo360advertiserlinkproposal
 18645  	return c
 18646  }
 18647  
 18648  // Fields allows partial responses to be retrieved. See
 18649  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18650  // details.
 18651  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall {
 18652  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18653  	return c
 18654  }
 18655  
 18656  // Context sets the context to be used in this call's Do method.
 18657  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall {
 18658  	c.ctx_ = ctx
 18659  	return c
 18660  }
 18661  
 18662  // Header returns a http.Header that can be modified by the caller to add
 18663  // headers to the request.
 18664  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall) Header() http.Header {
 18665  	if c.header_ == nil {
 18666  		c.header_ = make(http.Header)
 18667  	}
 18668  	return c.header_
 18669  }
 18670  
 18671  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall) doRequest(alt string) (*http.Response, error) {
 18672  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18673  	var body io.Reader = nil
 18674  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadisplayvideo360advertiserlinkproposal)
 18675  	if err != nil {
 18676  		return nil, err
 18677  	}
 18678  	c.urlParams_.Set("alt", alt)
 18679  	c.urlParams_.Set("prettyPrint", "false")
 18680  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals")
 18681  	urls += "?" + c.urlParams_.Encode()
 18682  	req, err := http.NewRequest("POST", urls, body)
 18683  	if err != nil {
 18684  		return nil, err
 18685  	}
 18686  	req.Header = reqHeaders
 18687  	googleapi.Expand(req.URL, map[string]string{
 18688  		"parent": c.parent,
 18689  	})
 18690  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18691  }
 18692  
 18693  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.create" call.
 18694  // Any non-2xx status code is an error. Response headers are in either
 18695  // *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal.ServerRespo
 18696  // nse.Header or (if a response was returned at all) in
 18697  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18698  // whether the returned error was because http.StatusNotModified was returned.
 18699  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal, error) {
 18700  	gensupport.SetOptions(c.urlParams_, opts...)
 18701  	res, err := c.doRequest("json")
 18702  	if res != nil && res.StatusCode == http.StatusNotModified {
 18703  		if res.Body != nil {
 18704  			res.Body.Close()
 18705  		}
 18706  		return nil, gensupport.WrapError(&googleapi.Error{
 18707  			Code:   res.StatusCode,
 18708  			Header: res.Header,
 18709  		})
 18710  	}
 18711  	if err != nil {
 18712  		return nil, err
 18713  	}
 18714  	defer googleapi.CloseBody(res)
 18715  	if err := googleapi.CheckResponse(res); err != nil {
 18716  		return nil, gensupport.WrapError(err)
 18717  	}
 18718  	ret := &GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal{
 18719  		ServerResponse: googleapi.ServerResponse{
 18720  			Header:         res.Header,
 18721  			HTTPStatusCode: res.StatusCode,
 18722  		},
 18723  	}
 18724  	target := &ret
 18725  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18726  		return nil, err
 18727  	}
 18728  	return ret, nil
 18729  }
 18730  
 18731  type PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall struct {
 18732  	s          *Service
 18733  	name       string
 18734  	urlParams_ gensupport.URLParams
 18735  	ctx_       context.Context
 18736  	header_    http.Header
 18737  }
 18738  
 18739  // Delete: Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This
 18740  // can only be used on cancelled proposals.
 18741  //
 18742  //   - name: The name of the DisplayVideo360AdvertiserLinkProposal to delete.
 18743  //     Example format:
 18744  //     properties/1234/displayVideo360AdvertiserLinkProposals/5678.
 18745  func (r *PropertiesDisplayVideo360AdvertiserLinkProposalsService) Delete(name string) *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall {
 18746  	c := &PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18747  	c.name = name
 18748  	return c
 18749  }
 18750  
 18751  // Fields allows partial responses to be retrieved. See
 18752  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18753  // details.
 18754  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall {
 18755  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18756  	return c
 18757  }
 18758  
 18759  // Context sets the context to be used in this call's Do method.
 18760  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall {
 18761  	c.ctx_ = ctx
 18762  	return c
 18763  }
 18764  
 18765  // Header returns a http.Header that can be modified by the caller to add
 18766  // headers to the request.
 18767  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall) Header() http.Header {
 18768  	if c.header_ == nil {
 18769  		c.header_ = make(http.Header)
 18770  	}
 18771  	return c.header_
 18772  }
 18773  
 18774  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall) doRequest(alt string) (*http.Response, error) {
 18775  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18776  	var body io.Reader = nil
 18777  	c.urlParams_.Set("alt", alt)
 18778  	c.urlParams_.Set("prettyPrint", "false")
 18779  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18780  	urls += "?" + c.urlParams_.Encode()
 18781  	req, err := http.NewRequest("DELETE", urls, body)
 18782  	if err != nil {
 18783  		return nil, err
 18784  	}
 18785  	req.Header = reqHeaders
 18786  	googleapi.Expand(req.URL, map[string]string{
 18787  		"name": c.name,
 18788  	})
 18789  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18790  }
 18791  
 18792  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.delete" call.
 18793  // Any non-2xx status code is an error. Response headers are in either
 18794  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 18795  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18796  // check whether the returned error was because http.StatusNotModified was
 18797  // returned.
 18798  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 18799  	gensupport.SetOptions(c.urlParams_, opts...)
 18800  	res, err := c.doRequest("json")
 18801  	if res != nil && res.StatusCode == http.StatusNotModified {
 18802  		if res.Body != nil {
 18803  			res.Body.Close()
 18804  		}
 18805  		return nil, gensupport.WrapError(&googleapi.Error{
 18806  			Code:   res.StatusCode,
 18807  			Header: res.Header,
 18808  		})
 18809  	}
 18810  	if err != nil {
 18811  		return nil, err
 18812  	}
 18813  	defer googleapi.CloseBody(res)
 18814  	if err := googleapi.CheckResponse(res); err != nil {
 18815  		return nil, gensupport.WrapError(err)
 18816  	}
 18817  	ret := &GoogleProtobufEmpty{
 18818  		ServerResponse: googleapi.ServerResponse{
 18819  			Header:         res.Header,
 18820  			HTTPStatusCode: res.StatusCode,
 18821  		},
 18822  	}
 18823  	target := &ret
 18824  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18825  		return nil, err
 18826  	}
 18827  	return ret, nil
 18828  }
 18829  
 18830  type PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall struct {
 18831  	s            *Service
 18832  	name         string
 18833  	urlParams_   gensupport.URLParams
 18834  	ifNoneMatch_ string
 18835  	ctx_         context.Context
 18836  	header_      http.Header
 18837  }
 18838  
 18839  // Get: Lookup for a single DisplayVideo360AdvertiserLinkProposal.
 18840  //
 18841  //   - name: The name of the DisplayVideo360AdvertiserLinkProposal to get.
 18842  //     Example format:
 18843  //     properties/1234/displayVideo360AdvertiserLinkProposals/5678.
 18844  func (r *PropertiesDisplayVideo360AdvertiserLinkProposalsService) Get(name string) *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall {
 18845  	c := &PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18846  	c.name = name
 18847  	return c
 18848  }
 18849  
 18850  // Fields allows partial responses to be retrieved. See
 18851  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18852  // details.
 18853  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall {
 18854  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18855  	return c
 18856  }
 18857  
 18858  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18859  // object's ETag matches the given value. This is useful for getting updates
 18860  // only after the object has changed since the last request.
 18861  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) IfNoneMatch(entityTag string) *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall {
 18862  	c.ifNoneMatch_ = entityTag
 18863  	return c
 18864  }
 18865  
 18866  // Context sets the context to be used in this call's Do method.
 18867  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall {
 18868  	c.ctx_ = ctx
 18869  	return c
 18870  }
 18871  
 18872  // Header returns a http.Header that can be modified by the caller to add
 18873  // headers to the request.
 18874  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) Header() http.Header {
 18875  	if c.header_ == nil {
 18876  		c.header_ = make(http.Header)
 18877  	}
 18878  	return c.header_
 18879  }
 18880  
 18881  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) doRequest(alt string) (*http.Response, error) {
 18882  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18883  	if c.ifNoneMatch_ != "" {
 18884  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18885  	}
 18886  	var body io.Reader = nil
 18887  	c.urlParams_.Set("alt", alt)
 18888  	c.urlParams_.Set("prettyPrint", "false")
 18889  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18890  	urls += "?" + c.urlParams_.Encode()
 18891  	req, err := http.NewRequest("GET", urls, body)
 18892  	if err != nil {
 18893  		return nil, err
 18894  	}
 18895  	req.Header = reqHeaders
 18896  	googleapi.Expand(req.URL, map[string]string{
 18897  		"name": c.name,
 18898  	})
 18899  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18900  }
 18901  
 18902  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.get" call.
 18903  // Any non-2xx status code is an error. Response headers are in either
 18904  // *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal.ServerRespo
 18905  // nse.Header or (if a response was returned at all) in
 18906  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18907  // whether the returned error was because http.StatusNotModified was returned.
 18908  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal, error) {
 18909  	gensupport.SetOptions(c.urlParams_, opts...)
 18910  	res, err := c.doRequest("json")
 18911  	if res != nil && res.StatusCode == http.StatusNotModified {
 18912  		if res.Body != nil {
 18913  			res.Body.Close()
 18914  		}
 18915  		return nil, gensupport.WrapError(&googleapi.Error{
 18916  			Code:   res.StatusCode,
 18917  			Header: res.Header,
 18918  		})
 18919  	}
 18920  	if err != nil {
 18921  		return nil, err
 18922  	}
 18923  	defer googleapi.CloseBody(res)
 18924  	if err := googleapi.CheckResponse(res); err != nil {
 18925  		return nil, gensupport.WrapError(err)
 18926  	}
 18927  	ret := &GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal{
 18928  		ServerResponse: googleapi.ServerResponse{
 18929  			Header:         res.Header,
 18930  			HTTPStatusCode: res.StatusCode,
 18931  		},
 18932  	}
 18933  	target := &ret
 18934  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18935  		return nil, err
 18936  	}
 18937  	return ret, nil
 18938  }
 18939  
 18940  type PropertiesDisplayVideo360AdvertiserLinkProposalsListCall struct {
 18941  	s            *Service
 18942  	parent       string
 18943  	urlParams_   gensupport.URLParams
 18944  	ifNoneMatch_ string
 18945  	ctx_         context.Context
 18946  	header_      http.Header
 18947  }
 18948  
 18949  // List: Lists DisplayVideo360AdvertiserLinkProposals on a property.
 18950  //
 18951  // - parent: Example format: properties/1234.
 18952  func (r *PropertiesDisplayVideo360AdvertiserLinkProposalsService) List(parent string) *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall {
 18953  	c := &PropertiesDisplayVideo360AdvertiserLinkProposalsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18954  	c.parent = parent
 18955  	return c
 18956  }
 18957  
 18958  // PageSize sets the optional parameter "pageSize": The maximum number of
 18959  // resources to return. If unspecified, at most 50 resources will be returned.
 18960  // The maximum value is 200 (higher values will be coerced to the maximum).
 18961  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) PageSize(pageSize int64) *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall {
 18962  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18963  	return c
 18964  }
 18965  
 18966  // PageToken sets the optional parameter "pageToken": A page token, received
 18967  // from a previous `ListDisplayVideo360AdvertiserLinkProposals` call. Provide
 18968  // this to retrieve the subsequent page. When paginating, all other parameters
 18969  // provided to `ListDisplayVideo360AdvertiserLinkProposals` must match the call
 18970  // that provided the page token.
 18971  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) PageToken(pageToken string) *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall {
 18972  	c.urlParams_.Set("pageToken", pageToken)
 18973  	return c
 18974  }
 18975  
 18976  // Fields allows partial responses to be retrieved. See
 18977  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18978  // details.
 18979  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall {
 18980  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18981  	return c
 18982  }
 18983  
 18984  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18985  // object's ETag matches the given value. This is useful for getting updates
 18986  // only after the object has changed since the last request.
 18987  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) IfNoneMatch(entityTag string) *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall {
 18988  	c.ifNoneMatch_ = entityTag
 18989  	return c
 18990  }
 18991  
 18992  // Context sets the context to be used in this call's Do method.
 18993  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall {
 18994  	c.ctx_ = ctx
 18995  	return c
 18996  }
 18997  
 18998  // Header returns a http.Header that can be modified by the caller to add
 18999  // headers to the request.
 19000  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) Header() http.Header {
 19001  	if c.header_ == nil {
 19002  		c.header_ = make(http.Header)
 19003  	}
 19004  	return c.header_
 19005  }
 19006  
 19007  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) doRequest(alt string) (*http.Response, error) {
 19008  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19009  	if c.ifNoneMatch_ != "" {
 19010  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19011  	}
 19012  	var body io.Reader = nil
 19013  	c.urlParams_.Set("alt", alt)
 19014  	c.urlParams_.Set("prettyPrint", "false")
 19015  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/displayVideo360AdvertiserLinkProposals")
 19016  	urls += "?" + c.urlParams_.Encode()
 19017  	req, err := http.NewRequest("GET", urls, body)
 19018  	if err != nil {
 19019  		return nil, err
 19020  	}
 19021  	req.Header = reqHeaders
 19022  	googleapi.Expand(req.URL, map[string]string{
 19023  		"parent": c.parent,
 19024  	})
 19025  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19026  }
 19027  
 19028  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinkProposals.list" call.
 19029  // Any non-2xx status code is an error. Response headers are in either
 19030  // *GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsRespons
 19031  // e.ServerResponse.Header or (if a response was returned at all) in
 19032  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19033  // whether the returned error was because http.StatusNotModified was returned.
 19034  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse, error) {
 19035  	gensupport.SetOptions(c.urlParams_, opts...)
 19036  	res, err := c.doRequest("json")
 19037  	if res != nil && res.StatusCode == http.StatusNotModified {
 19038  		if res.Body != nil {
 19039  			res.Body.Close()
 19040  		}
 19041  		return nil, gensupport.WrapError(&googleapi.Error{
 19042  			Code:   res.StatusCode,
 19043  			Header: res.Header,
 19044  		})
 19045  	}
 19046  	if err != nil {
 19047  		return nil, err
 19048  	}
 19049  	defer googleapi.CloseBody(res)
 19050  	if err := googleapi.CheckResponse(res); err != nil {
 19051  		return nil, gensupport.WrapError(err)
 19052  	}
 19053  	ret := &GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse{
 19054  		ServerResponse: googleapi.ServerResponse{
 19055  			Header:         res.Header,
 19056  			HTTPStatusCode: res.StatusCode,
 19057  		},
 19058  	}
 19059  	target := &ret
 19060  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19061  		return nil, err
 19062  	}
 19063  	return ret, nil
 19064  }
 19065  
 19066  // Pages invokes f for each page of results.
 19067  // A non-nil error returned from f will halt the iteration.
 19068  // The provided context supersedes any context provided to the Context method.
 19069  func (c *PropertiesDisplayVideo360AdvertiserLinkProposalsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse) error) error {
 19070  	c.ctx_ = ctx
 19071  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19072  	for {
 19073  		x, err := c.Do()
 19074  		if err != nil {
 19075  			return err
 19076  		}
 19077  		if err := f(x); err != nil {
 19078  			return err
 19079  		}
 19080  		if x.NextPageToken == "" {
 19081  			return nil
 19082  		}
 19083  		c.PageToken(x.NextPageToken)
 19084  	}
 19085  }
 19086  
 19087  type PropertiesDisplayVideo360AdvertiserLinksCreateCall struct {
 19088  	s                                                        *Service
 19089  	parent                                                   string
 19090  	googleanalyticsadminv1alphadisplayvideo360advertiserlink *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink
 19091  	urlParams_                                               gensupport.URLParams
 19092  	ctx_                                                     context.Context
 19093  	header_                                                  http.Header
 19094  }
 19095  
 19096  // Create: Creates a DisplayVideo360AdvertiserLink. This can only be utilized
 19097  // by users who have proper authorization both on the Google Analytics property
 19098  // and on the Display & Video 360 advertiser. Users who do not have access to
 19099  // the Display & Video 360 advertiser should instead seek to create a
 19100  // DisplayVideo360LinkProposal.
 19101  //
 19102  // - parent: Example format: properties/1234.
 19103  func (r *PropertiesDisplayVideo360AdvertiserLinksService) Create(parent string, googleanalyticsadminv1alphadisplayvideo360advertiserlink *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink) *PropertiesDisplayVideo360AdvertiserLinksCreateCall {
 19104  	c := &PropertiesDisplayVideo360AdvertiserLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19105  	c.parent = parent
 19106  	c.googleanalyticsadminv1alphadisplayvideo360advertiserlink = googleanalyticsadminv1alphadisplayvideo360advertiserlink
 19107  	return c
 19108  }
 19109  
 19110  // Fields allows partial responses to be retrieved. See
 19111  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19112  // details.
 19113  func (c *PropertiesDisplayVideo360AdvertiserLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinksCreateCall {
 19114  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19115  	return c
 19116  }
 19117  
 19118  // Context sets the context to be used in this call's Do method.
 19119  func (c *PropertiesDisplayVideo360AdvertiserLinksCreateCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinksCreateCall {
 19120  	c.ctx_ = ctx
 19121  	return c
 19122  }
 19123  
 19124  // Header returns a http.Header that can be modified by the caller to add
 19125  // headers to the request.
 19126  func (c *PropertiesDisplayVideo360AdvertiserLinksCreateCall) Header() http.Header {
 19127  	if c.header_ == nil {
 19128  		c.header_ = make(http.Header)
 19129  	}
 19130  	return c.header_
 19131  }
 19132  
 19133  func (c *PropertiesDisplayVideo360AdvertiserLinksCreateCall) doRequest(alt string) (*http.Response, error) {
 19134  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19135  	var body io.Reader = nil
 19136  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadisplayvideo360advertiserlink)
 19137  	if err != nil {
 19138  		return nil, err
 19139  	}
 19140  	c.urlParams_.Set("alt", alt)
 19141  	c.urlParams_.Set("prettyPrint", "false")
 19142  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/displayVideo360AdvertiserLinks")
 19143  	urls += "?" + c.urlParams_.Encode()
 19144  	req, err := http.NewRequest("POST", urls, body)
 19145  	if err != nil {
 19146  		return nil, err
 19147  	}
 19148  	req.Header = reqHeaders
 19149  	googleapi.Expand(req.URL, map[string]string{
 19150  		"parent": c.parent,
 19151  	})
 19152  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19153  }
 19154  
 19155  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.create" call.
 19156  // Any non-2xx status code is an error. Response headers are in either
 19157  // *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.ServerResponse.Head
 19158  // er or (if a response was returned at all) in
 19159  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19160  // whether the returned error was because http.StatusNotModified was returned.
 19161  func (c *PropertiesDisplayVideo360AdvertiserLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink, error) {
 19162  	gensupport.SetOptions(c.urlParams_, opts...)
 19163  	res, err := c.doRequest("json")
 19164  	if res != nil && res.StatusCode == http.StatusNotModified {
 19165  		if res.Body != nil {
 19166  			res.Body.Close()
 19167  		}
 19168  		return nil, gensupport.WrapError(&googleapi.Error{
 19169  			Code:   res.StatusCode,
 19170  			Header: res.Header,
 19171  		})
 19172  	}
 19173  	if err != nil {
 19174  		return nil, err
 19175  	}
 19176  	defer googleapi.CloseBody(res)
 19177  	if err := googleapi.CheckResponse(res); err != nil {
 19178  		return nil, gensupport.WrapError(err)
 19179  	}
 19180  	ret := &GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink{
 19181  		ServerResponse: googleapi.ServerResponse{
 19182  			Header:         res.Header,
 19183  			HTTPStatusCode: res.StatusCode,
 19184  		},
 19185  	}
 19186  	target := &ret
 19187  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19188  		return nil, err
 19189  	}
 19190  	return ret, nil
 19191  }
 19192  
 19193  type PropertiesDisplayVideo360AdvertiserLinksDeleteCall struct {
 19194  	s          *Service
 19195  	name       string
 19196  	urlParams_ gensupport.URLParams
 19197  	ctx_       context.Context
 19198  	header_    http.Header
 19199  }
 19200  
 19201  // Delete: Deletes a DisplayVideo360AdvertiserLink on a property.
 19202  //
 19203  //   - name: The name of the DisplayVideo360AdvertiserLink to delete. Example
 19204  //     format: properties/1234/displayVideo360AdvertiserLinks/5678.
 19205  func (r *PropertiesDisplayVideo360AdvertiserLinksService) Delete(name string) *PropertiesDisplayVideo360AdvertiserLinksDeleteCall {
 19206  	c := &PropertiesDisplayVideo360AdvertiserLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19207  	c.name = name
 19208  	return c
 19209  }
 19210  
 19211  // Fields allows partial responses to be retrieved. See
 19212  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19213  // details.
 19214  func (c *PropertiesDisplayVideo360AdvertiserLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinksDeleteCall {
 19215  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19216  	return c
 19217  }
 19218  
 19219  // Context sets the context to be used in this call's Do method.
 19220  func (c *PropertiesDisplayVideo360AdvertiserLinksDeleteCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinksDeleteCall {
 19221  	c.ctx_ = ctx
 19222  	return c
 19223  }
 19224  
 19225  // Header returns a http.Header that can be modified by the caller to add
 19226  // headers to the request.
 19227  func (c *PropertiesDisplayVideo360AdvertiserLinksDeleteCall) Header() http.Header {
 19228  	if c.header_ == nil {
 19229  		c.header_ = make(http.Header)
 19230  	}
 19231  	return c.header_
 19232  }
 19233  
 19234  func (c *PropertiesDisplayVideo360AdvertiserLinksDeleteCall) doRequest(alt string) (*http.Response, error) {
 19235  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19236  	var body io.Reader = nil
 19237  	c.urlParams_.Set("alt", alt)
 19238  	c.urlParams_.Set("prettyPrint", "false")
 19239  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19240  	urls += "?" + c.urlParams_.Encode()
 19241  	req, err := http.NewRequest("DELETE", urls, body)
 19242  	if err != nil {
 19243  		return nil, err
 19244  	}
 19245  	req.Header = reqHeaders
 19246  	googleapi.Expand(req.URL, map[string]string{
 19247  		"name": c.name,
 19248  	})
 19249  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19250  }
 19251  
 19252  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.delete" call.
 19253  // Any non-2xx status code is an error. Response headers are in either
 19254  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19255  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19256  // check whether the returned error was because http.StatusNotModified was
 19257  // returned.
 19258  func (c *PropertiesDisplayVideo360AdvertiserLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19259  	gensupport.SetOptions(c.urlParams_, opts...)
 19260  	res, err := c.doRequest("json")
 19261  	if res != nil && res.StatusCode == http.StatusNotModified {
 19262  		if res.Body != nil {
 19263  			res.Body.Close()
 19264  		}
 19265  		return nil, gensupport.WrapError(&googleapi.Error{
 19266  			Code:   res.StatusCode,
 19267  			Header: res.Header,
 19268  		})
 19269  	}
 19270  	if err != nil {
 19271  		return nil, err
 19272  	}
 19273  	defer googleapi.CloseBody(res)
 19274  	if err := googleapi.CheckResponse(res); err != nil {
 19275  		return nil, gensupport.WrapError(err)
 19276  	}
 19277  	ret := &GoogleProtobufEmpty{
 19278  		ServerResponse: googleapi.ServerResponse{
 19279  			Header:         res.Header,
 19280  			HTTPStatusCode: res.StatusCode,
 19281  		},
 19282  	}
 19283  	target := &ret
 19284  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19285  		return nil, err
 19286  	}
 19287  	return ret, nil
 19288  }
 19289  
 19290  type PropertiesDisplayVideo360AdvertiserLinksGetCall struct {
 19291  	s            *Service
 19292  	name         string
 19293  	urlParams_   gensupport.URLParams
 19294  	ifNoneMatch_ string
 19295  	ctx_         context.Context
 19296  	header_      http.Header
 19297  }
 19298  
 19299  // Get: Look up a single DisplayVideo360AdvertiserLink
 19300  //
 19301  //   - name: The name of the DisplayVideo360AdvertiserLink to get. Example
 19302  //     format: properties/1234/displayVideo360AdvertiserLink/5678.
 19303  func (r *PropertiesDisplayVideo360AdvertiserLinksService) Get(name string) *PropertiesDisplayVideo360AdvertiserLinksGetCall {
 19304  	c := &PropertiesDisplayVideo360AdvertiserLinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19305  	c.name = name
 19306  	return c
 19307  }
 19308  
 19309  // Fields allows partial responses to be retrieved. See
 19310  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19311  // details.
 19312  func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinksGetCall {
 19313  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19314  	return c
 19315  }
 19316  
 19317  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19318  // object's ETag matches the given value. This is useful for getting updates
 19319  // only after the object has changed since the last request.
 19320  func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) IfNoneMatch(entityTag string) *PropertiesDisplayVideo360AdvertiserLinksGetCall {
 19321  	c.ifNoneMatch_ = entityTag
 19322  	return c
 19323  }
 19324  
 19325  // Context sets the context to be used in this call's Do method.
 19326  func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinksGetCall {
 19327  	c.ctx_ = ctx
 19328  	return c
 19329  }
 19330  
 19331  // Header returns a http.Header that can be modified by the caller to add
 19332  // headers to the request.
 19333  func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) Header() http.Header {
 19334  	if c.header_ == nil {
 19335  		c.header_ = make(http.Header)
 19336  	}
 19337  	return c.header_
 19338  }
 19339  
 19340  func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) doRequest(alt string) (*http.Response, error) {
 19341  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19342  	if c.ifNoneMatch_ != "" {
 19343  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19344  	}
 19345  	var body io.Reader = nil
 19346  	c.urlParams_.Set("alt", alt)
 19347  	c.urlParams_.Set("prettyPrint", "false")
 19348  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19349  	urls += "?" + c.urlParams_.Encode()
 19350  	req, err := http.NewRequest("GET", urls, body)
 19351  	if err != nil {
 19352  		return nil, err
 19353  	}
 19354  	req.Header = reqHeaders
 19355  	googleapi.Expand(req.URL, map[string]string{
 19356  		"name": c.name,
 19357  	})
 19358  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19359  }
 19360  
 19361  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.get" call.
 19362  // Any non-2xx status code is an error. Response headers are in either
 19363  // *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.ServerResponse.Head
 19364  // er or (if a response was returned at all) in
 19365  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19366  // whether the returned error was because http.StatusNotModified was returned.
 19367  func (c *PropertiesDisplayVideo360AdvertiserLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink, error) {
 19368  	gensupport.SetOptions(c.urlParams_, opts...)
 19369  	res, err := c.doRequest("json")
 19370  	if res != nil && res.StatusCode == http.StatusNotModified {
 19371  		if res.Body != nil {
 19372  			res.Body.Close()
 19373  		}
 19374  		return nil, gensupport.WrapError(&googleapi.Error{
 19375  			Code:   res.StatusCode,
 19376  			Header: res.Header,
 19377  		})
 19378  	}
 19379  	if err != nil {
 19380  		return nil, err
 19381  	}
 19382  	defer googleapi.CloseBody(res)
 19383  	if err := googleapi.CheckResponse(res); err != nil {
 19384  		return nil, gensupport.WrapError(err)
 19385  	}
 19386  	ret := &GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink{
 19387  		ServerResponse: googleapi.ServerResponse{
 19388  			Header:         res.Header,
 19389  			HTTPStatusCode: res.StatusCode,
 19390  		},
 19391  	}
 19392  	target := &ret
 19393  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19394  		return nil, err
 19395  	}
 19396  	return ret, nil
 19397  }
 19398  
 19399  type PropertiesDisplayVideo360AdvertiserLinksListCall struct {
 19400  	s            *Service
 19401  	parent       string
 19402  	urlParams_   gensupport.URLParams
 19403  	ifNoneMatch_ string
 19404  	ctx_         context.Context
 19405  	header_      http.Header
 19406  }
 19407  
 19408  // List: Lists all DisplayVideo360AdvertiserLinks on a property.
 19409  //
 19410  // - parent: Example format: properties/1234.
 19411  func (r *PropertiesDisplayVideo360AdvertiserLinksService) List(parent string) *PropertiesDisplayVideo360AdvertiserLinksListCall {
 19412  	c := &PropertiesDisplayVideo360AdvertiserLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19413  	c.parent = parent
 19414  	return c
 19415  }
 19416  
 19417  // PageSize sets the optional parameter "pageSize": The maximum number of
 19418  // resources to return. If unspecified, at most 50 resources will be returned.
 19419  // The maximum value is 200 (higher values will be coerced to the maximum).
 19420  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) PageSize(pageSize int64) *PropertiesDisplayVideo360AdvertiserLinksListCall {
 19421  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19422  	return c
 19423  }
 19424  
 19425  // PageToken sets the optional parameter "pageToken": A page token, received
 19426  // from a previous `ListDisplayVideo360AdvertiserLinks` call. Provide this to
 19427  // retrieve the subsequent page. When paginating, all other parameters provided
 19428  // to `ListDisplayVideo360AdvertiserLinks` must match the call that provided
 19429  // the page token.
 19430  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) PageToken(pageToken string) *PropertiesDisplayVideo360AdvertiserLinksListCall {
 19431  	c.urlParams_.Set("pageToken", pageToken)
 19432  	return c
 19433  }
 19434  
 19435  // Fields allows partial responses to be retrieved. See
 19436  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19437  // details.
 19438  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinksListCall {
 19439  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19440  	return c
 19441  }
 19442  
 19443  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19444  // object's ETag matches the given value. This is useful for getting updates
 19445  // only after the object has changed since the last request.
 19446  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) IfNoneMatch(entityTag string) *PropertiesDisplayVideo360AdvertiserLinksListCall {
 19447  	c.ifNoneMatch_ = entityTag
 19448  	return c
 19449  }
 19450  
 19451  // Context sets the context to be used in this call's Do method.
 19452  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinksListCall {
 19453  	c.ctx_ = ctx
 19454  	return c
 19455  }
 19456  
 19457  // Header returns a http.Header that can be modified by the caller to add
 19458  // headers to the request.
 19459  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) Header() http.Header {
 19460  	if c.header_ == nil {
 19461  		c.header_ = make(http.Header)
 19462  	}
 19463  	return c.header_
 19464  }
 19465  
 19466  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) doRequest(alt string) (*http.Response, error) {
 19467  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19468  	if c.ifNoneMatch_ != "" {
 19469  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19470  	}
 19471  	var body io.Reader = nil
 19472  	c.urlParams_.Set("alt", alt)
 19473  	c.urlParams_.Set("prettyPrint", "false")
 19474  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/displayVideo360AdvertiserLinks")
 19475  	urls += "?" + c.urlParams_.Encode()
 19476  	req, err := http.NewRequest("GET", urls, body)
 19477  	if err != nil {
 19478  		return nil, err
 19479  	}
 19480  	req.Header = reqHeaders
 19481  	googleapi.Expand(req.URL, map[string]string{
 19482  		"parent": c.parent,
 19483  	})
 19484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19485  }
 19486  
 19487  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.list" call.
 19488  // Any non-2xx status code is an error. Response headers are in either
 19489  // *GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse.Server
 19490  // Response.Header or (if a response was returned at all) in
 19491  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19492  // whether the returned error was because http.StatusNotModified was returned.
 19493  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse, error) {
 19494  	gensupport.SetOptions(c.urlParams_, opts...)
 19495  	res, err := c.doRequest("json")
 19496  	if res != nil && res.StatusCode == http.StatusNotModified {
 19497  		if res.Body != nil {
 19498  			res.Body.Close()
 19499  		}
 19500  		return nil, gensupport.WrapError(&googleapi.Error{
 19501  			Code:   res.StatusCode,
 19502  			Header: res.Header,
 19503  		})
 19504  	}
 19505  	if err != nil {
 19506  		return nil, err
 19507  	}
 19508  	defer googleapi.CloseBody(res)
 19509  	if err := googleapi.CheckResponse(res); err != nil {
 19510  		return nil, gensupport.WrapError(err)
 19511  	}
 19512  	ret := &GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse{
 19513  		ServerResponse: googleapi.ServerResponse{
 19514  			Header:         res.Header,
 19515  			HTTPStatusCode: res.StatusCode,
 19516  		},
 19517  	}
 19518  	target := &ret
 19519  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19520  		return nil, err
 19521  	}
 19522  	return ret, nil
 19523  }
 19524  
 19525  // Pages invokes f for each page of results.
 19526  // A non-nil error returned from f will halt the iteration.
 19527  // The provided context supersedes any context provided to the Context method.
 19528  func (c *PropertiesDisplayVideo360AdvertiserLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse) error) error {
 19529  	c.ctx_ = ctx
 19530  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19531  	for {
 19532  		x, err := c.Do()
 19533  		if err != nil {
 19534  			return err
 19535  		}
 19536  		if err := f(x); err != nil {
 19537  			return err
 19538  		}
 19539  		if x.NextPageToken == "" {
 19540  			return nil
 19541  		}
 19542  		c.PageToken(x.NextPageToken)
 19543  	}
 19544  }
 19545  
 19546  type PropertiesDisplayVideo360AdvertiserLinksPatchCall struct {
 19547  	s                                                        *Service
 19548  	name                                                     string
 19549  	googleanalyticsadminv1alphadisplayvideo360advertiserlink *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink
 19550  	urlParams_                                               gensupport.URLParams
 19551  	ctx_                                                     context.Context
 19552  	header_                                                  http.Header
 19553  }
 19554  
 19555  // Patch: Updates a DisplayVideo360AdvertiserLink on a property.
 19556  //
 19557  //   - name: Output only. The resource name for this
 19558  //     DisplayVideo360AdvertiserLink resource. Format:
 19559  //     properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} Note:
 19560  //     linkId is not the Display & Video 360 Advertiser ID.
 19561  func (r *PropertiesDisplayVideo360AdvertiserLinksService) Patch(name string, googleanalyticsadminv1alphadisplayvideo360advertiserlink *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink) *PropertiesDisplayVideo360AdvertiserLinksPatchCall {
 19562  	c := &PropertiesDisplayVideo360AdvertiserLinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19563  	c.name = name
 19564  	c.googleanalyticsadminv1alphadisplayvideo360advertiserlink = googleanalyticsadminv1alphadisplayvideo360advertiserlink
 19565  	return c
 19566  }
 19567  
 19568  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 19569  // fields to be updated. Omitted fields will not be updated. To replace the
 19570  // entire entity, use one path with the string "*" to match all fields.
 19571  func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) UpdateMask(updateMask string) *PropertiesDisplayVideo360AdvertiserLinksPatchCall {
 19572  	c.urlParams_.Set("updateMask", updateMask)
 19573  	return c
 19574  }
 19575  
 19576  // Fields allows partial responses to be retrieved. See
 19577  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19578  // details.
 19579  func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) Fields(s ...googleapi.Field) *PropertiesDisplayVideo360AdvertiserLinksPatchCall {
 19580  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19581  	return c
 19582  }
 19583  
 19584  // Context sets the context to be used in this call's Do method.
 19585  func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) Context(ctx context.Context) *PropertiesDisplayVideo360AdvertiserLinksPatchCall {
 19586  	c.ctx_ = ctx
 19587  	return c
 19588  }
 19589  
 19590  // Header returns a http.Header that can be modified by the caller to add
 19591  // headers to the request.
 19592  func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) Header() http.Header {
 19593  	if c.header_ == nil {
 19594  		c.header_ = make(http.Header)
 19595  	}
 19596  	return c.header_
 19597  }
 19598  
 19599  func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) doRequest(alt string) (*http.Response, error) {
 19600  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19601  	var body io.Reader = nil
 19602  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadisplayvideo360advertiserlink)
 19603  	if err != nil {
 19604  		return nil, err
 19605  	}
 19606  	c.urlParams_.Set("alt", alt)
 19607  	c.urlParams_.Set("prettyPrint", "false")
 19608  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19609  	urls += "?" + c.urlParams_.Encode()
 19610  	req, err := http.NewRequest("PATCH", urls, body)
 19611  	if err != nil {
 19612  		return nil, err
 19613  	}
 19614  	req.Header = reqHeaders
 19615  	googleapi.Expand(req.URL, map[string]string{
 19616  		"name": c.name,
 19617  	})
 19618  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19619  }
 19620  
 19621  // Do executes the "analyticsadmin.properties.displayVideo360AdvertiserLinks.patch" call.
 19622  // Any non-2xx status code is an error. Response headers are in either
 19623  // *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.ServerResponse.Head
 19624  // er or (if a response was returned at all) in
 19625  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19626  // whether the returned error was because http.StatusNotModified was returned.
 19627  func (c *PropertiesDisplayVideo360AdvertiserLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink, error) {
 19628  	gensupport.SetOptions(c.urlParams_, opts...)
 19629  	res, err := c.doRequest("json")
 19630  	if res != nil && res.StatusCode == http.StatusNotModified {
 19631  		if res.Body != nil {
 19632  			res.Body.Close()
 19633  		}
 19634  		return nil, gensupport.WrapError(&googleapi.Error{
 19635  			Code:   res.StatusCode,
 19636  			Header: res.Header,
 19637  		})
 19638  	}
 19639  	if err != nil {
 19640  		return nil, err
 19641  	}
 19642  	defer googleapi.CloseBody(res)
 19643  	if err := googleapi.CheckResponse(res); err != nil {
 19644  		return nil, gensupport.WrapError(err)
 19645  	}
 19646  	ret := &GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink{
 19647  		ServerResponse: googleapi.ServerResponse{
 19648  			Header:         res.Header,
 19649  			HTTPStatusCode: res.StatusCode,
 19650  		},
 19651  	}
 19652  	target := &ret
 19653  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19654  		return nil, err
 19655  	}
 19656  	return ret, nil
 19657  }
 19658  
 19659  type PropertiesExpandedDataSetsCreateCall struct {
 19660  	s                                          *Service
 19661  	parent                                     string
 19662  	googleanalyticsadminv1alphaexpandeddataset *GoogleAnalyticsAdminV1alphaExpandedDataSet
 19663  	urlParams_                                 gensupport.URLParams
 19664  	ctx_                                       context.Context
 19665  	header_                                    http.Header
 19666  }
 19667  
 19668  // Create: Creates a ExpandedDataSet.
 19669  //
 19670  // - parent: Example format: properties/1234.
 19671  func (r *PropertiesExpandedDataSetsService) Create(parent string, googleanalyticsadminv1alphaexpandeddataset *GoogleAnalyticsAdminV1alphaExpandedDataSet) *PropertiesExpandedDataSetsCreateCall {
 19672  	c := &PropertiesExpandedDataSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19673  	c.parent = parent
 19674  	c.googleanalyticsadminv1alphaexpandeddataset = googleanalyticsadminv1alphaexpandeddataset
 19675  	return c
 19676  }
 19677  
 19678  // Fields allows partial responses to be retrieved. See
 19679  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19680  // details.
 19681  func (c *PropertiesExpandedDataSetsCreateCall) Fields(s ...googleapi.Field) *PropertiesExpandedDataSetsCreateCall {
 19682  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19683  	return c
 19684  }
 19685  
 19686  // Context sets the context to be used in this call's Do method.
 19687  func (c *PropertiesExpandedDataSetsCreateCall) Context(ctx context.Context) *PropertiesExpandedDataSetsCreateCall {
 19688  	c.ctx_ = ctx
 19689  	return c
 19690  }
 19691  
 19692  // Header returns a http.Header that can be modified by the caller to add
 19693  // headers to the request.
 19694  func (c *PropertiesExpandedDataSetsCreateCall) Header() http.Header {
 19695  	if c.header_ == nil {
 19696  		c.header_ = make(http.Header)
 19697  	}
 19698  	return c.header_
 19699  }
 19700  
 19701  func (c *PropertiesExpandedDataSetsCreateCall) doRequest(alt string) (*http.Response, error) {
 19702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19703  	var body io.Reader = nil
 19704  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaexpandeddataset)
 19705  	if err != nil {
 19706  		return nil, err
 19707  	}
 19708  	c.urlParams_.Set("alt", alt)
 19709  	c.urlParams_.Set("prettyPrint", "false")
 19710  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/expandedDataSets")
 19711  	urls += "?" + c.urlParams_.Encode()
 19712  	req, err := http.NewRequest("POST", urls, body)
 19713  	if err != nil {
 19714  		return nil, err
 19715  	}
 19716  	req.Header = reqHeaders
 19717  	googleapi.Expand(req.URL, map[string]string{
 19718  		"parent": c.parent,
 19719  	})
 19720  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19721  }
 19722  
 19723  // Do executes the "analyticsadmin.properties.expandedDataSets.create" call.
 19724  // Any non-2xx status code is an error. Response headers are in either
 19725  // *GoogleAnalyticsAdminV1alphaExpandedDataSet.ServerResponse.Header or (if a
 19726  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19727  // googleapi.IsNotModified to check whether the returned error was because
 19728  // http.StatusNotModified was returned.
 19729  func (c *PropertiesExpandedDataSetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaExpandedDataSet, error) {
 19730  	gensupport.SetOptions(c.urlParams_, opts...)
 19731  	res, err := c.doRequest("json")
 19732  	if res != nil && res.StatusCode == http.StatusNotModified {
 19733  		if res.Body != nil {
 19734  			res.Body.Close()
 19735  		}
 19736  		return nil, gensupport.WrapError(&googleapi.Error{
 19737  			Code:   res.StatusCode,
 19738  			Header: res.Header,
 19739  		})
 19740  	}
 19741  	if err != nil {
 19742  		return nil, err
 19743  	}
 19744  	defer googleapi.CloseBody(res)
 19745  	if err := googleapi.CheckResponse(res); err != nil {
 19746  		return nil, gensupport.WrapError(err)
 19747  	}
 19748  	ret := &GoogleAnalyticsAdminV1alphaExpandedDataSet{
 19749  		ServerResponse: googleapi.ServerResponse{
 19750  			Header:         res.Header,
 19751  			HTTPStatusCode: res.StatusCode,
 19752  		},
 19753  	}
 19754  	target := &ret
 19755  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19756  		return nil, err
 19757  	}
 19758  	return ret, nil
 19759  }
 19760  
 19761  type PropertiesExpandedDataSetsDeleteCall struct {
 19762  	s          *Service
 19763  	name       string
 19764  	urlParams_ gensupport.URLParams
 19765  	ctx_       context.Context
 19766  	header_    http.Header
 19767  }
 19768  
 19769  // Delete: Deletes a ExpandedDataSet on a property.
 19770  //
 19771  // - name: Example format: properties/1234/expandedDataSets/5678.
 19772  func (r *PropertiesExpandedDataSetsService) Delete(name string) *PropertiesExpandedDataSetsDeleteCall {
 19773  	c := &PropertiesExpandedDataSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19774  	c.name = name
 19775  	return c
 19776  }
 19777  
 19778  // Fields allows partial responses to be retrieved. See
 19779  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19780  // details.
 19781  func (c *PropertiesExpandedDataSetsDeleteCall) Fields(s ...googleapi.Field) *PropertiesExpandedDataSetsDeleteCall {
 19782  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19783  	return c
 19784  }
 19785  
 19786  // Context sets the context to be used in this call's Do method.
 19787  func (c *PropertiesExpandedDataSetsDeleteCall) Context(ctx context.Context) *PropertiesExpandedDataSetsDeleteCall {
 19788  	c.ctx_ = ctx
 19789  	return c
 19790  }
 19791  
 19792  // Header returns a http.Header that can be modified by the caller to add
 19793  // headers to the request.
 19794  func (c *PropertiesExpandedDataSetsDeleteCall) Header() http.Header {
 19795  	if c.header_ == nil {
 19796  		c.header_ = make(http.Header)
 19797  	}
 19798  	return c.header_
 19799  }
 19800  
 19801  func (c *PropertiesExpandedDataSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19802  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19803  	var body io.Reader = nil
 19804  	c.urlParams_.Set("alt", alt)
 19805  	c.urlParams_.Set("prettyPrint", "false")
 19806  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19807  	urls += "?" + c.urlParams_.Encode()
 19808  	req, err := http.NewRequest("DELETE", urls, body)
 19809  	if err != nil {
 19810  		return nil, err
 19811  	}
 19812  	req.Header = reqHeaders
 19813  	googleapi.Expand(req.URL, map[string]string{
 19814  		"name": c.name,
 19815  	})
 19816  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19817  }
 19818  
 19819  // Do executes the "analyticsadmin.properties.expandedDataSets.delete" call.
 19820  // Any non-2xx status code is an error. Response headers are in either
 19821  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19822  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19823  // check whether the returned error was because http.StatusNotModified was
 19824  // returned.
 19825  func (c *PropertiesExpandedDataSetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19826  	gensupport.SetOptions(c.urlParams_, opts...)
 19827  	res, err := c.doRequest("json")
 19828  	if res != nil && res.StatusCode == http.StatusNotModified {
 19829  		if res.Body != nil {
 19830  			res.Body.Close()
 19831  		}
 19832  		return nil, gensupport.WrapError(&googleapi.Error{
 19833  			Code:   res.StatusCode,
 19834  			Header: res.Header,
 19835  		})
 19836  	}
 19837  	if err != nil {
 19838  		return nil, err
 19839  	}
 19840  	defer googleapi.CloseBody(res)
 19841  	if err := googleapi.CheckResponse(res); err != nil {
 19842  		return nil, gensupport.WrapError(err)
 19843  	}
 19844  	ret := &GoogleProtobufEmpty{
 19845  		ServerResponse: googleapi.ServerResponse{
 19846  			Header:         res.Header,
 19847  			HTTPStatusCode: res.StatusCode,
 19848  		},
 19849  	}
 19850  	target := &ret
 19851  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19852  		return nil, err
 19853  	}
 19854  	return ret, nil
 19855  }
 19856  
 19857  type PropertiesExpandedDataSetsGetCall struct {
 19858  	s            *Service
 19859  	name         string
 19860  	urlParams_   gensupport.URLParams
 19861  	ifNoneMatch_ string
 19862  	ctx_         context.Context
 19863  	header_      http.Header
 19864  }
 19865  
 19866  // Get: Lookup for a single ExpandedDataSet.
 19867  //
 19868  //   - name: The name of the ExpandedDataSet to get. Example format:
 19869  //     properties/1234/expandedDataSets/5678.
 19870  func (r *PropertiesExpandedDataSetsService) Get(name string) *PropertiesExpandedDataSetsGetCall {
 19871  	c := &PropertiesExpandedDataSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19872  	c.name = name
 19873  	return c
 19874  }
 19875  
 19876  // Fields allows partial responses to be retrieved. See
 19877  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19878  // details.
 19879  func (c *PropertiesExpandedDataSetsGetCall) Fields(s ...googleapi.Field) *PropertiesExpandedDataSetsGetCall {
 19880  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19881  	return c
 19882  }
 19883  
 19884  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19885  // object's ETag matches the given value. This is useful for getting updates
 19886  // only after the object has changed since the last request.
 19887  func (c *PropertiesExpandedDataSetsGetCall) IfNoneMatch(entityTag string) *PropertiesExpandedDataSetsGetCall {
 19888  	c.ifNoneMatch_ = entityTag
 19889  	return c
 19890  }
 19891  
 19892  // Context sets the context to be used in this call's Do method.
 19893  func (c *PropertiesExpandedDataSetsGetCall) Context(ctx context.Context) *PropertiesExpandedDataSetsGetCall {
 19894  	c.ctx_ = ctx
 19895  	return c
 19896  }
 19897  
 19898  // Header returns a http.Header that can be modified by the caller to add
 19899  // headers to the request.
 19900  func (c *PropertiesExpandedDataSetsGetCall) Header() http.Header {
 19901  	if c.header_ == nil {
 19902  		c.header_ = make(http.Header)
 19903  	}
 19904  	return c.header_
 19905  }
 19906  
 19907  func (c *PropertiesExpandedDataSetsGetCall) doRequest(alt string) (*http.Response, error) {
 19908  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19909  	if c.ifNoneMatch_ != "" {
 19910  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19911  	}
 19912  	var body io.Reader = nil
 19913  	c.urlParams_.Set("alt", alt)
 19914  	c.urlParams_.Set("prettyPrint", "false")
 19915  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19916  	urls += "?" + c.urlParams_.Encode()
 19917  	req, err := http.NewRequest("GET", urls, body)
 19918  	if err != nil {
 19919  		return nil, err
 19920  	}
 19921  	req.Header = reqHeaders
 19922  	googleapi.Expand(req.URL, map[string]string{
 19923  		"name": c.name,
 19924  	})
 19925  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19926  }
 19927  
 19928  // Do executes the "analyticsadmin.properties.expandedDataSets.get" call.
 19929  // Any non-2xx status code is an error. Response headers are in either
 19930  // *GoogleAnalyticsAdminV1alphaExpandedDataSet.ServerResponse.Header or (if a
 19931  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19932  // googleapi.IsNotModified to check whether the returned error was because
 19933  // http.StatusNotModified was returned.
 19934  func (c *PropertiesExpandedDataSetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaExpandedDataSet, error) {
 19935  	gensupport.SetOptions(c.urlParams_, opts...)
 19936  	res, err := c.doRequest("json")
 19937  	if res != nil && res.StatusCode == http.StatusNotModified {
 19938  		if res.Body != nil {
 19939  			res.Body.Close()
 19940  		}
 19941  		return nil, gensupport.WrapError(&googleapi.Error{
 19942  			Code:   res.StatusCode,
 19943  			Header: res.Header,
 19944  		})
 19945  	}
 19946  	if err != nil {
 19947  		return nil, err
 19948  	}
 19949  	defer googleapi.CloseBody(res)
 19950  	if err := googleapi.CheckResponse(res); err != nil {
 19951  		return nil, gensupport.WrapError(err)
 19952  	}
 19953  	ret := &GoogleAnalyticsAdminV1alphaExpandedDataSet{
 19954  		ServerResponse: googleapi.ServerResponse{
 19955  			Header:         res.Header,
 19956  			HTTPStatusCode: res.StatusCode,
 19957  		},
 19958  	}
 19959  	target := &ret
 19960  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19961  		return nil, err
 19962  	}
 19963  	return ret, nil
 19964  }
 19965  
 19966  type PropertiesExpandedDataSetsListCall struct {
 19967  	s            *Service
 19968  	parent       string
 19969  	urlParams_   gensupport.URLParams
 19970  	ifNoneMatch_ string
 19971  	ctx_         context.Context
 19972  	header_      http.Header
 19973  }
 19974  
 19975  // List: Lists ExpandedDataSets on a property.
 19976  //
 19977  // - parent: Example format: properties/1234.
 19978  func (r *PropertiesExpandedDataSetsService) List(parent string) *PropertiesExpandedDataSetsListCall {
 19979  	c := &PropertiesExpandedDataSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19980  	c.parent = parent
 19981  	return c
 19982  }
 19983  
 19984  // PageSize sets the optional parameter "pageSize": The maximum number of
 19985  // resources to return. If unspecified, at most 50 resources will be returned.
 19986  // The maximum value is 200 (higher values will be coerced to the maximum).
 19987  func (c *PropertiesExpandedDataSetsListCall) PageSize(pageSize int64) *PropertiesExpandedDataSetsListCall {
 19988  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19989  	return c
 19990  }
 19991  
 19992  // PageToken sets the optional parameter "pageToken": A page token, received
 19993  // from a previous `ListExpandedDataSets` call. Provide this to retrieve the
 19994  // subsequent page. When paginating, all other parameters provided to
 19995  // `ListExpandedDataSet` must match the call that provided the page token.
 19996  func (c *PropertiesExpandedDataSetsListCall) PageToken(pageToken string) *PropertiesExpandedDataSetsListCall {
 19997  	c.urlParams_.Set("pageToken", pageToken)
 19998  	return c
 19999  }
 20000  
 20001  // Fields allows partial responses to be retrieved. See
 20002  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20003  // details.
 20004  func (c *PropertiesExpandedDataSetsListCall) Fields(s ...googleapi.Field) *PropertiesExpandedDataSetsListCall {
 20005  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20006  	return c
 20007  }
 20008  
 20009  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20010  // object's ETag matches the given value. This is useful for getting updates
 20011  // only after the object has changed since the last request.
 20012  func (c *PropertiesExpandedDataSetsListCall) IfNoneMatch(entityTag string) *PropertiesExpandedDataSetsListCall {
 20013  	c.ifNoneMatch_ = entityTag
 20014  	return c
 20015  }
 20016  
 20017  // Context sets the context to be used in this call's Do method.
 20018  func (c *PropertiesExpandedDataSetsListCall) Context(ctx context.Context) *PropertiesExpandedDataSetsListCall {
 20019  	c.ctx_ = ctx
 20020  	return c
 20021  }
 20022  
 20023  // Header returns a http.Header that can be modified by the caller to add
 20024  // headers to the request.
 20025  func (c *PropertiesExpandedDataSetsListCall) Header() http.Header {
 20026  	if c.header_ == nil {
 20027  		c.header_ = make(http.Header)
 20028  	}
 20029  	return c.header_
 20030  }
 20031  
 20032  func (c *PropertiesExpandedDataSetsListCall) doRequest(alt string) (*http.Response, error) {
 20033  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20034  	if c.ifNoneMatch_ != "" {
 20035  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20036  	}
 20037  	var body io.Reader = nil
 20038  	c.urlParams_.Set("alt", alt)
 20039  	c.urlParams_.Set("prettyPrint", "false")
 20040  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/expandedDataSets")
 20041  	urls += "?" + c.urlParams_.Encode()
 20042  	req, err := http.NewRequest("GET", urls, body)
 20043  	if err != nil {
 20044  		return nil, err
 20045  	}
 20046  	req.Header = reqHeaders
 20047  	googleapi.Expand(req.URL, map[string]string{
 20048  		"parent": c.parent,
 20049  	})
 20050  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20051  }
 20052  
 20053  // Do executes the "analyticsadmin.properties.expandedDataSets.list" call.
 20054  // Any non-2xx status code is an error. Response headers are in either
 20055  // *GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse.ServerResponse.Heade
 20056  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 20057  // Use googleapi.IsNotModified to check whether the returned error was because
 20058  // http.StatusNotModified was returned.
 20059  func (c *PropertiesExpandedDataSetsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse, error) {
 20060  	gensupport.SetOptions(c.urlParams_, opts...)
 20061  	res, err := c.doRequest("json")
 20062  	if res != nil && res.StatusCode == http.StatusNotModified {
 20063  		if res.Body != nil {
 20064  			res.Body.Close()
 20065  		}
 20066  		return nil, gensupport.WrapError(&googleapi.Error{
 20067  			Code:   res.StatusCode,
 20068  			Header: res.Header,
 20069  		})
 20070  	}
 20071  	if err != nil {
 20072  		return nil, err
 20073  	}
 20074  	defer googleapi.CloseBody(res)
 20075  	if err := googleapi.CheckResponse(res); err != nil {
 20076  		return nil, gensupport.WrapError(err)
 20077  	}
 20078  	ret := &GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse{
 20079  		ServerResponse: googleapi.ServerResponse{
 20080  			Header:         res.Header,
 20081  			HTTPStatusCode: res.StatusCode,
 20082  		},
 20083  	}
 20084  	target := &ret
 20085  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20086  		return nil, err
 20087  	}
 20088  	return ret, nil
 20089  }
 20090  
 20091  // Pages invokes f for each page of results.
 20092  // A non-nil error returned from f will halt the iteration.
 20093  // The provided context supersedes any context provided to the Context method.
 20094  func (c *PropertiesExpandedDataSetsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse) error) error {
 20095  	c.ctx_ = ctx
 20096  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20097  	for {
 20098  		x, err := c.Do()
 20099  		if err != nil {
 20100  			return err
 20101  		}
 20102  		if err := f(x); err != nil {
 20103  			return err
 20104  		}
 20105  		if x.NextPageToken == "" {
 20106  			return nil
 20107  		}
 20108  		c.PageToken(x.NextPageToken)
 20109  	}
 20110  }
 20111  
 20112  type PropertiesExpandedDataSetsPatchCall struct {
 20113  	s                                          *Service
 20114  	name                                       string
 20115  	googleanalyticsadminv1alphaexpandeddataset *GoogleAnalyticsAdminV1alphaExpandedDataSet
 20116  	urlParams_                                 gensupport.URLParams
 20117  	ctx_                                       context.Context
 20118  	header_                                    http.Header
 20119  }
 20120  
 20121  // Patch: Updates a ExpandedDataSet on a property.
 20122  //
 20123  //   - name: Output only. The resource name for this ExpandedDataSet resource.
 20124  //     Format: properties/{property_id}/expandedDataSets/{expanded_data_set}.
 20125  func (r *PropertiesExpandedDataSetsService) Patch(name string, googleanalyticsadminv1alphaexpandeddataset *GoogleAnalyticsAdminV1alphaExpandedDataSet) *PropertiesExpandedDataSetsPatchCall {
 20126  	c := &PropertiesExpandedDataSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20127  	c.name = name
 20128  	c.googleanalyticsadminv1alphaexpandeddataset = googleanalyticsadminv1alphaexpandeddataset
 20129  	return c
 20130  }
 20131  
 20132  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 20133  // fields to be updated. Field names must be in snake case (e.g.,
 20134  // "field_to_update"). Omitted fields will not be updated. To replace the
 20135  // entire entity, use one path with the string "*" to match all fields.
 20136  func (c *PropertiesExpandedDataSetsPatchCall) UpdateMask(updateMask string) *PropertiesExpandedDataSetsPatchCall {
 20137  	c.urlParams_.Set("updateMask", updateMask)
 20138  	return c
 20139  }
 20140  
 20141  // Fields allows partial responses to be retrieved. See
 20142  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20143  // details.
 20144  func (c *PropertiesExpandedDataSetsPatchCall) Fields(s ...googleapi.Field) *PropertiesExpandedDataSetsPatchCall {
 20145  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20146  	return c
 20147  }
 20148  
 20149  // Context sets the context to be used in this call's Do method.
 20150  func (c *PropertiesExpandedDataSetsPatchCall) Context(ctx context.Context) *PropertiesExpandedDataSetsPatchCall {
 20151  	c.ctx_ = ctx
 20152  	return c
 20153  }
 20154  
 20155  // Header returns a http.Header that can be modified by the caller to add
 20156  // headers to the request.
 20157  func (c *PropertiesExpandedDataSetsPatchCall) Header() http.Header {
 20158  	if c.header_ == nil {
 20159  		c.header_ = make(http.Header)
 20160  	}
 20161  	return c.header_
 20162  }
 20163  
 20164  func (c *PropertiesExpandedDataSetsPatchCall) doRequest(alt string) (*http.Response, error) {
 20165  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20166  	var body io.Reader = nil
 20167  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaexpandeddataset)
 20168  	if err != nil {
 20169  		return nil, err
 20170  	}
 20171  	c.urlParams_.Set("alt", alt)
 20172  	c.urlParams_.Set("prettyPrint", "false")
 20173  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 20174  	urls += "?" + c.urlParams_.Encode()
 20175  	req, err := http.NewRequest("PATCH", urls, body)
 20176  	if err != nil {
 20177  		return nil, err
 20178  	}
 20179  	req.Header = reqHeaders
 20180  	googleapi.Expand(req.URL, map[string]string{
 20181  		"name": c.name,
 20182  	})
 20183  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20184  }
 20185  
 20186  // Do executes the "analyticsadmin.properties.expandedDataSets.patch" call.
 20187  // Any non-2xx status code is an error. Response headers are in either
 20188  // *GoogleAnalyticsAdminV1alphaExpandedDataSet.ServerResponse.Header or (if a
 20189  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20190  // googleapi.IsNotModified to check whether the returned error was because
 20191  // http.StatusNotModified was returned.
 20192  func (c *PropertiesExpandedDataSetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaExpandedDataSet, error) {
 20193  	gensupport.SetOptions(c.urlParams_, opts...)
 20194  	res, err := c.doRequest("json")
 20195  	if res != nil && res.StatusCode == http.StatusNotModified {
 20196  		if res.Body != nil {
 20197  			res.Body.Close()
 20198  		}
 20199  		return nil, gensupport.WrapError(&googleapi.Error{
 20200  			Code:   res.StatusCode,
 20201  			Header: res.Header,
 20202  		})
 20203  	}
 20204  	if err != nil {
 20205  		return nil, err
 20206  	}
 20207  	defer googleapi.CloseBody(res)
 20208  	if err := googleapi.CheckResponse(res); err != nil {
 20209  		return nil, gensupport.WrapError(err)
 20210  	}
 20211  	ret := &GoogleAnalyticsAdminV1alphaExpandedDataSet{
 20212  		ServerResponse: googleapi.ServerResponse{
 20213  			Header:         res.Header,
 20214  			HTTPStatusCode: res.StatusCode,
 20215  		},
 20216  	}
 20217  	target := &ret
 20218  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20219  		return nil, err
 20220  	}
 20221  	return ret, nil
 20222  }
 20223  
 20224  type PropertiesFirebaseLinksCreateCall struct {
 20225  	s                                       *Service
 20226  	parent                                  string
 20227  	googleanalyticsadminv1alphafirebaselink *GoogleAnalyticsAdminV1alphaFirebaseLink
 20228  	urlParams_                              gensupport.URLParams
 20229  	ctx_                                    context.Context
 20230  	header_                                 http.Header
 20231  }
 20232  
 20233  // Create: Creates a FirebaseLink. Properties can have at most one
 20234  // FirebaseLink.
 20235  //
 20236  // - parent: Format: properties/{property_id} Example: properties/1234.
 20237  func (r *PropertiesFirebaseLinksService) Create(parent string, googleanalyticsadminv1alphafirebaselink *GoogleAnalyticsAdminV1alphaFirebaseLink) *PropertiesFirebaseLinksCreateCall {
 20238  	c := &PropertiesFirebaseLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20239  	c.parent = parent
 20240  	c.googleanalyticsadminv1alphafirebaselink = googleanalyticsadminv1alphafirebaselink
 20241  	return c
 20242  }
 20243  
 20244  // Fields allows partial responses to be retrieved. See
 20245  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20246  // details.
 20247  func (c *PropertiesFirebaseLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesFirebaseLinksCreateCall {
 20248  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20249  	return c
 20250  }
 20251  
 20252  // Context sets the context to be used in this call's Do method.
 20253  func (c *PropertiesFirebaseLinksCreateCall) Context(ctx context.Context) *PropertiesFirebaseLinksCreateCall {
 20254  	c.ctx_ = ctx
 20255  	return c
 20256  }
 20257  
 20258  // Header returns a http.Header that can be modified by the caller to add
 20259  // headers to the request.
 20260  func (c *PropertiesFirebaseLinksCreateCall) Header() http.Header {
 20261  	if c.header_ == nil {
 20262  		c.header_ = make(http.Header)
 20263  	}
 20264  	return c.header_
 20265  }
 20266  
 20267  func (c *PropertiesFirebaseLinksCreateCall) doRequest(alt string) (*http.Response, error) {
 20268  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20269  	var body io.Reader = nil
 20270  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphafirebaselink)
 20271  	if err != nil {
 20272  		return nil, err
 20273  	}
 20274  	c.urlParams_.Set("alt", alt)
 20275  	c.urlParams_.Set("prettyPrint", "false")
 20276  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/firebaseLinks")
 20277  	urls += "?" + c.urlParams_.Encode()
 20278  	req, err := http.NewRequest("POST", urls, body)
 20279  	if err != nil {
 20280  		return nil, err
 20281  	}
 20282  	req.Header = reqHeaders
 20283  	googleapi.Expand(req.URL, map[string]string{
 20284  		"parent": c.parent,
 20285  	})
 20286  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20287  }
 20288  
 20289  // Do executes the "analyticsadmin.properties.firebaseLinks.create" call.
 20290  // Any non-2xx status code is an error. Response headers are in either
 20291  // *GoogleAnalyticsAdminV1alphaFirebaseLink.ServerResponse.Header or (if a
 20292  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20293  // googleapi.IsNotModified to check whether the returned error was because
 20294  // http.StatusNotModified was returned.
 20295  func (c *PropertiesFirebaseLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaFirebaseLink, error) {
 20296  	gensupport.SetOptions(c.urlParams_, opts...)
 20297  	res, err := c.doRequest("json")
 20298  	if res != nil && res.StatusCode == http.StatusNotModified {
 20299  		if res.Body != nil {
 20300  			res.Body.Close()
 20301  		}
 20302  		return nil, gensupport.WrapError(&googleapi.Error{
 20303  			Code:   res.StatusCode,
 20304  			Header: res.Header,
 20305  		})
 20306  	}
 20307  	if err != nil {
 20308  		return nil, err
 20309  	}
 20310  	defer googleapi.CloseBody(res)
 20311  	if err := googleapi.CheckResponse(res); err != nil {
 20312  		return nil, gensupport.WrapError(err)
 20313  	}
 20314  	ret := &GoogleAnalyticsAdminV1alphaFirebaseLink{
 20315  		ServerResponse: googleapi.ServerResponse{
 20316  			Header:         res.Header,
 20317  			HTTPStatusCode: res.StatusCode,
 20318  		},
 20319  	}
 20320  	target := &ret
 20321  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20322  		return nil, err
 20323  	}
 20324  	return ret, nil
 20325  }
 20326  
 20327  type PropertiesFirebaseLinksDeleteCall struct {
 20328  	s          *Service
 20329  	name       string
 20330  	urlParams_ gensupport.URLParams
 20331  	ctx_       context.Context
 20332  	header_    http.Header
 20333  }
 20334  
 20335  // Delete: Deletes a FirebaseLink on a property
 20336  //
 20337  //   - name: Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
 20338  //     Example: properties/1234/firebaseLinks/5678.
 20339  func (r *PropertiesFirebaseLinksService) Delete(name string) *PropertiesFirebaseLinksDeleteCall {
 20340  	c := &PropertiesFirebaseLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20341  	c.name = name
 20342  	return c
 20343  }
 20344  
 20345  // Fields allows partial responses to be retrieved. See
 20346  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20347  // details.
 20348  func (c *PropertiesFirebaseLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesFirebaseLinksDeleteCall {
 20349  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20350  	return c
 20351  }
 20352  
 20353  // Context sets the context to be used in this call's Do method.
 20354  func (c *PropertiesFirebaseLinksDeleteCall) Context(ctx context.Context) *PropertiesFirebaseLinksDeleteCall {
 20355  	c.ctx_ = ctx
 20356  	return c
 20357  }
 20358  
 20359  // Header returns a http.Header that can be modified by the caller to add
 20360  // headers to the request.
 20361  func (c *PropertiesFirebaseLinksDeleteCall) Header() http.Header {
 20362  	if c.header_ == nil {
 20363  		c.header_ = make(http.Header)
 20364  	}
 20365  	return c.header_
 20366  }
 20367  
 20368  func (c *PropertiesFirebaseLinksDeleteCall) doRequest(alt string) (*http.Response, error) {
 20369  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20370  	var body io.Reader = nil
 20371  	c.urlParams_.Set("alt", alt)
 20372  	c.urlParams_.Set("prettyPrint", "false")
 20373  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 20374  	urls += "?" + c.urlParams_.Encode()
 20375  	req, err := http.NewRequest("DELETE", urls, body)
 20376  	if err != nil {
 20377  		return nil, err
 20378  	}
 20379  	req.Header = reqHeaders
 20380  	googleapi.Expand(req.URL, map[string]string{
 20381  		"name": c.name,
 20382  	})
 20383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20384  }
 20385  
 20386  // Do executes the "analyticsadmin.properties.firebaseLinks.delete" call.
 20387  // Any non-2xx status code is an error. Response headers are in either
 20388  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20389  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20390  // check whether the returned error was because http.StatusNotModified was
 20391  // returned.
 20392  func (c *PropertiesFirebaseLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20393  	gensupport.SetOptions(c.urlParams_, opts...)
 20394  	res, err := c.doRequest("json")
 20395  	if res != nil && res.StatusCode == http.StatusNotModified {
 20396  		if res.Body != nil {
 20397  			res.Body.Close()
 20398  		}
 20399  		return nil, gensupport.WrapError(&googleapi.Error{
 20400  			Code:   res.StatusCode,
 20401  			Header: res.Header,
 20402  		})
 20403  	}
 20404  	if err != nil {
 20405  		return nil, err
 20406  	}
 20407  	defer googleapi.CloseBody(res)
 20408  	if err := googleapi.CheckResponse(res); err != nil {
 20409  		return nil, gensupport.WrapError(err)
 20410  	}
 20411  	ret := &GoogleProtobufEmpty{
 20412  		ServerResponse: googleapi.ServerResponse{
 20413  			Header:         res.Header,
 20414  			HTTPStatusCode: res.StatusCode,
 20415  		},
 20416  	}
 20417  	target := &ret
 20418  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20419  		return nil, err
 20420  	}
 20421  	return ret, nil
 20422  }
 20423  
 20424  type PropertiesFirebaseLinksListCall struct {
 20425  	s            *Service
 20426  	parent       string
 20427  	urlParams_   gensupport.URLParams
 20428  	ifNoneMatch_ string
 20429  	ctx_         context.Context
 20430  	header_      http.Header
 20431  }
 20432  
 20433  // List: Lists FirebaseLinks on a property. Properties can have at most one
 20434  // FirebaseLink.
 20435  //
 20436  // - parent: Format: properties/{property_id} Example: properties/1234.
 20437  func (r *PropertiesFirebaseLinksService) List(parent string) *PropertiesFirebaseLinksListCall {
 20438  	c := &PropertiesFirebaseLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20439  	c.parent = parent
 20440  	return c
 20441  }
 20442  
 20443  // PageSize sets the optional parameter "pageSize": The maximum number of
 20444  // resources to return. The service may return fewer than this value, even if
 20445  // there are additional pages. If unspecified, at most 50 resources will be
 20446  // returned. The maximum value is 200; (higher values will be coerced to the
 20447  // maximum)
 20448  func (c *PropertiesFirebaseLinksListCall) PageSize(pageSize int64) *PropertiesFirebaseLinksListCall {
 20449  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20450  	return c
 20451  }
 20452  
 20453  // PageToken sets the optional parameter "pageToken": A page token, received
 20454  // from a previous `ListFirebaseLinks` call. Provide this to retrieve the
 20455  // subsequent page. When paginating, all other parameters provided to
 20456  // `ListFirebaseLinks` must match the call that provided the page token.
 20457  func (c *PropertiesFirebaseLinksListCall) PageToken(pageToken string) *PropertiesFirebaseLinksListCall {
 20458  	c.urlParams_.Set("pageToken", pageToken)
 20459  	return c
 20460  }
 20461  
 20462  // Fields allows partial responses to be retrieved. See
 20463  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20464  // details.
 20465  func (c *PropertiesFirebaseLinksListCall) Fields(s ...googleapi.Field) *PropertiesFirebaseLinksListCall {
 20466  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20467  	return c
 20468  }
 20469  
 20470  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20471  // object's ETag matches the given value. This is useful for getting updates
 20472  // only after the object has changed since the last request.
 20473  func (c *PropertiesFirebaseLinksListCall) IfNoneMatch(entityTag string) *PropertiesFirebaseLinksListCall {
 20474  	c.ifNoneMatch_ = entityTag
 20475  	return c
 20476  }
 20477  
 20478  // Context sets the context to be used in this call's Do method.
 20479  func (c *PropertiesFirebaseLinksListCall) Context(ctx context.Context) *PropertiesFirebaseLinksListCall {
 20480  	c.ctx_ = ctx
 20481  	return c
 20482  }
 20483  
 20484  // Header returns a http.Header that can be modified by the caller to add
 20485  // headers to the request.
 20486  func (c *PropertiesFirebaseLinksListCall) Header() http.Header {
 20487  	if c.header_ == nil {
 20488  		c.header_ = make(http.Header)
 20489  	}
 20490  	return c.header_
 20491  }
 20492  
 20493  func (c *PropertiesFirebaseLinksListCall) doRequest(alt string) (*http.Response, error) {
 20494  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20495  	if c.ifNoneMatch_ != "" {
 20496  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20497  	}
 20498  	var body io.Reader = nil
 20499  	c.urlParams_.Set("alt", alt)
 20500  	c.urlParams_.Set("prettyPrint", "false")
 20501  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/firebaseLinks")
 20502  	urls += "?" + c.urlParams_.Encode()
 20503  	req, err := http.NewRequest("GET", urls, body)
 20504  	if err != nil {
 20505  		return nil, err
 20506  	}
 20507  	req.Header = reqHeaders
 20508  	googleapi.Expand(req.URL, map[string]string{
 20509  		"parent": c.parent,
 20510  	})
 20511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20512  }
 20513  
 20514  // Do executes the "analyticsadmin.properties.firebaseLinks.list" call.
 20515  // Any non-2xx status code is an error. Response headers are in either
 20516  // *GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse.ServerResponse.Header
 20517  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 20518  // Use googleapi.IsNotModified to check whether the returned error was because
 20519  // http.StatusNotModified was returned.
 20520  func (c *PropertiesFirebaseLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse, error) {
 20521  	gensupport.SetOptions(c.urlParams_, opts...)
 20522  	res, err := c.doRequest("json")
 20523  	if res != nil && res.StatusCode == http.StatusNotModified {
 20524  		if res.Body != nil {
 20525  			res.Body.Close()
 20526  		}
 20527  		return nil, gensupport.WrapError(&googleapi.Error{
 20528  			Code:   res.StatusCode,
 20529  			Header: res.Header,
 20530  		})
 20531  	}
 20532  	if err != nil {
 20533  		return nil, err
 20534  	}
 20535  	defer googleapi.CloseBody(res)
 20536  	if err := googleapi.CheckResponse(res); err != nil {
 20537  		return nil, gensupport.WrapError(err)
 20538  	}
 20539  	ret := &GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse{
 20540  		ServerResponse: googleapi.ServerResponse{
 20541  			Header:         res.Header,
 20542  			HTTPStatusCode: res.StatusCode,
 20543  		},
 20544  	}
 20545  	target := &ret
 20546  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20547  		return nil, err
 20548  	}
 20549  	return ret, nil
 20550  }
 20551  
 20552  // Pages invokes f for each page of results.
 20553  // A non-nil error returned from f will halt the iteration.
 20554  // The provided context supersedes any context provided to the Context method.
 20555  func (c *PropertiesFirebaseLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse) error) error {
 20556  	c.ctx_ = ctx
 20557  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20558  	for {
 20559  		x, err := c.Do()
 20560  		if err != nil {
 20561  			return err
 20562  		}
 20563  		if err := f(x); err != nil {
 20564  			return err
 20565  		}
 20566  		if x.NextPageToken == "" {
 20567  			return nil
 20568  		}
 20569  		c.PageToken(x.NextPageToken)
 20570  	}
 20571  }
 20572  
 20573  type PropertiesGoogleAdsLinksCreateCall struct {
 20574  	s                                        *Service
 20575  	parent                                   string
 20576  	googleanalyticsadminv1alphagoogleadslink *GoogleAnalyticsAdminV1alphaGoogleAdsLink
 20577  	urlParams_                               gensupport.URLParams
 20578  	ctx_                                     context.Context
 20579  	header_                                  http.Header
 20580  }
 20581  
 20582  // Create: Creates a GoogleAdsLink.
 20583  //
 20584  // - parent: Example format: properties/1234.
 20585  func (r *PropertiesGoogleAdsLinksService) Create(parent string, googleanalyticsadminv1alphagoogleadslink *GoogleAnalyticsAdminV1alphaGoogleAdsLink) *PropertiesGoogleAdsLinksCreateCall {
 20586  	c := &PropertiesGoogleAdsLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20587  	c.parent = parent
 20588  	c.googleanalyticsadminv1alphagoogleadslink = googleanalyticsadminv1alphagoogleadslink
 20589  	return c
 20590  }
 20591  
 20592  // Fields allows partial responses to be retrieved. See
 20593  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20594  // details.
 20595  func (c *PropertiesGoogleAdsLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesGoogleAdsLinksCreateCall {
 20596  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20597  	return c
 20598  }
 20599  
 20600  // Context sets the context to be used in this call's Do method.
 20601  func (c *PropertiesGoogleAdsLinksCreateCall) Context(ctx context.Context) *PropertiesGoogleAdsLinksCreateCall {
 20602  	c.ctx_ = ctx
 20603  	return c
 20604  }
 20605  
 20606  // Header returns a http.Header that can be modified by the caller to add
 20607  // headers to the request.
 20608  func (c *PropertiesGoogleAdsLinksCreateCall) Header() http.Header {
 20609  	if c.header_ == nil {
 20610  		c.header_ = make(http.Header)
 20611  	}
 20612  	return c.header_
 20613  }
 20614  
 20615  func (c *PropertiesGoogleAdsLinksCreateCall) doRequest(alt string) (*http.Response, error) {
 20616  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20617  	var body io.Reader = nil
 20618  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphagoogleadslink)
 20619  	if err != nil {
 20620  		return nil, err
 20621  	}
 20622  	c.urlParams_.Set("alt", alt)
 20623  	c.urlParams_.Set("prettyPrint", "false")
 20624  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/googleAdsLinks")
 20625  	urls += "?" + c.urlParams_.Encode()
 20626  	req, err := http.NewRequest("POST", urls, body)
 20627  	if err != nil {
 20628  		return nil, err
 20629  	}
 20630  	req.Header = reqHeaders
 20631  	googleapi.Expand(req.URL, map[string]string{
 20632  		"parent": c.parent,
 20633  	})
 20634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20635  }
 20636  
 20637  // Do executes the "analyticsadmin.properties.googleAdsLinks.create" call.
 20638  // Any non-2xx status code is an error. Response headers are in either
 20639  // *GoogleAnalyticsAdminV1alphaGoogleAdsLink.ServerResponse.Header or (if a
 20640  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20641  // googleapi.IsNotModified to check whether the returned error was because
 20642  // http.StatusNotModified was returned.
 20643  func (c *PropertiesGoogleAdsLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleAdsLink, error) {
 20644  	gensupport.SetOptions(c.urlParams_, opts...)
 20645  	res, err := c.doRequest("json")
 20646  	if res != nil && res.StatusCode == http.StatusNotModified {
 20647  		if res.Body != nil {
 20648  			res.Body.Close()
 20649  		}
 20650  		return nil, gensupport.WrapError(&googleapi.Error{
 20651  			Code:   res.StatusCode,
 20652  			Header: res.Header,
 20653  		})
 20654  	}
 20655  	if err != nil {
 20656  		return nil, err
 20657  	}
 20658  	defer googleapi.CloseBody(res)
 20659  	if err := googleapi.CheckResponse(res); err != nil {
 20660  		return nil, gensupport.WrapError(err)
 20661  	}
 20662  	ret := &GoogleAnalyticsAdminV1alphaGoogleAdsLink{
 20663  		ServerResponse: googleapi.ServerResponse{
 20664  			Header:         res.Header,
 20665  			HTTPStatusCode: res.StatusCode,
 20666  		},
 20667  	}
 20668  	target := &ret
 20669  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20670  		return nil, err
 20671  	}
 20672  	return ret, nil
 20673  }
 20674  
 20675  type PropertiesGoogleAdsLinksDeleteCall struct {
 20676  	s          *Service
 20677  	name       string
 20678  	urlParams_ gensupport.URLParams
 20679  	ctx_       context.Context
 20680  	header_    http.Header
 20681  }
 20682  
 20683  // Delete: Deletes a GoogleAdsLink on a property
 20684  //
 20685  // - name: Example format: properties/1234/googleAdsLinks/5678.
 20686  func (r *PropertiesGoogleAdsLinksService) Delete(name string) *PropertiesGoogleAdsLinksDeleteCall {
 20687  	c := &PropertiesGoogleAdsLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20688  	c.name = name
 20689  	return c
 20690  }
 20691  
 20692  // Fields allows partial responses to be retrieved. See
 20693  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20694  // details.
 20695  func (c *PropertiesGoogleAdsLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesGoogleAdsLinksDeleteCall {
 20696  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20697  	return c
 20698  }
 20699  
 20700  // Context sets the context to be used in this call's Do method.
 20701  func (c *PropertiesGoogleAdsLinksDeleteCall) Context(ctx context.Context) *PropertiesGoogleAdsLinksDeleteCall {
 20702  	c.ctx_ = ctx
 20703  	return c
 20704  }
 20705  
 20706  // Header returns a http.Header that can be modified by the caller to add
 20707  // headers to the request.
 20708  func (c *PropertiesGoogleAdsLinksDeleteCall) Header() http.Header {
 20709  	if c.header_ == nil {
 20710  		c.header_ = make(http.Header)
 20711  	}
 20712  	return c.header_
 20713  }
 20714  
 20715  func (c *PropertiesGoogleAdsLinksDeleteCall) doRequest(alt string) (*http.Response, error) {
 20716  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20717  	var body io.Reader = nil
 20718  	c.urlParams_.Set("alt", alt)
 20719  	c.urlParams_.Set("prettyPrint", "false")
 20720  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 20721  	urls += "?" + c.urlParams_.Encode()
 20722  	req, err := http.NewRequest("DELETE", urls, body)
 20723  	if err != nil {
 20724  		return nil, err
 20725  	}
 20726  	req.Header = reqHeaders
 20727  	googleapi.Expand(req.URL, map[string]string{
 20728  		"name": c.name,
 20729  	})
 20730  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20731  }
 20732  
 20733  // Do executes the "analyticsadmin.properties.googleAdsLinks.delete" call.
 20734  // Any non-2xx status code is an error. Response headers are in either
 20735  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20736  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20737  // check whether the returned error was because http.StatusNotModified was
 20738  // returned.
 20739  func (c *PropertiesGoogleAdsLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20740  	gensupport.SetOptions(c.urlParams_, opts...)
 20741  	res, err := c.doRequest("json")
 20742  	if res != nil && res.StatusCode == http.StatusNotModified {
 20743  		if res.Body != nil {
 20744  			res.Body.Close()
 20745  		}
 20746  		return nil, gensupport.WrapError(&googleapi.Error{
 20747  			Code:   res.StatusCode,
 20748  			Header: res.Header,
 20749  		})
 20750  	}
 20751  	if err != nil {
 20752  		return nil, err
 20753  	}
 20754  	defer googleapi.CloseBody(res)
 20755  	if err := googleapi.CheckResponse(res); err != nil {
 20756  		return nil, gensupport.WrapError(err)
 20757  	}
 20758  	ret := &GoogleProtobufEmpty{
 20759  		ServerResponse: googleapi.ServerResponse{
 20760  			Header:         res.Header,
 20761  			HTTPStatusCode: res.StatusCode,
 20762  		},
 20763  	}
 20764  	target := &ret
 20765  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20766  		return nil, err
 20767  	}
 20768  	return ret, nil
 20769  }
 20770  
 20771  type PropertiesGoogleAdsLinksListCall struct {
 20772  	s            *Service
 20773  	parent       string
 20774  	urlParams_   gensupport.URLParams
 20775  	ifNoneMatch_ string
 20776  	ctx_         context.Context
 20777  	header_      http.Header
 20778  }
 20779  
 20780  // List: Lists GoogleAdsLinks on a property.
 20781  //
 20782  // - parent: Example format: properties/1234.
 20783  func (r *PropertiesGoogleAdsLinksService) List(parent string) *PropertiesGoogleAdsLinksListCall {
 20784  	c := &PropertiesGoogleAdsLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20785  	c.parent = parent
 20786  	return c
 20787  }
 20788  
 20789  // PageSize sets the optional parameter "pageSize": The maximum number of
 20790  // resources to return. If unspecified, at most 50 resources will be returned.
 20791  // The maximum value is 200 (higher values will be coerced to the maximum).
 20792  func (c *PropertiesGoogleAdsLinksListCall) PageSize(pageSize int64) *PropertiesGoogleAdsLinksListCall {
 20793  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20794  	return c
 20795  }
 20796  
 20797  // PageToken sets the optional parameter "pageToken": A page token, received
 20798  // from a previous `ListGoogleAdsLinks` call. Provide this to retrieve the
 20799  // subsequent page. When paginating, all other parameters provided to
 20800  // `ListGoogleAdsLinks` must match the call that provided the page token.
 20801  func (c *PropertiesGoogleAdsLinksListCall) PageToken(pageToken string) *PropertiesGoogleAdsLinksListCall {
 20802  	c.urlParams_.Set("pageToken", pageToken)
 20803  	return c
 20804  }
 20805  
 20806  // Fields allows partial responses to be retrieved. See
 20807  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20808  // details.
 20809  func (c *PropertiesGoogleAdsLinksListCall) Fields(s ...googleapi.Field) *PropertiesGoogleAdsLinksListCall {
 20810  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20811  	return c
 20812  }
 20813  
 20814  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20815  // object's ETag matches the given value. This is useful for getting updates
 20816  // only after the object has changed since the last request.
 20817  func (c *PropertiesGoogleAdsLinksListCall) IfNoneMatch(entityTag string) *PropertiesGoogleAdsLinksListCall {
 20818  	c.ifNoneMatch_ = entityTag
 20819  	return c
 20820  }
 20821  
 20822  // Context sets the context to be used in this call's Do method.
 20823  func (c *PropertiesGoogleAdsLinksListCall) Context(ctx context.Context) *PropertiesGoogleAdsLinksListCall {
 20824  	c.ctx_ = ctx
 20825  	return c
 20826  }
 20827  
 20828  // Header returns a http.Header that can be modified by the caller to add
 20829  // headers to the request.
 20830  func (c *PropertiesGoogleAdsLinksListCall) Header() http.Header {
 20831  	if c.header_ == nil {
 20832  		c.header_ = make(http.Header)
 20833  	}
 20834  	return c.header_
 20835  }
 20836  
 20837  func (c *PropertiesGoogleAdsLinksListCall) doRequest(alt string) (*http.Response, error) {
 20838  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20839  	if c.ifNoneMatch_ != "" {
 20840  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20841  	}
 20842  	var body io.Reader = nil
 20843  	c.urlParams_.Set("alt", alt)
 20844  	c.urlParams_.Set("prettyPrint", "false")
 20845  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/googleAdsLinks")
 20846  	urls += "?" + c.urlParams_.Encode()
 20847  	req, err := http.NewRequest("GET", urls, body)
 20848  	if err != nil {
 20849  		return nil, err
 20850  	}
 20851  	req.Header = reqHeaders
 20852  	googleapi.Expand(req.URL, map[string]string{
 20853  		"parent": c.parent,
 20854  	})
 20855  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20856  }
 20857  
 20858  // Do executes the "analyticsadmin.properties.googleAdsLinks.list" call.
 20859  // Any non-2xx status code is an error. Response headers are in either
 20860  // *GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse.ServerResponse.Header
 20861  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 20862  // Use googleapi.IsNotModified to check whether the returned error was because
 20863  // http.StatusNotModified was returned.
 20864  func (c *PropertiesGoogleAdsLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse, error) {
 20865  	gensupport.SetOptions(c.urlParams_, opts...)
 20866  	res, err := c.doRequest("json")
 20867  	if res != nil && res.StatusCode == http.StatusNotModified {
 20868  		if res.Body != nil {
 20869  			res.Body.Close()
 20870  		}
 20871  		return nil, gensupport.WrapError(&googleapi.Error{
 20872  			Code:   res.StatusCode,
 20873  			Header: res.Header,
 20874  		})
 20875  	}
 20876  	if err != nil {
 20877  		return nil, err
 20878  	}
 20879  	defer googleapi.CloseBody(res)
 20880  	if err := googleapi.CheckResponse(res); err != nil {
 20881  		return nil, gensupport.WrapError(err)
 20882  	}
 20883  	ret := &GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse{
 20884  		ServerResponse: googleapi.ServerResponse{
 20885  			Header:         res.Header,
 20886  			HTTPStatusCode: res.StatusCode,
 20887  		},
 20888  	}
 20889  	target := &ret
 20890  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20891  		return nil, err
 20892  	}
 20893  	return ret, nil
 20894  }
 20895  
 20896  // Pages invokes f for each page of results.
 20897  // A non-nil error returned from f will halt the iteration.
 20898  // The provided context supersedes any context provided to the Context method.
 20899  func (c *PropertiesGoogleAdsLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse) error) error {
 20900  	c.ctx_ = ctx
 20901  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20902  	for {
 20903  		x, err := c.Do()
 20904  		if err != nil {
 20905  			return err
 20906  		}
 20907  		if err := f(x); err != nil {
 20908  			return err
 20909  		}
 20910  		if x.NextPageToken == "" {
 20911  			return nil
 20912  		}
 20913  		c.PageToken(x.NextPageToken)
 20914  	}
 20915  }
 20916  
 20917  type PropertiesGoogleAdsLinksPatchCall struct {
 20918  	s                                        *Service
 20919  	name                                     string
 20920  	googleanalyticsadminv1alphagoogleadslink *GoogleAnalyticsAdminV1alphaGoogleAdsLink
 20921  	urlParams_                               gensupport.URLParams
 20922  	ctx_                                     context.Context
 20923  	header_                                  http.Header
 20924  }
 20925  
 20926  // Patch: Updates a GoogleAdsLink on a property
 20927  //
 20928  //   - name: Output only. Format:
 20929  //     properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note:
 20930  //     googleAdsLinkId is not the Google Ads customer ID.
 20931  func (r *PropertiesGoogleAdsLinksService) Patch(name string, googleanalyticsadminv1alphagoogleadslink *GoogleAnalyticsAdminV1alphaGoogleAdsLink) *PropertiesGoogleAdsLinksPatchCall {
 20932  	c := &PropertiesGoogleAdsLinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20933  	c.name = name
 20934  	c.googleanalyticsadminv1alphagoogleadslink = googleanalyticsadminv1alphagoogleadslink
 20935  	return c
 20936  }
 20937  
 20938  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 20939  // fields to be updated. Field names must be in snake case (e.g.,
 20940  // "field_to_update"). Omitted fields will not be updated. To replace the
 20941  // entire entity, use one path with the string "*" to match all fields.
 20942  func (c *PropertiesGoogleAdsLinksPatchCall) UpdateMask(updateMask string) *PropertiesGoogleAdsLinksPatchCall {
 20943  	c.urlParams_.Set("updateMask", updateMask)
 20944  	return c
 20945  }
 20946  
 20947  // Fields allows partial responses to be retrieved. See
 20948  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20949  // details.
 20950  func (c *PropertiesGoogleAdsLinksPatchCall) Fields(s ...googleapi.Field) *PropertiesGoogleAdsLinksPatchCall {
 20951  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20952  	return c
 20953  }
 20954  
 20955  // Context sets the context to be used in this call's Do method.
 20956  func (c *PropertiesGoogleAdsLinksPatchCall) Context(ctx context.Context) *PropertiesGoogleAdsLinksPatchCall {
 20957  	c.ctx_ = ctx
 20958  	return c
 20959  }
 20960  
 20961  // Header returns a http.Header that can be modified by the caller to add
 20962  // headers to the request.
 20963  func (c *PropertiesGoogleAdsLinksPatchCall) Header() http.Header {
 20964  	if c.header_ == nil {
 20965  		c.header_ = make(http.Header)
 20966  	}
 20967  	return c.header_
 20968  }
 20969  
 20970  func (c *PropertiesGoogleAdsLinksPatchCall) doRequest(alt string) (*http.Response, error) {
 20971  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20972  	var body io.Reader = nil
 20973  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphagoogleadslink)
 20974  	if err != nil {
 20975  		return nil, err
 20976  	}
 20977  	c.urlParams_.Set("alt", alt)
 20978  	c.urlParams_.Set("prettyPrint", "false")
 20979  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 20980  	urls += "?" + c.urlParams_.Encode()
 20981  	req, err := http.NewRequest("PATCH", urls, body)
 20982  	if err != nil {
 20983  		return nil, err
 20984  	}
 20985  	req.Header = reqHeaders
 20986  	googleapi.Expand(req.URL, map[string]string{
 20987  		"name": c.name,
 20988  	})
 20989  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20990  }
 20991  
 20992  // Do executes the "analyticsadmin.properties.googleAdsLinks.patch" call.
 20993  // Any non-2xx status code is an error. Response headers are in either
 20994  // *GoogleAnalyticsAdminV1alphaGoogleAdsLink.ServerResponse.Header or (if a
 20995  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20996  // googleapi.IsNotModified to check whether the returned error was because
 20997  // http.StatusNotModified was returned.
 20998  func (c *PropertiesGoogleAdsLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaGoogleAdsLink, error) {
 20999  	gensupport.SetOptions(c.urlParams_, opts...)
 21000  	res, err := c.doRequest("json")
 21001  	if res != nil && res.StatusCode == http.StatusNotModified {
 21002  		if res.Body != nil {
 21003  			res.Body.Close()
 21004  		}
 21005  		return nil, gensupport.WrapError(&googleapi.Error{
 21006  			Code:   res.StatusCode,
 21007  			Header: res.Header,
 21008  		})
 21009  	}
 21010  	if err != nil {
 21011  		return nil, err
 21012  	}
 21013  	defer googleapi.CloseBody(res)
 21014  	if err := googleapi.CheckResponse(res); err != nil {
 21015  		return nil, gensupport.WrapError(err)
 21016  	}
 21017  	ret := &GoogleAnalyticsAdminV1alphaGoogleAdsLink{
 21018  		ServerResponse: googleapi.ServerResponse{
 21019  			Header:         res.Header,
 21020  			HTTPStatusCode: res.StatusCode,
 21021  		},
 21022  	}
 21023  	target := &ret
 21024  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21025  		return nil, err
 21026  	}
 21027  	return ret, nil
 21028  }
 21029  
 21030  type PropertiesKeyEventsCreateCall struct {
 21031  	s                                   *Service
 21032  	parent                              string
 21033  	googleanalyticsadminv1alphakeyevent *GoogleAnalyticsAdminV1alphaKeyEvent
 21034  	urlParams_                          gensupport.URLParams
 21035  	ctx_                                context.Context
 21036  	header_                             http.Header
 21037  }
 21038  
 21039  // Create: Creates a Key Event.
 21040  //
 21041  //   - parent: The resource name of the parent property where this Key Event will
 21042  //     be created. Format: properties/123.
 21043  func (r *PropertiesKeyEventsService) Create(parent string, googleanalyticsadminv1alphakeyevent *GoogleAnalyticsAdminV1alphaKeyEvent) *PropertiesKeyEventsCreateCall {
 21044  	c := &PropertiesKeyEventsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21045  	c.parent = parent
 21046  	c.googleanalyticsadminv1alphakeyevent = googleanalyticsadminv1alphakeyevent
 21047  	return c
 21048  }
 21049  
 21050  // Fields allows partial responses to be retrieved. See
 21051  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21052  // details.
 21053  func (c *PropertiesKeyEventsCreateCall) Fields(s ...googleapi.Field) *PropertiesKeyEventsCreateCall {
 21054  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21055  	return c
 21056  }
 21057  
 21058  // Context sets the context to be used in this call's Do method.
 21059  func (c *PropertiesKeyEventsCreateCall) Context(ctx context.Context) *PropertiesKeyEventsCreateCall {
 21060  	c.ctx_ = ctx
 21061  	return c
 21062  }
 21063  
 21064  // Header returns a http.Header that can be modified by the caller to add
 21065  // headers to the request.
 21066  func (c *PropertiesKeyEventsCreateCall) Header() http.Header {
 21067  	if c.header_ == nil {
 21068  		c.header_ = make(http.Header)
 21069  	}
 21070  	return c.header_
 21071  }
 21072  
 21073  func (c *PropertiesKeyEventsCreateCall) doRequest(alt string) (*http.Response, error) {
 21074  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21075  	var body io.Reader = nil
 21076  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphakeyevent)
 21077  	if err != nil {
 21078  		return nil, err
 21079  	}
 21080  	c.urlParams_.Set("alt", alt)
 21081  	c.urlParams_.Set("prettyPrint", "false")
 21082  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/keyEvents")
 21083  	urls += "?" + c.urlParams_.Encode()
 21084  	req, err := http.NewRequest("POST", urls, body)
 21085  	if err != nil {
 21086  		return nil, err
 21087  	}
 21088  	req.Header = reqHeaders
 21089  	googleapi.Expand(req.URL, map[string]string{
 21090  		"parent": c.parent,
 21091  	})
 21092  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21093  }
 21094  
 21095  // Do executes the "analyticsadmin.properties.keyEvents.create" call.
 21096  // Any non-2xx status code is an error. Response headers are in either
 21097  // *GoogleAnalyticsAdminV1alphaKeyEvent.ServerResponse.Header or (if a response
 21098  // was returned at all) in error.(*googleapi.Error).Header. Use
 21099  // googleapi.IsNotModified to check whether the returned error was because
 21100  // http.StatusNotModified was returned.
 21101  func (c *PropertiesKeyEventsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaKeyEvent, error) {
 21102  	gensupport.SetOptions(c.urlParams_, opts...)
 21103  	res, err := c.doRequest("json")
 21104  	if res != nil && res.StatusCode == http.StatusNotModified {
 21105  		if res.Body != nil {
 21106  			res.Body.Close()
 21107  		}
 21108  		return nil, gensupport.WrapError(&googleapi.Error{
 21109  			Code:   res.StatusCode,
 21110  			Header: res.Header,
 21111  		})
 21112  	}
 21113  	if err != nil {
 21114  		return nil, err
 21115  	}
 21116  	defer googleapi.CloseBody(res)
 21117  	if err := googleapi.CheckResponse(res); err != nil {
 21118  		return nil, gensupport.WrapError(err)
 21119  	}
 21120  	ret := &GoogleAnalyticsAdminV1alphaKeyEvent{
 21121  		ServerResponse: googleapi.ServerResponse{
 21122  			Header:         res.Header,
 21123  			HTTPStatusCode: res.StatusCode,
 21124  		},
 21125  	}
 21126  	target := &ret
 21127  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21128  		return nil, err
 21129  	}
 21130  	return ret, nil
 21131  }
 21132  
 21133  type PropertiesKeyEventsDeleteCall struct {
 21134  	s          *Service
 21135  	name       string
 21136  	urlParams_ gensupport.URLParams
 21137  	ctx_       context.Context
 21138  	header_    http.Header
 21139  }
 21140  
 21141  // Delete: Deletes a Key Event.
 21142  //
 21143  //   - name: The resource name of the Key Event to delete. Format:
 21144  //     properties/{property}/keyEvents/{key_event} Example:
 21145  //     "properties/123/keyEvents/456".
 21146  func (r *PropertiesKeyEventsService) Delete(name string) *PropertiesKeyEventsDeleteCall {
 21147  	c := &PropertiesKeyEventsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21148  	c.name = name
 21149  	return c
 21150  }
 21151  
 21152  // Fields allows partial responses to be retrieved. See
 21153  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21154  // details.
 21155  func (c *PropertiesKeyEventsDeleteCall) Fields(s ...googleapi.Field) *PropertiesKeyEventsDeleteCall {
 21156  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21157  	return c
 21158  }
 21159  
 21160  // Context sets the context to be used in this call's Do method.
 21161  func (c *PropertiesKeyEventsDeleteCall) Context(ctx context.Context) *PropertiesKeyEventsDeleteCall {
 21162  	c.ctx_ = ctx
 21163  	return c
 21164  }
 21165  
 21166  // Header returns a http.Header that can be modified by the caller to add
 21167  // headers to the request.
 21168  func (c *PropertiesKeyEventsDeleteCall) Header() http.Header {
 21169  	if c.header_ == nil {
 21170  		c.header_ = make(http.Header)
 21171  	}
 21172  	return c.header_
 21173  }
 21174  
 21175  func (c *PropertiesKeyEventsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21176  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21177  	var body io.Reader = nil
 21178  	c.urlParams_.Set("alt", alt)
 21179  	c.urlParams_.Set("prettyPrint", "false")
 21180  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21181  	urls += "?" + c.urlParams_.Encode()
 21182  	req, err := http.NewRequest("DELETE", urls, body)
 21183  	if err != nil {
 21184  		return nil, err
 21185  	}
 21186  	req.Header = reqHeaders
 21187  	googleapi.Expand(req.URL, map[string]string{
 21188  		"name": c.name,
 21189  	})
 21190  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21191  }
 21192  
 21193  // Do executes the "analyticsadmin.properties.keyEvents.delete" call.
 21194  // Any non-2xx status code is an error. Response headers are in either
 21195  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21196  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21197  // check whether the returned error was because http.StatusNotModified was
 21198  // returned.
 21199  func (c *PropertiesKeyEventsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21200  	gensupport.SetOptions(c.urlParams_, opts...)
 21201  	res, err := c.doRequest("json")
 21202  	if res != nil && res.StatusCode == http.StatusNotModified {
 21203  		if res.Body != nil {
 21204  			res.Body.Close()
 21205  		}
 21206  		return nil, gensupport.WrapError(&googleapi.Error{
 21207  			Code:   res.StatusCode,
 21208  			Header: res.Header,
 21209  		})
 21210  	}
 21211  	if err != nil {
 21212  		return nil, err
 21213  	}
 21214  	defer googleapi.CloseBody(res)
 21215  	if err := googleapi.CheckResponse(res); err != nil {
 21216  		return nil, gensupport.WrapError(err)
 21217  	}
 21218  	ret := &GoogleProtobufEmpty{
 21219  		ServerResponse: googleapi.ServerResponse{
 21220  			Header:         res.Header,
 21221  			HTTPStatusCode: res.StatusCode,
 21222  		},
 21223  	}
 21224  	target := &ret
 21225  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21226  		return nil, err
 21227  	}
 21228  	return ret, nil
 21229  }
 21230  
 21231  type PropertiesKeyEventsGetCall struct {
 21232  	s            *Service
 21233  	name         string
 21234  	urlParams_   gensupport.URLParams
 21235  	ifNoneMatch_ string
 21236  	ctx_         context.Context
 21237  	header_      http.Header
 21238  }
 21239  
 21240  // Get: Retrieve a single Key Event.
 21241  //
 21242  //   - name: The resource name of the Key Event to retrieve. Format:
 21243  //     properties/{property}/keyEvents/{key_event} Example:
 21244  //     "properties/123/keyEvents/456".
 21245  func (r *PropertiesKeyEventsService) Get(name string) *PropertiesKeyEventsGetCall {
 21246  	c := &PropertiesKeyEventsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21247  	c.name = name
 21248  	return c
 21249  }
 21250  
 21251  // Fields allows partial responses to be retrieved. See
 21252  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21253  // details.
 21254  func (c *PropertiesKeyEventsGetCall) Fields(s ...googleapi.Field) *PropertiesKeyEventsGetCall {
 21255  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21256  	return c
 21257  }
 21258  
 21259  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21260  // object's ETag matches the given value. This is useful for getting updates
 21261  // only after the object has changed since the last request.
 21262  func (c *PropertiesKeyEventsGetCall) IfNoneMatch(entityTag string) *PropertiesKeyEventsGetCall {
 21263  	c.ifNoneMatch_ = entityTag
 21264  	return c
 21265  }
 21266  
 21267  // Context sets the context to be used in this call's Do method.
 21268  func (c *PropertiesKeyEventsGetCall) Context(ctx context.Context) *PropertiesKeyEventsGetCall {
 21269  	c.ctx_ = ctx
 21270  	return c
 21271  }
 21272  
 21273  // Header returns a http.Header that can be modified by the caller to add
 21274  // headers to the request.
 21275  func (c *PropertiesKeyEventsGetCall) Header() http.Header {
 21276  	if c.header_ == nil {
 21277  		c.header_ = make(http.Header)
 21278  	}
 21279  	return c.header_
 21280  }
 21281  
 21282  func (c *PropertiesKeyEventsGetCall) doRequest(alt string) (*http.Response, error) {
 21283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21284  	if c.ifNoneMatch_ != "" {
 21285  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21286  	}
 21287  	var body io.Reader = nil
 21288  	c.urlParams_.Set("alt", alt)
 21289  	c.urlParams_.Set("prettyPrint", "false")
 21290  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21291  	urls += "?" + c.urlParams_.Encode()
 21292  	req, err := http.NewRequest("GET", urls, body)
 21293  	if err != nil {
 21294  		return nil, err
 21295  	}
 21296  	req.Header = reqHeaders
 21297  	googleapi.Expand(req.URL, map[string]string{
 21298  		"name": c.name,
 21299  	})
 21300  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21301  }
 21302  
 21303  // Do executes the "analyticsadmin.properties.keyEvents.get" call.
 21304  // Any non-2xx status code is an error. Response headers are in either
 21305  // *GoogleAnalyticsAdminV1alphaKeyEvent.ServerResponse.Header or (if a response
 21306  // was returned at all) in error.(*googleapi.Error).Header. Use
 21307  // googleapi.IsNotModified to check whether the returned error was because
 21308  // http.StatusNotModified was returned.
 21309  func (c *PropertiesKeyEventsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaKeyEvent, error) {
 21310  	gensupport.SetOptions(c.urlParams_, opts...)
 21311  	res, err := c.doRequest("json")
 21312  	if res != nil && res.StatusCode == http.StatusNotModified {
 21313  		if res.Body != nil {
 21314  			res.Body.Close()
 21315  		}
 21316  		return nil, gensupport.WrapError(&googleapi.Error{
 21317  			Code:   res.StatusCode,
 21318  			Header: res.Header,
 21319  		})
 21320  	}
 21321  	if err != nil {
 21322  		return nil, err
 21323  	}
 21324  	defer googleapi.CloseBody(res)
 21325  	if err := googleapi.CheckResponse(res); err != nil {
 21326  		return nil, gensupport.WrapError(err)
 21327  	}
 21328  	ret := &GoogleAnalyticsAdminV1alphaKeyEvent{
 21329  		ServerResponse: googleapi.ServerResponse{
 21330  			Header:         res.Header,
 21331  			HTTPStatusCode: res.StatusCode,
 21332  		},
 21333  	}
 21334  	target := &ret
 21335  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21336  		return nil, err
 21337  	}
 21338  	return ret, nil
 21339  }
 21340  
 21341  type PropertiesKeyEventsListCall struct {
 21342  	s            *Service
 21343  	parent       string
 21344  	urlParams_   gensupport.URLParams
 21345  	ifNoneMatch_ string
 21346  	ctx_         context.Context
 21347  	header_      http.Header
 21348  }
 21349  
 21350  // List: Returns a list of Key Events in the specified parent property. Returns
 21351  // an empty list if no Key Events are found.
 21352  //
 21353  //   - parent: The resource name of the parent property. Example:
 21354  //     'properties/123'.
 21355  func (r *PropertiesKeyEventsService) List(parent string) *PropertiesKeyEventsListCall {
 21356  	c := &PropertiesKeyEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21357  	c.parent = parent
 21358  	return c
 21359  }
 21360  
 21361  // PageSize sets the optional parameter "pageSize": The maximum number of
 21362  // resources to return. If unspecified, at most 50 resources will be returned.
 21363  // The maximum value is 200; (higher values will be coerced to the maximum)
 21364  func (c *PropertiesKeyEventsListCall) PageSize(pageSize int64) *PropertiesKeyEventsListCall {
 21365  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21366  	return c
 21367  }
 21368  
 21369  // PageToken sets the optional parameter "pageToken": A page token, received
 21370  // from a previous `ListKeyEvents` call. Provide this to retrieve the
 21371  // subsequent page. When paginating, all other parameters provided to
 21372  // `ListKeyEvents` must match the call that provided the page token.
 21373  func (c *PropertiesKeyEventsListCall) PageToken(pageToken string) *PropertiesKeyEventsListCall {
 21374  	c.urlParams_.Set("pageToken", pageToken)
 21375  	return c
 21376  }
 21377  
 21378  // Fields allows partial responses to be retrieved. See
 21379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21380  // details.
 21381  func (c *PropertiesKeyEventsListCall) Fields(s ...googleapi.Field) *PropertiesKeyEventsListCall {
 21382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21383  	return c
 21384  }
 21385  
 21386  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21387  // object's ETag matches the given value. This is useful for getting updates
 21388  // only after the object has changed since the last request.
 21389  func (c *PropertiesKeyEventsListCall) IfNoneMatch(entityTag string) *PropertiesKeyEventsListCall {
 21390  	c.ifNoneMatch_ = entityTag
 21391  	return c
 21392  }
 21393  
 21394  // Context sets the context to be used in this call's Do method.
 21395  func (c *PropertiesKeyEventsListCall) Context(ctx context.Context) *PropertiesKeyEventsListCall {
 21396  	c.ctx_ = ctx
 21397  	return c
 21398  }
 21399  
 21400  // Header returns a http.Header that can be modified by the caller to add
 21401  // headers to the request.
 21402  func (c *PropertiesKeyEventsListCall) Header() http.Header {
 21403  	if c.header_ == nil {
 21404  		c.header_ = make(http.Header)
 21405  	}
 21406  	return c.header_
 21407  }
 21408  
 21409  func (c *PropertiesKeyEventsListCall) doRequest(alt string) (*http.Response, error) {
 21410  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21411  	if c.ifNoneMatch_ != "" {
 21412  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21413  	}
 21414  	var body io.Reader = nil
 21415  	c.urlParams_.Set("alt", alt)
 21416  	c.urlParams_.Set("prettyPrint", "false")
 21417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/keyEvents")
 21418  	urls += "?" + c.urlParams_.Encode()
 21419  	req, err := http.NewRequest("GET", urls, body)
 21420  	if err != nil {
 21421  		return nil, err
 21422  	}
 21423  	req.Header = reqHeaders
 21424  	googleapi.Expand(req.URL, map[string]string{
 21425  		"parent": c.parent,
 21426  	})
 21427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21428  }
 21429  
 21430  // Do executes the "analyticsadmin.properties.keyEvents.list" call.
 21431  // Any non-2xx status code is an error. Response headers are in either
 21432  // *GoogleAnalyticsAdminV1alphaListKeyEventsResponse.ServerResponse.Header or
 21433  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 21434  // googleapi.IsNotModified to check whether the returned error was because
 21435  // http.StatusNotModified was returned.
 21436  func (c *PropertiesKeyEventsListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListKeyEventsResponse, error) {
 21437  	gensupport.SetOptions(c.urlParams_, opts...)
 21438  	res, err := c.doRequest("json")
 21439  	if res != nil && res.StatusCode == http.StatusNotModified {
 21440  		if res.Body != nil {
 21441  			res.Body.Close()
 21442  		}
 21443  		return nil, gensupport.WrapError(&googleapi.Error{
 21444  			Code:   res.StatusCode,
 21445  			Header: res.Header,
 21446  		})
 21447  	}
 21448  	if err != nil {
 21449  		return nil, err
 21450  	}
 21451  	defer googleapi.CloseBody(res)
 21452  	if err := googleapi.CheckResponse(res); err != nil {
 21453  		return nil, gensupport.WrapError(err)
 21454  	}
 21455  	ret := &GoogleAnalyticsAdminV1alphaListKeyEventsResponse{
 21456  		ServerResponse: googleapi.ServerResponse{
 21457  			Header:         res.Header,
 21458  			HTTPStatusCode: res.StatusCode,
 21459  		},
 21460  	}
 21461  	target := &ret
 21462  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21463  		return nil, err
 21464  	}
 21465  	return ret, nil
 21466  }
 21467  
 21468  // Pages invokes f for each page of results.
 21469  // A non-nil error returned from f will halt the iteration.
 21470  // The provided context supersedes any context provided to the Context method.
 21471  func (c *PropertiesKeyEventsListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListKeyEventsResponse) error) error {
 21472  	c.ctx_ = ctx
 21473  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21474  	for {
 21475  		x, err := c.Do()
 21476  		if err != nil {
 21477  			return err
 21478  		}
 21479  		if err := f(x); err != nil {
 21480  			return err
 21481  		}
 21482  		if x.NextPageToken == "" {
 21483  			return nil
 21484  		}
 21485  		c.PageToken(x.NextPageToken)
 21486  	}
 21487  }
 21488  
 21489  type PropertiesKeyEventsPatchCall struct {
 21490  	s                                   *Service
 21491  	name                                string
 21492  	googleanalyticsadminv1alphakeyevent *GoogleAnalyticsAdminV1alphaKeyEvent
 21493  	urlParams_                          gensupport.URLParams
 21494  	ctx_                                context.Context
 21495  	header_                             http.Header
 21496  }
 21497  
 21498  // Patch: Updates a Key Event.
 21499  //
 21500  //   - name: Output only. Resource name of this key event. Format:
 21501  //     properties/{property}/keyEvents/{key_event}.
 21502  func (r *PropertiesKeyEventsService) Patch(name string, googleanalyticsadminv1alphakeyevent *GoogleAnalyticsAdminV1alphaKeyEvent) *PropertiesKeyEventsPatchCall {
 21503  	c := &PropertiesKeyEventsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21504  	c.name = name
 21505  	c.googleanalyticsadminv1alphakeyevent = googleanalyticsadminv1alphakeyevent
 21506  	return c
 21507  }
 21508  
 21509  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 21510  // fields to be updated. Field names must be in snake case (e.g.,
 21511  // "field_to_update"). Omitted fields will not be updated. To replace the
 21512  // entire entity, use one path with the string "*" to match all fields.
 21513  func (c *PropertiesKeyEventsPatchCall) UpdateMask(updateMask string) *PropertiesKeyEventsPatchCall {
 21514  	c.urlParams_.Set("updateMask", updateMask)
 21515  	return c
 21516  }
 21517  
 21518  // Fields allows partial responses to be retrieved. See
 21519  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21520  // details.
 21521  func (c *PropertiesKeyEventsPatchCall) Fields(s ...googleapi.Field) *PropertiesKeyEventsPatchCall {
 21522  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21523  	return c
 21524  }
 21525  
 21526  // Context sets the context to be used in this call's Do method.
 21527  func (c *PropertiesKeyEventsPatchCall) Context(ctx context.Context) *PropertiesKeyEventsPatchCall {
 21528  	c.ctx_ = ctx
 21529  	return c
 21530  }
 21531  
 21532  // Header returns a http.Header that can be modified by the caller to add
 21533  // headers to the request.
 21534  func (c *PropertiesKeyEventsPatchCall) Header() http.Header {
 21535  	if c.header_ == nil {
 21536  		c.header_ = make(http.Header)
 21537  	}
 21538  	return c.header_
 21539  }
 21540  
 21541  func (c *PropertiesKeyEventsPatchCall) doRequest(alt string) (*http.Response, error) {
 21542  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21543  	var body io.Reader = nil
 21544  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphakeyevent)
 21545  	if err != nil {
 21546  		return nil, err
 21547  	}
 21548  	c.urlParams_.Set("alt", alt)
 21549  	c.urlParams_.Set("prettyPrint", "false")
 21550  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21551  	urls += "?" + c.urlParams_.Encode()
 21552  	req, err := http.NewRequest("PATCH", urls, body)
 21553  	if err != nil {
 21554  		return nil, err
 21555  	}
 21556  	req.Header = reqHeaders
 21557  	googleapi.Expand(req.URL, map[string]string{
 21558  		"name": c.name,
 21559  	})
 21560  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21561  }
 21562  
 21563  // Do executes the "analyticsadmin.properties.keyEvents.patch" call.
 21564  // Any non-2xx status code is an error. Response headers are in either
 21565  // *GoogleAnalyticsAdminV1alphaKeyEvent.ServerResponse.Header or (if a response
 21566  // was returned at all) in error.(*googleapi.Error).Header. Use
 21567  // googleapi.IsNotModified to check whether the returned error was because
 21568  // http.StatusNotModified was returned.
 21569  func (c *PropertiesKeyEventsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaKeyEvent, error) {
 21570  	gensupport.SetOptions(c.urlParams_, opts...)
 21571  	res, err := c.doRequest("json")
 21572  	if res != nil && res.StatusCode == http.StatusNotModified {
 21573  		if res.Body != nil {
 21574  			res.Body.Close()
 21575  		}
 21576  		return nil, gensupport.WrapError(&googleapi.Error{
 21577  			Code:   res.StatusCode,
 21578  			Header: res.Header,
 21579  		})
 21580  	}
 21581  	if err != nil {
 21582  		return nil, err
 21583  	}
 21584  	defer googleapi.CloseBody(res)
 21585  	if err := googleapi.CheckResponse(res); err != nil {
 21586  		return nil, gensupport.WrapError(err)
 21587  	}
 21588  	ret := &GoogleAnalyticsAdminV1alphaKeyEvent{
 21589  		ServerResponse: googleapi.ServerResponse{
 21590  			Header:         res.Header,
 21591  			HTTPStatusCode: res.StatusCode,
 21592  		},
 21593  	}
 21594  	target := &ret
 21595  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21596  		return nil, err
 21597  	}
 21598  	return ret, nil
 21599  }
 21600  
 21601  type PropertiesRollupPropertySourceLinksCreateCall struct {
 21602  	s                                                   *Service
 21603  	parent                                              string
 21604  	googleanalyticsadminv1alpharolluppropertysourcelink *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink
 21605  	urlParams_                                          gensupport.URLParams
 21606  	ctx_                                                context.Context
 21607  	header_                                             http.Header
 21608  }
 21609  
 21610  // Create: Creates a roll-up property source link. Only roll-up properties can
 21611  // have source links, so this method will throw an error if used on other types
 21612  // of properties.
 21613  //
 21614  // - parent: Format: properties/{property_id} Example: properties/1234.
 21615  func (r *PropertiesRollupPropertySourceLinksService) Create(parent string, googleanalyticsadminv1alpharolluppropertysourcelink *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink) *PropertiesRollupPropertySourceLinksCreateCall {
 21616  	c := &PropertiesRollupPropertySourceLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21617  	c.parent = parent
 21618  	c.googleanalyticsadminv1alpharolluppropertysourcelink = googleanalyticsadminv1alpharolluppropertysourcelink
 21619  	return c
 21620  }
 21621  
 21622  // Fields allows partial responses to be retrieved. See
 21623  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21624  // details.
 21625  func (c *PropertiesRollupPropertySourceLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksCreateCall {
 21626  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21627  	return c
 21628  }
 21629  
 21630  // Context sets the context to be used in this call's Do method.
 21631  func (c *PropertiesRollupPropertySourceLinksCreateCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksCreateCall {
 21632  	c.ctx_ = ctx
 21633  	return c
 21634  }
 21635  
 21636  // Header returns a http.Header that can be modified by the caller to add
 21637  // headers to the request.
 21638  func (c *PropertiesRollupPropertySourceLinksCreateCall) Header() http.Header {
 21639  	if c.header_ == nil {
 21640  		c.header_ = make(http.Header)
 21641  	}
 21642  	return c.header_
 21643  }
 21644  
 21645  func (c *PropertiesRollupPropertySourceLinksCreateCall) doRequest(alt string) (*http.Response, error) {
 21646  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21647  	var body io.Reader = nil
 21648  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alpharolluppropertysourcelink)
 21649  	if err != nil {
 21650  		return nil, err
 21651  	}
 21652  	c.urlParams_.Set("alt", alt)
 21653  	c.urlParams_.Set("prettyPrint", "false")
 21654  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/rollupPropertySourceLinks")
 21655  	urls += "?" + c.urlParams_.Encode()
 21656  	req, err := http.NewRequest("POST", urls, body)
 21657  	if err != nil {
 21658  		return nil, err
 21659  	}
 21660  	req.Header = reqHeaders
 21661  	googleapi.Expand(req.URL, map[string]string{
 21662  		"parent": c.parent,
 21663  	})
 21664  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21665  }
 21666  
 21667  // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.create" call.
 21668  // Any non-2xx status code is an error. Response headers are in either
 21669  // *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink.ServerResponse.Header
 21670  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 21671  // Use googleapi.IsNotModified to check whether the returned error was because
 21672  // http.StatusNotModified was returned.
 21673  func (c *PropertiesRollupPropertySourceLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink, 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 := &GoogleAnalyticsAdminV1alphaRollupPropertySourceLink{
 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 PropertiesRollupPropertySourceLinksDeleteCall struct {
 21706  	s          *Service
 21707  	name       string
 21708  	urlParams_ gensupport.URLParams
 21709  	ctx_       context.Context
 21710  	header_    http.Header
 21711  }
 21712  
 21713  // Delete: Deletes a roll-up property source link. Only roll-up properties can
 21714  // have source links, so this method will throw an error if used on other types
 21715  // of properties.
 21716  //
 21717  //   - name: Format:
 21718  //     properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_
 21719  //     link_id} Example: properties/1234/rollupPropertySourceLinks/5678.
 21720  func (r *PropertiesRollupPropertySourceLinksService) Delete(name string) *PropertiesRollupPropertySourceLinksDeleteCall {
 21721  	c := &PropertiesRollupPropertySourceLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21722  	c.name = name
 21723  	return c
 21724  }
 21725  
 21726  // Fields allows partial responses to be retrieved. See
 21727  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21728  // details.
 21729  func (c *PropertiesRollupPropertySourceLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksDeleteCall {
 21730  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21731  	return c
 21732  }
 21733  
 21734  // Context sets the context to be used in this call's Do method.
 21735  func (c *PropertiesRollupPropertySourceLinksDeleteCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksDeleteCall {
 21736  	c.ctx_ = ctx
 21737  	return c
 21738  }
 21739  
 21740  // Header returns a http.Header that can be modified by the caller to add
 21741  // headers to the request.
 21742  func (c *PropertiesRollupPropertySourceLinksDeleteCall) Header() http.Header {
 21743  	if c.header_ == nil {
 21744  		c.header_ = make(http.Header)
 21745  	}
 21746  	return c.header_
 21747  }
 21748  
 21749  func (c *PropertiesRollupPropertySourceLinksDeleteCall) doRequest(alt string) (*http.Response, error) {
 21750  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21751  	var body io.Reader = nil
 21752  	c.urlParams_.Set("alt", alt)
 21753  	c.urlParams_.Set("prettyPrint", "false")
 21754  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21755  	urls += "?" + c.urlParams_.Encode()
 21756  	req, err := http.NewRequest("DELETE", urls, body)
 21757  	if err != nil {
 21758  		return nil, err
 21759  	}
 21760  	req.Header = reqHeaders
 21761  	googleapi.Expand(req.URL, map[string]string{
 21762  		"name": c.name,
 21763  	})
 21764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21765  }
 21766  
 21767  // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.delete" call.
 21768  // Any non-2xx status code is an error. Response headers are in either
 21769  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21770  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21771  // check whether the returned error was because http.StatusNotModified was
 21772  // returned.
 21773  func (c *PropertiesRollupPropertySourceLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21774  	gensupport.SetOptions(c.urlParams_, opts...)
 21775  	res, err := c.doRequest("json")
 21776  	if res != nil && res.StatusCode == http.StatusNotModified {
 21777  		if res.Body != nil {
 21778  			res.Body.Close()
 21779  		}
 21780  		return nil, gensupport.WrapError(&googleapi.Error{
 21781  			Code:   res.StatusCode,
 21782  			Header: res.Header,
 21783  		})
 21784  	}
 21785  	if err != nil {
 21786  		return nil, err
 21787  	}
 21788  	defer googleapi.CloseBody(res)
 21789  	if err := googleapi.CheckResponse(res); err != nil {
 21790  		return nil, gensupport.WrapError(err)
 21791  	}
 21792  	ret := &GoogleProtobufEmpty{
 21793  		ServerResponse: googleapi.ServerResponse{
 21794  			Header:         res.Header,
 21795  			HTTPStatusCode: res.StatusCode,
 21796  		},
 21797  	}
 21798  	target := &ret
 21799  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21800  		return nil, err
 21801  	}
 21802  	return ret, nil
 21803  }
 21804  
 21805  type PropertiesRollupPropertySourceLinksGetCall struct {
 21806  	s            *Service
 21807  	name         string
 21808  	urlParams_   gensupport.URLParams
 21809  	ifNoneMatch_ string
 21810  	ctx_         context.Context
 21811  	header_      http.Header
 21812  }
 21813  
 21814  // Get: Lookup for a single roll-up property source Link. Only roll-up
 21815  // properties can have source links, so this method will throw an error if used
 21816  // on other types of properties.
 21817  //
 21818  //   - name: The name of the roll-up property source link to lookup. Format:
 21819  //     properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_
 21820  //     link_id} Example: properties/123/rollupPropertySourceLinks/456.
 21821  func (r *PropertiesRollupPropertySourceLinksService) Get(name string) *PropertiesRollupPropertySourceLinksGetCall {
 21822  	c := &PropertiesRollupPropertySourceLinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21823  	c.name = name
 21824  	return c
 21825  }
 21826  
 21827  // Fields allows partial responses to be retrieved. See
 21828  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21829  // details.
 21830  func (c *PropertiesRollupPropertySourceLinksGetCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksGetCall {
 21831  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21832  	return c
 21833  }
 21834  
 21835  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21836  // object's ETag matches the given value. This is useful for getting updates
 21837  // only after the object has changed since the last request.
 21838  func (c *PropertiesRollupPropertySourceLinksGetCall) IfNoneMatch(entityTag string) *PropertiesRollupPropertySourceLinksGetCall {
 21839  	c.ifNoneMatch_ = entityTag
 21840  	return c
 21841  }
 21842  
 21843  // Context sets the context to be used in this call's Do method.
 21844  func (c *PropertiesRollupPropertySourceLinksGetCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksGetCall {
 21845  	c.ctx_ = ctx
 21846  	return c
 21847  }
 21848  
 21849  // Header returns a http.Header that can be modified by the caller to add
 21850  // headers to the request.
 21851  func (c *PropertiesRollupPropertySourceLinksGetCall) Header() http.Header {
 21852  	if c.header_ == nil {
 21853  		c.header_ = make(http.Header)
 21854  	}
 21855  	return c.header_
 21856  }
 21857  
 21858  func (c *PropertiesRollupPropertySourceLinksGetCall) doRequest(alt string) (*http.Response, error) {
 21859  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21860  	if c.ifNoneMatch_ != "" {
 21861  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21862  	}
 21863  	var body io.Reader = nil
 21864  	c.urlParams_.Set("alt", alt)
 21865  	c.urlParams_.Set("prettyPrint", "false")
 21866  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21867  	urls += "?" + c.urlParams_.Encode()
 21868  	req, err := http.NewRequest("GET", urls, body)
 21869  	if err != nil {
 21870  		return nil, err
 21871  	}
 21872  	req.Header = reqHeaders
 21873  	googleapi.Expand(req.URL, map[string]string{
 21874  		"name": c.name,
 21875  	})
 21876  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21877  }
 21878  
 21879  // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.get" call.
 21880  // Any non-2xx status code is an error. Response headers are in either
 21881  // *GoogleAnalyticsAdminV1alphaRollupPropertySourceLink.ServerResponse.Header
 21882  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 21883  // Use googleapi.IsNotModified to check whether the returned error was because
 21884  // http.StatusNotModified was returned.
 21885  func (c *PropertiesRollupPropertySourceLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaRollupPropertySourceLink, error) {
 21886  	gensupport.SetOptions(c.urlParams_, opts...)
 21887  	res, err := c.doRequest("json")
 21888  	if res != nil && res.StatusCode == http.StatusNotModified {
 21889  		if res.Body != nil {
 21890  			res.Body.Close()
 21891  		}
 21892  		return nil, gensupport.WrapError(&googleapi.Error{
 21893  			Code:   res.StatusCode,
 21894  			Header: res.Header,
 21895  		})
 21896  	}
 21897  	if err != nil {
 21898  		return nil, err
 21899  	}
 21900  	defer googleapi.CloseBody(res)
 21901  	if err := googleapi.CheckResponse(res); err != nil {
 21902  		return nil, gensupport.WrapError(err)
 21903  	}
 21904  	ret := &GoogleAnalyticsAdminV1alphaRollupPropertySourceLink{
 21905  		ServerResponse: googleapi.ServerResponse{
 21906  			Header:         res.Header,
 21907  			HTTPStatusCode: res.StatusCode,
 21908  		},
 21909  	}
 21910  	target := &ret
 21911  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21912  		return nil, err
 21913  	}
 21914  	return ret, nil
 21915  }
 21916  
 21917  type PropertiesRollupPropertySourceLinksListCall struct {
 21918  	s            *Service
 21919  	parent       string
 21920  	urlParams_   gensupport.URLParams
 21921  	ifNoneMatch_ string
 21922  	ctx_         context.Context
 21923  	header_      http.Header
 21924  }
 21925  
 21926  // List: Lists roll-up property source Links on a property. Only roll-up
 21927  // properties can have source links, so this method will throw an error if used
 21928  // on other types of properties.
 21929  //
 21930  //   - parent: The name of the roll-up property to list roll-up property source
 21931  //     links under. Format: properties/{property_id} Example: properties/1234.
 21932  func (r *PropertiesRollupPropertySourceLinksService) List(parent string) *PropertiesRollupPropertySourceLinksListCall {
 21933  	c := &PropertiesRollupPropertySourceLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21934  	c.parent = parent
 21935  	return c
 21936  }
 21937  
 21938  // PageSize sets the optional parameter "pageSize": The maximum number of
 21939  // resources to return. The service may return fewer than this value, even if
 21940  // there are additional pages. If unspecified, at most 50 resources will be
 21941  // returned. The maximum value is 200; (higher values will be coerced to the
 21942  // maximum)
 21943  func (c *PropertiesRollupPropertySourceLinksListCall) PageSize(pageSize int64) *PropertiesRollupPropertySourceLinksListCall {
 21944  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21945  	return c
 21946  }
 21947  
 21948  // PageToken sets the optional parameter "pageToken": A page token, received
 21949  // from a previous `ListRollupPropertySourceLinks` call. Provide this to
 21950  // retrieve the subsequent page. When paginating, all other parameters provided
 21951  // to `ListRollupPropertySourceLinks` must match the call that provided the
 21952  // page token.
 21953  func (c *PropertiesRollupPropertySourceLinksListCall) PageToken(pageToken string) *PropertiesRollupPropertySourceLinksListCall {
 21954  	c.urlParams_.Set("pageToken", pageToken)
 21955  	return c
 21956  }
 21957  
 21958  // Fields allows partial responses to be retrieved. See
 21959  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21960  // details.
 21961  func (c *PropertiesRollupPropertySourceLinksListCall) Fields(s ...googleapi.Field) *PropertiesRollupPropertySourceLinksListCall {
 21962  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21963  	return c
 21964  }
 21965  
 21966  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21967  // object's ETag matches the given value. This is useful for getting updates
 21968  // only after the object has changed since the last request.
 21969  func (c *PropertiesRollupPropertySourceLinksListCall) IfNoneMatch(entityTag string) *PropertiesRollupPropertySourceLinksListCall {
 21970  	c.ifNoneMatch_ = entityTag
 21971  	return c
 21972  }
 21973  
 21974  // Context sets the context to be used in this call's Do method.
 21975  func (c *PropertiesRollupPropertySourceLinksListCall) Context(ctx context.Context) *PropertiesRollupPropertySourceLinksListCall {
 21976  	c.ctx_ = ctx
 21977  	return c
 21978  }
 21979  
 21980  // Header returns a http.Header that can be modified by the caller to add
 21981  // headers to the request.
 21982  func (c *PropertiesRollupPropertySourceLinksListCall) Header() http.Header {
 21983  	if c.header_ == nil {
 21984  		c.header_ = make(http.Header)
 21985  	}
 21986  	return c.header_
 21987  }
 21988  
 21989  func (c *PropertiesRollupPropertySourceLinksListCall) doRequest(alt string) (*http.Response, error) {
 21990  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21991  	if c.ifNoneMatch_ != "" {
 21992  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21993  	}
 21994  	var body io.Reader = nil
 21995  	c.urlParams_.Set("alt", alt)
 21996  	c.urlParams_.Set("prettyPrint", "false")
 21997  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/rollupPropertySourceLinks")
 21998  	urls += "?" + c.urlParams_.Encode()
 21999  	req, err := http.NewRequest("GET", urls, body)
 22000  	if err != nil {
 22001  		return nil, err
 22002  	}
 22003  	req.Header = reqHeaders
 22004  	googleapi.Expand(req.URL, map[string]string{
 22005  		"parent": c.parent,
 22006  	})
 22007  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22008  }
 22009  
 22010  // Do executes the "analyticsadmin.properties.rollupPropertySourceLinks.list" call.
 22011  // Any non-2xx status code is an error. Response headers are in either
 22012  // *GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse.ServerRespo
 22013  // nse.Header or (if a response was returned at all) in
 22014  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22015  // whether the returned error was because http.StatusNotModified was returned.
 22016  func (c *PropertiesRollupPropertySourceLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse, error) {
 22017  	gensupport.SetOptions(c.urlParams_, opts...)
 22018  	res, err := c.doRequest("json")
 22019  	if res != nil && res.StatusCode == http.StatusNotModified {
 22020  		if res.Body != nil {
 22021  			res.Body.Close()
 22022  		}
 22023  		return nil, gensupport.WrapError(&googleapi.Error{
 22024  			Code:   res.StatusCode,
 22025  			Header: res.Header,
 22026  		})
 22027  	}
 22028  	if err != nil {
 22029  		return nil, err
 22030  	}
 22031  	defer googleapi.CloseBody(res)
 22032  	if err := googleapi.CheckResponse(res); err != nil {
 22033  		return nil, gensupport.WrapError(err)
 22034  	}
 22035  	ret := &GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse{
 22036  		ServerResponse: googleapi.ServerResponse{
 22037  			Header:         res.Header,
 22038  			HTTPStatusCode: res.StatusCode,
 22039  		},
 22040  	}
 22041  	target := &ret
 22042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22043  		return nil, err
 22044  	}
 22045  	return ret, nil
 22046  }
 22047  
 22048  // Pages invokes f for each page of results.
 22049  // A non-nil error returned from f will halt the iteration.
 22050  // The provided context supersedes any context provided to the Context method.
 22051  func (c *PropertiesRollupPropertySourceLinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListRollupPropertySourceLinksResponse) error) error {
 22052  	c.ctx_ = ctx
 22053  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22054  	for {
 22055  		x, err := c.Do()
 22056  		if err != nil {
 22057  			return err
 22058  		}
 22059  		if err := f(x); err != nil {
 22060  			return err
 22061  		}
 22062  		if x.NextPageToken == "" {
 22063  			return nil
 22064  		}
 22065  		c.PageToken(x.NextPageToken)
 22066  	}
 22067  }
 22068  
 22069  type PropertiesSearchAds360LinksCreateCall struct {
 22070  	s                                           *Service
 22071  	parent                                      string
 22072  	googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link
 22073  	urlParams_                                  gensupport.URLParams
 22074  	ctx_                                        context.Context
 22075  	header_                                     http.Header
 22076  }
 22077  
 22078  // Create: Creates a SearchAds360Link.
 22079  //
 22080  // - parent: Example format: properties/1234.
 22081  func (r *PropertiesSearchAds360LinksService) Create(parent string, googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link) *PropertiesSearchAds360LinksCreateCall {
 22082  	c := &PropertiesSearchAds360LinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22083  	c.parent = parent
 22084  	c.googleanalyticsadminv1alphasearchads360link = googleanalyticsadminv1alphasearchads360link
 22085  	return c
 22086  }
 22087  
 22088  // Fields allows partial responses to be retrieved. See
 22089  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22090  // details.
 22091  func (c *PropertiesSearchAds360LinksCreateCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksCreateCall {
 22092  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22093  	return c
 22094  }
 22095  
 22096  // Context sets the context to be used in this call's Do method.
 22097  func (c *PropertiesSearchAds360LinksCreateCall) Context(ctx context.Context) *PropertiesSearchAds360LinksCreateCall {
 22098  	c.ctx_ = ctx
 22099  	return c
 22100  }
 22101  
 22102  // Header returns a http.Header that can be modified by the caller to add
 22103  // headers to the request.
 22104  func (c *PropertiesSearchAds360LinksCreateCall) Header() http.Header {
 22105  	if c.header_ == nil {
 22106  		c.header_ = make(http.Header)
 22107  	}
 22108  	return c.header_
 22109  }
 22110  
 22111  func (c *PropertiesSearchAds360LinksCreateCall) doRequest(alt string) (*http.Response, error) {
 22112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22113  	var body io.Reader = nil
 22114  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasearchads360link)
 22115  	if err != nil {
 22116  		return nil, err
 22117  	}
 22118  	c.urlParams_.Set("alt", alt)
 22119  	c.urlParams_.Set("prettyPrint", "false")
 22120  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/searchAds360Links")
 22121  	urls += "?" + c.urlParams_.Encode()
 22122  	req, err := http.NewRequest("POST", urls, body)
 22123  	if err != nil {
 22124  		return nil, err
 22125  	}
 22126  	req.Header = reqHeaders
 22127  	googleapi.Expand(req.URL, map[string]string{
 22128  		"parent": c.parent,
 22129  	})
 22130  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22131  }
 22132  
 22133  // Do executes the "analyticsadmin.properties.searchAds360Links.create" call.
 22134  // Any non-2xx status code is an error. Response headers are in either
 22135  // *GoogleAnalyticsAdminV1alphaSearchAds360Link.ServerResponse.Header or (if a
 22136  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22137  // googleapi.IsNotModified to check whether the returned error was because
 22138  // http.StatusNotModified was returned.
 22139  func (c *PropertiesSearchAds360LinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, error) {
 22140  	gensupport.SetOptions(c.urlParams_, opts...)
 22141  	res, err := c.doRequest("json")
 22142  	if res != nil && res.StatusCode == http.StatusNotModified {
 22143  		if res.Body != nil {
 22144  			res.Body.Close()
 22145  		}
 22146  		return nil, gensupport.WrapError(&googleapi.Error{
 22147  			Code:   res.StatusCode,
 22148  			Header: res.Header,
 22149  		})
 22150  	}
 22151  	if err != nil {
 22152  		return nil, err
 22153  	}
 22154  	defer googleapi.CloseBody(res)
 22155  	if err := googleapi.CheckResponse(res); err != nil {
 22156  		return nil, gensupport.WrapError(err)
 22157  	}
 22158  	ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{
 22159  		ServerResponse: googleapi.ServerResponse{
 22160  			Header:         res.Header,
 22161  			HTTPStatusCode: res.StatusCode,
 22162  		},
 22163  	}
 22164  	target := &ret
 22165  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22166  		return nil, err
 22167  	}
 22168  	return ret, nil
 22169  }
 22170  
 22171  type PropertiesSearchAds360LinksDeleteCall struct {
 22172  	s          *Service
 22173  	name       string
 22174  	urlParams_ gensupport.URLParams
 22175  	ctx_       context.Context
 22176  	header_    http.Header
 22177  }
 22178  
 22179  // Delete: Deletes a SearchAds360Link on a property.
 22180  //
 22181  //   - name: The name of the SearchAds360Link to delete. Example format:
 22182  //     properties/1234/SearchAds360Links/5678.
 22183  func (r *PropertiesSearchAds360LinksService) Delete(name string) *PropertiesSearchAds360LinksDeleteCall {
 22184  	c := &PropertiesSearchAds360LinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22185  	c.name = name
 22186  	return c
 22187  }
 22188  
 22189  // Fields allows partial responses to be retrieved. See
 22190  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22191  // details.
 22192  func (c *PropertiesSearchAds360LinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksDeleteCall {
 22193  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22194  	return c
 22195  }
 22196  
 22197  // Context sets the context to be used in this call's Do method.
 22198  func (c *PropertiesSearchAds360LinksDeleteCall) Context(ctx context.Context) *PropertiesSearchAds360LinksDeleteCall {
 22199  	c.ctx_ = ctx
 22200  	return c
 22201  }
 22202  
 22203  // Header returns a http.Header that can be modified by the caller to add
 22204  // headers to the request.
 22205  func (c *PropertiesSearchAds360LinksDeleteCall) Header() http.Header {
 22206  	if c.header_ == nil {
 22207  		c.header_ = make(http.Header)
 22208  	}
 22209  	return c.header_
 22210  }
 22211  
 22212  func (c *PropertiesSearchAds360LinksDeleteCall) doRequest(alt string) (*http.Response, error) {
 22213  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22214  	var body io.Reader = nil
 22215  	c.urlParams_.Set("alt", alt)
 22216  	c.urlParams_.Set("prettyPrint", "false")
 22217  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22218  	urls += "?" + c.urlParams_.Encode()
 22219  	req, err := http.NewRequest("DELETE", urls, body)
 22220  	if err != nil {
 22221  		return nil, err
 22222  	}
 22223  	req.Header = reqHeaders
 22224  	googleapi.Expand(req.URL, map[string]string{
 22225  		"name": c.name,
 22226  	})
 22227  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22228  }
 22229  
 22230  // Do executes the "analyticsadmin.properties.searchAds360Links.delete" call.
 22231  // Any non-2xx status code is an error. Response headers are in either
 22232  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22233  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22234  // check whether the returned error was because http.StatusNotModified was
 22235  // returned.
 22236  func (c *PropertiesSearchAds360LinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22237  	gensupport.SetOptions(c.urlParams_, opts...)
 22238  	res, err := c.doRequest("json")
 22239  	if res != nil && res.StatusCode == http.StatusNotModified {
 22240  		if res.Body != nil {
 22241  			res.Body.Close()
 22242  		}
 22243  		return nil, gensupport.WrapError(&googleapi.Error{
 22244  			Code:   res.StatusCode,
 22245  			Header: res.Header,
 22246  		})
 22247  	}
 22248  	if err != nil {
 22249  		return nil, err
 22250  	}
 22251  	defer googleapi.CloseBody(res)
 22252  	if err := googleapi.CheckResponse(res); err != nil {
 22253  		return nil, gensupport.WrapError(err)
 22254  	}
 22255  	ret := &GoogleProtobufEmpty{
 22256  		ServerResponse: googleapi.ServerResponse{
 22257  			Header:         res.Header,
 22258  			HTTPStatusCode: res.StatusCode,
 22259  		},
 22260  	}
 22261  	target := &ret
 22262  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22263  		return nil, err
 22264  	}
 22265  	return ret, nil
 22266  }
 22267  
 22268  type PropertiesSearchAds360LinksGetCall struct {
 22269  	s            *Service
 22270  	name         string
 22271  	urlParams_   gensupport.URLParams
 22272  	ifNoneMatch_ string
 22273  	ctx_         context.Context
 22274  	header_      http.Header
 22275  }
 22276  
 22277  // Get: Look up a single SearchAds360Link
 22278  //
 22279  //   - name: The name of the SearchAds360Link to get. Example format:
 22280  //     properties/1234/SearchAds360Link/5678.
 22281  func (r *PropertiesSearchAds360LinksService) Get(name string) *PropertiesSearchAds360LinksGetCall {
 22282  	c := &PropertiesSearchAds360LinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22283  	c.name = name
 22284  	return c
 22285  }
 22286  
 22287  // Fields allows partial responses to be retrieved. See
 22288  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22289  // details.
 22290  func (c *PropertiesSearchAds360LinksGetCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksGetCall {
 22291  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22292  	return c
 22293  }
 22294  
 22295  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22296  // object's ETag matches the given value. This is useful for getting updates
 22297  // only after the object has changed since the last request.
 22298  func (c *PropertiesSearchAds360LinksGetCall) IfNoneMatch(entityTag string) *PropertiesSearchAds360LinksGetCall {
 22299  	c.ifNoneMatch_ = entityTag
 22300  	return c
 22301  }
 22302  
 22303  // Context sets the context to be used in this call's Do method.
 22304  func (c *PropertiesSearchAds360LinksGetCall) Context(ctx context.Context) *PropertiesSearchAds360LinksGetCall {
 22305  	c.ctx_ = ctx
 22306  	return c
 22307  }
 22308  
 22309  // Header returns a http.Header that can be modified by the caller to add
 22310  // headers to the request.
 22311  func (c *PropertiesSearchAds360LinksGetCall) Header() http.Header {
 22312  	if c.header_ == nil {
 22313  		c.header_ = make(http.Header)
 22314  	}
 22315  	return c.header_
 22316  }
 22317  
 22318  func (c *PropertiesSearchAds360LinksGetCall) doRequest(alt string) (*http.Response, error) {
 22319  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22320  	if c.ifNoneMatch_ != "" {
 22321  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22322  	}
 22323  	var body io.Reader = nil
 22324  	c.urlParams_.Set("alt", alt)
 22325  	c.urlParams_.Set("prettyPrint", "false")
 22326  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22327  	urls += "?" + c.urlParams_.Encode()
 22328  	req, err := http.NewRequest("GET", urls, body)
 22329  	if err != nil {
 22330  		return nil, err
 22331  	}
 22332  	req.Header = reqHeaders
 22333  	googleapi.Expand(req.URL, map[string]string{
 22334  		"name": c.name,
 22335  	})
 22336  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22337  }
 22338  
 22339  // Do executes the "analyticsadmin.properties.searchAds360Links.get" call.
 22340  // Any non-2xx status code is an error. Response headers are in either
 22341  // *GoogleAnalyticsAdminV1alphaSearchAds360Link.ServerResponse.Header or (if a
 22342  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22343  // googleapi.IsNotModified to check whether the returned error was because
 22344  // http.StatusNotModified was returned.
 22345  func (c *PropertiesSearchAds360LinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, error) {
 22346  	gensupport.SetOptions(c.urlParams_, opts...)
 22347  	res, err := c.doRequest("json")
 22348  	if res != nil && res.StatusCode == http.StatusNotModified {
 22349  		if res.Body != nil {
 22350  			res.Body.Close()
 22351  		}
 22352  		return nil, gensupport.WrapError(&googleapi.Error{
 22353  			Code:   res.StatusCode,
 22354  			Header: res.Header,
 22355  		})
 22356  	}
 22357  	if err != nil {
 22358  		return nil, err
 22359  	}
 22360  	defer googleapi.CloseBody(res)
 22361  	if err := googleapi.CheckResponse(res); err != nil {
 22362  		return nil, gensupport.WrapError(err)
 22363  	}
 22364  	ret := &GoogleAnalyticsAdminV1alphaSearchAds360Link{
 22365  		ServerResponse: googleapi.ServerResponse{
 22366  			Header:         res.Header,
 22367  			HTTPStatusCode: res.StatusCode,
 22368  		},
 22369  	}
 22370  	target := &ret
 22371  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22372  		return nil, err
 22373  	}
 22374  	return ret, nil
 22375  }
 22376  
 22377  type PropertiesSearchAds360LinksListCall struct {
 22378  	s            *Service
 22379  	parent       string
 22380  	urlParams_   gensupport.URLParams
 22381  	ifNoneMatch_ string
 22382  	ctx_         context.Context
 22383  	header_      http.Header
 22384  }
 22385  
 22386  // List: Lists all SearchAds360Links on a property.
 22387  //
 22388  // - parent: Example format: properties/1234.
 22389  func (r *PropertiesSearchAds360LinksService) List(parent string) *PropertiesSearchAds360LinksListCall {
 22390  	c := &PropertiesSearchAds360LinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22391  	c.parent = parent
 22392  	return c
 22393  }
 22394  
 22395  // PageSize sets the optional parameter "pageSize": The maximum number of
 22396  // resources to return. If unspecified, at most 50 resources will be returned.
 22397  // The maximum value is 200 (higher values will be coerced to the maximum).
 22398  func (c *PropertiesSearchAds360LinksListCall) PageSize(pageSize int64) *PropertiesSearchAds360LinksListCall {
 22399  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22400  	return c
 22401  }
 22402  
 22403  // PageToken sets the optional parameter "pageToken": A page token, received
 22404  // from a previous `ListSearchAds360Links` call. Provide this to retrieve the
 22405  // subsequent page. When paginating, all other parameters provided to
 22406  // `ListSearchAds360Links` must match the call that provided the page token.
 22407  func (c *PropertiesSearchAds360LinksListCall) PageToken(pageToken string) *PropertiesSearchAds360LinksListCall {
 22408  	c.urlParams_.Set("pageToken", pageToken)
 22409  	return c
 22410  }
 22411  
 22412  // Fields allows partial responses to be retrieved. See
 22413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22414  // details.
 22415  func (c *PropertiesSearchAds360LinksListCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksListCall {
 22416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22417  	return c
 22418  }
 22419  
 22420  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22421  // object's ETag matches the given value. This is useful for getting updates
 22422  // only after the object has changed since the last request.
 22423  func (c *PropertiesSearchAds360LinksListCall) IfNoneMatch(entityTag string) *PropertiesSearchAds360LinksListCall {
 22424  	c.ifNoneMatch_ = entityTag
 22425  	return c
 22426  }
 22427  
 22428  // Context sets the context to be used in this call's Do method.
 22429  func (c *PropertiesSearchAds360LinksListCall) Context(ctx context.Context) *PropertiesSearchAds360LinksListCall {
 22430  	c.ctx_ = ctx
 22431  	return c
 22432  }
 22433  
 22434  // Header returns a http.Header that can be modified by the caller to add
 22435  // headers to the request.
 22436  func (c *PropertiesSearchAds360LinksListCall) Header() http.Header {
 22437  	if c.header_ == nil {
 22438  		c.header_ = make(http.Header)
 22439  	}
 22440  	return c.header_
 22441  }
 22442  
 22443  func (c *PropertiesSearchAds360LinksListCall) doRequest(alt string) (*http.Response, error) {
 22444  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22445  	if c.ifNoneMatch_ != "" {
 22446  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22447  	}
 22448  	var body io.Reader = nil
 22449  	c.urlParams_.Set("alt", alt)
 22450  	c.urlParams_.Set("prettyPrint", "false")
 22451  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/searchAds360Links")
 22452  	urls += "?" + c.urlParams_.Encode()
 22453  	req, err := http.NewRequest("GET", urls, body)
 22454  	if err != nil {
 22455  		return nil, err
 22456  	}
 22457  	req.Header = reqHeaders
 22458  	googleapi.Expand(req.URL, map[string]string{
 22459  		"parent": c.parent,
 22460  	})
 22461  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22462  }
 22463  
 22464  // Do executes the "analyticsadmin.properties.searchAds360Links.list" call.
 22465  // Any non-2xx status code is an error. Response headers are in either
 22466  // *GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse.ServerResponse.Head
 22467  // er or (if a response was returned at all) in
 22468  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22469  // whether the returned error was because http.StatusNotModified was returned.
 22470  func (c *PropertiesSearchAds360LinksListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse, error) {
 22471  	gensupport.SetOptions(c.urlParams_, opts...)
 22472  	res, err := c.doRequest("json")
 22473  	if res != nil && res.StatusCode == http.StatusNotModified {
 22474  		if res.Body != nil {
 22475  			res.Body.Close()
 22476  		}
 22477  		return nil, gensupport.WrapError(&googleapi.Error{
 22478  			Code:   res.StatusCode,
 22479  			Header: res.Header,
 22480  		})
 22481  	}
 22482  	if err != nil {
 22483  		return nil, err
 22484  	}
 22485  	defer googleapi.CloseBody(res)
 22486  	if err := googleapi.CheckResponse(res); err != nil {
 22487  		return nil, gensupport.WrapError(err)
 22488  	}
 22489  	ret := &GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse{
 22490  		ServerResponse: googleapi.ServerResponse{
 22491  			Header:         res.Header,
 22492  			HTTPStatusCode: res.StatusCode,
 22493  		},
 22494  	}
 22495  	target := &ret
 22496  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22497  		return nil, err
 22498  	}
 22499  	return ret, nil
 22500  }
 22501  
 22502  // Pages invokes f for each page of results.
 22503  // A non-nil error returned from f will halt the iteration.
 22504  // The provided context supersedes any context provided to the Context method.
 22505  func (c *PropertiesSearchAds360LinksListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse) error) error {
 22506  	c.ctx_ = ctx
 22507  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22508  	for {
 22509  		x, err := c.Do()
 22510  		if err != nil {
 22511  			return err
 22512  		}
 22513  		if err := f(x); err != nil {
 22514  			return err
 22515  		}
 22516  		if x.NextPageToken == "" {
 22517  			return nil
 22518  		}
 22519  		c.PageToken(x.NextPageToken)
 22520  	}
 22521  }
 22522  
 22523  type PropertiesSearchAds360LinksPatchCall struct {
 22524  	s                                           *Service
 22525  	name                                        string
 22526  	googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link
 22527  	urlParams_                                  gensupport.URLParams
 22528  	ctx_                                        context.Context
 22529  	header_                                     http.Header
 22530  }
 22531  
 22532  // Patch: Updates a SearchAds360Link on a property.
 22533  //
 22534  //   - name: Output only. The resource name for this SearchAds360Link resource.
 22535  //     Format: properties/{propertyId}/searchAds360Links/{linkId} Note: linkId is
 22536  //     not the Search Ads 360 advertiser ID.
 22537  func (r *PropertiesSearchAds360LinksService) Patch(name string, googleanalyticsadminv1alphasearchads360link *GoogleAnalyticsAdminV1alphaSearchAds360Link) *PropertiesSearchAds360LinksPatchCall {
 22538  	c := &PropertiesSearchAds360LinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22539  	c.name = name
 22540  	c.googleanalyticsadminv1alphasearchads360link = googleanalyticsadminv1alphasearchads360link
 22541  	return c
 22542  }
 22543  
 22544  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 22545  // fields to be updated. Omitted fields will not be updated. To replace the
 22546  // entire entity, use one path with the string "*" to match all fields.
 22547  func (c *PropertiesSearchAds360LinksPatchCall) UpdateMask(updateMask string) *PropertiesSearchAds360LinksPatchCall {
 22548  	c.urlParams_.Set("updateMask", updateMask)
 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 *PropertiesSearchAds360LinksPatchCall) Fields(s ...googleapi.Field) *PropertiesSearchAds360LinksPatchCall {
 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 *PropertiesSearchAds360LinksPatchCall) Context(ctx context.Context) *PropertiesSearchAds360LinksPatchCall {
 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 *PropertiesSearchAds360LinksPatchCall) Header() http.Header {
 22569  	if c.header_ == nil {
 22570  		c.header_ = make(http.Header)
 22571  	}
 22572  	return c.header_
 22573  }
 22574  
 22575  func (c *PropertiesSearchAds360LinksPatchCall) 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.googleanalyticsadminv1alphasearchads360link)
 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, "v1alpha/{+name}")
 22585  	urls += "?" + c.urlParams_.Encode()
 22586  	req, err := http.NewRequest("PATCH", urls, body)
 22587  	if err != nil {
 22588  		return nil, err
 22589  	}
 22590  	req.Header = reqHeaders
 22591  	googleapi.Expand(req.URL, map[string]string{
 22592  		"name": c.name,
 22593  	})
 22594  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22595  }
 22596  
 22597  // Do executes the "analyticsadmin.properties.searchAds360Links.patch" call.
 22598  // Any non-2xx status code is an error. Response headers are in either
 22599  // *GoogleAnalyticsAdminV1alphaSearchAds360Link.ServerResponse.Header or (if a
 22600  // 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 *PropertiesSearchAds360LinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSearchAds360Link, 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 := &GoogleAnalyticsAdminV1alphaSearchAds360Link{
 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 PropertiesSubpropertyEventFiltersCreateCall struct {
 22636  	s                                                 *Service
 22637  	parent                                            string
 22638  	googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter
 22639  	urlParams_                                        gensupport.URLParams
 22640  	ctx_                                              context.Context
 22641  	header_                                           http.Header
 22642  }
 22643  
 22644  // Create: Creates a subproperty Event Filter.
 22645  //
 22646  //   - parent: The ordinary property for which to create a subproperty event
 22647  //     filter. Format: properties/property_id Example: properties/123.
 22648  func (r *PropertiesSubpropertyEventFiltersService) Create(parent string, googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter) *PropertiesSubpropertyEventFiltersCreateCall {
 22649  	c := &PropertiesSubpropertyEventFiltersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22650  	c.parent = parent
 22651  	c.googleanalyticsadminv1alphasubpropertyeventfilter = googleanalyticsadminv1alphasubpropertyeventfilter
 22652  	return c
 22653  }
 22654  
 22655  // Fields allows partial responses to be retrieved. See
 22656  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22657  // details.
 22658  func (c *PropertiesSubpropertyEventFiltersCreateCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersCreateCall {
 22659  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22660  	return c
 22661  }
 22662  
 22663  // Context sets the context to be used in this call's Do method.
 22664  func (c *PropertiesSubpropertyEventFiltersCreateCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersCreateCall {
 22665  	c.ctx_ = ctx
 22666  	return c
 22667  }
 22668  
 22669  // Header returns a http.Header that can be modified by the caller to add
 22670  // headers to the request.
 22671  func (c *PropertiesSubpropertyEventFiltersCreateCall) Header() http.Header {
 22672  	if c.header_ == nil {
 22673  		c.header_ = make(http.Header)
 22674  	}
 22675  	return c.header_
 22676  }
 22677  
 22678  func (c *PropertiesSubpropertyEventFiltersCreateCall) doRequest(alt string) (*http.Response, error) {
 22679  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22680  	var body io.Reader = nil
 22681  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasubpropertyeventfilter)
 22682  	if err != nil {
 22683  		return nil, err
 22684  	}
 22685  	c.urlParams_.Set("alt", alt)
 22686  	c.urlParams_.Set("prettyPrint", "false")
 22687  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subpropertyEventFilters")
 22688  	urls += "?" + c.urlParams_.Encode()
 22689  	req, err := http.NewRequest("POST", urls, body)
 22690  	if err != nil {
 22691  		return nil, err
 22692  	}
 22693  	req.Header = reqHeaders
 22694  	googleapi.Expand(req.URL, map[string]string{
 22695  		"parent": c.parent,
 22696  	})
 22697  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22698  }
 22699  
 22700  // Do executes the "analyticsadmin.properties.subpropertyEventFilters.create" call.
 22701  // Any non-2xx status code is an error. Response headers are in either
 22702  // *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter.ServerResponse.Header or
 22703  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 22704  // googleapi.IsNotModified to check whether the returned error was because
 22705  // http.StatusNotModified was returned.
 22706  func (c *PropertiesSubpropertyEventFiltersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter, error) {
 22707  	gensupport.SetOptions(c.urlParams_, opts...)
 22708  	res, err := c.doRequest("json")
 22709  	if res != nil && res.StatusCode == http.StatusNotModified {
 22710  		if res.Body != nil {
 22711  			res.Body.Close()
 22712  		}
 22713  		return nil, gensupport.WrapError(&googleapi.Error{
 22714  			Code:   res.StatusCode,
 22715  			Header: res.Header,
 22716  		})
 22717  	}
 22718  	if err != nil {
 22719  		return nil, err
 22720  	}
 22721  	defer googleapi.CloseBody(res)
 22722  	if err := googleapi.CheckResponse(res); err != nil {
 22723  		return nil, gensupport.WrapError(err)
 22724  	}
 22725  	ret := &GoogleAnalyticsAdminV1alphaSubpropertyEventFilter{
 22726  		ServerResponse: googleapi.ServerResponse{
 22727  			Header:         res.Header,
 22728  			HTTPStatusCode: res.StatusCode,
 22729  		},
 22730  	}
 22731  	target := &ret
 22732  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22733  		return nil, err
 22734  	}
 22735  	return ret, nil
 22736  }
 22737  
 22738  type PropertiesSubpropertyEventFiltersDeleteCall struct {
 22739  	s          *Service
 22740  	name       string
 22741  	urlParams_ gensupport.URLParams
 22742  	ctx_       context.Context
 22743  	header_    http.Header
 22744  }
 22745  
 22746  // Delete: Deletes a subproperty event filter.
 22747  //
 22748  //   - name: Resource name of the subproperty event filter to delete. Format:
 22749  //     properties/property_id/subpropertyEventFilters/subproperty_event_filter
 22750  //     Example: properties/123/subpropertyEventFilters/456.
 22751  func (r *PropertiesSubpropertyEventFiltersService) Delete(name string) *PropertiesSubpropertyEventFiltersDeleteCall {
 22752  	c := &PropertiesSubpropertyEventFiltersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22753  	c.name = name
 22754  	return c
 22755  }
 22756  
 22757  // Fields allows partial responses to be retrieved. See
 22758  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22759  // details.
 22760  func (c *PropertiesSubpropertyEventFiltersDeleteCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersDeleteCall {
 22761  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22762  	return c
 22763  }
 22764  
 22765  // Context sets the context to be used in this call's Do method.
 22766  func (c *PropertiesSubpropertyEventFiltersDeleteCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersDeleteCall {
 22767  	c.ctx_ = ctx
 22768  	return c
 22769  }
 22770  
 22771  // Header returns a http.Header that can be modified by the caller to add
 22772  // headers to the request.
 22773  func (c *PropertiesSubpropertyEventFiltersDeleteCall) Header() http.Header {
 22774  	if c.header_ == nil {
 22775  		c.header_ = make(http.Header)
 22776  	}
 22777  	return c.header_
 22778  }
 22779  
 22780  func (c *PropertiesSubpropertyEventFiltersDeleteCall) doRequest(alt string) (*http.Response, error) {
 22781  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22782  	var body io.Reader = nil
 22783  	c.urlParams_.Set("alt", alt)
 22784  	c.urlParams_.Set("prettyPrint", "false")
 22785  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22786  	urls += "?" + c.urlParams_.Encode()
 22787  	req, err := http.NewRequest("DELETE", urls, body)
 22788  	if err != nil {
 22789  		return nil, err
 22790  	}
 22791  	req.Header = reqHeaders
 22792  	googleapi.Expand(req.URL, map[string]string{
 22793  		"name": c.name,
 22794  	})
 22795  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22796  }
 22797  
 22798  // Do executes the "analyticsadmin.properties.subpropertyEventFilters.delete" call.
 22799  // Any non-2xx status code is an error. Response headers are in either
 22800  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22801  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22802  // check whether the returned error was because http.StatusNotModified was
 22803  // returned.
 22804  func (c *PropertiesSubpropertyEventFiltersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22805  	gensupport.SetOptions(c.urlParams_, opts...)
 22806  	res, err := c.doRequest("json")
 22807  	if res != nil && res.StatusCode == http.StatusNotModified {
 22808  		if res.Body != nil {
 22809  			res.Body.Close()
 22810  		}
 22811  		return nil, gensupport.WrapError(&googleapi.Error{
 22812  			Code:   res.StatusCode,
 22813  			Header: res.Header,
 22814  		})
 22815  	}
 22816  	if err != nil {
 22817  		return nil, err
 22818  	}
 22819  	defer googleapi.CloseBody(res)
 22820  	if err := googleapi.CheckResponse(res); err != nil {
 22821  		return nil, gensupport.WrapError(err)
 22822  	}
 22823  	ret := &GoogleProtobufEmpty{
 22824  		ServerResponse: googleapi.ServerResponse{
 22825  			Header:         res.Header,
 22826  			HTTPStatusCode: res.StatusCode,
 22827  		},
 22828  	}
 22829  	target := &ret
 22830  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22831  		return nil, err
 22832  	}
 22833  	return ret, nil
 22834  }
 22835  
 22836  type PropertiesSubpropertyEventFiltersGetCall struct {
 22837  	s            *Service
 22838  	name         string
 22839  	urlParams_   gensupport.URLParams
 22840  	ifNoneMatch_ string
 22841  	ctx_         context.Context
 22842  	header_      http.Header
 22843  }
 22844  
 22845  // Get: Lookup for a single subproperty Event Filter.
 22846  //
 22847  //   - name: Resource name of the subproperty event filter to lookup. Format:
 22848  //     properties/property_id/subpropertyEventFilters/subproperty_event_filter
 22849  //     Example: properties/123/subpropertyEventFilters/456.
 22850  func (r *PropertiesSubpropertyEventFiltersService) Get(name string) *PropertiesSubpropertyEventFiltersGetCall {
 22851  	c := &PropertiesSubpropertyEventFiltersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22852  	c.name = name
 22853  	return c
 22854  }
 22855  
 22856  // Fields allows partial responses to be retrieved. See
 22857  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22858  // details.
 22859  func (c *PropertiesSubpropertyEventFiltersGetCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersGetCall {
 22860  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22861  	return c
 22862  }
 22863  
 22864  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22865  // object's ETag matches the given value. This is useful for getting updates
 22866  // only after the object has changed since the last request.
 22867  func (c *PropertiesSubpropertyEventFiltersGetCall) IfNoneMatch(entityTag string) *PropertiesSubpropertyEventFiltersGetCall {
 22868  	c.ifNoneMatch_ = entityTag
 22869  	return c
 22870  }
 22871  
 22872  // Context sets the context to be used in this call's Do method.
 22873  func (c *PropertiesSubpropertyEventFiltersGetCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersGetCall {
 22874  	c.ctx_ = ctx
 22875  	return c
 22876  }
 22877  
 22878  // Header returns a http.Header that can be modified by the caller to add
 22879  // headers to the request.
 22880  func (c *PropertiesSubpropertyEventFiltersGetCall) Header() http.Header {
 22881  	if c.header_ == nil {
 22882  		c.header_ = make(http.Header)
 22883  	}
 22884  	return c.header_
 22885  }
 22886  
 22887  func (c *PropertiesSubpropertyEventFiltersGetCall) doRequest(alt string) (*http.Response, error) {
 22888  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22889  	if c.ifNoneMatch_ != "" {
 22890  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22891  	}
 22892  	var body io.Reader = nil
 22893  	c.urlParams_.Set("alt", alt)
 22894  	c.urlParams_.Set("prettyPrint", "false")
 22895  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22896  	urls += "?" + c.urlParams_.Encode()
 22897  	req, err := http.NewRequest("GET", urls, body)
 22898  	if err != nil {
 22899  		return nil, err
 22900  	}
 22901  	req.Header = reqHeaders
 22902  	googleapi.Expand(req.URL, map[string]string{
 22903  		"name": c.name,
 22904  	})
 22905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22906  }
 22907  
 22908  // Do executes the "analyticsadmin.properties.subpropertyEventFilters.get" call.
 22909  // Any non-2xx status code is an error. Response headers are in either
 22910  // *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter.ServerResponse.Header or
 22911  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 22912  // googleapi.IsNotModified to check whether the returned error was because
 22913  // http.StatusNotModified was returned.
 22914  func (c *PropertiesSubpropertyEventFiltersGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter, error) {
 22915  	gensupport.SetOptions(c.urlParams_, opts...)
 22916  	res, err := c.doRequest("json")
 22917  	if res != nil && res.StatusCode == http.StatusNotModified {
 22918  		if res.Body != nil {
 22919  			res.Body.Close()
 22920  		}
 22921  		return nil, gensupport.WrapError(&googleapi.Error{
 22922  			Code:   res.StatusCode,
 22923  			Header: res.Header,
 22924  		})
 22925  	}
 22926  	if err != nil {
 22927  		return nil, err
 22928  	}
 22929  	defer googleapi.CloseBody(res)
 22930  	if err := googleapi.CheckResponse(res); err != nil {
 22931  		return nil, gensupport.WrapError(err)
 22932  	}
 22933  	ret := &GoogleAnalyticsAdminV1alphaSubpropertyEventFilter{
 22934  		ServerResponse: googleapi.ServerResponse{
 22935  			Header:         res.Header,
 22936  			HTTPStatusCode: res.StatusCode,
 22937  		},
 22938  	}
 22939  	target := &ret
 22940  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22941  		return nil, err
 22942  	}
 22943  	return ret, nil
 22944  }
 22945  
 22946  type PropertiesSubpropertyEventFiltersListCall struct {
 22947  	s            *Service
 22948  	parent       string
 22949  	urlParams_   gensupport.URLParams
 22950  	ifNoneMatch_ string
 22951  	ctx_         context.Context
 22952  	header_      http.Header
 22953  }
 22954  
 22955  // List: List all subproperty Event Filters on a property.
 22956  //
 22957  //   - parent: Resource name of the ordinary property. Format:
 22958  //     properties/property_id Example: properties/123.
 22959  func (r *PropertiesSubpropertyEventFiltersService) List(parent string) *PropertiesSubpropertyEventFiltersListCall {
 22960  	c := &PropertiesSubpropertyEventFiltersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22961  	c.parent = parent
 22962  	return c
 22963  }
 22964  
 22965  // PageSize sets the optional parameter "pageSize": The maximum number of
 22966  // resources to return. The service may return fewer than this value, even if
 22967  // there are additional pages. If unspecified, at most 50 resources will be
 22968  // returned. The maximum value is 200; (higher values will be coerced to the
 22969  // maximum)
 22970  func (c *PropertiesSubpropertyEventFiltersListCall) PageSize(pageSize int64) *PropertiesSubpropertyEventFiltersListCall {
 22971  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22972  	return c
 22973  }
 22974  
 22975  // PageToken sets the optional parameter "pageToken": A page token, received
 22976  // from a previous `ListSubpropertyEventFilters` call. Provide this to retrieve
 22977  // the subsequent page. When paginating, all other parameters provided to
 22978  // `ListSubpropertyEventFilters` must match the call that provided the page
 22979  // token.
 22980  func (c *PropertiesSubpropertyEventFiltersListCall) PageToken(pageToken string) *PropertiesSubpropertyEventFiltersListCall {
 22981  	c.urlParams_.Set("pageToken", pageToken)
 22982  	return c
 22983  }
 22984  
 22985  // Fields allows partial responses to be retrieved. See
 22986  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22987  // details.
 22988  func (c *PropertiesSubpropertyEventFiltersListCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersListCall {
 22989  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22990  	return c
 22991  }
 22992  
 22993  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22994  // object's ETag matches the given value. This is useful for getting updates
 22995  // only after the object has changed since the last request.
 22996  func (c *PropertiesSubpropertyEventFiltersListCall) IfNoneMatch(entityTag string) *PropertiesSubpropertyEventFiltersListCall {
 22997  	c.ifNoneMatch_ = entityTag
 22998  	return c
 22999  }
 23000  
 23001  // Context sets the context to be used in this call's Do method.
 23002  func (c *PropertiesSubpropertyEventFiltersListCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersListCall {
 23003  	c.ctx_ = ctx
 23004  	return c
 23005  }
 23006  
 23007  // Header returns a http.Header that can be modified by the caller to add
 23008  // headers to the request.
 23009  func (c *PropertiesSubpropertyEventFiltersListCall) Header() http.Header {
 23010  	if c.header_ == nil {
 23011  		c.header_ = make(http.Header)
 23012  	}
 23013  	return c.header_
 23014  }
 23015  
 23016  func (c *PropertiesSubpropertyEventFiltersListCall) doRequest(alt string) (*http.Response, error) {
 23017  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23018  	if c.ifNoneMatch_ != "" {
 23019  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23020  	}
 23021  	var body io.Reader = nil
 23022  	c.urlParams_.Set("alt", alt)
 23023  	c.urlParams_.Set("prettyPrint", "false")
 23024  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/subpropertyEventFilters")
 23025  	urls += "?" + c.urlParams_.Encode()
 23026  	req, err := http.NewRequest("GET", urls, body)
 23027  	if err != nil {
 23028  		return nil, err
 23029  	}
 23030  	req.Header = reqHeaders
 23031  	googleapi.Expand(req.URL, map[string]string{
 23032  		"parent": c.parent,
 23033  	})
 23034  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23035  }
 23036  
 23037  // Do executes the "analyticsadmin.properties.subpropertyEventFilters.list" call.
 23038  // Any non-2xx status code is an error. Response headers are in either
 23039  // *GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse.ServerRespons
 23040  // e.Header or (if a response was returned at all) in
 23041  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23042  // whether the returned error was because http.StatusNotModified was returned.
 23043  func (c *PropertiesSubpropertyEventFiltersListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse, error) {
 23044  	gensupport.SetOptions(c.urlParams_, opts...)
 23045  	res, err := c.doRequest("json")
 23046  	if res != nil && res.StatusCode == http.StatusNotModified {
 23047  		if res.Body != nil {
 23048  			res.Body.Close()
 23049  		}
 23050  		return nil, gensupport.WrapError(&googleapi.Error{
 23051  			Code:   res.StatusCode,
 23052  			Header: res.Header,
 23053  		})
 23054  	}
 23055  	if err != nil {
 23056  		return nil, err
 23057  	}
 23058  	defer googleapi.CloseBody(res)
 23059  	if err := googleapi.CheckResponse(res); err != nil {
 23060  		return nil, gensupport.WrapError(err)
 23061  	}
 23062  	ret := &GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse{
 23063  		ServerResponse: googleapi.ServerResponse{
 23064  			Header:         res.Header,
 23065  			HTTPStatusCode: res.StatusCode,
 23066  		},
 23067  	}
 23068  	target := &ret
 23069  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23070  		return nil, err
 23071  	}
 23072  	return ret, nil
 23073  }
 23074  
 23075  // Pages invokes f for each page of results.
 23076  // A non-nil error returned from f will halt the iteration.
 23077  // The provided context supersedes any context provided to the Context method.
 23078  func (c *PropertiesSubpropertyEventFiltersListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListSubpropertyEventFiltersResponse) error) error {
 23079  	c.ctx_ = ctx
 23080  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23081  	for {
 23082  		x, err := c.Do()
 23083  		if err != nil {
 23084  			return err
 23085  		}
 23086  		if err := f(x); err != nil {
 23087  			return err
 23088  		}
 23089  		if x.NextPageToken == "" {
 23090  			return nil
 23091  		}
 23092  		c.PageToken(x.NextPageToken)
 23093  	}
 23094  }
 23095  
 23096  type PropertiesSubpropertyEventFiltersPatchCall struct {
 23097  	s                                                 *Service
 23098  	name                                              string
 23099  	googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter
 23100  	urlParams_                                        gensupport.URLParams
 23101  	ctx_                                              context.Context
 23102  	header_                                           http.Header
 23103  }
 23104  
 23105  // Patch: Updates a subproperty Event Filter.
 23106  //
 23107  //   - name: Output only. Format:
 23108  //     properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_eve
 23109  //     nt_filter} Example: properties/1234/subpropertyEventFilters/5678.
 23110  func (r *PropertiesSubpropertyEventFiltersService) Patch(name string, googleanalyticsadminv1alphasubpropertyeventfilter *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter) *PropertiesSubpropertyEventFiltersPatchCall {
 23111  	c := &PropertiesSubpropertyEventFiltersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23112  	c.name = name
 23113  	c.googleanalyticsadminv1alphasubpropertyeventfilter = googleanalyticsadminv1alphasubpropertyeventfilter
 23114  	return c
 23115  }
 23116  
 23117  // UpdateMask sets the optional parameter "updateMask": Required. The list of
 23118  // fields to update. Field names must be in snake case (for example,
 23119  // "field_to_update"). Omitted fields will not be updated. To replace the
 23120  // entire entity, use one path with the string "*" to match all fields.
 23121  func (c *PropertiesSubpropertyEventFiltersPatchCall) UpdateMask(updateMask string) *PropertiesSubpropertyEventFiltersPatchCall {
 23122  	c.urlParams_.Set("updateMask", updateMask)
 23123  	return c
 23124  }
 23125  
 23126  // Fields allows partial responses to be retrieved. See
 23127  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23128  // details.
 23129  func (c *PropertiesSubpropertyEventFiltersPatchCall) Fields(s ...googleapi.Field) *PropertiesSubpropertyEventFiltersPatchCall {
 23130  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23131  	return c
 23132  }
 23133  
 23134  // Context sets the context to be used in this call's Do method.
 23135  func (c *PropertiesSubpropertyEventFiltersPatchCall) Context(ctx context.Context) *PropertiesSubpropertyEventFiltersPatchCall {
 23136  	c.ctx_ = ctx
 23137  	return c
 23138  }
 23139  
 23140  // Header returns a http.Header that can be modified by the caller to add
 23141  // headers to the request.
 23142  func (c *PropertiesSubpropertyEventFiltersPatchCall) Header() http.Header {
 23143  	if c.header_ == nil {
 23144  		c.header_ = make(http.Header)
 23145  	}
 23146  	return c.header_
 23147  }
 23148  
 23149  func (c *PropertiesSubpropertyEventFiltersPatchCall) doRequest(alt string) (*http.Response, error) {
 23150  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23151  	var body io.Reader = nil
 23152  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphasubpropertyeventfilter)
 23153  	if err != nil {
 23154  		return nil, err
 23155  	}
 23156  	c.urlParams_.Set("alt", alt)
 23157  	c.urlParams_.Set("prettyPrint", "false")
 23158  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 23159  	urls += "?" + c.urlParams_.Encode()
 23160  	req, err := http.NewRequest("PATCH", urls, body)
 23161  	if err != nil {
 23162  		return nil, err
 23163  	}
 23164  	req.Header = reqHeaders
 23165  	googleapi.Expand(req.URL, map[string]string{
 23166  		"name": c.name,
 23167  	})
 23168  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23169  }
 23170  
 23171  // Do executes the "analyticsadmin.properties.subpropertyEventFilters.patch" call.
 23172  // Any non-2xx status code is an error. Response headers are in either
 23173  // *GoogleAnalyticsAdminV1alphaSubpropertyEventFilter.ServerResponse.Header or
 23174  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 23175  // googleapi.IsNotModified to check whether the returned error was because
 23176  // http.StatusNotModified was returned.
 23177  func (c *PropertiesSubpropertyEventFiltersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaSubpropertyEventFilter, error) {
 23178  	gensupport.SetOptions(c.urlParams_, opts...)
 23179  	res, err := c.doRequest("json")
 23180  	if res != nil && res.StatusCode == http.StatusNotModified {
 23181  		if res.Body != nil {
 23182  			res.Body.Close()
 23183  		}
 23184  		return nil, gensupport.WrapError(&googleapi.Error{
 23185  			Code:   res.StatusCode,
 23186  			Header: res.Header,
 23187  		})
 23188  	}
 23189  	if err != nil {
 23190  		return nil, err
 23191  	}
 23192  	defer googleapi.CloseBody(res)
 23193  	if err := googleapi.CheckResponse(res); err != nil {
 23194  		return nil, gensupport.WrapError(err)
 23195  	}
 23196  	ret := &GoogleAnalyticsAdminV1alphaSubpropertyEventFilter{
 23197  		ServerResponse: googleapi.ServerResponse{
 23198  			Header:         res.Header,
 23199  			HTTPStatusCode: res.StatusCode,
 23200  		},
 23201  	}
 23202  	target := &ret
 23203  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23204  		return nil, err
 23205  	}
 23206  	return ret, nil
 23207  }
 23208  

View as plain text