...

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

Documentation: google.golang.org/api/checks/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 checks provides access to the Checks API.
     8  //
     9  // For product documentation, see: https://developers.google.com/checks
    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/checks/v1alpha"
    27  //	...
    28  //	ctx := context.Background()
    29  //	checksService, err := checks.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  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	checksService, err := checks.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	checksService, err := checks.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package checks // import "google.golang.org/api/checks/v1alpha"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "checks:v1alpha"
    90  const apiName = "checks"
    91  const apiVersion = "v1alpha"
    92  const basePath = "https://checks.googleapis.com/"
    93  const basePathTemplate = "https://checks.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://checks.mtls.googleapis.com/"
    95  
    96  // NewService creates a new Service.
    97  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
    98  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
    99  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   100  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   101  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   102  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	s, err := New(client)
   107  	if err != nil {
   108  		return nil, err
   109  	}
   110  	if endpoint != "" {
   111  		s.BasePath = endpoint
   112  	}
   113  	return s, nil
   114  }
   115  
   116  // New creates a new Service. It uses the provided http.Client for requests.
   117  //
   118  // Deprecated: please use NewService instead.
   119  // To provide a custom HTTP client, use option.WithHTTPClient.
   120  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   121  func New(client *http.Client) (*Service, error) {
   122  	if client == nil {
   123  		return nil, errors.New("client is nil")
   124  	}
   125  	s := &Service{client: client, BasePath: basePath}
   126  	s.Accounts = NewAccountsService(s)
   127  	s.Media = NewMediaService(s)
   128  	return s, nil
   129  }
   130  
   131  type Service struct {
   132  	client    *http.Client
   133  	BasePath  string // API endpoint base URL
   134  	UserAgent string // optional additional User-Agent fragment
   135  
   136  	Accounts *AccountsService
   137  
   138  	Media *MediaService
   139  }
   140  
   141  func (s *Service) userAgent() string {
   142  	if s.UserAgent == "" {
   143  		return googleapi.UserAgent
   144  	}
   145  	return googleapi.UserAgent + " " + s.UserAgent
   146  }
   147  
   148  func NewAccountsService(s *Service) *AccountsService {
   149  	rs := &AccountsService{s: s}
   150  	rs.Apps = NewAccountsAppsService(s)
   151  	return rs
   152  }
   153  
   154  type AccountsService struct {
   155  	s *Service
   156  
   157  	Apps *AccountsAppsService
   158  }
   159  
   160  func NewAccountsAppsService(s *Service) *AccountsAppsService {
   161  	rs := &AccountsAppsService{s: s}
   162  	rs.Operations = NewAccountsAppsOperationsService(s)
   163  	rs.Reports = NewAccountsAppsReportsService(s)
   164  	return rs
   165  }
   166  
   167  type AccountsAppsService struct {
   168  	s *Service
   169  
   170  	Operations *AccountsAppsOperationsService
   171  
   172  	Reports *AccountsAppsReportsService
   173  }
   174  
   175  func NewAccountsAppsOperationsService(s *Service) *AccountsAppsOperationsService {
   176  	rs := &AccountsAppsOperationsService{s: s}
   177  	return rs
   178  }
   179  
   180  type AccountsAppsOperationsService struct {
   181  	s *Service
   182  }
   183  
   184  func NewAccountsAppsReportsService(s *Service) *AccountsAppsReportsService {
   185  	rs := &AccountsAppsReportsService{s: s}
   186  	return rs
   187  }
   188  
   189  type AccountsAppsReportsService struct {
   190  	s *Service
   191  }
   192  
   193  func NewMediaService(s *Service) *MediaService {
   194  	rs := &MediaService{s: s}
   195  	return rs
   196  }
   197  
   198  type MediaService struct {
   199  	s *Service
   200  }
   201  
   202  // CancelOperationRequest: The request message for Operations.CancelOperation.
   203  type CancelOperationRequest struct {
   204  }
   205  
   206  // Empty: A generic empty message that you can re-use to avoid defining
   207  // duplicated empty messages in your APIs. A typical example is to use it as
   208  // the request or the response type of an API method. For instance: service Foo
   209  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   210  type Empty struct {
   211  	// ServerResponse contains the HTTP response code and headers from the server.
   212  	googleapi.ServerResponse `json:"-"`
   213  }
   214  
   215  // GoogleChecksAccountV1alphaApp: Represents an app in Checks.
   216  type GoogleChecksAccountV1alphaApp struct {
   217  	// Name: The resource name of the app. Example: `accounts/123/apps/456`
   218  	Name string `json:"name,omitempty"`
   219  	// Title: The app's title.
   220  	Title string `json:"title,omitempty"`
   221  
   222  	// ServerResponse contains the HTTP response code and headers from the server.
   223  	googleapi.ServerResponse `json:"-"`
   224  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   225  	// include in API requests. By default, fields with empty or default values are
   226  	// omitted from API requests. See
   227  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   228  	// details.
   229  	ForceSendFields []string `json:"-"`
   230  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   231  	// with the JSON null value. By default, fields with empty values are omitted
   232  	// from API requests. See
   233  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   234  	NullFields []string `json:"-"`
   235  }
   236  
   237  func (s *GoogleChecksAccountV1alphaApp) MarshalJSON() ([]byte, error) {
   238  	type NoMethod GoogleChecksAccountV1alphaApp
   239  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   240  }
   241  
   242  // GoogleChecksAccountV1alphaListAppsResponse: The response message for
   243  // AccountService.ListApps.
   244  type GoogleChecksAccountV1alphaListAppsResponse struct {
   245  	// Apps: The apps.
   246  	Apps []*GoogleChecksAccountV1alphaApp `json:"apps,omitempty"`
   247  	// NextPageToken: A token which can be sent as `page_token` to retrieve the
   248  	// next page. If this field is omitted, there are no subsequent pages.
   249  	NextPageToken string `json:"nextPageToken,omitempty"`
   250  
   251  	// ServerResponse contains the HTTP response code and headers from the server.
   252  	googleapi.ServerResponse `json:"-"`
   253  	// ForceSendFields is a list of field names (e.g. "Apps") to unconditionally
   254  	// include in API requests. By default, fields with empty or default values are
   255  	// omitted from API requests. See
   256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   257  	// details.
   258  	ForceSendFields []string `json:"-"`
   259  	// NullFields is a list of field names (e.g. "Apps") to include in API requests
   260  	// with the JSON null value. By default, fields with empty values are omitted
   261  	// from API requests. See
   262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   263  	NullFields []string `json:"-"`
   264  }
   265  
   266  func (s *GoogleChecksAccountV1alphaListAppsResponse) MarshalJSON() ([]byte, error) {
   267  	type NoMethod GoogleChecksAccountV1alphaListAppsResponse
   268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   269  }
   270  
   271  // GoogleChecksReportV1alphaAnalyzeUploadRequest: The request message for
   272  // ReportService.AnalyzeUpload.
   273  type GoogleChecksReportV1alphaAnalyzeUploadRequest struct {
   274  	// AppBinaryFileType: Optional. The type of the uploaded app binary. If not
   275  	// provided, the server assumes APK file for Android and IPA file for iOS.
   276  	//
   277  	// Possible values:
   278  	//   "APP_BINARY_FILE_TYPE_UNSPECIFIED" - Not specified.
   279  	//   "ANDROID_APK" - .apk file type.
   280  	//   "ANDROID_AAB" - .aab (app bundle) file type.
   281  	//   "IOS_IPA" - .ipa file type.
   282  	AppBinaryFileType string `json:"appBinaryFileType,omitempty"`
   283  	// CodeReferenceId: Optional. Git commit hash or changelist number associated
   284  	// with the upload.
   285  	CodeReferenceId string `json:"codeReferenceId,omitempty"`
   286  	// ForceSendFields is a list of field names (e.g. "AppBinaryFileType") to
   287  	// unconditionally include in API requests. By default, fields with empty or
   288  	// default values are omitted from API requests. See
   289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   290  	// details.
   291  	ForceSendFields []string `json:"-"`
   292  	// NullFields is a list of field names (e.g. "AppBinaryFileType") to include in
   293  	// API requests with the JSON null value. By default, fields with empty values
   294  	// are omitted from API requests. See
   295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   296  	NullFields []string `json:"-"`
   297  }
   298  
   299  func (s *GoogleChecksReportV1alphaAnalyzeUploadRequest) MarshalJSON() ([]byte, error) {
   300  	type NoMethod GoogleChecksReportV1alphaAnalyzeUploadRequest
   301  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   302  }
   303  
   304  // GoogleChecksReportV1alphaAppBundle: Information about the analyzed app
   305  // bundle.
   306  type GoogleChecksReportV1alphaAppBundle struct {
   307  	// BundleId: Unique id of the bundle. For example: "com.google.Gmail".
   308  	BundleId string `json:"bundleId,omitempty"`
   309  	// CodeReferenceId: Git commit hash or changelist number associated with the
   310  	// release.
   311  	CodeReferenceId string `json:"codeReferenceId,omitempty"`
   312  	// ReleaseType: Identifies the type of release.
   313  	//
   314  	// Possible values:
   315  	//   "APP_BUNDLE_RELEASE_TYPE_UNSPECIFIED" - Not specified.
   316  	//   "PUBLIC" - Published production bundle.
   317  	//   "PRE_RELEASE" - Pre-release bundle.
   318  	ReleaseType string `json:"releaseType,omitempty"`
   319  	// Version: The user-visible version of the bundle such as the Android
   320  	// `versionName` or iOS `CFBundleShortVersionString`. For example: "7.21.1".
   321  	Version string `json:"version,omitempty"`
   322  	// VersionId: The version used throughout the operating system and store to
   323  	// identify the build such as the Android `versionCode` or iOS
   324  	// `CFBundleVersion`.
   325  	VersionId string `json:"versionId,omitempty"`
   326  	// ForceSendFields is a list of field names (e.g. "BundleId") to
   327  	// unconditionally include in API requests. By default, fields with empty or
   328  	// default values are omitted from API requests. See
   329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   330  	// details.
   331  	ForceSendFields []string `json:"-"`
   332  	// NullFields is a list of field names (e.g. "BundleId") to include in API
   333  	// requests with the JSON null value. By default, fields with empty values are
   334  	// omitted from API requests. See
   335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   336  	NullFields []string `json:"-"`
   337  }
   338  
   339  func (s *GoogleChecksReportV1alphaAppBundle) MarshalJSON() ([]byte, error) {
   340  	type NoMethod GoogleChecksReportV1alphaAppBundle
   341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   342  }
   343  
   344  // GoogleChecksReportV1alphaCheck: A check that was run on your app.
   345  type GoogleChecksReportV1alphaCheck struct {
   346  	// Citations: Regulations and policies that serve as the legal basis for the
   347  	// check.
   348  	Citations []*GoogleChecksReportV1alphaCheckCitation `json:"citations,omitempty"`
   349  	// Evidence: Evidence that substantiates the check result.
   350  	Evidence *GoogleChecksReportV1alphaCheckEvidence `json:"evidence,omitempty"`
   351  	// RegionCodes: Regions that are impacted by the check. For more info, see
   352  	// https://google.aip.dev/143#countries-and-regions.
   353  	RegionCodes []string `json:"regionCodes,omitempty"`
   354  	// Severity: The urgency or risk level of the check.
   355  	//
   356  	// Possible values:
   357  	//   "CHECK_SEVERITY_UNSPECIFIED" - Not specified.
   358  	//   "PRIORITY" - Important privacy issue.
   359  	//   "POTENTIAL" - Potential privacy issue.
   360  	//   "OPPORTUNITY" - Opportunity to improve privacy coverage.
   361  	Severity string `json:"severity,omitempty"`
   362  	// State: The result after running the check.
   363  	//
   364  	// Possible values:
   365  	//   "CHECK_STATE_UNSPECIFIED" - Not specified.
   366  	//   "PASSED" - The check passed.
   367  	//   "FAILED" - The check failed.
   368  	//   "UNCHECKED" - The check was not run.
   369  	State string `json:"state,omitempty"`
   370  	// StateMetadata: Additional information about the check state in relation to
   371  	// past reports.
   372  	StateMetadata *GoogleChecksReportV1alphaCheckStateMetadata `json:"stateMetadata,omitempty"`
   373  	// Type: The type of check that was run. A type will only appear once in a
   374  	// report's list of checks.
   375  	//
   376  	// Possible values:
   377  	//   "CHECK_TYPE_UNSPECIFIED" - Not specified.
   378  	//   "STORE_LISTING_PRIVACY_POLICY_LINK_PRESENT" - Checks that your store
   379  	// listing includes a working link to your privacy policy.
   380  	//   "PRIVACY_POLICY_UPDATE_DATE_RECENT" - Checks that your privacy policy has
   381  	// been updated recently.
   382  	//   "PRIVACY_POLICY_GDPR_GENERAL_RULES" - Checks if your privacy policy
   383  	// references rights under GDPR for users in the EU.
   384  	//   "PRIVACY_POLICY_CCPA_GENERAL_RULES" - Checks if your privacy policy
   385  	// references rights under the CCPA.
   386  	//   "PRIVACY_POLICY_COLLECTION_CATEGORIES_DATA_NOTICE" - Checks if your
   387  	// privacy policy mentions the categories of personal data that are collected.
   388  	//   "PRIVACY_POLICY_PROCESSING_PURPOSE_DATA_NOTICE" - Checks if your privacy
   389  	// policy explains why personal data is processed.
   390  	//   "PRIVACY_POLICY_SHARING_CATEGORIES_DATA_NOTICE" - Checks if your privacy
   391  	// policy includes information about third-party sharing of personal data.
   392  	//   "PRIVACY_POLICY_DATA_RETENTION_NOTICE" - Checks if your privacy policy
   393  	// describes your data retention practices.
   394  	//   "PRIVACY_POLICY_CONTACT_DETAILS_NOTICE" - Checks if contact information is
   395  	// included in your privacy policy.
   396  	//   "PRIVACY_POLICY_CHILDREN_GENERAL_RULES" - Checks if information about
   397  	// requirements related to children is included in your privacy policy.
   398  	//   "PRIVACY_POLICY_DATA_TYPE_PHONE_NUMBER" - Checks if the Phone Number data
   399  	// type declaration in your privacy policy matches usage.
   400  	//   "PRIVACY_POLICY_DATA_TYPE_USER_ACCOUNT_INFO" - Checks if the User Account
   401  	// Info data type declaration in your privacy policy matches usage.
   402  	//   "PRIVACY_POLICY_DATA_TYPE_PRECISE_LOCATION" - Checks if the Precise
   403  	// Location data type declaration in your privacy policy matches usage.
   404  	//   "PRIVACY_POLICY_DATA_TYPE_DEVICE_ID" - Checks if the Device ID data type
   405  	// declaration in your privacy policy matches usage.
   406  	//   "PRIVACY_POLICY_DATA_TYPE_APPS_ON_DEVICE" - Checks if the Apps on Device
   407  	// data type declaration in your privacy policy matches usage.
   408  	//   "PRIVACY_POLICY_DATA_TYPE_CONTACTS" - Checks if the Contacts data type
   409  	// declaration in your privacy policy matches usage.
   410  	//   "PRIVACY_POLICY_DATA_TYPE_TEXT_MESSAGES" - Checks if the Text Messages
   411  	// data type declaration in your privacy policy matches usage.
   412  	//   "PRIVACY_POLICY_DATA_TYPE_PII" - Checks if the PII data type declaration
   413  	// in your privacy policy matches usage.
   414  	//   "PRIVACY_POLICY_DATA_TYPE_PII_CATEGORIES" - Checks if the PII Categories
   415  	// data type declaration in your privacy policy matches usage.
   416  	//   "PRIVACY_POLICY_DATA_TYPE_HEALTH_AND_BIOMETRIC" - Checks if the Health and
   417  	// Biometric data type declaration in your privacy policy matches usage.
   418  	//   "PRIVACY_POLICY_BRAZIL_LGPD_GENERAL_RULES" - Checks if your privacy policy
   419  	// references rights under LGPD for users in Brazil.
   420  	//   "PRIVACY_POLICY_VIRGINIA_VCDPA_GENERAL_RULES" - Checks if your privacy
   421  	// policy references rights under VCDPA for users in Virginia.
   422  	//   "PRIVACY_POLICY_AFFILIATION_MENTION" - Checks if your privacy policy
   423  	// identifies your company or app name(s).
   424  	//   "PRIVACY_POLICY_RIGHT_TO_DELETE_NOTICE" - Checks if your privacy policy
   425  	// mentions your users' right to delete their data.
   426  	//   "PRIVACY_POLICY_RIGHT_TO_ACCESS_NOTICE" - Checks if your privacy policy
   427  	// mentions your users' right to access the data held about them.
   428  	//   "PRIVACY_POLICY_RIGHT_TO_RECTIFICATION_NOTICE" - Checks if your privacy
   429  	// policy mentions your users' right to correct inaccuracies within their data.
   430  	//   "PRIVACY_POLICY_RIGHT_TO_KNOW_ABOUT_SELLING_NOTICE" - Checks if your
   431  	// privacy policy mentions your users' right to know about information selling.
   432  	//   "PRIVACY_POLICY_RIGHT_TO_KNOW_ABOUT_SHARING_NOTICE" - Checks if your
   433  	// privacy policy mentions your users' right to know about information sharing.
   434  	//   "PRIVACY_POLICY_RIGHT_TO_OPT_OUT_FROM_SELLING_NOTICE" - Checks if your
   435  	// privacy policy mentions your users' right to opt out from information
   436  	// selling.
   437  	//   "PRIVACY_POLICY_METHOD_TO_OPT_OUT_FROM_SELLING_OR_SHARING_NOTICE" - Checks
   438  	// if your privacy policy explains how your users opt out from the selling or
   439  	// sharing of their data.
   440  	//   "PRIVACY_POLICY_DATA_CONTROLLER_IDENTITY" - Checks if your privacy policy
   441  	// provides the name and contact information for your data controller.
   442  	//   "PRIVACY_POLICY_DPO_CONTACT_DETAILS" - Checks if your privacy policy
   443  	// provides the name and contact information for your Data Protection Officer.
   444  	//   "PRIVACY_POLICY_RIGHT_TO_LODGE_A_COMPLAINT" - Checks if your privacy
   445  	// policy mentions your users' right to lodge a complaint with a supervisory
   446  	// authority.
   447  	//   "PRIVACY_POLICY_LEGAL_BASIS" - Checks if your privacy policy mentions the
   448  	// legal basis you rely on for processing your users' data.
   449  	//   "PRIVACY_POLICY_CHILDREN_INFO_COLLECTION" - Checks if your privacy policy
   450  	// mentions what personal information is collected from children.
   451  	//   "PRIVACY_POLICY_CHILDREN_INFO_USAGE_PURPOSES" - Checks if your privacy
   452  	// policy mentions why you collect personal information from children.
   453  	//   "PRIVACY_POLICY_CHILDREN_INFO_DISCLOSURE_PRACTICES" - Checks if your
   454  	// privacy policy mentions what personal information from children is shared
   455  	// with third parties.
   456  	//   "PRIVACY_POLICY_CHILDREN_INFO_PUBLICITY" - Checks if your privacy policy
   457  	// mentions whether your app allows children to make their personal information
   458  	// publicly available.
   459  	//   "PRIVACY_POLICY_PARENTS_METHOD_OF_INFO_DELETION" - Checks if your privacy
   460  	// policy mentions how parents/caregivers/guardians can request the deletion of
   461  	// their child's personal information.
   462  	//   "PRIVACY_POLICY_PARENTS_METHOD_TO_INFO_REVIEW" - Checks if your privacy
   463  	// policy mentions how parents/caregivers/guardians can review their child's
   464  	// personal information.
   465  	//   "PRIVACY_POLICY_PARENTS_METHOD_TO_STOP_FURTHER_INFO_COLLECTION_USE" -
   466  	// Checks if your privacy policy explains how a parent/caregiver/guardian can
   467  	// stop the collection/use from their child's personal information.
   468  	//   "PRIVACY_POLICY_PARENTS_RIGHT_TO_INFO_DELETION" - Checks if your privacy
   469  	// policy mentions the right of a parent/caregiver/guardian to request the
   470  	// deletion of their child's personal information.
   471  	//   "PRIVACY_POLICY_PARENTS_RIGHT_TO_INFO_REVIEW" - Checks if your privacy
   472  	// policy mentions the right of a parent/caregiver/guardian to review their
   473  	// child's personal information.
   474  	//   "PRIVACY_POLICY_PARENTS_RIGHT_TO_STOP_FURTHER_INFO_COLLECTION_USE" -
   475  	// Checks if your privacy policy mentions the right of a
   476  	// parent/caregiver/guardian to stop collection/use from their child's personal
   477  	// information.
   478  	//   "PRIVACY_POLICY_PSL_APPROXIMATE_LOCATION" - Checks if your privacy policy
   479  	// mentions collection of your users' approximate location if this data type is
   480  	// declared in your Play Data Safety Section.
   481  	//   "PRIVACY_POLICY_PSL_PRECISE_LOCATION" - Checks if your privacy policy
   482  	// mentions collection of your users' precise location if this data type is
   483  	// declared in your Play Data Safety Section.
   484  	//   "PRIVACY_POLICY_PSL_NAME" - Checks if your privacy policy mentions
   485  	// collection of your users' personal names if this data type is declared in
   486  	// your Play Data Safety Section.
   487  	//   "PRIVACY_POLICY_PSL_EMAIL_ADDRESS" - Checks if your privacy policy
   488  	// mentions collection of your users' email addresses if this data type is
   489  	// declared in your Play Data Safety Section.
   490  	//   "PRIVACY_POLICY_PSL_USER_IDENTIFIERS" - Checks if your privacy policy
   491  	// mentions collection of your users' user IDs if this data type is declared in
   492  	// your Play Data Safety Section.
   493  	//   "PRIVACY_POLICY_PSL_ADDRESS" - Checks if your privacy policy mentions
   494  	// collection of your users' physical addresses if this data type is declared
   495  	// in your Play Data Safety Section.
   496  	//   "PRIVACY_POLICY_PSL_PHONE_NUMBER" - Checks if your privacy policy mentions
   497  	// collection of your users' phone numbers if this data type is declared in
   498  	// your Play Data Safety Section.
   499  	//   "PRIVACY_POLICY_PSL_RACE_AND_ETHNICITY" - Checks if your privacy policy
   500  	// mentions collection of your users' race or ethnicity if this data type is
   501  	// declared in your Play Data Safety Section.
   502  	//   "PRIVACY_POLICY_PSL_CREDIT_SCORE" - Checks if your privacy policy mentions
   503  	// collection of your users' credit score if this data type is declared in your
   504  	// Play Data Safety Section.
   505  	//   "PRIVACY_POLICY_PSL_PURCHASE_HISTORY" - Checks if your privacy policy
   506  	// mentions collection of your users' purchase history if this data type is
   507  	// declared in your Play Data Safety Section.
   508  	//   "PRIVACY_POLICY_PSL_HEALTH_INFO" - Checks if your privacy policy mentions
   509  	// collection of your users' health info if this data type is declared in your
   510  	// Play Data Safety Section.
   511  	//   "PRIVACY_POLICY_PSL_FITNESS_INFO" - Checks if your privacy policy mentions
   512  	// collection of your users' fitness info if this data type is declared in your
   513  	// Play Data Safety Section.
   514  	//   "PRIVACY_POLICY_PSL_EMAIL_MESSAGES" - Checks if your privacy policy
   515  	// mentions collection of your users' emails if this data type is declared in
   516  	// your Play Data Safety Section.
   517  	//   "PRIVACY_POLICY_PSL_TEXT_MESSAGES" - Checks if your privacy policy
   518  	// mentions collection of your users' text messages if this data type is
   519  	// declared in your Play Data Safety Section.
   520  	//   "PRIVACY_POLICY_PSL_PHOTOS" - Checks if your privacy policy mentions
   521  	// collection of your users' photos if this data type is declared in your Play
   522  	// Data Safety Section.
   523  	//   "PRIVACY_POLICY_PSL_VIDEOS" - Checks if your privacy policy mentions
   524  	// collection of your users' videos if this data type is declared in your Play
   525  	// Data Safety Section.
   526  	//   "PRIVACY_POLICY_PSL_MUSIC_FILES" - Checks if your privacy policy mentions
   527  	// collection of your users' music files if this data type is declared in your
   528  	// Play Data Safety Section.
   529  	//   "PRIVACY_POLICY_PSL_VOICE_OR_SOUND_RECORDINGS" - Checks if your privacy
   530  	// policy mentions collection of your users' voice or sound recordings if this
   531  	// data type is declared in your Play Data Safety Section.
   532  	//   "PRIVACY_POLICY_PSL_FILES_AND_DOCS" - Checks if your privacy policy
   533  	// mentions collection of your users' files or documents if this data type is
   534  	// declared in your Play Data Safety Section.
   535  	//   "PRIVACY_POLICY_PSL_CALENDAR_EVENTS" - Checks if your privacy policy
   536  	// mentions collection of your users' calendar events if this data type is
   537  	// declared in your Play Data Safety Section.
   538  	//   "PRIVACY_POLICY_PSL_CONTACTS" - Checks if your privacy policy mentions
   539  	// collection of your users' contacts if this data type is declared in your
   540  	// Play Data Safety Section.
   541  	//   "PRIVACY_POLICY_PSL_APP_INTERACTIONS" - Checks if your privacy policy
   542  	// mentions collection of your users' app interactions if this data type is
   543  	// declared in your Play Data Safety Section.
   544  	//   "PRIVACY_POLICY_PSL_IN_APP_SEARCH_HISTORY" - Checks if your privacy policy
   545  	// mentions collection of your users' in-app search history if this data type
   546  	// is declared in your Play Data Safety Section.
   547  	//   "PRIVACY_POLICY_PSL_WEB_BROWSING_HISTORY" - Checks if your privacy policy
   548  	// mentions collection of your users' web browsing history if this data type is
   549  	// declared in your Play Data Safety Section.
   550  	//   "PRIVACY_POLICY_PSL_INSTALLED_APPS" - Checks if your privacy policy
   551  	// mentions collection of your users' installed apps if this data type is
   552  	// declared in your Play Data Safety Section.
   553  	//   "PRIVACY_POLICY_PSL_CRASH_LOGS" - Checks if your privacy policy mentions
   554  	// collection of your users' crash logs if this data type is declared in your
   555  	// Play Data Safety Section.
   556  	//   "PRIVACY_POLICY_PSL_DIAGNOSTICS" - Checks if your privacy policy mentions
   557  	// collection of your users' performance diagnostics if this data type is
   558  	// declared in your Play Data Safety Section.
   559  	//   "PRIVACY_POLICY_PSL_DEVICE_OR_OTHER_IDS" - Checks if your privacy policy
   560  	// mentions collection of your users' device or other IDs if this data type is
   561  	// declared in your Play Data Safety Section.
   562  	//   "DATA_MONITORING_NEW_ENDPOINT" - Checks if there is a new endpoint we've
   563  	// recently detected. Because this check accounts for flakiness, it may fail
   564  	// for several weeks even if the endpoint is not detected in the current
   565  	// report.
   566  	//   "DATA_MONITORING_NEW_PERMISSION" - Checks if there is a new permission
   567  	// we've recently detected. Because this check accounts for flakiness, it may
   568  	// fail for several weeks even if the permission is not detected in the current
   569  	// report.
   570  	//   "DATA_MONITORING_NEW_DATA_TYPE" - Checks if there is a new data type we've
   571  	// recently detected. Because this check accounts for flakiness, it may fail
   572  	// for several weeks even if the data type is not detected in the current
   573  	// report.
   574  	//   "DATA_MONITORING_NEW_SDK" - Checks if there is a new SDK we've recently
   575  	// detected. Because this check accounts for flakiness, it may fail for several
   576  	// weeks even if the SDK is not detected in the current report.
   577  	//   "DATA_MONITORING_ENCRYPTION" - Checks if there is any endpoint contacted
   578  	// using HTTP protocol instead of HTTPS. If no protocol is found in the URL,
   579  	// the endpoint is not considered for analysis.
   580  	//   "DATA_MONITORING_NEW_DATA_TYPE_VERSION_DIFF" - Checks if new data types
   581  	// have been detected since a specific app version.
   582  	//   "DATA_MONITORING_NEW_ENDPOINT_VERSION_DIFF" - Checks if new endpoints have
   583  	// been detected since a specific app version.
   584  	//   "DATA_MONITORING_NEW_PERMISSION_VERSION_DIFF" - Checks if new permissions
   585  	// have been detected since a specific app version.
   586  	//   "DATA_MONITORING_NEW_SDK_VERSION_DIFF" - Checks if new SDKs have been
   587  	// detected since a specific app version.
   588  	//   "DATA_MONITORING_SDKS_DENYLIST_VIOLATION" - Checks if any SDKs were
   589  	// detected that are specified in the denylist.
   590  	//   "DATA_MONITORING_PERMISSIONS_DENYLIST_VIOLATION" - Checks if any
   591  	// permissions were detected that are specified in the denylist.
   592  	//   "DATA_MONITORING_ENDPOINTS_DENYLIST_VIOLATION" - Checks if any endpoints
   593  	// were detected that are specified in the denylist.
   594  	//   "DATA_MONITORING_OUTDATED_SDK_VERSION" - Checks if there are any outdated
   595  	// SDKs.
   596  	//   "DATA_MONITORING_CRITICAL_SDK_ISSUE" - Checks if there are any SDKs with
   597  	// critical issues.
   598  	//   "PRIVACY_POLICY_DATA_TYPE_SENSITIVE_INFO" - Checks if the Sensitive
   599  	// Information data type declaration matches usage.
   600  	Type string `json:"type,omitempty"`
   601  	// ForceSendFields is a list of field names (e.g. "Citations") to
   602  	// unconditionally include in API requests. By default, fields with empty or
   603  	// default values are omitted from API requests. See
   604  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   605  	// details.
   606  	ForceSendFields []string `json:"-"`
   607  	// NullFields is a list of field names (e.g. "Citations") to include in API
   608  	// requests with the JSON null value. By default, fields with empty values are
   609  	// omitted from API requests. See
   610  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   611  	NullFields []string `json:"-"`
   612  }
   613  
   614  func (s *GoogleChecksReportV1alphaCheck) MarshalJSON() ([]byte, error) {
   615  	type NoMethod GoogleChecksReportV1alphaCheck
   616  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   617  }
   618  
   619  // GoogleChecksReportV1alphaCheckCitation: Regulation or policy that serves as
   620  // the legal basis for the check.
   621  type GoogleChecksReportV1alphaCheckCitation struct {
   622  	// Type: Citation type.
   623  	//
   624  	// Possible values:
   625  	//   "CITATION_TYPE_UNSPECIFIED" - Not specified.
   626  	//   "COPPA" - Children's Online Privacy Protection Act.
   627  	//   "GDPR" - General Data Protection Regulation.
   628  	//   "FERPA" - Family Educational Rights and Privacy Act.
   629  	//   "CAL_OPPA" - The California Online Privacy Protection Act.
   630  	//   "CCPA" - California Consumer Privacy Act.
   631  	//   "SOPIPA" - Student Online Personal Information Protection Act.
   632  	//   "LGPD" - Lei Geral de Proteção de Dados.
   633  	//   "CPRA" - California Consumer Privacy Act.
   634  	//   "VCDPA" - Virginia Consumer Data Protection Act.
   635  	//   "GOOGLE_PLAY_POLICY" - Google Play Policy.
   636  	//   "APP_STORE_POLICY" - App Store Policy.
   637  	//   "CPA" - Colorado Privacy Act.
   638  	//   "CTDPA" - Connecticut Data Privacy Act.
   639  	//   "UCPA" - Utah Consumer Privacy Act.
   640  	//   "PIPEDA" - Personal Information Protection and Electronic Documents Act.
   641  	//   "ALBERTA_PIPA" - Alberta (Canada) Personal Information Protection Act.
   642  	//   "QUEBEC_ACT" - Quebec: Act Respecting the Protection of Personal
   643  	// Information in the Private Sector.
   644  	//   "QUEBEC_BILL_64" - Quebec Bill 64: An Act to Modernize Legislative
   645  	// Provisions as Regards the Protection of Personal Information.
   646  	//   "CHINA_PIPL" - China Personal Information Protection Law.
   647  	//   "SOUTH_KOREA_PIPA" - South Korea Personal Information Protection Act.
   648  	//   "SOUTH_AFRICA_POPIA" - South Africa Protection of Personal Information
   649  	// Act.
   650  	//   "JAPAN_APPI" - Japan Act on the Protection of Personal Information.
   651  	//   "INDIA_DPDPA" - India: The Digital Personal Data Protection Act, 2023.
   652  	//   "OCPA" - Oregon Consumer Privacy Act.
   653  	//   "TDPSA" - Texas Data Privacy and Security Act.
   654  	//   "MCDPA" - Montana Consumer Data Privacy Act.
   655  	Type string `json:"type,omitempty"`
   656  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
   657  	// include in API requests. By default, fields with empty or default values are
   658  	// omitted from API requests. See
   659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   660  	// details.
   661  	ForceSendFields []string `json:"-"`
   662  	// NullFields is a list of field names (e.g. "Type") to include in API requests
   663  	// with the JSON null value. By default, fields with empty values are omitted
   664  	// from API requests. See
   665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   666  	NullFields []string `json:"-"`
   667  }
   668  
   669  func (s *GoogleChecksReportV1alphaCheckCitation) MarshalJSON() ([]byte, error) {
   670  	type NoMethod GoogleChecksReportV1alphaCheckCitation
   671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   672  }
   673  
   674  // GoogleChecksReportV1alphaCheckDataSecurityEvidence: Evidence concerning data
   675  // security.
   676  type GoogleChecksReportV1alphaCheckDataSecurityEvidence struct {
   677  	// DataInTransitInfo: Evidence related to data in transit.
   678  	DataInTransitInfo []*GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo `json:"dataInTransitInfo,omitempty"`
   679  	// ForceSendFields is a list of field names (e.g. "DataInTransitInfo") to
   680  	// unconditionally include in API requests. By default, fields with empty or
   681  	// default values are omitted from API requests. See
   682  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   683  	// details.
   684  	ForceSendFields []string `json:"-"`
   685  	// NullFields is a list of field names (e.g. "DataInTransitInfo") to include in
   686  	// API requests with the JSON null value. By default, fields with empty values
   687  	// are omitted from API requests. See
   688  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   689  	NullFields []string `json:"-"`
   690  }
   691  
   692  func (s *GoogleChecksReportV1alphaCheckDataSecurityEvidence) MarshalJSON() ([]byte, error) {
   693  	type NoMethod GoogleChecksReportV1alphaCheckDataSecurityEvidence
   694  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   695  }
   696  
   697  // GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo:
   698  // Evidence related to data in transit detected in your app.
   699  type GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo struct {
   700  	// Uri: The URL contacted by your app. This includes the protocol, domain, and
   701  	// URL parameters.
   702  	Uri string `json:"uri,omitempty"`
   703  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
   704  	// include in API requests. By default, fields with empty or default values are
   705  	// omitted from API requests. See
   706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   707  	// details.
   708  	ForceSendFields []string `json:"-"`
   709  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
   710  	// with the JSON null value. By default, fields with empty values are omitted
   711  	// from API requests. See
   712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   713  	NullFields []string `json:"-"`
   714  }
   715  
   716  func (s *GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo) MarshalJSON() ([]byte, error) {
   717  	type NoMethod GoogleChecksReportV1alphaCheckDataSecurityEvidenceDataInTransitInfo
   718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   719  }
   720  
   721  // GoogleChecksReportV1alphaCheckDataTypeEvidence: Evidence concerning a data
   722  // type that was found in your app.
   723  type GoogleChecksReportV1alphaCheckDataTypeEvidence struct {
   724  	// DataType: The data type that was found in your app.
   725  	//
   726  	// Possible values:
   727  	//   "DATA_TYPE_UNSPECIFIED" - Not specified.
   728  	//   "DATA_TYPE_APPROXIMATE_LOCATION" - User or device physical location to an
   729  	// area greater than or equal to 3 square kilometers, such as the city a user
   730  	// is in, or location provided by Android's ACCESS_COARSE_LOCATION permission.
   731  	//   "DATA_TYPE_PRECISE_LOCATION" - User or device physical location within an
   732  	// area less than 3 square kilometers, such as location provided by Android's
   733  	// ACCESS_FINE_LOCATION permission.
   734  	//   "DATA_TYPE_PERSONAL_NAME" - How a user refers to themselves, such as their
   735  	// first or last name, or nickname.
   736  	//   "DATA_TYPE_EMAIL_ADDRESS" - A user's email address.
   737  	//   "DATA_TYPE_USER_IDS" - Identifiers that relate to an identifiable person.
   738  	// For example, an account ID, account number, or account name.
   739  	//   "DATA_TYPE_PHYSICAL_ADDRESS" - A user's address, such as a mailing or home
   740  	// address.
   741  	//   "DATA_TYPE_PHONE_NUMBER" - A user's phone number.
   742  	//   "DATA_TYPE_RACE_AND_ETHNICITY" - Information about a user's race or
   743  	// ethnicity.
   744  	//   "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS" - Information about a user's
   745  	// political or religious beliefs.
   746  	//   "DATA_TYPE_SEXUAL_ORIENTATION" - Information about a user's sexual
   747  	// orientation.
   748  	//   "DATA_TYPE_OTHER_PERSONAL_INFO" - Any other personal information such as
   749  	// date of birth, gender identity, veteran status, etc.
   750  	//   "DATA_TYPE_PAYMENT_INFO" - Information about a user's financial accounts
   751  	// such as credit card number.
   752  	//   "DATA_TYPE_PURCHASE_HISTORY" - Information about purchases or transactions
   753  	// a user has made.
   754  	//   "DATA_TYPE_CREDIT_SCORE" - Information about a user's credit score.
   755  	//   "DATA_TYPE_OTHER_FINANCIAL_INFO" - Any other financial information such as
   756  	// user salary or debts.
   757  	//   "DATA_TYPE_HEALTH_INFO" - Information about a user's health, such as
   758  	// medical records or symptoms.
   759  	//   "DATA_TYPE_FITNESS_INFO" - Information about a user's fitness, such as
   760  	// exercise or other physical activity.
   761  	//   "DATA_TYPE_EMAILS" - A user's emails including the email subject line,
   762  	// sender, recipients, and the content of the email.
   763  	//   "DATA_TYPE_TEXT_MESSAGES" - A user's text messages including the sender,
   764  	// recipients, and the content of the message.
   765  	//   "DATA_TYPE_PHOTOS" - A user's photos.
   766  	//   "DATA_TYPE_VIDEOS" - A user's videos.
   767  	//   "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS" - A user's voice such as a voicemail
   768  	// or a sound recording.
   769  	//   "DATA_TYPE_MUSIC_FILES" - A user's music files.
   770  	//   "DATA_TYPE_OTHER_AUDIO_FILES" - Any other user-created or user-provided
   771  	// audio files.
   772  	//   "DATA_TYPE_FILES_AND_DOCS" - A user's files or documents, or information
   773  	// about their files or documents such as file names.
   774  	//   "DATA_TYPE_CALENDAR_EVENTS" - Information from a user's calendar such as
   775  	// events, event notes, and attendees.
   776  	//   "DATA_TYPE_CONTACTS" - Information about the user’s contacts such as
   777  	// contact names, message history, and social graph information like usernames,
   778  	// contact recency, contact frequency, interaction duration and call history.
   779  	//   "DATA_TYPE_APP_INTERACTIONS" - Information about how a user interacts with
   780  	// your app, such as the number of page views or taps.
   781  	//   "DATA_TYPE_IN_APP_SEARCH_HISTORY" - Information about what a user has
   782  	// searched for in your app.
   783  	//   "DATA_TYPE_INSTALLED_APPS" - Inventory of apps or packages installed on
   784  	// the user’s device.
   785  	//   "DATA_TYPE_OTHER_USER_GENERATED_CONTENT" - Any other user-generated
   786  	// content not listed here, or in any other section. For example, user bios,
   787  	// notes, or open-ended responses.
   788  	//   "DATA_TYPE_OTHER_ACTIONS" - Any other user activity or actions in-app not
   789  	// listed here such as gameplay, likes, and dialog options.
   790  	//   "DATA_TYPE_WEB_BROWSING_HISTORY" - Information about the websites a user
   791  	// has visited.
   792  	//   "DATA_TYPE_CRASH_LOGS" - Crash log data from your app. For example, the
   793  	// number of times your app has crashed, stack traces, or other information
   794  	// directly related to a crash.
   795  	//   "DATA_TYPE_PERFORMANCE_DIAGNOSTICS" - Information about the performance of
   796  	// your app. For example battery life, loading time, latency, framerate, or any
   797  	// technical diagnostics.
   798  	//   "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA" - Any other app performance data
   799  	// not listed here.
   800  	//   "DATA_TYPE_DEVICE_OR_OTHER_IDS" - Identifiers that relate to an individual
   801  	// device, browser or app. For example, an IMEI number, MAC address, Widevine
   802  	// Device ID, Firebase installation ID, or advertising identifier.
   803  	DataType string `json:"dataType,omitempty"`
   804  	// DataTypeEvidence: Evidence collected about the data type.
   805  	DataTypeEvidence *GoogleChecksReportV1alphaDataTypeEvidence `json:"dataTypeEvidence,omitempty"`
   806  	// ForceSendFields is a list of field names (e.g. "DataType") to
   807  	// unconditionally include in API requests. By default, fields with empty or
   808  	// default values are omitted from API requests. See
   809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   810  	// details.
   811  	ForceSendFields []string `json:"-"`
   812  	// NullFields is a list of field names (e.g. "DataType") to include in API
   813  	// requests with the JSON null value. By default, fields with empty values are
   814  	// omitted from API requests. See
   815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   816  	NullFields []string `json:"-"`
   817  }
   818  
   819  func (s *GoogleChecksReportV1alphaCheckDataTypeEvidence) MarshalJSON() ([]byte, error) {
   820  	type NoMethod GoogleChecksReportV1alphaCheckDataTypeEvidence
   821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   822  }
   823  
   824  // GoogleChecksReportV1alphaCheckEndpointEvidence: Evidence concerning an
   825  // endpoint that was contacted by your app.
   826  type GoogleChecksReportV1alphaCheckEndpointEvidence struct {
   827  	// Endpoint: The endpoint that was contacted by your app.
   828  	Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"`
   829  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
   830  	// unconditionally include in API requests. By default, fields with empty or
   831  	// default values are omitted from API requests. See
   832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   833  	// details.
   834  	ForceSendFields []string `json:"-"`
   835  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
   836  	// requests with the JSON null value. By default, fields with empty values are
   837  	// omitted from API requests. See
   838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   839  	NullFields []string `json:"-"`
   840  }
   841  
   842  func (s *GoogleChecksReportV1alphaCheckEndpointEvidence) MarshalJSON() ([]byte, error) {
   843  	type NoMethod GoogleChecksReportV1alphaCheckEndpointEvidence
   844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   845  }
   846  
   847  // GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence: Evidence
   848  // collected from endpoint restriction violation analysis.
   849  type GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence struct {
   850  	// EndpointDetails: Endpoints in violation.
   851  	EndpointDetails []*GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails `json:"endpointDetails,omitempty"`
   852  	// ForceSendFields is a list of field names (e.g. "EndpointDetails") to
   853  	// unconditionally include in API requests. By default, fields with empty or
   854  	// default values are omitted from API requests. See
   855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   856  	// details.
   857  	ForceSendFields []string `json:"-"`
   858  	// NullFields is a list of field names (e.g. "EndpointDetails") to include in
   859  	// API requests with the JSON null value. By default, fields with empty values
   860  	// are omitted from API requests. See
   861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   862  	NullFields []string `json:"-"`
   863  }
   864  
   865  func (s *GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence) MarshalJSON() ([]byte, error) {
   866  	type NoMethod GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence
   867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   868  }
   869  
   870  // GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDet
   871  // ails: Details of the endpoint in violation.
   872  type GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails struct {
   873  	// Endpoint: The endpoint in violation.
   874  	Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"`
   875  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
   876  	// unconditionally include in API requests. By default, fields with empty or
   877  	// default values are omitted from API requests. See
   878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   879  	// details.
   880  	ForceSendFields []string `json:"-"`
   881  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
   882  	// requests with the JSON null value. By default, fields with empty values are
   883  	// omitted from API requests. See
   884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   885  	NullFields []string `json:"-"`
   886  }
   887  
   888  func (s *GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails) MarshalJSON() ([]byte, error) {
   889  	type NoMethod GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidenceEndpointDetails
   890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   891  }
   892  
   893  // GoogleChecksReportV1alphaCheckEvidence: Evidence for a check.
   894  type GoogleChecksReportV1alphaCheckEvidence struct {
   895  	// DataSecurity: Evidence concerning data security.
   896  	DataSecurity *GoogleChecksReportV1alphaCheckDataSecurityEvidence `json:"dataSecurity,omitempty"`
   897  	// DataTypes: Evidence concerning data types found in your app.
   898  	DataTypes []*GoogleChecksReportV1alphaCheckDataTypeEvidence `json:"dataTypes,omitempty"`
   899  	// EndpointRestrictionViolations: Evidence collected from endpoint restriction
   900  	// violation analysis.
   901  	EndpointRestrictionViolations []*GoogleChecksReportV1alphaCheckEndpointRestrictionViolationEvidence `json:"endpointRestrictionViolations,omitempty"`
   902  	// Endpoints: Evidence concerning endpoints that were contacted by your app.
   903  	Endpoints []*GoogleChecksReportV1alphaCheckEndpointEvidence `json:"endpoints,omitempty"`
   904  	// PermissionRestrictionViolations: Evidence collected from permission
   905  	// restriction violation analysis.
   906  	PermissionRestrictionViolations []*GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence `json:"permissionRestrictionViolations,omitempty"`
   907  	// Permissions: Evidence concerning permissions that were found in your app.
   908  	Permissions []*GoogleChecksReportV1alphaCheckPermissionEvidence `json:"permissions,omitempty"`
   909  	// PrivacyPolicyTexts: Evidence collected from your privacy policy(s).
   910  	PrivacyPolicyTexts []*GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence `json:"privacyPolicyTexts,omitempty"`
   911  	// SdkIssues: Evidence concerning SDK issues.
   912  	SdkIssues []*GoogleChecksReportV1alphaCheckSdkIssueEvidence `json:"sdkIssues,omitempty"`
   913  	// SdkRestrictionViolations: Evidence collected from SDK restriction violation
   914  	// analysis.
   915  	SdkRestrictionViolations []*GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence `json:"sdkRestrictionViolations,omitempty"`
   916  	// Sdks: Evidence concerning SDKs that were found in your app.
   917  	Sdks []*GoogleChecksReportV1alphaCheckSdkEvidence `json:"sdks,omitempty"`
   918  	// ForceSendFields is a list of field names (e.g. "DataSecurity") to
   919  	// unconditionally include in API requests. By default, fields with empty or
   920  	// default values are omitted from API requests. See
   921  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   922  	// details.
   923  	ForceSendFields []string `json:"-"`
   924  	// NullFields is a list of field names (e.g. "DataSecurity") to include in API
   925  	// requests with the JSON null value. By default, fields with empty values are
   926  	// omitted from API requests. See
   927  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   928  	NullFields []string `json:"-"`
   929  }
   930  
   931  func (s *GoogleChecksReportV1alphaCheckEvidence) MarshalJSON() ([]byte, error) {
   932  	type NoMethod GoogleChecksReportV1alphaCheckEvidence
   933  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   934  }
   935  
   936  // GoogleChecksReportV1alphaCheckPermissionEvidence: Evidence concerning a
   937  // permission that was found in your app.
   938  type GoogleChecksReportV1alphaCheckPermissionEvidence struct {
   939  	// Permission: The permission that was found in your app.
   940  	Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"`
   941  	// ForceSendFields is a list of field names (e.g. "Permission") to
   942  	// unconditionally include in API requests. By default, fields with empty or
   943  	// default values are omitted from API requests. See
   944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   945  	// details.
   946  	ForceSendFields []string `json:"-"`
   947  	// NullFields is a list of field names (e.g. "Permission") to include in API
   948  	// requests with the JSON null value. By default, fields with empty values are
   949  	// omitted from API requests. See
   950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   951  	NullFields []string `json:"-"`
   952  }
   953  
   954  func (s *GoogleChecksReportV1alphaCheckPermissionEvidence) MarshalJSON() ([]byte, error) {
   955  	type NoMethod GoogleChecksReportV1alphaCheckPermissionEvidence
   956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   957  }
   958  
   959  // GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence:
   960  // Evidence collected from permission restriction violation analysis.
   961  type GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence struct {
   962  	// PermissionDetails: Permissions in violation.
   963  	PermissionDetails []*GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails `json:"permissionDetails,omitempty"`
   964  	// ForceSendFields is a list of field names (e.g. "PermissionDetails") to
   965  	// unconditionally include in API requests. By default, fields with empty or
   966  	// default values are omitted from API requests. See
   967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   968  	// details.
   969  	ForceSendFields []string `json:"-"`
   970  	// NullFields is a list of field names (e.g. "PermissionDetails") to include in
   971  	// API requests with the JSON null value. By default, fields with empty values
   972  	// are omitted from API requests. See
   973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   974  	NullFields []string `json:"-"`
   975  }
   976  
   977  func (s *GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence) MarshalJSON() ([]byte, error) {
   978  	type NoMethod GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidence
   979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   980  }
   981  
   982  // GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissio
   983  // nDetails: Details of the permission in violation.
   984  type GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails struct {
   985  	// Permission: The permission in violation.
   986  	Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"`
   987  	// ForceSendFields is a list of field names (e.g. "Permission") to
   988  	// unconditionally include in API requests. By default, fields with empty or
   989  	// default values are omitted from API requests. See
   990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   991  	// details.
   992  	ForceSendFields []string `json:"-"`
   993  	// NullFields is a list of field names (e.g. "Permission") to include in API
   994  	// requests with the JSON null value. By default, fields with empty values are
   995  	// omitted from API requests. See
   996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   997  	NullFields []string `json:"-"`
   998  }
   999  
  1000  func (s *GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails) MarshalJSON() ([]byte, error) {
  1001  	type NoMethod GoogleChecksReportV1alphaCheckPermissionRestrictionViolationEvidencePermissionDetails
  1002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1003  }
  1004  
  1005  // GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence: Evidence collected
  1006  // from your privacy policy(s).
  1007  type GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence struct {
  1008  	// PolicyFragment: The privacy policy fragment that was used during the check.
  1009  	PolicyFragment *GoogleChecksReportV1alphaPolicyFragment `json:"policyFragment,omitempty"`
  1010  	// ForceSendFields is a list of field names (e.g. "PolicyFragment") to
  1011  	// unconditionally include in API requests. By default, fields with empty or
  1012  	// default values are omitted from API requests. See
  1013  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1014  	// details.
  1015  	ForceSendFields []string `json:"-"`
  1016  	// NullFields is a list of field names (e.g. "PolicyFragment") to include in
  1017  	// API requests with the JSON null value. By default, fields with empty values
  1018  	// are omitted from API requests. See
  1019  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1020  	NullFields []string `json:"-"`
  1021  }
  1022  
  1023  func (s *GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence) MarshalJSON() ([]byte, error) {
  1024  	type NoMethod GoogleChecksReportV1alphaCheckPrivacyPolicyTextEvidence
  1025  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1026  }
  1027  
  1028  // GoogleChecksReportV1alphaCheckSdkEvidence: Evidence conerning an SDK that
  1029  // was found in your app.
  1030  type GoogleChecksReportV1alphaCheckSdkEvidence struct {
  1031  	// Sdk: The SDK that was found in your app.
  1032  	Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"`
  1033  	// ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally
  1034  	// include in API requests. By default, fields with empty or default values are
  1035  	// omitted from API requests. See
  1036  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1037  	// details.
  1038  	ForceSendFields []string `json:"-"`
  1039  	// NullFields is a list of field names (e.g. "Sdk") to include in API requests
  1040  	// with the JSON null value. By default, fields with empty values are omitted
  1041  	// from API requests. See
  1042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1043  	NullFields []string `json:"-"`
  1044  }
  1045  
  1046  func (s *GoogleChecksReportV1alphaCheckSdkEvidence) MarshalJSON() ([]byte, error) {
  1047  	type NoMethod GoogleChecksReportV1alphaCheckSdkEvidence
  1048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1049  }
  1050  
  1051  // GoogleChecksReportV1alphaCheckSdkIssueEvidence: Evidence concerning an SDK
  1052  // issue.
  1053  type GoogleChecksReportV1alphaCheckSdkIssueEvidence struct {
  1054  	// Sdk: The SDK with an issue.
  1055  	Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"`
  1056  	// SdkVersion: The SDK version.
  1057  	SdkVersion string `json:"sdkVersion,omitempty"`
  1058  	// ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally
  1059  	// include in API requests. By default, fields with empty or default values are
  1060  	// omitted from API requests. See
  1061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1062  	// details.
  1063  	ForceSendFields []string `json:"-"`
  1064  	// NullFields is a list of field names (e.g. "Sdk") to include in API requests
  1065  	// with the JSON null value. By default, fields with empty values are omitted
  1066  	// from API requests. See
  1067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1068  	NullFields []string `json:"-"`
  1069  }
  1070  
  1071  func (s *GoogleChecksReportV1alphaCheckSdkIssueEvidence) MarshalJSON() ([]byte, error) {
  1072  	type NoMethod GoogleChecksReportV1alphaCheckSdkIssueEvidence
  1073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1074  }
  1075  
  1076  // GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence: Evidence
  1077  // collected from SDK restriction violation analysis.
  1078  type GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence struct {
  1079  	// SdkDetails: SDKs in violation.
  1080  	SdkDetails []*GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails `json:"sdkDetails,omitempty"`
  1081  	// ForceSendFields is a list of field names (e.g. "SdkDetails") to
  1082  	// unconditionally include in API requests. By default, fields with empty or
  1083  	// default values are omitted from API requests. See
  1084  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1085  	// details.
  1086  	ForceSendFields []string `json:"-"`
  1087  	// NullFields is a list of field names (e.g. "SdkDetails") to include in API
  1088  	// requests with the JSON null value. By default, fields with empty values are
  1089  	// omitted from API requests. See
  1090  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1091  	NullFields []string `json:"-"`
  1092  }
  1093  
  1094  func (s *GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence) MarshalJSON() ([]byte, error) {
  1095  	type NoMethod GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidence
  1096  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1097  }
  1098  
  1099  // GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails:
  1100  // Details of the SDK in violation.
  1101  type GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails struct {
  1102  	// Sdk: The SDK in violation.
  1103  	Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"`
  1104  	// ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally
  1105  	// include in API requests. By default, fields with empty or default values are
  1106  	// omitted from API requests. See
  1107  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1108  	// details.
  1109  	ForceSendFields []string `json:"-"`
  1110  	// NullFields is a list of field names (e.g. "Sdk") to include in API requests
  1111  	// with the JSON null value. By default, fields with empty values are omitted
  1112  	// from API requests. See
  1113  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1114  	NullFields []string `json:"-"`
  1115  }
  1116  
  1117  func (s *GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails) MarshalJSON() ([]byte, error) {
  1118  	type NoMethod GoogleChecksReportV1alphaCheckSdkRestrictionViolationEvidenceSdkDetails
  1119  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1120  }
  1121  
  1122  // GoogleChecksReportV1alphaCheckStateMetadata: Additional information about
  1123  // the check state in relation to past reports.
  1124  type GoogleChecksReportV1alphaCheckStateMetadata struct {
  1125  	// Badges: Indicators related to the check state.
  1126  	//
  1127  	// Possible values:
  1128  	//   "CHECK_STATE_BADGE_UNSPECIFIED" - Not specified.
  1129  	//   "NEWLY_FAILING" - The check is newly failing, i.e. now failing but
  1130  	// previously passing.
  1131  	//   "RECENTLY_FAILING" - The check is currently failing and first started
  1132  	// failing continuously within the last 28 days.
  1133  	//   "RESOLVED" - The check is newly passing, i.e. now passing but previously
  1134  	// failing.
  1135  	Badges []string `json:"badges,omitempty"`
  1136  	// FirstFailingTime: The time when the check first started failing.
  1137  	FirstFailingTime string `json:"firstFailingTime,omitempty"`
  1138  	// LastFailingTime: The last time the check failed.
  1139  	LastFailingTime string `json:"lastFailingTime,omitempty"`
  1140  	// ForceSendFields is a list of field names (e.g. "Badges") to unconditionally
  1141  	// include in API requests. By default, fields with empty or default values are
  1142  	// omitted from API requests. See
  1143  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1144  	// details.
  1145  	ForceSendFields []string `json:"-"`
  1146  	// NullFields is a list of field names (e.g. "Badges") to include in API
  1147  	// requests with the JSON null value. By default, fields with empty values are
  1148  	// omitted from API requests. See
  1149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1150  	NullFields []string `json:"-"`
  1151  }
  1152  
  1153  func (s *GoogleChecksReportV1alphaCheckStateMetadata) MarshalJSON() ([]byte, error) {
  1154  	type NoMethod GoogleChecksReportV1alphaCheckStateMetadata
  1155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1156  }
  1157  
  1158  // GoogleChecksReportV1alphaDataMonitoring: Represents the data monitoring
  1159  // section of the report.
  1160  type GoogleChecksReportV1alphaDataMonitoring struct {
  1161  	// DataTypes: Data types that your app shares or collects.
  1162  	DataTypes []*GoogleChecksReportV1alphaDataMonitoringDataTypeResult `json:"dataTypes,omitempty"`
  1163  	// Endpoints: Endpoints that were found by dynamic analysis of your app.
  1164  	Endpoints []*GoogleChecksReportV1alphaDataMonitoringEndpointResult `json:"endpoints,omitempty"`
  1165  	// Permissions: Permissions that your app uses.
  1166  	Permissions []*GoogleChecksReportV1alphaDataMonitoringPermissionResult `json:"permissions,omitempty"`
  1167  	// Sdks: SDKs that your app uses.
  1168  	Sdks []*GoogleChecksReportV1alphaDataMonitoringSdkResult `json:"sdks,omitempty"`
  1169  	// ForceSendFields is a list of field names (e.g. "DataTypes") to
  1170  	// unconditionally include in API requests. By default, fields with empty or
  1171  	// default values are omitted from API requests. See
  1172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1173  	// details.
  1174  	ForceSendFields []string `json:"-"`
  1175  	// NullFields is a list of field names (e.g. "DataTypes") to include in API
  1176  	// requests with the JSON null value. By default, fields with empty values are
  1177  	// omitted from API requests. See
  1178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1179  	NullFields []string `json:"-"`
  1180  }
  1181  
  1182  func (s *GoogleChecksReportV1alphaDataMonitoring) MarshalJSON() ([]byte, error) {
  1183  	type NoMethod GoogleChecksReportV1alphaDataMonitoring
  1184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1185  }
  1186  
  1187  // GoogleChecksReportV1alphaDataMonitoringDataTypeResult: Information about a
  1188  // data type that was found in your app.
  1189  type GoogleChecksReportV1alphaDataMonitoringDataTypeResult struct {
  1190  	// DataType: The data type that was shared or collected by your app.
  1191  	//
  1192  	// Possible values:
  1193  	//   "DATA_TYPE_UNSPECIFIED" - Not specified.
  1194  	//   "DATA_TYPE_APPROXIMATE_LOCATION" - User or device physical location to an
  1195  	// area greater than or equal to 3 square kilometers, such as the city a user
  1196  	// is in, or location provided by Android's ACCESS_COARSE_LOCATION permission.
  1197  	//   "DATA_TYPE_PRECISE_LOCATION" - User or device physical location within an
  1198  	// area less than 3 square kilometers, such as location provided by Android's
  1199  	// ACCESS_FINE_LOCATION permission.
  1200  	//   "DATA_TYPE_PERSONAL_NAME" - How a user refers to themselves, such as their
  1201  	// first or last name, or nickname.
  1202  	//   "DATA_TYPE_EMAIL_ADDRESS" - A user's email address.
  1203  	//   "DATA_TYPE_USER_IDS" - Identifiers that relate to an identifiable person.
  1204  	// For example, an account ID, account number, or account name.
  1205  	//   "DATA_TYPE_PHYSICAL_ADDRESS" - A user's address, such as a mailing or home
  1206  	// address.
  1207  	//   "DATA_TYPE_PHONE_NUMBER" - A user's phone number.
  1208  	//   "DATA_TYPE_RACE_AND_ETHNICITY" - Information about a user's race or
  1209  	// ethnicity.
  1210  	//   "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS" - Information about a user's
  1211  	// political or religious beliefs.
  1212  	//   "DATA_TYPE_SEXUAL_ORIENTATION" - Information about a user's sexual
  1213  	// orientation.
  1214  	//   "DATA_TYPE_OTHER_PERSONAL_INFO" - Any other personal information such as
  1215  	// date of birth, gender identity, veteran status, etc.
  1216  	//   "DATA_TYPE_PAYMENT_INFO" - Information about a user's financial accounts
  1217  	// such as credit card number.
  1218  	//   "DATA_TYPE_PURCHASE_HISTORY" - Information about purchases or transactions
  1219  	// a user has made.
  1220  	//   "DATA_TYPE_CREDIT_SCORE" - Information about a user's credit score.
  1221  	//   "DATA_TYPE_OTHER_FINANCIAL_INFO" - Any other financial information such as
  1222  	// user salary or debts.
  1223  	//   "DATA_TYPE_HEALTH_INFO" - Information about a user's health, such as
  1224  	// medical records or symptoms.
  1225  	//   "DATA_TYPE_FITNESS_INFO" - Information about a user's fitness, such as
  1226  	// exercise or other physical activity.
  1227  	//   "DATA_TYPE_EMAILS" - A user's emails including the email subject line,
  1228  	// sender, recipients, and the content of the email.
  1229  	//   "DATA_TYPE_TEXT_MESSAGES" - A user's text messages including the sender,
  1230  	// recipients, and the content of the message.
  1231  	//   "DATA_TYPE_PHOTOS" - A user's photos.
  1232  	//   "DATA_TYPE_VIDEOS" - A user's videos.
  1233  	//   "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS" - A user's voice such as a voicemail
  1234  	// or a sound recording.
  1235  	//   "DATA_TYPE_MUSIC_FILES" - A user's music files.
  1236  	//   "DATA_TYPE_OTHER_AUDIO_FILES" - Any other user-created or user-provided
  1237  	// audio files.
  1238  	//   "DATA_TYPE_FILES_AND_DOCS" - A user's files or documents, or information
  1239  	// about their files or documents such as file names.
  1240  	//   "DATA_TYPE_CALENDAR_EVENTS" - Information from a user's calendar such as
  1241  	// events, event notes, and attendees.
  1242  	//   "DATA_TYPE_CONTACTS" - Information about the user’s contacts such as
  1243  	// contact names, message history, and social graph information like usernames,
  1244  	// contact recency, contact frequency, interaction duration and call history.
  1245  	//   "DATA_TYPE_APP_INTERACTIONS" - Information about how a user interacts with
  1246  	// your app, such as the number of page views or taps.
  1247  	//   "DATA_TYPE_IN_APP_SEARCH_HISTORY" - Information about what a user has
  1248  	// searched for in your app.
  1249  	//   "DATA_TYPE_INSTALLED_APPS" - Inventory of apps or packages installed on
  1250  	// the user’s device.
  1251  	//   "DATA_TYPE_OTHER_USER_GENERATED_CONTENT" - Any other user-generated
  1252  	// content not listed here, or in any other section. For example, user bios,
  1253  	// notes, or open-ended responses.
  1254  	//   "DATA_TYPE_OTHER_ACTIONS" - Any other user activity or actions in-app not
  1255  	// listed here such as gameplay, likes, and dialog options.
  1256  	//   "DATA_TYPE_WEB_BROWSING_HISTORY" - Information about the websites a user
  1257  	// has visited.
  1258  	//   "DATA_TYPE_CRASH_LOGS" - Crash log data from your app. For example, the
  1259  	// number of times your app has crashed, stack traces, or other information
  1260  	// directly related to a crash.
  1261  	//   "DATA_TYPE_PERFORMANCE_DIAGNOSTICS" - Information about the performance of
  1262  	// your app. For example battery life, loading time, latency, framerate, or any
  1263  	// technical diagnostics.
  1264  	//   "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA" - Any other app performance data
  1265  	// not listed here.
  1266  	//   "DATA_TYPE_DEVICE_OR_OTHER_IDS" - Identifiers that relate to an individual
  1267  	// device, browser or app. For example, an IMEI number, MAC address, Widevine
  1268  	// Device ID, Firebase installation ID, or advertising identifier.
  1269  	DataType string `json:"dataType,omitempty"`
  1270  	// DataTypeEvidence: Evidence collected about the data type.
  1271  	DataTypeEvidence *GoogleChecksReportV1alphaDataTypeEvidence `json:"dataTypeEvidence,omitempty"`
  1272  	// Metadata: Metadata about the result.
  1273  	Metadata *GoogleChecksReportV1alphaDataMonitoringResultMetadata `json:"metadata,omitempty"`
  1274  	// ForceSendFields is a list of field names (e.g. "DataType") to
  1275  	// unconditionally include in API requests. By default, fields with empty or
  1276  	// default values are omitted from API requests. See
  1277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1278  	// details.
  1279  	ForceSendFields []string `json:"-"`
  1280  	// NullFields is a list of field names (e.g. "DataType") to include in API
  1281  	// requests with the JSON null value. By default, fields with empty values are
  1282  	// omitted from API requests. See
  1283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1284  	NullFields []string `json:"-"`
  1285  }
  1286  
  1287  func (s *GoogleChecksReportV1alphaDataMonitoringDataTypeResult) MarshalJSON() ([]byte, error) {
  1288  	type NoMethod GoogleChecksReportV1alphaDataMonitoringDataTypeResult
  1289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1290  }
  1291  
  1292  // GoogleChecksReportV1alphaDataMonitoringEndpointResult: Information about an
  1293  // endpoint that was contacted by your app.
  1294  type GoogleChecksReportV1alphaDataMonitoringEndpointResult struct {
  1295  	// Endpoint: The endpoint that was contacted by your app.
  1296  	Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"`
  1297  	// HitCount: The number of times this endpoint was contacted by your app.
  1298  	HitCount int64 `json:"hitCount,omitempty"`
  1299  	// Metadata: Metadata about the result.
  1300  	Metadata *GoogleChecksReportV1alphaDataMonitoringResultMetadata `json:"metadata,omitempty"`
  1301  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
  1302  	// unconditionally include in API requests. By default, fields with empty or
  1303  	// default values are omitted from API requests. See
  1304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1305  	// details.
  1306  	ForceSendFields []string `json:"-"`
  1307  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
  1308  	// requests with the JSON null value. By default, fields with empty values are
  1309  	// omitted from API requests. See
  1310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1311  	NullFields []string `json:"-"`
  1312  }
  1313  
  1314  func (s *GoogleChecksReportV1alphaDataMonitoringEndpointResult) MarshalJSON() ([]byte, error) {
  1315  	type NoMethod GoogleChecksReportV1alphaDataMonitoringEndpointResult
  1316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1317  }
  1318  
  1319  // GoogleChecksReportV1alphaDataMonitoringPermissionResult: Information about a
  1320  // permission that was found in your app.
  1321  type GoogleChecksReportV1alphaDataMonitoringPermissionResult struct {
  1322  	// Metadata: Metadata about the result.
  1323  	Metadata *GoogleChecksReportV1alphaDataMonitoringResultMetadata `json:"metadata,omitempty"`
  1324  	// Permission: The permission that was found in your app.
  1325  	Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"`
  1326  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  1327  	// unconditionally include in API requests. By default, fields with empty or
  1328  	// default values are omitted from API requests. See
  1329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1330  	// details.
  1331  	ForceSendFields []string `json:"-"`
  1332  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  1333  	// requests with the JSON null value. By default, fields with empty values are
  1334  	// omitted from API requests. See
  1335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1336  	NullFields []string `json:"-"`
  1337  }
  1338  
  1339  func (s *GoogleChecksReportV1alphaDataMonitoringPermissionResult) MarshalJSON() ([]byte, error) {
  1340  	type NoMethod GoogleChecksReportV1alphaDataMonitoringPermissionResult
  1341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1342  }
  1343  
  1344  // GoogleChecksReportV1alphaDataMonitoringResultMetadata: Information about a
  1345  // data monitoring result.
  1346  type GoogleChecksReportV1alphaDataMonitoringResultMetadata struct {
  1347  	// Badges: Badges that apply to this result.
  1348  	//
  1349  	// Possible values:
  1350  	//   "DATA_MONITORING_RESULT_BADGE_UNSPECIFIED" - Not specified.
  1351  	//   "NEW" - Indicates a newly detected result in the data monitoring report.
  1352  	Badges []string `json:"badges,omitempty"`
  1353  	// FirstDetectedTime: The timestamp when this result was first detected within
  1354  	// the last 8 weeks. If not set, it wasn't detected within the last 8 weeks.
  1355  	FirstDetectedTime string `json:"firstDetectedTime,omitempty"`
  1356  	// LastDetectedAppVersion: Your app's version name when this result was last
  1357  	// detected within the last 8 weeks. If not set, it wasn't detected within the
  1358  	// last 8 weeks.
  1359  	LastDetectedAppVersion string `json:"lastDetectedAppVersion,omitempty"`
  1360  	// LastDetectedTime: The timestamp when this result was last detected within
  1361  	// the last 8 weeks. If not set, it wasn't detected within the last 8 weeks.
  1362  	LastDetectedTime string `json:"lastDetectedTime,omitempty"`
  1363  	// ForceSendFields is a list of field names (e.g. "Badges") to unconditionally
  1364  	// include in API requests. By default, fields with empty or default values are
  1365  	// omitted from API requests. See
  1366  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1367  	// details.
  1368  	ForceSendFields []string `json:"-"`
  1369  	// NullFields is a list of field names (e.g. "Badges") to include in API
  1370  	// requests with the JSON null value. By default, fields with empty values are
  1371  	// omitted from API requests. See
  1372  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1373  	NullFields []string `json:"-"`
  1374  }
  1375  
  1376  func (s *GoogleChecksReportV1alphaDataMonitoringResultMetadata) MarshalJSON() ([]byte, error) {
  1377  	type NoMethod GoogleChecksReportV1alphaDataMonitoringResultMetadata
  1378  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1379  }
  1380  
  1381  // GoogleChecksReportV1alphaDataMonitoringSdkResult: Information about an SDK
  1382  // that was found in your app.
  1383  type GoogleChecksReportV1alphaDataMonitoringSdkResult struct {
  1384  	// Metadata: Metadata about the result.
  1385  	Metadata *GoogleChecksReportV1alphaDataMonitoringResultMetadata `json:"metadata,omitempty"`
  1386  	// Sdk: The SDK that was found in your app.
  1387  	Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"`
  1388  	// ForceSendFields is a list of field names (e.g. "Metadata") to
  1389  	// unconditionally include in API requests. By default, fields with empty or
  1390  	// default values are omitted from API requests. See
  1391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1392  	// details.
  1393  	ForceSendFields []string `json:"-"`
  1394  	// NullFields is a list of field names (e.g. "Metadata") to include in API
  1395  	// requests with the JSON null value. By default, fields with empty values are
  1396  	// omitted from API requests. See
  1397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1398  	NullFields []string `json:"-"`
  1399  }
  1400  
  1401  func (s *GoogleChecksReportV1alphaDataMonitoringSdkResult) MarshalJSON() ([]byte, error) {
  1402  	type NoMethod GoogleChecksReportV1alphaDataMonitoringSdkResult
  1403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1404  }
  1405  
  1406  // GoogleChecksReportV1alphaDataTypeEndpointEvidence: Evidence based on an
  1407  // endpoint that data was sent to.
  1408  type GoogleChecksReportV1alphaDataTypeEndpointEvidence struct {
  1409  	// AttributedSdks: Set of SDKs that are attributed to the exfiltration.
  1410  	AttributedSdks []*GoogleChecksReportV1alphaDataTypeEndpointEvidenceAttributedSdk `json:"attributedSdks,omitempty"`
  1411  	// EndpointDetails: Endpoints the data type was sent to.
  1412  	EndpointDetails []*GoogleChecksReportV1alphaDataTypeEndpointEvidenceEndpointDetails `json:"endpointDetails,omitempty"`
  1413  	// ExfiltratedDataType: Type of data that was exfiltrated.
  1414  	//
  1415  	// Possible values:
  1416  	//   "EXFILTRATED_DATA_TYPE_UNSPECIFIED" - Not specified.
  1417  	//   "EXFILTRATED_DATA_TYPE_PHONE_NUMBER" - The user's phone number.
  1418  	//   "EXFILTRATED_DATA_TYPE_PRECISE_LOCATION" - The user's precise location.
  1419  	//   "EXFILTRATED_DATA_TYPE_CONTACT_NAME" - Name of one or more contacts from
  1420  	// the user's phone.
  1421  	//   "EXFILTRATED_DATA_TYPE_CONTACT_EMAIL" - Email of one or more contacts from
  1422  	// the user's phone.
  1423  	//   "EXFILTRATED_DATA_TYPE_CONTACT_PHONE_NUMBER" - Phone number of one or more
  1424  	// contacts from the user's phone.
  1425  	//   "EXFILTRATED_DATA_TYPE_INCOMING_TEXT_NUMBER" - Phone number of an incoming
  1426  	// text message.
  1427  	//   "EXFILTRATED_DATA_TYPE_INCOMING_TEXT_MESSAGE" - Content of an incoming
  1428  	// text message.
  1429  	//   "EXFILTRATED_DATA_TYPE_OUTGOING_TEXT_NUMBER" - Phone number of an outgoing
  1430  	// text message.
  1431  	//   "EXFILTRATED_DATA_TYPE_OUTGOING_TEXT_MESSAGE" - Content of an outgoing
  1432  	// text message.
  1433  	//   "EXFILTRATED_DATA_TYPE_ADVERTISING_ID" - Advertising ID.
  1434  	//   "EXFILTRATED_DATA_TYPE_ANDROID_ID" - Android ID.
  1435  	//   "EXFILTRATED_DATA_TYPE_IMEI" - IMEI.
  1436  	//   "EXFILTRATED_DATA_TYPE_IMSI" - IMSI.
  1437  	//   "EXFILTRATED_DATA_TYPE_SIM_SERIAL_NUMBER" - Sim serial number.
  1438  	//   "EXFILTRATED_DATA_TYPE_SSID" - SSID: Service Set IDentifier, i.e. the
  1439  	// network's name.
  1440  	//   "EXFILTRATED_DATA_TYPE_ACCOUNT" - Information about the main account of
  1441  	// the device.
  1442  	//   "EXFILTRATED_DATA_TYPE_EXTERNAL_ACCOUNT" - Information about an external
  1443  	// account, e.g. Facebook, Twitter.
  1444  	//   "EXFILTRATED_DATA_TYPE_INSTALLED_PACKAGES" - One or more of the package
  1445  	// names of apps on the device.
  1446  	ExfiltratedDataType string `json:"exfiltratedDataType,omitempty"`
  1447  	// ForceSendFields is a list of field names (e.g. "AttributedSdks") to
  1448  	// unconditionally include in API requests. By default, fields with empty or
  1449  	// default values are omitted from API requests. See
  1450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1451  	// details.
  1452  	ForceSendFields []string `json:"-"`
  1453  	// NullFields is a list of field names (e.g. "AttributedSdks") to include in
  1454  	// API requests with the JSON null value. By default, fields with empty values
  1455  	// are omitted from API requests. See
  1456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1457  	NullFields []string `json:"-"`
  1458  }
  1459  
  1460  func (s *GoogleChecksReportV1alphaDataTypeEndpointEvidence) MarshalJSON() ([]byte, error) {
  1461  	type NoMethod GoogleChecksReportV1alphaDataTypeEndpointEvidence
  1462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1463  }
  1464  
  1465  // GoogleChecksReportV1alphaDataTypeEndpointEvidenceAttributedSdk: Details of
  1466  // SDK that is attributed to the exfiltration.
  1467  type GoogleChecksReportV1alphaDataTypeEndpointEvidenceAttributedSdk struct {
  1468  	// Sdk: SDK that is attributed to the exfiltration.
  1469  	Sdk *GoogleChecksReportV1alphaSdk `json:"sdk,omitempty"`
  1470  	// ForceSendFields is a list of field names (e.g. "Sdk") to unconditionally
  1471  	// include in API requests. By default, fields with empty or default values are
  1472  	// omitted from API requests. See
  1473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1474  	// details.
  1475  	ForceSendFields []string `json:"-"`
  1476  	// NullFields is a list of field names (e.g. "Sdk") to include in API requests
  1477  	// with the JSON null value. By default, fields with empty values are omitted
  1478  	// from API requests. See
  1479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1480  	NullFields []string `json:"-"`
  1481  }
  1482  
  1483  func (s *GoogleChecksReportV1alphaDataTypeEndpointEvidenceAttributedSdk) MarshalJSON() ([]byte, error) {
  1484  	type NoMethod GoogleChecksReportV1alphaDataTypeEndpointEvidenceAttributedSdk
  1485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1486  }
  1487  
  1488  // GoogleChecksReportV1alphaDataTypeEndpointEvidenceEndpointDetails: Details of
  1489  // the endpoint the data type was sent to.
  1490  type GoogleChecksReportV1alphaDataTypeEndpointEvidenceEndpointDetails struct {
  1491  	// Endpoint: Endpoint the data type was sent to.
  1492  	Endpoint *GoogleChecksReportV1alphaEndpoint `json:"endpoint,omitempty"`
  1493  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
  1494  	// unconditionally include in API requests. By default, fields with empty or
  1495  	// default values are omitted from API requests. See
  1496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1497  	// details.
  1498  	ForceSendFields []string `json:"-"`
  1499  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
  1500  	// requests with the JSON null value. By default, fields with empty values are
  1501  	// omitted from API requests. See
  1502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1503  	NullFields []string `json:"-"`
  1504  }
  1505  
  1506  func (s *GoogleChecksReportV1alphaDataTypeEndpointEvidenceEndpointDetails) MarshalJSON() ([]byte, error) {
  1507  	type NoMethod GoogleChecksReportV1alphaDataTypeEndpointEvidenceEndpointDetails
  1508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1509  }
  1510  
  1511  // GoogleChecksReportV1alphaDataTypeEvidence: Evidence collected about a data
  1512  // type.
  1513  type GoogleChecksReportV1alphaDataTypeEvidence struct {
  1514  	// Endpoints: List of endpoints the data type was sent to.
  1515  	Endpoints []*GoogleChecksReportV1alphaDataTypeEndpointEvidence `json:"endpoints,omitempty"`
  1516  	// Permissions: List of included permissions that imply collection of the data
  1517  	// type.
  1518  	Permissions []*GoogleChecksReportV1alphaDataTypePermissionEvidence `json:"permissions,omitempty"`
  1519  	// PrivacyPolicyTexts: List of privacy policy texts that imply collection of
  1520  	// the data type.
  1521  	PrivacyPolicyTexts []*GoogleChecksReportV1alphaDataTypePrivacyPolicyTextEvidence `json:"privacyPolicyTexts,omitempty"`
  1522  	// ForceSendFields is a list of field names (e.g. "Endpoints") to
  1523  	// unconditionally include in API requests. By default, fields with empty or
  1524  	// default values are omitted from API requests. See
  1525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1526  	// details.
  1527  	ForceSendFields []string `json:"-"`
  1528  	// NullFields is a list of field names (e.g. "Endpoints") to include in API
  1529  	// requests with the JSON null value. By default, fields with empty values are
  1530  	// omitted from API requests. See
  1531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1532  	NullFields []string `json:"-"`
  1533  }
  1534  
  1535  func (s *GoogleChecksReportV1alphaDataTypeEvidence) MarshalJSON() ([]byte, error) {
  1536  	type NoMethod GoogleChecksReportV1alphaDataTypeEvidence
  1537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1538  }
  1539  
  1540  // GoogleChecksReportV1alphaDataTypePermissionEvidence: Evidence based on the
  1541  // inclusion of a permission.
  1542  type GoogleChecksReportV1alphaDataTypePermissionEvidence struct {
  1543  	// Permission: Permission declared by your app.
  1544  	Permission *GoogleChecksReportV1alphaPermission `json:"permission,omitempty"`
  1545  	// ForceSendFields is a list of field names (e.g. "Permission") to
  1546  	// unconditionally include in API requests. By default, fields with empty or
  1547  	// default values are omitted from API requests. See
  1548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1549  	// details.
  1550  	ForceSendFields []string `json:"-"`
  1551  	// NullFields is a list of field names (e.g. "Permission") to include in API
  1552  	// requests with the JSON null value. By default, fields with empty values are
  1553  	// omitted from API requests. See
  1554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1555  	NullFields []string `json:"-"`
  1556  }
  1557  
  1558  func (s *GoogleChecksReportV1alphaDataTypePermissionEvidence) MarshalJSON() ([]byte, error) {
  1559  	type NoMethod GoogleChecksReportV1alphaDataTypePermissionEvidence
  1560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1561  }
  1562  
  1563  // GoogleChecksReportV1alphaDataTypePrivacyPolicyTextEvidence: Evidence based
  1564  // on information from the privacy policy.
  1565  type GoogleChecksReportV1alphaDataTypePrivacyPolicyTextEvidence struct {
  1566  	// PolicyFragment: The privacy policy fragment that implies collection of the
  1567  	// data type.
  1568  	PolicyFragment *GoogleChecksReportV1alphaPolicyFragment `json:"policyFragment,omitempty"`
  1569  	// ForceSendFields is a list of field names (e.g. "PolicyFragment") 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. "PolicyFragment") to include in
  1576  	// API requests with the JSON null value. By default, fields with empty values
  1577  	// are 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 *GoogleChecksReportV1alphaDataTypePrivacyPolicyTextEvidence) MarshalJSON() ([]byte, error) {
  1583  	type NoMethod GoogleChecksReportV1alphaDataTypePrivacyPolicyTextEvidence
  1584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1585  }
  1586  
  1587  // GoogleChecksReportV1alphaEndpoint: Information about an endpoint.
  1588  type GoogleChecksReportV1alphaEndpoint struct {
  1589  	// Domain: Domain name (e.g. ads.google.com).
  1590  	Domain string `json:"domain,omitempty"`
  1591  	// ForceSendFields is a list of field names (e.g. "Domain") to unconditionally
  1592  	// include in API requests. By default, fields with empty or default values are
  1593  	// omitted from API requests. See
  1594  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1595  	// details.
  1596  	ForceSendFields []string `json:"-"`
  1597  	// NullFields is a list of field names (e.g. "Domain") to include in API
  1598  	// requests with the JSON null value. By default, fields with empty values are
  1599  	// omitted from API requests. See
  1600  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1601  	NullFields []string `json:"-"`
  1602  }
  1603  
  1604  func (s *GoogleChecksReportV1alphaEndpoint) MarshalJSON() ([]byte, error) {
  1605  	type NoMethod GoogleChecksReportV1alphaEndpoint
  1606  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1607  }
  1608  
  1609  // GoogleChecksReportV1alphaListReportsResponse: The response message for
  1610  // ReportService.ListReports.
  1611  type GoogleChecksReportV1alphaListReportsResponse struct {
  1612  	// NextPageToken: A token which can be sent as `page_token` to retrieve the
  1613  	// next page. If this field is omitted, there are no subsequent pages.
  1614  	NextPageToken string `json:"nextPageToken,omitempty"`
  1615  	// Reports: The reports for the specified app.
  1616  	Reports []*GoogleChecksReportV1alphaReport `json:"reports,omitempty"`
  1617  
  1618  	// ServerResponse contains the HTTP response code and headers from the server.
  1619  	googleapi.ServerResponse `json:"-"`
  1620  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1621  	// unconditionally include in API requests. By default, fields with empty or
  1622  	// default values are omitted from API requests. See
  1623  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1624  	// details.
  1625  	ForceSendFields []string `json:"-"`
  1626  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1627  	// requests with the JSON null value. By default, fields with empty values are
  1628  	// omitted from API requests. See
  1629  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1630  	NullFields []string `json:"-"`
  1631  }
  1632  
  1633  func (s *GoogleChecksReportV1alphaListReportsResponse) MarshalJSON() ([]byte, error) {
  1634  	type NoMethod GoogleChecksReportV1alphaListReportsResponse
  1635  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1636  }
  1637  
  1638  // GoogleChecksReportV1alphaPermission: Information about a permission.
  1639  type GoogleChecksReportV1alphaPermission struct {
  1640  	// Id: Permission identifier.
  1641  	Id string `json:"id,omitempty"`
  1642  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  1643  	// include in API requests. By default, fields with empty or default values are
  1644  	// omitted from API requests. See
  1645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1646  	// details.
  1647  	ForceSendFields []string `json:"-"`
  1648  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  1649  	// with the JSON null value. By default, fields with empty values are omitted
  1650  	// from API requests. See
  1651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1652  	NullFields []string `json:"-"`
  1653  }
  1654  
  1655  func (s *GoogleChecksReportV1alphaPermission) MarshalJSON() ([]byte, error) {
  1656  	type NoMethod GoogleChecksReportV1alphaPermission
  1657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1658  }
  1659  
  1660  // GoogleChecksReportV1alphaPolicyFragment: Information about a policy
  1661  // fragment.
  1662  type GoogleChecksReportV1alphaPolicyFragment struct {
  1663  	// HtmlContent: HTML content.
  1664  	HtmlContent string `json:"htmlContent,omitempty"`
  1665  	// SourceUri: Policy URL.
  1666  	SourceUri string `json:"sourceUri,omitempty"`
  1667  	// ForceSendFields is a list of field names (e.g. "HtmlContent") to
  1668  	// unconditionally include in API requests. By default, fields with empty or
  1669  	// default values are omitted from API requests. See
  1670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1671  	// details.
  1672  	ForceSendFields []string `json:"-"`
  1673  	// NullFields is a list of field names (e.g. "HtmlContent") to include in API
  1674  	// requests with the JSON null value. By default, fields with empty values are
  1675  	// omitted from API requests. See
  1676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1677  	NullFields []string `json:"-"`
  1678  }
  1679  
  1680  func (s *GoogleChecksReportV1alphaPolicyFragment) MarshalJSON() ([]byte, error) {
  1681  	type NoMethod GoogleChecksReportV1alphaPolicyFragment
  1682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1683  }
  1684  
  1685  // GoogleChecksReportV1alphaReport: Privacy report.
  1686  type GoogleChecksReportV1alphaReport struct {
  1687  	// AppBundle: Information about the analyzed app bundle.
  1688  	AppBundle *GoogleChecksReportV1alphaAppBundle `json:"appBundle,omitempty"`
  1689  	// Checks: List of checks that were run on the app bundle.
  1690  	Checks []*GoogleChecksReportV1alphaCheck `json:"checks,omitempty"`
  1691  	// DataMonitoring: Information related to data monitoring.
  1692  	DataMonitoring *GoogleChecksReportV1alphaDataMonitoring `json:"dataMonitoring,omitempty"`
  1693  	// Name: Resource name of the report.
  1694  	Name string `json:"name,omitempty"`
  1695  	// ResultsUri: A URL to view results.
  1696  	ResultsUri string `json:"resultsUri,omitempty"`
  1697  
  1698  	// ServerResponse contains the HTTP response code and headers from the server.
  1699  	googleapi.ServerResponse `json:"-"`
  1700  	// ForceSendFields is a list of field names (e.g. "AppBundle") to
  1701  	// unconditionally include in API requests. By default, fields with empty or
  1702  	// default values are omitted from API requests. See
  1703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1704  	// details.
  1705  	ForceSendFields []string `json:"-"`
  1706  	// NullFields is a list of field names (e.g. "AppBundle") to include in API
  1707  	// requests with the JSON null value. By default, fields with empty values are
  1708  	// omitted from API requests. See
  1709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1710  	NullFields []string `json:"-"`
  1711  }
  1712  
  1713  func (s *GoogleChecksReportV1alphaReport) MarshalJSON() ([]byte, error) {
  1714  	type NoMethod GoogleChecksReportV1alphaReport
  1715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1716  }
  1717  
  1718  // GoogleChecksReportV1alphaSdk: Information about an SDK.
  1719  type GoogleChecksReportV1alphaSdk struct {
  1720  	// Id: SDK identifier.
  1721  	Id string `json:"id,omitempty"`
  1722  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  1723  	// include in API requests. By default, fields with empty or default values are
  1724  	// omitted from API requests. See
  1725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1726  	// details.
  1727  	ForceSendFields []string `json:"-"`
  1728  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  1729  	// with the JSON null value. By default, fields with empty values are omitted
  1730  	// from API requests. See
  1731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1732  	NullFields []string `json:"-"`
  1733  }
  1734  
  1735  func (s *GoogleChecksReportV1alphaSdk) MarshalJSON() ([]byte, error) {
  1736  	type NoMethod GoogleChecksReportV1alphaSdk
  1737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1738  }
  1739  
  1740  // ListOperationsResponse: The response message for Operations.ListOperations.
  1741  type ListOperationsResponse struct {
  1742  	// NextPageToken: The standard List next-page token.
  1743  	NextPageToken string `json:"nextPageToken,omitempty"`
  1744  	// Operations: A list of operations that matches the specified filter in the
  1745  	// request.
  1746  	Operations []*Operation `json:"operations,omitempty"`
  1747  
  1748  	// ServerResponse contains the HTTP response code and headers from the server.
  1749  	googleapi.ServerResponse `json:"-"`
  1750  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1751  	// unconditionally include in API requests. By default, fields with empty or
  1752  	// default values are omitted from API requests. See
  1753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1754  	// details.
  1755  	ForceSendFields []string `json:"-"`
  1756  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  1757  	// requests with the JSON null value. By default, fields with empty values are
  1758  	// omitted from API requests. See
  1759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1760  	NullFields []string `json:"-"`
  1761  }
  1762  
  1763  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  1764  	type NoMethod ListOperationsResponse
  1765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1766  }
  1767  
  1768  // Operation: This resource represents a long-running operation that is the
  1769  // result of a network API call.
  1770  type Operation struct {
  1771  	// Done: If the value is `false`, it means the operation is still in progress.
  1772  	// If `true`, the operation is completed, and either `error` or `response` is
  1773  	// available.
  1774  	Done bool `json:"done,omitempty"`
  1775  	// Error: The error result of the operation in case of failure or cancellation.
  1776  	Error *Status `json:"error,omitempty"`
  1777  	// Metadata: Service-specific metadata associated with the operation. It
  1778  	// typically contains progress information and common metadata such as create
  1779  	// time. Some services might not provide such metadata. Any method that returns
  1780  	// a long-running operation should document the metadata type, if any.
  1781  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  1782  	// Name: The server-assigned name, which is only unique within the same service
  1783  	// that originally returns it. If you use the default HTTP mapping, the `name`
  1784  	// should be a resource name ending with `operations/{unique_id}`.
  1785  	Name string `json:"name,omitempty"`
  1786  	// Response: The normal, successful response of the operation. If the original
  1787  	// method returns no data on success, such as `Delete`, the response is
  1788  	// `google.protobuf.Empty`. If the original method is standard
  1789  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  1790  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  1791  	// original method name. For example, if the original method name is
  1792  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  1793  	Response googleapi.RawMessage `json:"response,omitempty"`
  1794  
  1795  	// ServerResponse contains the HTTP response code and headers from the server.
  1796  	googleapi.ServerResponse `json:"-"`
  1797  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  1798  	// include in API requests. By default, fields with empty or default values are
  1799  	// omitted from API requests. See
  1800  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1801  	// details.
  1802  	ForceSendFields []string `json:"-"`
  1803  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  1804  	// with the JSON null value. By default, fields with empty values are omitted
  1805  	// from API requests. See
  1806  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1807  	NullFields []string `json:"-"`
  1808  }
  1809  
  1810  func (s *Operation) MarshalJSON() ([]byte, error) {
  1811  	type NoMethod Operation
  1812  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1813  }
  1814  
  1815  // Status: The `Status` type defines a logical error model that is suitable for
  1816  // different programming environments, including REST APIs and RPC APIs. It is
  1817  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  1818  // pieces of data: error code, error message, and error details. You can find
  1819  // out more about this error model and how to work with it in the API Design
  1820  // Guide (https://cloud.google.com/apis/design/errors).
  1821  type Status struct {
  1822  	// Code: The status code, which should be an enum value of google.rpc.Code.
  1823  	Code int64 `json:"code,omitempty"`
  1824  	// Details: A list of messages that carry the error details. There is a common
  1825  	// set of message types for APIs to use.
  1826  	Details []googleapi.RawMessage `json:"details,omitempty"`
  1827  	// Message: A developer-facing error message, which should be in English. Any
  1828  	// user-facing error message should be localized and sent in the
  1829  	// google.rpc.Status.details field, or localized by the client.
  1830  	Message string `json:"message,omitempty"`
  1831  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  1832  	// include in API requests. By default, fields with empty or default values are
  1833  	// omitted from API requests. See
  1834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1835  	// details.
  1836  	ForceSendFields []string `json:"-"`
  1837  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  1838  	// with the JSON null value. By default, fields with empty values are omitted
  1839  	// from API requests. See
  1840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1841  	NullFields []string `json:"-"`
  1842  }
  1843  
  1844  func (s *Status) MarshalJSON() ([]byte, error) {
  1845  	type NoMethod Status
  1846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1847  }
  1848  
  1849  // WaitOperationRequest: The request message for Operations.WaitOperation.
  1850  type WaitOperationRequest struct {
  1851  	// Timeout: The maximum duration to wait before timing out. If left blank, the
  1852  	// wait will be at most the time permitted by the underlying HTTP/RPC protocol.
  1853  	// If RPC context deadline is also specified, the shorter one will be used.
  1854  	Timeout string `json:"timeout,omitempty"`
  1855  	// ForceSendFields is a list of field names (e.g. "Timeout") to unconditionally
  1856  	// include in API requests. By default, fields with empty or default values are
  1857  	// omitted from API requests. See
  1858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1859  	// details.
  1860  	ForceSendFields []string `json:"-"`
  1861  	// NullFields is a list of field names (e.g. "Timeout") to include in API
  1862  	// requests with the JSON null value. By default, fields with empty values are
  1863  	// omitted from API requests. See
  1864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1865  	NullFields []string `json:"-"`
  1866  }
  1867  
  1868  func (s *WaitOperationRequest) MarshalJSON() ([]byte, error) {
  1869  	type NoMethod WaitOperationRequest
  1870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1871  }
  1872  
  1873  type AccountsAppsGetCall struct {
  1874  	s            *Service
  1875  	name         string
  1876  	urlParams_   gensupport.URLParams
  1877  	ifNoneMatch_ string
  1878  	ctx_         context.Context
  1879  	header_      http.Header
  1880  }
  1881  
  1882  // Get: Gets an app.
  1883  //
  1884  // - name: Resource name of the app. Example: `accounts/123/apps/456`.
  1885  func (r *AccountsAppsService) Get(name string) *AccountsAppsGetCall {
  1886  	c := &AccountsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1887  	c.name = name
  1888  	return c
  1889  }
  1890  
  1891  // Fields allows partial responses to be retrieved. See
  1892  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1893  // details.
  1894  func (c *AccountsAppsGetCall) Fields(s ...googleapi.Field) *AccountsAppsGetCall {
  1895  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1896  	return c
  1897  }
  1898  
  1899  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1900  // object's ETag matches the given value. This is useful for getting updates
  1901  // only after the object has changed since the last request.
  1902  func (c *AccountsAppsGetCall) IfNoneMatch(entityTag string) *AccountsAppsGetCall {
  1903  	c.ifNoneMatch_ = entityTag
  1904  	return c
  1905  }
  1906  
  1907  // Context sets the context to be used in this call's Do method.
  1908  func (c *AccountsAppsGetCall) Context(ctx context.Context) *AccountsAppsGetCall {
  1909  	c.ctx_ = ctx
  1910  	return c
  1911  }
  1912  
  1913  // Header returns a http.Header that can be modified by the caller to add
  1914  // headers to the request.
  1915  func (c *AccountsAppsGetCall) Header() http.Header {
  1916  	if c.header_ == nil {
  1917  		c.header_ = make(http.Header)
  1918  	}
  1919  	return c.header_
  1920  }
  1921  
  1922  func (c *AccountsAppsGetCall) doRequest(alt string) (*http.Response, error) {
  1923  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1924  	if c.ifNoneMatch_ != "" {
  1925  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1926  	}
  1927  	var body io.Reader = nil
  1928  	c.urlParams_.Set("alt", alt)
  1929  	c.urlParams_.Set("prettyPrint", "false")
  1930  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  1931  	urls += "?" + c.urlParams_.Encode()
  1932  	req, err := http.NewRequest("GET", urls, body)
  1933  	if err != nil {
  1934  		return nil, err
  1935  	}
  1936  	req.Header = reqHeaders
  1937  	googleapi.Expand(req.URL, map[string]string{
  1938  		"name": c.name,
  1939  	})
  1940  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1941  }
  1942  
  1943  // Do executes the "checks.accounts.apps.get" call.
  1944  // Any non-2xx status code is an error. Response headers are in either
  1945  // *GoogleChecksAccountV1alphaApp.ServerResponse.Header or (if a response was
  1946  // returned at all) in error.(*googleapi.Error).Header. Use
  1947  // googleapi.IsNotModified to check whether the returned error was because
  1948  // http.StatusNotModified was returned.
  1949  func (c *AccountsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAccountV1alphaApp, error) {
  1950  	gensupport.SetOptions(c.urlParams_, opts...)
  1951  	res, err := c.doRequest("json")
  1952  	if res != nil && res.StatusCode == http.StatusNotModified {
  1953  		if res.Body != nil {
  1954  			res.Body.Close()
  1955  		}
  1956  		return nil, gensupport.WrapError(&googleapi.Error{
  1957  			Code:   res.StatusCode,
  1958  			Header: res.Header,
  1959  		})
  1960  	}
  1961  	if err != nil {
  1962  		return nil, err
  1963  	}
  1964  	defer googleapi.CloseBody(res)
  1965  	if err := googleapi.CheckResponse(res); err != nil {
  1966  		return nil, gensupport.WrapError(err)
  1967  	}
  1968  	ret := &GoogleChecksAccountV1alphaApp{
  1969  		ServerResponse: googleapi.ServerResponse{
  1970  			Header:         res.Header,
  1971  			HTTPStatusCode: res.StatusCode,
  1972  		},
  1973  	}
  1974  	target := &ret
  1975  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1976  		return nil, err
  1977  	}
  1978  	return ret, nil
  1979  }
  1980  
  1981  type AccountsAppsListCall struct {
  1982  	s            *Service
  1983  	parent       string
  1984  	urlParams_   gensupport.URLParams
  1985  	ifNoneMatch_ string
  1986  	ctx_         context.Context
  1987  	header_      http.Header
  1988  }
  1989  
  1990  // List: Lists the apps under the given account.
  1991  //
  1992  // - parent: The parent account. Example: `accounts/123`.
  1993  func (r *AccountsAppsService) List(parent string) *AccountsAppsListCall {
  1994  	c := &AccountsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1995  	c.parent = parent
  1996  	return c
  1997  }
  1998  
  1999  // PageSize sets the optional parameter "pageSize": The maximum number of
  2000  // results to return. The server may further constrain the maximum number of
  2001  // results returned in a single page. If unspecified, the server will decide
  2002  // the number of results to be returned.
  2003  func (c *AccountsAppsListCall) PageSize(pageSize int64) *AccountsAppsListCall {
  2004  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2005  	return c
  2006  }
  2007  
  2008  // PageToken sets the optional parameter "pageToken": A page token received
  2009  // from a previous `ListApps` call. Provide this to retrieve the subsequent
  2010  // page.
  2011  func (c *AccountsAppsListCall) PageToken(pageToken string) *AccountsAppsListCall {
  2012  	c.urlParams_.Set("pageToken", pageToken)
  2013  	return c
  2014  }
  2015  
  2016  // Fields allows partial responses to be retrieved. See
  2017  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2018  // details.
  2019  func (c *AccountsAppsListCall) Fields(s ...googleapi.Field) *AccountsAppsListCall {
  2020  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2021  	return c
  2022  }
  2023  
  2024  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2025  // object's ETag matches the given value. This is useful for getting updates
  2026  // only after the object has changed since the last request.
  2027  func (c *AccountsAppsListCall) IfNoneMatch(entityTag string) *AccountsAppsListCall {
  2028  	c.ifNoneMatch_ = entityTag
  2029  	return c
  2030  }
  2031  
  2032  // Context sets the context to be used in this call's Do method.
  2033  func (c *AccountsAppsListCall) Context(ctx context.Context) *AccountsAppsListCall {
  2034  	c.ctx_ = ctx
  2035  	return c
  2036  }
  2037  
  2038  // Header returns a http.Header that can be modified by the caller to add
  2039  // headers to the request.
  2040  func (c *AccountsAppsListCall) Header() http.Header {
  2041  	if c.header_ == nil {
  2042  		c.header_ = make(http.Header)
  2043  	}
  2044  	return c.header_
  2045  }
  2046  
  2047  func (c *AccountsAppsListCall) doRequest(alt string) (*http.Response, error) {
  2048  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2049  	if c.ifNoneMatch_ != "" {
  2050  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2051  	}
  2052  	var body io.Reader = nil
  2053  	c.urlParams_.Set("alt", alt)
  2054  	c.urlParams_.Set("prettyPrint", "false")
  2055  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/apps")
  2056  	urls += "?" + c.urlParams_.Encode()
  2057  	req, err := http.NewRequest("GET", urls, body)
  2058  	if err != nil {
  2059  		return nil, err
  2060  	}
  2061  	req.Header = reqHeaders
  2062  	googleapi.Expand(req.URL, map[string]string{
  2063  		"parent": c.parent,
  2064  	})
  2065  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2066  }
  2067  
  2068  // Do executes the "checks.accounts.apps.list" call.
  2069  // Any non-2xx status code is an error. Response headers are in either
  2070  // *GoogleChecksAccountV1alphaListAppsResponse.ServerResponse.Header or (if a
  2071  // response was returned at all) in error.(*googleapi.Error).Header. Use
  2072  // googleapi.IsNotModified to check whether the returned error was because
  2073  // http.StatusNotModified was returned.
  2074  func (c *AccountsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksAccountV1alphaListAppsResponse, error) {
  2075  	gensupport.SetOptions(c.urlParams_, opts...)
  2076  	res, err := c.doRequest("json")
  2077  	if res != nil && res.StatusCode == http.StatusNotModified {
  2078  		if res.Body != nil {
  2079  			res.Body.Close()
  2080  		}
  2081  		return nil, gensupport.WrapError(&googleapi.Error{
  2082  			Code:   res.StatusCode,
  2083  			Header: res.Header,
  2084  		})
  2085  	}
  2086  	if err != nil {
  2087  		return nil, err
  2088  	}
  2089  	defer googleapi.CloseBody(res)
  2090  	if err := googleapi.CheckResponse(res); err != nil {
  2091  		return nil, gensupport.WrapError(err)
  2092  	}
  2093  	ret := &GoogleChecksAccountV1alphaListAppsResponse{
  2094  		ServerResponse: googleapi.ServerResponse{
  2095  			Header:         res.Header,
  2096  			HTTPStatusCode: res.StatusCode,
  2097  		},
  2098  	}
  2099  	target := &ret
  2100  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2101  		return nil, err
  2102  	}
  2103  	return ret, nil
  2104  }
  2105  
  2106  // Pages invokes f for each page of results.
  2107  // A non-nil error returned from f will halt the iteration.
  2108  // The provided context supersedes any context provided to the Context method.
  2109  func (c *AccountsAppsListCall) Pages(ctx context.Context, f func(*GoogleChecksAccountV1alphaListAppsResponse) error) error {
  2110  	c.ctx_ = ctx
  2111  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2112  	for {
  2113  		x, err := c.Do()
  2114  		if err != nil {
  2115  			return err
  2116  		}
  2117  		if err := f(x); err != nil {
  2118  			return err
  2119  		}
  2120  		if x.NextPageToken == "" {
  2121  			return nil
  2122  		}
  2123  		c.PageToken(x.NextPageToken)
  2124  	}
  2125  }
  2126  
  2127  type AccountsAppsOperationsCancelCall struct {
  2128  	s                      *Service
  2129  	name                   string
  2130  	canceloperationrequest *CancelOperationRequest
  2131  	urlParams_             gensupport.URLParams
  2132  	ctx_                   context.Context
  2133  	header_                http.Header
  2134  }
  2135  
  2136  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  2137  // server makes a best effort to cancel the operation, but success is not
  2138  // guaranteed. If the server doesn't support this method, it returns
  2139  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  2140  // other methods to check whether the cancellation succeeded or whether the
  2141  // operation completed despite cancellation. On successful cancellation, the
  2142  // operation is not deleted; instead, it becomes an operation with an
  2143  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  2144  // `Code.CANCELLED`.
  2145  //
  2146  // - name: The name of the operation resource to be cancelled.
  2147  func (r *AccountsAppsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *AccountsAppsOperationsCancelCall {
  2148  	c := &AccountsAppsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2149  	c.name = name
  2150  	c.canceloperationrequest = canceloperationrequest
  2151  	return c
  2152  }
  2153  
  2154  // Fields allows partial responses to be retrieved. See
  2155  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2156  // details.
  2157  func (c *AccountsAppsOperationsCancelCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsCancelCall {
  2158  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2159  	return c
  2160  }
  2161  
  2162  // Context sets the context to be used in this call's Do method.
  2163  func (c *AccountsAppsOperationsCancelCall) Context(ctx context.Context) *AccountsAppsOperationsCancelCall {
  2164  	c.ctx_ = ctx
  2165  	return c
  2166  }
  2167  
  2168  // Header returns a http.Header that can be modified by the caller to add
  2169  // headers to the request.
  2170  func (c *AccountsAppsOperationsCancelCall) Header() http.Header {
  2171  	if c.header_ == nil {
  2172  		c.header_ = make(http.Header)
  2173  	}
  2174  	return c.header_
  2175  }
  2176  
  2177  func (c *AccountsAppsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  2178  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2179  	var body io.Reader = nil
  2180  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  2181  	if err != nil {
  2182  		return nil, err
  2183  	}
  2184  	c.urlParams_.Set("alt", alt)
  2185  	c.urlParams_.Set("prettyPrint", "false")
  2186  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel")
  2187  	urls += "?" + c.urlParams_.Encode()
  2188  	req, err := http.NewRequest("POST", urls, body)
  2189  	if err != nil {
  2190  		return nil, err
  2191  	}
  2192  	req.Header = reqHeaders
  2193  	googleapi.Expand(req.URL, map[string]string{
  2194  		"name": c.name,
  2195  	})
  2196  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2197  }
  2198  
  2199  // Do executes the "checks.accounts.apps.operations.cancel" call.
  2200  // Any non-2xx status code is an error. Response headers are in either
  2201  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  2202  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2203  // whether the returned error was because http.StatusNotModified was returned.
  2204  func (c *AccountsAppsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  2205  	gensupport.SetOptions(c.urlParams_, opts...)
  2206  	res, err := c.doRequest("json")
  2207  	if res != nil && res.StatusCode == http.StatusNotModified {
  2208  		if res.Body != nil {
  2209  			res.Body.Close()
  2210  		}
  2211  		return nil, gensupport.WrapError(&googleapi.Error{
  2212  			Code:   res.StatusCode,
  2213  			Header: res.Header,
  2214  		})
  2215  	}
  2216  	if err != nil {
  2217  		return nil, err
  2218  	}
  2219  	defer googleapi.CloseBody(res)
  2220  	if err := googleapi.CheckResponse(res); err != nil {
  2221  		return nil, gensupport.WrapError(err)
  2222  	}
  2223  	ret := &Empty{
  2224  		ServerResponse: googleapi.ServerResponse{
  2225  			Header:         res.Header,
  2226  			HTTPStatusCode: res.StatusCode,
  2227  		},
  2228  	}
  2229  	target := &ret
  2230  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2231  		return nil, err
  2232  	}
  2233  	return ret, nil
  2234  }
  2235  
  2236  type AccountsAppsOperationsDeleteCall struct {
  2237  	s          *Service
  2238  	name       string
  2239  	urlParams_ gensupport.URLParams
  2240  	ctx_       context.Context
  2241  	header_    http.Header
  2242  }
  2243  
  2244  // Delete: Deletes a long-running operation. This method indicates that the
  2245  // client is no longer interested in the operation result. It does not cancel
  2246  // the operation. If the server doesn't support this method, it returns
  2247  // `google.rpc.Code.UNIMPLEMENTED`.
  2248  //
  2249  // - name: The name of the operation resource to be deleted.
  2250  func (r *AccountsAppsOperationsService) Delete(name string) *AccountsAppsOperationsDeleteCall {
  2251  	c := &AccountsAppsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2252  	c.name = name
  2253  	return c
  2254  }
  2255  
  2256  // Fields allows partial responses to be retrieved. See
  2257  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2258  // details.
  2259  func (c *AccountsAppsOperationsDeleteCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsDeleteCall {
  2260  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2261  	return c
  2262  }
  2263  
  2264  // Context sets the context to be used in this call's Do method.
  2265  func (c *AccountsAppsOperationsDeleteCall) Context(ctx context.Context) *AccountsAppsOperationsDeleteCall {
  2266  	c.ctx_ = ctx
  2267  	return c
  2268  }
  2269  
  2270  // Header returns a http.Header that can be modified by the caller to add
  2271  // headers to the request.
  2272  func (c *AccountsAppsOperationsDeleteCall) Header() http.Header {
  2273  	if c.header_ == nil {
  2274  		c.header_ = make(http.Header)
  2275  	}
  2276  	return c.header_
  2277  }
  2278  
  2279  func (c *AccountsAppsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  2280  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2281  	var body io.Reader = nil
  2282  	c.urlParams_.Set("alt", alt)
  2283  	c.urlParams_.Set("prettyPrint", "false")
  2284  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  2285  	urls += "?" + c.urlParams_.Encode()
  2286  	req, err := http.NewRequest("DELETE", urls, body)
  2287  	if err != nil {
  2288  		return nil, err
  2289  	}
  2290  	req.Header = reqHeaders
  2291  	googleapi.Expand(req.URL, map[string]string{
  2292  		"name": c.name,
  2293  	})
  2294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2295  }
  2296  
  2297  // Do executes the "checks.accounts.apps.operations.delete" call.
  2298  // Any non-2xx status code is an error. Response headers are in either
  2299  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  2300  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2301  // whether the returned error was because http.StatusNotModified was returned.
  2302  func (c *AccountsAppsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  2303  	gensupport.SetOptions(c.urlParams_, opts...)
  2304  	res, err := c.doRequest("json")
  2305  	if res != nil && res.StatusCode == http.StatusNotModified {
  2306  		if res.Body != nil {
  2307  			res.Body.Close()
  2308  		}
  2309  		return nil, gensupport.WrapError(&googleapi.Error{
  2310  			Code:   res.StatusCode,
  2311  			Header: res.Header,
  2312  		})
  2313  	}
  2314  	if err != nil {
  2315  		return nil, err
  2316  	}
  2317  	defer googleapi.CloseBody(res)
  2318  	if err := googleapi.CheckResponse(res); err != nil {
  2319  		return nil, gensupport.WrapError(err)
  2320  	}
  2321  	ret := &Empty{
  2322  		ServerResponse: googleapi.ServerResponse{
  2323  			Header:         res.Header,
  2324  			HTTPStatusCode: res.StatusCode,
  2325  		},
  2326  	}
  2327  	target := &ret
  2328  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2329  		return nil, err
  2330  	}
  2331  	return ret, nil
  2332  }
  2333  
  2334  type AccountsAppsOperationsGetCall struct {
  2335  	s            *Service
  2336  	name         string
  2337  	urlParams_   gensupport.URLParams
  2338  	ifNoneMatch_ string
  2339  	ctx_         context.Context
  2340  	header_      http.Header
  2341  }
  2342  
  2343  // Get: Gets the latest state of a long-running operation. Clients can use this
  2344  // method to poll the operation result at intervals as recommended by the API
  2345  // service.
  2346  //
  2347  // - name: The name of the operation resource.
  2348  func (r *AccountsAppsOperationsService) Get(name string) *AccountsAppsOperationsGetCall {
  2349  	c := &AccountsAppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2350  	c.name = name
  2351  	return c
  2352  }
  2353  
  2354  // Fields allows partial responses to be retrieved. See
  2355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2356  // details.
  2357  func (c *AccountsAppsOperationsGetCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsGetCall {
  2358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2359  	return c
  2360  }
  2361  
  2362  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2363  // object's ETag matches the given value. This is useful for getting updates
  2364  // only after the object has changed since the last request.
  2365  func (c *AccountsAppsOperationsGetCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsGetCall {
  2366  	c.ifNoneMatch_ = entityTag
  2367  	return c
  2368  }
  2369  
  2370  // Context sets the context to be used in this call's Do method.
  2371  func (c *AccountsAppsOperationsGetCall) Context(ctx context.Context) *AccountsAppsOperationsGetCall {
  2372  	c.ctx_ = ctx
  2373  	return c
  2374  }
  2375  
  2376  // Header returns a http.Header that can be modified by the caller to add
  2377  // headers to the request.
  2378  func (c *AccountsAppsOperationsGetCall) Header() http.Header {
  2379  	if c.header_ == nil {
  2380  		c.header_ = make(http.Header)
  2381  	}
  2382  	return c.header_
  2383  }
  2384  
  2385  func (c *AccountsAppsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  2386  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2387  	if c.ifNoneMatch_ != "" {
  2388  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2389  	}
  2390  	var body io.Reader = nil
  2391  	c.urlParams_.Set("alt", alt)
  2392  	c.urlParams_.Set("prettyPrint", "false")
  2393  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  2394  	urls += "?" + c.urlParams_.Encode()
  2395  	req, err := http.NewRequest("GET", urls, body)
  2396  	if err != nil {
  2397  		return nil, err
  2398  	}
  2399  	req.Header = reqHeaders
  2400  	googleapi.Expand(req.URL, map[string]string{
  2401  		"name": c.name,
  2402  	})
  2403  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2404  }
  2405  
  2406  // Do executes the "checks.accounts.apps.operations.get" call.
  2407  // Any non-2xx status code is an error. Response headers are in either
  2408  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2409  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2410  // whether the returned error was because http.StatusNotModified was returned.
  2411  func (c *AccountsAppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2412  	gensupport.SetOptions(c.urlParams_, opts...)
  2413  	res, err := c.doRequest("json")
  2414  	if res != nil && res.StatusCode == http.StatusNotModified {
  2415  		if res.Body != nil {
  2416  			res.Body.Close()
  2417  		}
  2418  		return nil, gensupport.WrapError(&googleapi.Error{
  2419  			Code:   res.StatusCode,
  2420  			Header: res.Header,
  2421  		})
  2422  	}
  2423  	if err != nil {
  2424  		return nil, err
  2425  	}
  2426  	defer googleapi.CloseBody(res)
  2427  	if err := googleapi.CheckResponse(res); err != nil {
  2428  		return nil, gensupport.WrapError(err)
  2429  	}
  2430  	ret := &Operation{
  2431  		ServerResponse: googleapi.ServerResponse{
  2432  			Header:         res.Header,
  2433  			HTTPStatusCode: res.StatusCode,
  2434  		},
  2435  	}
  2436  	target := &ret
  2437  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2438  		return nil, err
  2439  	}
  2440  	return ret, nil
  2441  }
  2442  
  2443  type AccountsAppsOperationsListCall struct {
  2444  	s            *Service
  2445  	name         string
  2446  	urlParams_   gensupport.URLParams
  2447  	ifNoneMatch_ string
  2448  	ctx_         context.Context
  2449  	header_      http.Header
  2450  }
  2451  
  2452  // List: Lists operations that match the specified filter in the request. If
  2453  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  2454  //
  2455  // - name: The name of the operation's parent resource.
  2456  func (r *AccountsAppsOperationsService) List(name string) *AccountsAppsOperationsListCall {
  2457  	c := &AccountsAppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2458  	c.name = name
  2459  	return c
  2460  }
  2461  
  2462  // Filter sets the optional parameter "filter": The standard list filter.
  2463  func (c *AccountsAppsOperationsListCall) Filter(filter string) *AccountsAppsOperationsListCall {
  2464  	c.urlParams_.Set("filter", filter)
  2465  	return c
  2466  }
  2467  
  2468  // PageSize sets the optional parameter "pageSize": The standard list page
  2469  // size.
  2470  func (c *AccountsAppsOperationsListCall) PageSize(pageSize int64) *AccountsAppsOperationsListCall {
  2471  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2472  	return c
  2473  }
  2474  
  2475  // PageToken sets the optional parameter "pageToken": The standard list page
  2476  // token.
  2477  func (c *AccountsAppsOperationsListCall) PageToken(pageToken string) *AccountsAppsOperationsListCall {
  2478  	c.urlParams_.Set("pageToken", pageToken)
  2479  	return c
  2480  }
  2481  
  2482  // Fields allows partial responses to be retrieved. See
  2483  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2484  // details.
  2485  func (c *AccountsAppsOperationsListCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsListCall {
  2486  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2487  	return c
  2488  }
  2489  
  2490  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2491  // object's ETag matches the given value. This is useful for getting updates
  2492  // only after the object has changed since the last request.
  2493  func (c *AccountsAppsOperationsListCall) IfNoneMatch(entityTag string) *AccountsAppsOperationsListCall {
  2494  	c.ifNoneMatch_ = entityTag
  2495  	return c
  2496  }
  2497  
  2498  // Context sets the context to be used in this call's Do method.
  2499  func (c *AccountsAppsOperationsListCall) Context(ctx context.Context) *AccountsAppsOperationsListCall {
  2500  	c.ctx_ = ctx
  2501  	return c
  2502  }
  2503  
  2504  // Header returns a http.Header that can be modified by the caller to add
  2505  // headers to the request.
  2506  func (c *AccountsAppsOperationsListCall) Header() http.Header {
  2507  	if c.header_ == nil {
  2508  		c.header_ = make(http.Header)
  2509  	}
  2510  	return c.header_
  2511  }
  2512  
  2513  func (c *AccountsAppsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  2514  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2515  	if c.ifNoneMatch_ != "" {
  2516  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2517  	}
  2518  	var body io.Reader = nil
  2519  	c.urlParams_.Set("alt", alt)
  2520  	c.urlParams_.Set("prettyPrint", "false")
  2521  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
  2522  	urls += "?" + c.urlParams_.Encode()
  2523  	req, err := http.NewRequest("GET", urls, body)
  2524  	if err != nil {
  2525  		return nil, err
  2526  	}
  2527  	req.Header = reqHeaders
  2528  	googleapi.Expand(req.URL, map[string]string{
  2529  		"name": c.name,
  2530  	})
  2531  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2532  }
  2533  
  2534  // Do executes the "checks.accounts.apps.operations.list" call.
  2535  // Any non-2xx status code is an error. Response headers are in either
  2536  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  2537  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2538  // check whether the returned error was because http.StatusNotModified was
  2539  // returned.
  2540  func (c *AccountsAppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  2541  	gensupport.SetOptions(c.urlParams_, opts...)
  2542  	res, err := c.doRequest("json")
  2543  	if res != nil && res.StatusCode == http.StatusNotModified {
  2544  		if res.Body != nil {
  2545  			res.Body.Close()
  2546  		}
  2547  		return nil, gensupport.WrapError(&googleapi.Error{
  2548  			Code:   res.StatusCode,
  2549  			Header: res.Header,
  2550  		})
  2551  	}
  2552  	if err != nil {
  2553  		return nil, err
  2554  	}
  2555  	defer googleapi.CloseBody(res)
  2556  	if err := googleapi.CheckResponse(res); err != nil {
  2557  		return nil, gensupport.WrapError(err)
  2558  	}
  2559  	ret := &ListOperationsResponse{
  2560  		ServerResponse: googleapi.ServerResponse{
  2561  			Header:         res.Header,
  2562  			HTTPStatusCode: res.StatusCode,
  2563  		},
  2564  	}
  2565  	target := &ret
  2566  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2567  		return nil, err
  2568  	}
  2569  	return ret, nil
  2570  }
  2571  
  2572  // Pages invokes f for each page of results.
  2573  // A non-nil error returned from f will halt the iteration.
  2574  // The provided context supersedes any context provided to the Context method.
  2575  func (c *AccountsAppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  2576  	c.ctx_ = ctx
  2577  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2578  	for {
  2579  		x, err := c.Do()
  2580  		if err != nil {
  2581  			return err
  2582  		}
  2583  		if err := f(x); err != nil {
  2584  			return err
  2585  		}
  2586  		if x.NextPageToken == "" {
  2587  			return nil
  2588  		}
  2589  		c.PageToken(x.NextPageToken)
  2590  	}
  2591  }
  2592  
  2593  type AccountsAppsOperationsWaitCall struct {
  2594  	s                    *Service
  2595  	name                 string
  2596  	waitoperationrequest *WaitOperationRequest
  2597  	urlParams_           gensupport.URLParams
  2598  	ctx_                 context.Context
  2599  	header_              http.Header
  2600  }
  2601  
  2602  // Wait: Waits until the specified long-running operation is done or reaches at
  2603  // most a specified timeout, returning the latest state. If the operation is
  2604  // already done, the latest state is immediately returned. If the timeout
  2605  // specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout
  2606  // is used. If the server does not support this method, it returns
  2607  // `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort
  2608  // basis. It may return the latest state before the specified timeout
  2609  // (including immediately), meaning even an immediate response is no guarantee
  2610  // that the operation is done.
  2611  //
  2612  // - name: The name of the operation resource to wait on.
  2613  func (r *AccountsAppsOperationsService) Wait(name string, waitoperationrequest *WaitOperationRequest) *AccountsAppsOperationsWaitCall {
  2614  	c := &AccountsAppsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2615  	c.name = name
  2616  	c.waitoperationrequest = waitoperationrequest
  2617  	return c
  2618  }
  2619  
  2620  // Fields allows partial responses to be retrieved. See
  2621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2622  // details.
  2623  func (c *AccountsAppsOperationsWaitCall) Fields(s ...googleapi.Field) *AccountsAppsOperationsWaitCall {
  2624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2625  	return c
  2626  }
  2627  
  2628  // Context sets the context to be used in this call's Do method.
  2629  func (c *AccountsAppsOperationsWaitCall) Context(ctx context.Context) *AccountsAppsOperationsWaitCall {
  2630  	c.ctx_ = ctx
  2631  	return c
  2632  }
  2633  
  2634  // Header returns a http.Header that can be modified by the caller to add
  2635  // headers to the request.
  2636  func (c *AccountsAppsOperationsWaitCall) Header() http.Header {
  2637  	if c.header_ == nil {
  2638  		c.header_ = make(http.Header)
  2639  	}
  2640  	return c.header_
  2641  }
  2642  
  2643  func (c *AccountsAppsOperationsWaitCall) doRequest(alt string) (*http.Response, error) {
  2644  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2645  	var body io.Reader = nil
  2646  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.waitoperationrequest)
  2647  	if err != nil {
  2648  		return nil, err
  2649  	}
  2650  	c.urlParams_.Set("alt", alt)
  2651  	c.urlParams_.Set("prettyPrint", "false")
  2652  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:wait")
  2653  	urls += "?" + c.urlParams_.Encode()
  2654  	req, err := http.NewRequest("POST", urls, body)
  2655  	if err != nil {
  2656  		return nil, err
  2657  	}
  2658  	req.Header = reqHeaders
  2659  	googleapi.Expand(req.URL, map[string]string{
  2660  		"name": c.name,
  2661  	})
  2662  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2663  }
  2664  
  2665  // Do executes the "checks.accounts.apps.operations.wait" call.
  2666  // Any non-2xx status code is an error. Response headers are in either
  2667  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2668  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2669  // whether the returned error was because http.StatusNotModified was returned.
  2670  func (c *AccountsAppsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2671  	gensupport.SetOptions(c.urlParams_, opts...)
  2672  	res, err := c.doRequest("json")
  2673  	if res != nil && res.StatusCode == http.StatusNotModified {
  2674  		if res.Body != nil {
  2675  			res.Body.Close()
  2676  		}
  2677  		return nil, gensupport.WrapError(&googleapi.Error{
  2678  			Code:   res.StatusCode,
  2679  			Header: res.Header,
  2680  		})
  2681  	}
  2682  	if err != nil {
  2683  		return nil, err
  2684  	}
  2685  	defer googleapi.CloseBody(res)
  2686  	if err := googleapi.CheckResponse(res); err != nil {
  2687  		return nil, gensupport.WrapError(err)
  2688  	}
  2689  	ret := &Operation{
  2690  		ServerResponse: googleapi.ServerResponse{
  2691  			Header:         res.Header,
  2692  			HTTPStatusCode: res.StatusCode,
  2693  		},
  2694  	}
  2695  	target := &ret
  2696  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2697  		return nil, err
  2698  	}
  2699  	return ret, nil
  2700  }
  2701  
  2702  type AccountsAppsReportsGetCall struct {
  2703  	s            *Service
  2704  	name         string
  2705  	urlParams_   gensupport.URLParams
  2706  	ifNoneMatch_ string
  2707  	ctx_         context.Context
  2708  	header_      http.Header
  2709  }
  2710  
  2711  // Get: Gets a report. By default, only the name and results_uri fields are
  2712  // returned. You can include other fields by listing them in the `fields` URL
  2713  // query parameter. For example, `?fields=name,checks` will return the name and
  2714  // checks fields.
  2715  //
  2716  //   - name: Resource name of the report. Example:
  2717  //     `accounts/123/apps/456/reports/789`.
  2718  func (r *AccountsAppsReportsService) Get(name string) *AccountsAppsReportsGetCall {
  2719  	c := &AccountsAppsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2720  	c.name = name
  2721  	return c
  2722  }
  2723  
  2724  // ChecksFilter sets the optional parameter "checksFilter": An AIP-160
  2725  // (https://google.aip.dev/160) filter string to filter checks within the
  2726  // report. Only checks that match the filter string are included in the
  2727  // response. Example: `state = FAILED`
  2728  func (c *AccountsAppsReportsGetCall) ChecksFilter(checksFilter string) *AccountsAppsReportsGetCall {
  2729  	c.urlParams_.Set("checksFilter", checksFilter)
  2730  	return c
  2731  }
  2732  
  2733  // Fields allows partial responses to be retrieved. See
  2734  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2735  // details.
  2736  func (c *AccountsAppsReportsGetCall) Fields(s ...googleapi.Field) *AccountsAppsReportsGetCall {
  2737  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2738  	return c
  2739  }
  2740  
  2741  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2742  // object's ETag matches the given value. This is useful for getting updates
  2743  // only after the object has changed since the last request.
  2744  func (c *AccountsAppsReportsGetCall) IfNoneMatch(entityTag string) *AccountsAppsReportsGetCall {
  2745  	c.ifNoneMatch_ = entityTag
  2746  	return c
  2747  }
  2748  
  2749  // Context sets the context to be used in this call's Do method.
  2750  func (c *AccountsAppsReportsGetCall) Context(ctx context.Context) *AccountsAppsReportsGetCall {
  2751  	c.ctx_ = ctx
  2752  	return c
  2753  }
  2754  
  2755  // Header returns a http.Header that can be modified by the caller to add
  2756  // headers to the request.
  2757  func (c *AccountsAppsReportsGetCall) Header() http.Header {
  2758  	if c.header_ == nil {
  2759  		c.header_ = make(http.Header)
  2760  	}
  2761  	return c.header_
  2762  }
  2763  
  2764  func (c *AccountsAppsReportsGetCall) doRequest(alt string) (*http.Response, error) {
  2765  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2766  	if c.ifNoneMatch_ != "" {
  2767  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2768  	}
  2769  	var body io.Reader = nil
  2770  	c.urlParams_.Set("alt", alt)
  2771  	c.urlParams_.Set("prettyPrint", "false")
  2772  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
  2773  	urls += "?" + c.urlParams_.Encode()
  2774  	req, err := http.NewRequest("GET", urls, body)
  2775  	if err != nil {
  2776  		return nil, err
  2777  	}
  2778  	req.Header = reqHeaders
  2779  	googleapi.Expand(req.URL, map[string]string{
  2780  		"name": c.name,
  2781  	})
  2782  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2783  }
  2784  
  2785  // Do executes the "checks.accounts.apps.reports.get" call.
  2786  // Any non-2xx status code is an error. Response headers are in either
  2787  // *GoogleChecksReportV1alphaReport.ServerResponse.Header or (if a response was
  2788  // returned at all) in error.(*googleapi.Error).Header. Use
  2789  // googleapi.IsNotModified to check whether the returned error was because
  2790  // http.StatusNotModified was returned.
  2791  func (c *AccountsAppsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleChecksReportV1alphaReport, error) {
  2792  	gensupport.SetOptions(c.urlParams_, opts...)
  2793  	res, err := c.doRequest("json")
  2794  	if res != nil && res.StatusCode == http.StatusNotModified {
  2795  		if res.Body != nil {
  2796  			res.Body.Close()
  2797  		}
  2798  		return nil, gensupport.WrapError(&googleapi.Error{
  2799  			Code:   res.StatusCode,
  2800  			Header: res.Header,
  2801  		})
  2802  	}
  2803  	if err != nil {
  2804  		return nil, err
  2805  	}
  2806  	defer googleapi.CloseBody(res)
  2807  	if err := googleapi.CheckResponse(res); err != nil {
  2808  		return nil, gensupport.WrapError(err)
  2809  	}
  2810  	ret := &GoogleChecksReportV1alphaReport{
  2811  		ServerResponse: googleapi.ServerResponse{
  2812  			Header:         res.Header,
  2813  			HTTPStatusCode: res.StatusCode,
  2814  		},
  2815  	}
  2816  	target := &ret
  2817  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2818  		return nil, err
  2819  	}
  2820  	return ret, nil
  2821  }
  2822  
  2823  type AccountsAppsReportsListCall struct {
  2824  	s            *Service
  2825  	parent       string
  2826  	urlParams_   gensupport.URLParams
  2827  	ifNoneMatch_ string
  2828  	ctx_         context.Context
  2829  	header_      http.Header
  2830  }
  2831  
  2832  // List: Lists reports for the specified app. By default, only the name and
  2833  // results_uri fields are returned. You can include other fields by listing
  2834  // them in the `fields` URL query parameter. For example,
  2835  // `?fields=reports(name,checks)` will return the name and checks fields.
  2836  //
  2837  // - parent: Resource name of the app. Example: `accounts/123/apps/456`.
  2838  func (r *AccountsAppsReportsService) List(parent string) *AccountsAppsReportsListCall {
  2839  	c := &AccountsAppsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2840  	c.parent = parent
  2841  	return c
  2842  }
  2843  
  2844  // ChecksFilter sets the optional parameter "checksFilter": An AIP-160
  2845  // (https://google.aip.dev/160) filter string to filter checks within reports.
  2846  // Only checks that match the filter string are included in the response.
  2847  // Example: `state = FAILED`
  2848  func (c *AccountsAppsReportsListCall) ChecksFilter(checksFilter string) *AccountsAppsReportsListCall {
  2849  	c.urlParams_.Set("checksFilter", checksFilter)
  2850  	return c
  2851  }
  2852  
  2853  // Filter sets the optional parameter "filter": An AIP-160
  2854  // (https://google.aip.dev/160) filter string to filter reports. Example:
  2855  // `appBundle.releaseType = PRE_RELEASE`
  2856  func (c *AccountsAppsReportsListCall) Filter(filter string) *AccountsAppsReportsListCall {
  2857  	c.urlParams_.Set("filter", filter)
  2858  	return c
  2859  }
  2860  
  2861  // PageSize sets the optional parameter "pageSize": The maximum number of
  2862  // reports to return. If unspecified, at most 10 reports will be returned. The
  2863  // maximum value is 50; values above 50 will be coerced to 50.
  2864  func (c *AccountsAppsReportsListCall) PageSize(pageSize int64) *AccountsAppsReportsListCall {
  2865  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2866  	return c
  2867  }
  2868  
  2869  // PageToken sets the optional parameter "pageToken": A page token received
  2870  // from a previous `ListReports` call. Provide this to retrieve the subsequent
  2871  // page. When paginating, all other parameters provided to `ListReports` must
  2872  // match the call that provided the page token.
  2873  func (c *AccountsAppsReportsListCall) PageToken(pageToken string) *AccountsAppsReportsListCall {
  2874  	c.urlParams_.Set("pageToken", pageToken)
  2875  	return c
  2876  }
  2877  
  2878  // Fields allows partial responses to be retrieved. See
  2879  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2880  // details.
  2881  func (c *AccountsAppsReportsListCall) Fields(s ...googleapi.Field) *AccountsAppsReportsListCall {
  2882  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2883  	return c
  2884  }
  2885  
  2886  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2887  // object's ETag matches the given value. This is useful for getting updates
  2888  // only after the object has changed since the last request.
  2889  func (c *AccountsAppsReportsListCall) IfNoneMatch(entityTag string) *AccountsAppsReportsListCall {
  2890  	c.ifNoneMatch_ = entityTag
  2891  	return c
  2892  }
  2893  
  2894  // Context sets the context to be used in this call's Do method.
  2895  func (c *AccountsAppsReportsListCall) Context(ctx context.Context) *AccountsAppsReportsListCall {
  2896  	c.ctx_ = ctx
  2897  	return c
  2898  }
  2899  
  2900  // Header returns a http.Header that can be modified by the caller to add
  2901  // headers to the request.
  2902  func (c *AccountsAppsReportsListCall) Header() http.Header {
  2903  	if c.header_ == nil {
  2904  		c.header_ = make(http.Header)
  2905  	}
  2906  	return c.header_
  2907  }
  2908  
  2909  func (c *AccountsAppsReportsListCall) doRequest(alt string) (*http.Response, error) {
  2910  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2911  	if c.ifNoneMatch_ != "" {
  2912  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2913  	}
  2914  	var body io.Reader = nil
  2915  	c.urlParams_.Set("alt", alt)
  2916  	c.urlParams_.Set("prettyPrint", "false")
  2917  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/reports")
  2918  	urls += "?" + c.urlParams_.Encode()
  2919  	req, err := http.NewRequest("GET", urls, body)
  2920  	if err != nil {
  2921  		return nil, err
  2922  	}
  2923  	req.Header = reqHeaders
  2924  	googleapi.Expand(req.URL, map[string]string{
  2925  		"parent": c.parent,
  2926  	})
  2927  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2928  }
  2929  
  2930  // Do executes the "checks.accounts.apps.reports.list" call.
  2931  // Any non-2xx status code is an error. Response headers are in either
  2932  // *GoogleChecksReportV1alphaListReportsResponse.ServerResponse.Header or (if a
  2933  // response was returned at all) in error.(*googleapi.Error).Header. Use
  2934  // googleapi.IsNotModified to check whether the returned error was because
  2935  // http.StatusNotModified was returned.
  2936  func (c *AccountsAppsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleChecksReportV1alphaListReportsResponse, error) {
  2937  	gensupport.SetOptions(c.urlParams_, opts...)
  2938  	res, err := c.doRequest("json")
  2939  	if res != nil && res.StatusCode == http.StatusNotModified {
  2940  		if res.Body != nil {
  2941  			res.Body.Close()
  2942  		}
  2943  		return nil, gensupport.WrapError(&googleapi.Error{
  2944  			Code:   res.StatusCode,
  2945  			Header: res.Header,
  2946  		})
  2947  	}
  2948  	if err != nil {
  2949  		return nil, err
  2950  	}
  2951  	defer googleapi.CloseBody(res)
  2952  	if err := googleapi.CheckResponse(res); err != nil {
  2953  		return nil, gensupport.WrapError(err)
  2954  	}
  2955  	ret := &GoogleChecksReportV1alphaListReportsResponse{
  2956  		ServerResponse: googleapi.ServerResponse{
  2957  			Header:         res.Header,
  2958  			HTTPStatusCode: res.StatusCode,
  2959  		},
  2960  	}
  2961  	target := &ret
  2962  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2963  		return nil, err
  2964  	}
  2965  	return ret, nil
  2966  }
  2967  
  2968  // Pages invokes f for each page of results.
  2969  // A non-nil error returned from f will halt the iteration.
  2970  // The provided context supersedes any context provided to the Context method.
  2971  func (c *AccountsAppsReportsListCall) Pages(ctx context.Context, f func(*GoogleChecksReportV1alphaListReportsResponse) error) error {
  2972  	c.ctx_ = ctx
  2973  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2974  	for {
  2975  		x, err := c.Do()
  2976  		if err != nil {
  2977  			return err
  2978  		}
  2979  		if err := f(x); err != nil {
  2980  			return err
  2981  		}
  2982  		if x.NextPageToken == "" {
  2983  			return nil
  2984  		}
  2985  		c.PageToken(x.NextPageToken)
  2986  	}
  2987  }
  2988  
  2989  type MediaUploadCall struct {
  2990  	s                                             *Service
  2991  	parent                                        string
  2992  	googlechecksreportv1alphaanalyzeuploadrequest *GoogleChecksReportV1alphaAnalyzeUploadRequest
  2993  	urlParams_                                    gensupport.URLParams
  2994  	mediaInfo_                                    *gensupport.MediaInfo
  2995  	ctx_                                          context.Context
  2996  	header_                                       http.Header
  2997  }
  2998  
  2999  // Upload: Analyzes the uploaded app bundle and returns a
  3000  // google.longrunning.Operation containing the generated Report. ## Example
  3001  // (upload only) Send a regular POST request with the header
  3002  // `X-Goog-Upload-Protocol: raw`. ``` POST
  3003  // https://checks.googleapis.com/upload/v1alpha/{parent=accounts/*/apps/*}/reports:analyzeUpload
  3004  // HTTP/1.1 X-Goog-Upload-Protocol: raw Content-Length: Content-Type:
  3005  // application/octet-stream ``` ## Example (upload with metadata) Send a
  3006  // multipart POST request where the first body part contains the metadata JSON
  3007  // and the second body part contains the binary upload. Include the header
  3008  // `X-Goog-Upload-Protocol: multipart`. ``` POST
  3009  // https://checks.googleapis.com/upload/v1alpha/{parent=accounts/*/apps/*}/reports:analyzeUpload
  3010  // HTTP/1.1 X-Goog-Upload-Protocol: multipart Content-Length: ? Content-Type:
  3011  // multipart/related; boundary=BOUNDARY --BOUNDARY Content-Type:
  3012  // application/json
  3013  // {"code_reference_id":"db5bcc20f94055fb5bc08cbb9b0e7a5530308786"} --BOUNDARY
  3014  // --BOUNDARY-- ``` *Note:* Metadata-only requests are not supported.
  3015  //
  3016  // - parent: Resource name of the app. Example: `accounts/123/apps/456`.
  3017  func (r *MediaService) Upload(parent string, googlechecksreportv1alphaanalyzeuploadrequest *GoogleChecksReportV1alphaAnalyzeUploadRequest) *MediaUploadCall {
  3018  	c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3019  	c.parent = parent
  3020  	c.googlechecksreportv1alphaanalyzeuploadrequest = googlechecksreportv1alphaanalyzeuploadrequest
  3021  	return c
  3022  }
  3023  
  3024  // Media specifies the media to upload in one or more chunks. The chunk size
  3025  // may be controlled by supplying a MediaOption generated by
  3026  // googleapi.ChunkSize. The chunk size defaults to
  3027  // googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload
  3028  // request will be determined by sniffing the contents of r, unless a
  3029  // MediaOption generated by googleapi.ContentType is supplied.
  3030  // At most one of Media and ResumableMedia may be set.
  3031  func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall {
  3032  	c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
  3033  	return c
  3034  }
  3035  
  3036  // ResumableMedia specifies the media to upload in chunks and can be canceled
  3037  // with ctx.
  3038  //
  3039  // Deprecated: use Media instead.
  3040  //
  3041  // At most one of Media and ResumableMedia may be set. mediaType identifies the
  3042  // MIME media type of the upload, such as "image/png". If mediaType is "", it
  3043  // will be auto-detected. The provided ctx will supersede any context
  3044  // previously provided to the Context method.
  3045  func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall {
  3046  	c.ctx_ = ctx
  3047  	c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
  3048  	return c
  3049  }
  3050  
  3051  // ProgressUpdater provides a callback function that will be called after every
  3052  // chunk. It should be a low-latency function in order to not slow down the
  3053  // upload operation. This should only be called when using ResumableMedia (as
  3054  // opposed to Media).
  3055  func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall {
  3056  	c.mediaInfo_.SetProgressUpdater(pu)
  3057  	return c
  3058  }
  3059  
  3060  // Fields allows partial responses to be retrieved. See
  3061  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3062  // details.
  3063  func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall {
  3064  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3065  	return c
  3066  }
  3067  
  3068  // Context sets the context to be used in this call's Do method.
  3069  // This context will supersede any context previously provided to the
  3070  // ResumableMedia method.
  3071  func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall {
  3072  	c.ctx_ = ctx
  3073  	return c
  3074  }
  3075  
  3076  // Header returns a http.Header that can be modified by the caller to add
  3077  // headers to the request.
  3078  func (c *MediaUploadCall) Header() http.Header {
  3079  	if c.header_ == nil {
  3080  		c.header_ = make(http.Header)
  3081  	}
  3082  	return c.header_
  3083  }
  3084  
  3085  func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) {
  3086  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3087  	var body io.Reader = nil
  3088  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlechecksreportv1alphaanalyzeuploadrequest)
  3089  	if err != nil {
  3090  		return nil, err
  3091  	}
  3092  	c.urlParams_.Set("alt", alt)
  3093  	c.urlParams_.Set("prettyPrint", "false")
  3094  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/reports:analyzeUpload")
  3095  	if c.mediaInfo_ != nil {
  3096  		urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1alpha/{+parent}/reports:analyzeUpload")
  3097  		c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
  3098  	}
  3099  	if body == nil {
  3100  		body = new(bytes.Buffer)
  3101  		reqHeaders.Set("Content-Type", "application/json")
  3102  	}
  3103  	body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
  3104  	defer cleanup()
  3105  	urls += "?" + c.urlParams_.Encode()
  3106  	req, err := http.NewRequest("POST", urls, body)
  3107  	if err != nil {
  3108  		return nil, err
  3109  	}
  3110  	req.Header = reqHeaders
  3111  	req.GetBody = getBody
  3112  	googleapi.Expand(req.URL, map[string]string{
  3113  		"parent": c.parent,
  3114  	})
  3115  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3116  }
  3117  
  3118  // Do executes the "checks.media.upload" call.
  3119  // Any non-2xx status code is an error. Response headers are in either
  3120  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3121  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3122  // whether the returned error was because http.StatusNotModified was returned.
  3123  func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3124  	gensupport.SetOptions(c.urlParams_, opts...)
  3125  	res, err := c.doRequest("json")
  3126  	if res != nil && res.StatusCode == http.StatusNotModified {
  3127  		if res.Body != nil {
  3128  			res.Body.Close()
  3129  		}
  3130  		return nil, gensupport.WrapError(&googleapi.Error{
  3131  			Code:   res.StatusCode,
  3132  			Header: res.Header,
  3133  		})
  3134  	}
  3135  	if err != nil {
  3136  		return nil, err
  3137  	}
  3138  	defer googleapi.CloseBody(res)
  3139  	if err := googleapi.CheckResponse(res); err != nil {
  3140  		return nil, gensupport.WrapError(err)
  3141  	}
  3142  	rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
  3143  	if rx != nil {
  3144  		rx.Client = c.s.client
  3145  		rx.UserAgent = c.s.userAgent()
  3146  		ctx := c.ctx_
  3147  		if ctx == nil {
  3148  			ctx = context.TODO()
  3149  		}
  3150  		res, err = rx.Upload(ctx)
  3151  		if err != nil {
  3152  			return nil, err
  3153  		}
  3154  		defer res.Body.Close()
  3155  		if err := googleapi.CheckResponse(res); err != nil {
  3156  			return nil, gensupport.WrapError(err)
  3157  		}
  3158  	}
  3159  	ret := &Operation{
  3160  		ServerResponse: googleapi.ServerResponse{
  3161  			Header:         res.Header,
  3162  			HTTPStatusCode: res.StatusCode,
  3163  		},
  3164  	}
  3165  	target := &ret
  3166  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3167  		return nil, err
  3168  	}
  3169  	return ret, nil
  3170  }
  3171  

View as plain text